hunspell-checking Greek text I create in Emacs is not working.
- I am aware of this post: Spell check with multiple dictionaries
- Eventually, I want to use
hunspellin Emacs, which is also currently not working, I guess due to the problem described below.
Let me show my setup so far:
I downloaded a Greek dictionary from this page, https://sourceforge.net/projects/orthos-spell/files/v.0.4.0./orthos-el_GR-0.4.0-87.oxt/download, and extracted and installed the 2 relevant files:
$ unzip -x orthos-el_GR-0.4.0-87.oxt dicts/el_GR.dic dicts/el_GR.aff $ sudo mv * /usr/share/hunspell/ $ hunspell -D AVAILABLE DICTIONARIES (path is not mandatory for -d option): ... /usr/share/hunspell/el_GR ... Hunspell 1.3.2
For testing on the command line, I copied and pasted a word from the dictionary
/usr/share/hunspell/el_GR.dic. Spell checking works fine.
$ echo "άλφα" | hunspell -d el_GR Hunspell 1.3.2 *
Now to Emacs: First I set the input method to
M-x set-input-method greek-babel
Now I can type
ά I get by
' followed by
But pasting this into the
hunspell commandline call, the word
alfa with this accented
a is not recognized:
$ echo "άλφα" | hunspell -d el_GR Hunspell 1.3.2 & άλφα 1 0: άλφα
A quick test in
python shows that the accented
as are different characters:
$ python Python 2.7.13 (default, Jan 03 2017, 17:41:54) [GCC] on linux2 > ['ά'], ['ά'] (['\xce\xac'], ['\xe1\xbd\xb1'])
What am I missing?