This is a couple of scripts to support creation of "synchron-optical nets" in relation with RELATRA Text analysis.
Relatra is a methode for text analysis and translataion. It is part of the translation triade of Mudersbach and Gerzymisch-Arbogast. (I am very sorry, but I do not know any resources about this translation preocedure on the web.)
Relatra is aimed to the analysis of semantical nets; it consists of two different types of nets:
With linear nets the relations are visualized each by itself; with synchron-optical nets all relations of a text are shown with their relationships among each others.
The tools here support creation of nets; they however cannot support with the more difficult earlier steps of the analysis:
Since the automatic generators here do not always produce a "perfect" output, we can generate .slang output, which can be finetuned with the "netz" configuration of NyktoOp 's graphical editor "nykditor". Alternatively there is a possbility to produce different graphical output formats, which can be fine-tuned with their office programs:
MIF (Framemaker interchange file format)
RTF (MS Word Rich text format)
FIG (xfig file format)
Read a textfile of a special form and convert it to a .rel file suitable for input to sonetze.
none yet :)
The input file consits of different entries line by line;
The entries contain:
Relations break a file into pieces, SVRs break relations into pieces; every piece may have exactly one relator. All arguments inside a piece which are named before the relator are connected to the relator with lines (arrows) pointing to the relator. All arguments named after the relator are connected with the relator by lines (arrows) pointing to the arguments. The lines from relator pointig to arguments are numbered starting with 0. In the graphical output the numbers are replaced by a bundle of thin lines at the middle of the line (arrow).
read a ".rel" file and create a ".slang" or ".gfx" file from it
!!!!!!!!!! Look into the samples !!!!!!!!!!!
The default values are given as examples here.
the ".rel" files are text files of a certain format; again they contain different entries one line each:
Relations break a file into pieces, SVRs break relations into pieces; every piece may have exactly one relator. All arguments inside a piece which are named before the relator are connected to the relator with lines (arrows) pointing to the relator. All arguments named after the relator are connected with the relator by lines (arrows) pointing to the arguments. The lines from relator pointig to arguments are numbered starting with 0. In the graphical output the numbers are replaced by a bundle of thin lines at the middle of the line (arrow).
This is a sample call ... ;))))))))
% perl -w preconv.pl sample0.txt |\
perl -w sonetze.pl -outmode=gfx -interdist=0.2 -distancefactor=0.8 \
-maxgap=0.3 && (\
cd ../perl.dir/gfx2x.dir/ ;\
perl -w front.pl zoom=1.0 target=ps < ../../relatra.dir/out.gfx &&\
gv out.ps )
First prepare a .rel file from a .txt file, then run sonetze.pl to create a .gfx file; after that run the gfx converter and finally display the result in ghostview
Have a look at a sample netz picture .
Ahem ... these are just a little bunch of scripts; do You really ask me for that?
Ok, here are the details:
It still does not run? Oh no, I give up ...
The recent version of this subproject may be found at my homepage via relatra.tar.gz .
For such information please have a look at './Disclaimer.txt'. If there is no such file, decide urself, if U want to think that GPL applies, of download Disclaimer.txt from my Homepage .
Bernd Noll
Thx to
For the progams' histories themself better look into the code.