GtkView GtkSpell and myspell backend
Posted
by justadreamer
on Server Fault
See other posts from Server Fault
or by justadreamer
Published on 2009-07-07T12:16:04Z
Indexed on
2010/03/31
19:43 UTC
Read the original article
Hit count: 296
gtk
Hi I have an IM client pidgin. It is launched under locale
ru_RU.UTF-8
Then when I type messages in GtkView widget it highlights the misspelled words. However it uses a GtkSpell which uses enchant, which uses myspell backend (I provided it with symlink to openoffice dictionaries folder /usr/share/enchant/myspell --> /usr/share/myspell/dict). Now the problem is that whichever language I use - it still uses
ru_RU
language to select the dictionary, so all english text is being underlined as a misspelled text. When I switch locale to en_US and then launch pidgin under it - then all russian text becomes misspelled. I don't like this behaviour as I use pidgin to chat in both languages. Is there a way to somehow setup enchant/myspell so that it searches in both dictionaries
en_US and ru_RU
independent of the locale I launched pidgin (GtkView) in ?
I have Debian lenny/5.0.1 distro. enchant version 1.5.0. /usr/share/enchant/enchant.ordering looks like this:
*:myspell
meaning that for all languages backend is myspell
myspell dictionary.lst file looks like this:
DICT en GB en_GB
DICT en US en_US
THES en US th_en_US_v2
THES en GB th_en_US_v2
THES ru RU th_ru_RU_v2
DICT ru RU ru_RU
DICT uk UA uk
DICT ru RU en_US
© Server Fault or respective owner