#6 aspell dicts -> hunspell dicts

closed
None
5
2010-03-05
2006-12-07
Anonymous
No

From http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=324639:

--- snip ---
please add information how to build hunspell dictionaries from aspell
dicts. these dictionaries are mentioned on the hunspell home page.
--- snip ---

Discussion

  • Logged In: YES
    user_id=1194995
    Originator: NO

    Aspell6 has affix compression and its dictionaries have a format very, very similar to hunspell. I believe that's what http://hunspell.sourceforge.net/ means.

     
    • assigned_to: nobody --> nemethl
     
  • Logged In: YES
    user_id=726595
    Originator: NO

    Conversion steps:

    A. dictionary (xx.cwl -> xx.wl):
    1. preunzip xx.cwl # Aspell preunzip tools uncompress the word list
    2. add word count to the first line of the word list:
    wc -l <xx.wl >xx.dic
    cat xx.wl >>xx.dic

    B. affix file (Aspell uses MySpell's format, so it is compatible with Hunspell, too)
    1. if exist, rename it:
    mv xx_affix.dat xx.aff
    2. if not, make it with the suitable character encoding (see xx.dat):
    echo "SET ISO8859-x" >xx.aff
    or
    echo "SET UTF-8" >xx.aff

    It's useful to add a TRY option with the characters of the dictionary with frequency order to set edit distance suggestions:

    echo "TRY qwertzuiopasdfghjklyxcvbnmQWERTZUIOPASDFGHJKLYXCVBNM" >>xx.aff

     
    • status: open --> closed
     
  • The above is now included in the 1.2.9 man page