https://bugs.documentfoundation.org/show_bug.cgi?id=167730

--- Comment #8 from László Németh <[email protected]> ---
(In reply to Marco A.G.Pinto from comment #7)

Hi Marco,

AM/AF (Alias Morphology/Alias Flag vector) are only for replacing flag vectors
and morphological description with an index in the dic file to compress the
dictionary, see man (5) hunspell, and makealias:

$ makealias -h
makealias: make alias compressed dic and aff files
Usage: makealias [--minimize-diff old_file_without_file_extension] file.dic
file.aff

> AM 1834
> AM ts:0 #1
> AM st:abatis ts:Ns #2

In the example above, "1" in the dic file means "ts:0", "2" means "st:abatis
ts:Ns" etc. It's not possible to reorder AM lines without changing the indices
in the .dic file, if we don't want to lose the information, which word has got
the stem "abatis" in the .dic file. Fortunately we don't need AM/AF at all.

The working strategies to get back the lost functionality:

1) using my original script attached to the OpenOffice.org issue, which extends
the dictionaries with morphological description: real stems ("st:") and the
other affixed forms ("am:" ~allomorphs) (and use the result directly or its
smaller version compressed with makealias).

or

2) add new word to the original .dic file with alias indices. The new words
cannot contain flags, so it must create "unmunched" version from the new words,
listening all of their affixed forms. To create this word list, you can use
Kevin Hendrick's original "unmunch", or my scipt "wordforms" (part of the
Hunspell tools).

hunspell/src/tools$ ./wordforms 
Usage: wordforms [-s | -p] dictionary.aff dictionary.dic word
-s: print only suffixed forms
-p: print only prefixed forms

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to