Summary: | Other: The new "Language Tag" feature in LO 4.3 works only with non-CTL/CJK scripts | ||
---|---|---|---|
Product: | LibreOffice | Reporter: | livingfield |
Component: | Localization | Assignee: | Not Assigned <libreoffice-bugs> |
Status: | NEW --- | QA Contact: | |
Severity: | enhancement | ||
Priority: | medium | CC: | erack, jluth, timar74 |
Version: | 4.3.0.3 rc | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: | BSA | ||
i915 platform: | i915 features: | ||
Attachments: |
ZIP containing test ODT and screenshots from LOv4304.
Screenshots demonstrating red underlines on Mnong text marked as Khmer |
Description
livingfield
2014-07-24 12:05:53 UTC
Created attachment 105187 [details] ZIP containing test ODT and screenshots from LOv4304. Confirmed under GNU/Linux using: - v4.3.0.4 Build ID: 62ad5818884a2fc2e5780dd45466868d41009ec0 - v4.4.0.0.alpha0+ Build ID: e379401618268ed7f7f5885a36b90e1f4f6cd4af TinderBox: Linux-rpm_deb-x86_64@46-TDF, Branch:master, Time: 2014-08-18_05:51:03 As I understand this report, the BCP47 language tag (cmo-Khmr-KH) for Khmer script is not reflected in the status bar for the current selection (shows "Khmer" instead). For Latin script marked "cmo-Latn-VN", this is reflected in the status bar. Refer attached screenshots. The SIL Khmer Mondulkiri font used in the sample is available at: http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&id=mondulkiri Yes Owen, you understood my report correctly, and encouraged me to investigate things a bit further (OS X 10.9.4 / LO 4.3.04). It appears that for any text written in a CTL script, the status bar always displays the name of whichever language is selected in the CTL Font section of the Character Format dialog. So, if a section of text in Khmer script is marked as cmo-Khmr-KH, but the CTL Font is specified as Arabic, then the status bar indicates “Arabic”. It does not seem that this is simply an issue with the status bar. If a Khmer spell checker is installed, then it will show red underlines beneath Central Mnong text marked as cmo-Khmr-KH but with Khmer selected as the CTL Font (Khmer.png). If, however, Arabic (for which no spelling dictionary is installed) is selected, then red underlines are not displayed (Arabic.png). Created attachment 105223 [details]
Screenshots demonstrating red underlines on Mnong text marked as Khmer
I think what is needed is to change cui/source/inc/chardlg.hxx such that SvxLanguageBox* m_pEastFontLanguageLB; SvxLanguageBox* m_pCTLFontLanguageLB; become: SvxLanguageComboBox* m_pEastFontLanguageLB; SvxLanguageComboBox* m_pCTLFontLanguageLB; There is no way yet to flag an arbitrary language tag to be CTL or CJK. The existing predefined CTL/CJK tags respectively their corresponding LCID values occur in various switch cases to be acted differently upon. Merely changing the mentioned language boxes to SvxLanguageComboBox will not help. This needs further implementation. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.