Poprawki w dokumentacji (utf8 dziaa), poprawka w tre

This commit is contained in:
Tomasz Obrebski 2013-11-21 00:53:10 +01:00
parent b30c30d500
commit d6a59cafdf
2 changed files with 11 additions and 23 deletions

View File

@ -1,12 +1,12 @@
\input texinfo @c -*-texinfo-*- \input texinfo @c -*-texinfo-*-
@c @documentencoding ISO-8859-2 @c @documentencoding ISO-8859-2
@documentencoding UTF-8
@c @documentlanguage pl @c @documentlanguage pl
@c %**start of header @c %**start of header
@setfilename utt.info @setfilename utt.info
@settitle UAM Text Tools v0.90 @settitle UAM Text Tools v0.90
@documentencoding utf-8
@c %**end of header @c %**end of header
@copying @copying
@ -27,7 +27,6 @@ Documentation License,,GNU Free Documentation License.
@c @end quotation @c @end quotation
@end copying @end copying
@titlepage @titlepage
@title UAM Text Tools 0.90 - User Manual @title UAM Text Tools 0.90 - User Manual
@subtitle edition 0.01, @today @subtitle edition 0.01, @today
@ -966,7 +965,7 @@ The mandatory file name extension for a binary dictionary is @code{bin}. To
compile a text dictionary into binary format, write: compile a text dictionary into binary format, write:
@example @example
compiledic <dictionaryname>.dic compdic <dictionaryname>.dic <dictionaryname>.bin
@end example @end example
@subsubheading Polex/PMDBF dictionary @subsubheading Polex/PMDBF dictionary
@ -1211,7 +1210,7 @@ The mandatory file name extension for a binary dictionary is @code{bin}. To
compile a text dictionary into binary format, write: compile a text dictionary into binary format, write:
@example @example
compiledic <dictionaryname>.dic compdic <dictionaryname>.dic <dictionaryname>.bin
@end example @end example
@c --------------------------------------------------------------------- @c ---------------------------------------------------------------------
@ -2005,15 +2004,15 @@ sequence:
@chapter Auxiliary tools @chapter Auxiliary tools
@menu @menu
* compiledic:: dictionary compiler * compdic:: dictionary compiler
* fla:: UTT file flattener * fla:: UTT file flattener
* unfla:: UTT file unflattener * unfla:: UTT file unflattener
@end menu @end menu
@page @page
@node compiledic @node compdic
@section compiledic - the dictionary compiler @section compdic - the dictionary compiler
@multitable {aaaaaaaaaaaaaaaaaaaaaaaaa} {aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa} @multitable {aaaaaaaaaaaaaaaaaaaaaaaaa} {aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa}
@item @strong{Authors:} @tab Michał Stolarski, Tomasz Obrębski @item @strong{Authors:} @tab Michał Stolarski, Tomasz Obrębski
@ -2021,30 +2020,20 @@ sequence:
@end multitable @end multitable
@c @c
@command{compiledic} compiles dictionaries in text format (@code{.dic} extension) into binary @command{compdic} compiles dictionaries in text format (@code{.dic} extension) into binary
(FSA) format (@code{.bin} extension). (FST) format (@code{.bin} extension).
Automaton representation of a dictionary is built using the AT&T tools: Automaton representation of a dictionary is built using the OpenFst toolkit.
@itemize
@item AT&T FSM Library,
@item AT&T Lextools.
@end itemize
In order for the compiledic program to work you have to install the In order for the compdic program to work you have to install the OpenFst toolkit in your system.
above mentioned packages into your system. They are freely available
for non-commercial use.
Usage: Usage:
@example @example
compiledic <dictionaryname>.dic compdic <dictionaryname>.dic <dictionaryname>.bin
@end example @end example
The file <dictionaryname>.bin will be generated. The file <dictionaryname>.bin will be generated.
Remarque: The program produces a lot of temporary files which are
stored in the current directory. They are deleted after successfull
termination of the program.
@c @menu @c @menu
@c * con command line options:: @c * con command line options::
@c * con usage example:: @c * con usage example::

View File

@ -379,7 +379,6 @@ end
def buildR(min, max, tree) def buildR(min, max, tree)
if $DEBUG then print "buildR--#{min}--#{max}--#{tree.inspect}\n" end if $DEBUG then print "buildR--#{min}--#{max}--#{tree.inspect}\n" end
trees=[] trees=[]
print $arcs
for arc in $arcs.select{|a| a[0]==max && $vis.include?([min,a[1]]) } for arc in $arcs.select{|a| a[0]==max && $vis.include?([min,a[1]]) }
if $DEBUG then print "ARC: #{arc.inspect}\n" end if $DEBUG then print "ARC: #{arc.inspect}\n" end
for r in buildR(arc[1],arc[0],tree+[arc]) #!!! buildR(a[1],a[3],tree+[a]) for r in buildR(arc[1],arc[0],tree+[arc]) #!!! buildR(a[1],a[3],tree+[a])