[Libreoffice-bugs] [Bug 39935] New: Disabled Asian or CTL language value should default to "None"
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Mon Aug 8 10:04:20 PDT 2011
https://bugs.freedesktop.org/show_bug.cgi?id=39935
Summary: Disabled Asian or CTL language value should default to
"None"
Product: LibreOffice
Version: LibO 3.3.1 release
Platform: Other
OS/Version: All
Status: NEW
Severity: normal
Priority: medium
Component: Linguistic component
AssignedTo: libreoffice-bugs at lists.freedesktop.org
ReportedBy: christophe.strobbe at esat.kuleuven.be
When enabling or disabling LibreOffice for Asian languages and or CTL
languages, the currently selected value in the listbox is or becomes "active".
When this value is not set to "[None]", the displayed value (e.g. Hindi in the
CTL list) will be output in the default styles for graphics and paragraphs in
styles.xml (inside the ODF file). This makes it hard for tools (e.g. XSLT
conversion) to know what languages are really in use in a document;
consequently it is also hard to output correct language information (e.g. lang
and xml:lang in XHTML, DAISY etc) when coverting ODF to another XML-based
format.
Procedure to reproduce the issue:
1. Go to Tools > Options > Language Settings > Languages
2. Check "Enabled for Asian languages" and "Enabled for complex text layout
(CTL)" if these features are not already enabled. (I assume here that Western
language is set to "English (US)".)
3. Choose a language in "Asian languages", e.g. "Chinese (simplified)" and
choose a language in "CTL", e.g. Hindi.
4. Close the Options dialog with the OK button.
5. Create some English content in Writer; save and close the ODF file.
6. Unpack/unzip the ODF file and open "styles.xml" in a source code editor;
find the attributes fo:language="en" and fo:country="US" (if you had US English
selected for Western language), style:language-asian="zh" and
style:country-asian="CN" (for simplified Chinese), and
style:language-complex="hi" and style:country-complex="IN" (for Hindi - India).
7. Go back to Tools > Options > Language Settings > Languages, and disable
Asian and CTL languages. Notice that the values "Chinese (simplified)" and
"Hindi" remain visible in the disabled selection lists.
8. Create a new document with some English content; save and close the ODF
file.
9. Unpack/unzip the ODF file and open "styles.xml" in a source code editor;
find the attributes fo:language="en" and fo:country="US" (if you had US English
selected for Western language), style:language-asian="zh" and
style:country-asian="CN" (for simplified Chinese), and
style:language-complex="hi" and style:country-complex="IN" (for Hindi).
10. Go back to Tools > Options > Language Settings > Languages, enable Asian
and CTL languages, set both the Asian and the CTL language to "[None]", disable
Asian and CTL languages again and close the Options dialog.
11. Create a new document with some English content; save and close the ODF
file.
12. Unpack/unzip the ODF file and open "styles.xml" in a source code editor;
find the attributes fo:language="en" and fo:country="US" (if you had US English
selected for Western language), style:language-asian="zxx" and
style:country-asian="none" (for Asian languages), and
style:language-complex="zxx" and style:country-complex="none" (for CTL).
If LibreOffice would automatically change the values for Asian and CTL
languages to "None" when these languages are disabled, XSLT conversions could
do something useful with the language attributes.
For example, outputting correct lang and xml:lang attributes when exporting to
XHTML would then allow text-to-speech software (used in screen readers for
blind users and in software for dyslexic users) to choose the appropriate
text-to-speech engine. It would also benefit Braille conversion. So this issue
is also related to accessibility.
--
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Libreoffice-bugs
mailing list