fsa_prefix

Langue: en

Version: 111321 (mandriva - 01/05/08)

Section: 1 (Commandes utilisateur)

NAME

fsa_prefix - print all words beginning with the specified prefix

SYNOPSIS

fsa_prefix [ options ] [ <infile ] [ >outfile ]

DESCRIPTION

fsa_prefix reads lines from the input. Each line contains one word or nothing. The word is treated as a prefix. All words in the specified dictionaries that have the word as their prefix are printed.

If the word is empty, the whole contents of the dictionary is printed.

OPTIONS

-a
print the whole dictionary. This option had to be introduced because of a recent bug in glibc++ that treats reading an empty line as an error.
-d dictionary
use that dictionary. Several dictionaries may be given. At least one dictionary must be specified. Dictionaries are automata built using fsa_ubuild or fsa_build.
-i input_file
specifies a file with prefixes to be completed. More than one file can be specified in that way (i.e. the option can used more than once). In absence of this option, standard input is used.
-l language_file
specifies a file that hold language specific information, i.e. (for now) characters that form words, and pairs of (lowercase, uppercase) characters for case conversion. If the option is not specified, latin letters with standard case conversions wil be used.

Note: whether this information will be used or not depends on the module used for I/O handling (one_word_io or text_io).

-v
print version details.

EXIT STATUS

0
OK
1
Invalid options, or lack of a required option.
2
Dictionary file could not be opened.
4
Not enough memory.
5
Possible cycle in the automaton detected.

SEE ALSO

fsa_accent(1), fsa_build(1) fsa_guess(1), fsa_guess(5), fsa_hash(1), fsa_morph(1), fsa_morph(5), fsa_spell(1), fsa_ubuild(1), fsa_visual(1).

BUGS

Send bug reports to the author: Jan Daciuk, jandac@pg.gda.pl.