#7 input encoding support

closed
5
2007-06-20
2006-12-07
Anonymous
No

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

--- snip ---
I would like to have input encoding support. So that hunspell
can (automagically) correct files in any encoding and not only the
encoding of the dictionary.

Exspecially I have problems with UTF-8 encoded german LaTeX files.
--- snip ---

Discussion

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

    I will implement the iconv support on Linux in the next release. Thanks for your request. Laci

    By the way, with a simple character conversion, you can convert the German dictionary to UTF-8:
    iconv -t UTF-8 de_de.dic >de_DE_u8.dic
    iconv -t UTF-8 de_de.aff | sed 's/SET ISO8859-1/SET UTF-8/' >de_DE_u8.aff

     
    • status: open --> closed
     
  • Logged In: YES
    user_id=726595
    Originator: NO

    Hunspell 1.2 has a new flag for input encoding.

    hunspell -i utf-8 german.ltx

    Note: not need to convert the dictionary encoding to UTF-8.