Comment 7 for bug 346856

Revision history for this message
Nikolay Shtinkov (n-shtinkov) wrote :

This bug is severe for all users of the Bulgarian language, since it makes impossible the use of spell checking in either OpenOffice or in all other GNOME/KDE applications (Gedit, KWrite, Evolution, Pidgin, Empathy at least are affected). The bug is not Ubuntu-specific, I have observed it in Mandriva 2010.1 and know that Debian users have encountered it as well.

Thanks for the fix, I believe converting myspell dictionaries to utf-8 encoding will be the best fix overall.

Meanwhile, I propose here another fix that can also be used by those who don't have root permissions (or don't want to use them). The solution is to direct enchant to use aspell for Bulgarian. Since most Gnome and KDE applications use enchant for spell checking, this effectively fixes the problem, leaving the myspell dictionaries for the exclusive use of Openoffice, Mozilla and all those who understand the 'microsoft-cp1251' encoding setting in bg_BG.aff. Note that enchant uses myspell by default, at least in the distributions I have mentioned, however it doesn't work because it expects the encoding description to be 'cp1251'.

Here is the fix with root permissions: modify the file /usr/share/enchant/enchant.ordering, adding the following two lines at the end

bg:aspell
bg_BG:aspell

Without root permissions: make a file enchant.ordering in $HOME/.enchant/ containing only the above two lines.

Here is my file /usr/share/enchant/enchant.ordering (Mandriva 2010.1) with the above modifications

*:myspell,aspell,ispell
fi:voikko,ispell,myspell,aspell
fi_FI:voikko,ispell,myspell,aspell
he:hspell,myspell
he_IL:hspell,myspell
yi:uspell
tr:zemberek
tr_TR:zemberek
bg:aspell
bg_BG:aspell