Comment 11 for bug 1107859

Revision history for this message
Dmitri Minaev (minaev) wrote : Re: Hyphenation doesn't work in Russian text

No, Gunnar, your file produces the same erroneous hyphenation as the original one.

But I think I know now, what is going wrong. The dictionary provided in hyphen-ru package (and yours, too) is in the old single-byte encoding KOI8-R. Firefox does check the encoding (given in the first line of the dictionary file), but calculates the offset of the hyphen position in bytes instead of Unicode characters (or the other way round, I'm not yet sure).

So, if we take the stock hyph_ru_RU.dic from the Ubuntu package hyphen-ru, convert it to UTF-8 and edit the first line from 'KOI8-R' to 'UTF-8', Firefox hyphenates the text correctly.