A bit more information on this bug. 1. A workaround is to force the execution of the following JS code on every web page:
var defaultLang = 'ru'; // set LANG attribute if missing var head=document.getElementsByTagName('head').item(0); var html=document.getElementsByTagName('html').item(0); var lang = html.getAttribute('xml:lang'); if (lang != '' && lang != null) { html.lang = lang; } else if (html.lang == '') { html.lang = defaultLang; } html.lang = html.lang.substr(0, 2); (borrowed from http://txt.arboreus.com/2012/03/20/force-css-hyphenation- in-firefox-greasemonkey-script.html) To do so, you can use Firefox extension 'dotjs': https://addons.mozilla.org/en-US/firefox/addon/dotjs/ 2. Even then Russian hyphenation works with errors. On many occasions, hyphen is misplaced one or even two letters from its correct location: проб-ежал instead of про-бе-жал; трен-ировок instead of тре-ни-ро-вок; лаге-рь instead of ла-герь, обслуж-ивающего instead of об-слу-жи-ва-ю -ще-го; палатк-ами instead of па-лат-ка-ми; ск-оростью instead of ско- ростью, etc. I have an impression that in Ubuntu 12.04 errors took place almost always. In Ubuntu 14.10, they constitute about 20% of all occasions. However, these errors are only found in Ubuntu Firefox. If you download the vanilla Firefox from mozilla.org and run it using the same profile, hyphenation is correct. -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to openoffice.org-hyphenation in Ubuntu. https://bugs.launchpad.net/bugs/1107859 Title: Hyphenation doesn't work in Russian text Status in “openoffice.org-hyphenation” package in Ubuntu: Confirmed Bug description: there is hyph_ru_RU.dic in the /usr/share/hyphen folder. but russian hyphenation doesn't work debian/patches/dont-include-hyphenation-patterns.patch excluded hyphenation files from Ubuntu Firefox build everything works when I extract hyphenation folder from omni.ja file (from original Firefox tarball) and move it content to the /usr/share/hyphen/ check you current hyphen. status http://hyphenator.googlecode.com/svn/dictChecker.html --- ApportVersion: 2.8-0ubuntu2 Architecture: amd64 DistroRelease: Ubuntu 13.04 InstallationDate: Installed on 2012-11-09 (81 days ago) InstallationMedia: Ubuntu 12.10 "Quantal Quetzal" - Release amd64 (20121017.5) MarkForUpload: True Package: openoffice.org-hyphenation 0.6 PackageArchitecture: all ProcVersionSignature: Ubuntu 3.8.0-2.6-generic 3.8.0-rc4 Tags: raring running-unity Uname: Linux 3.8.0-2-generic x86_64 UpgradeStatus: Upgraded to raring on 2012-12-06 (53 days ago) UserGroups: adm lpadmin sambashare sudo To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/openoffice.org-hyphenation/+bug/1107859/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp