Apache OpenOffice (AOO) Bugzilla – Issue 78466
Default currency list box in Arabic localized version dn't display '(' correctly
Last modified: 2013-08-07 15:02:43 UTC
JA->HDU: this is a duplication of iBIS 111789 Please check the attached snapshot, you will notice: The ")" in the default currency list box is not displayed correctly. Karl->HDU: Bidi issue. I could see the problem in Currency list in 'Format Cells' on SRX645m15 English version (Solaris). HDU: I have the suspicion that (iBIS) 110225 111760 111777 111789 all have the same core reason: ICU Bidi vs. Uniscribe Bidi, need to analyze
.
No time till OOo3 => retargeting
retarget to 3.1
@tl: SvtLanguageTable::GetString() returns a string that is sensitive to its BiDi context, e.g. "Arabic (Egypt)". This name seems to be generated somehow. The problem is that such names do not always look properly in both RTL- and LTR-contexts. And for the user of SvtLanguageTable::GetString() there is no way to know in which context it would look as expected. So I suggest to make the string context independent (e.g. by using a different string, or by adding LRE or RLE marks). At least the info, for which BiDi context the string is intended, should be available. I suggest to work with the owner of svx/source/dialog/optgdlg.cxx's OfaLanguagesTabPage class once the problem of the context-sensitivity of the returned string is solved.
There seems to be general problem with code which just composes strings by adding other strings together (just like in this case where the currency-string, some spaces and the language-string get glued together). There are probably many parts of OOo where such compositions have just been designed and tested for LTR-strings. Before the strings got merged into the bigger composition they looked good individually, because they often assumed "natural layout" (the first strong character defines the default direction). I suggest to add a String helper method which adds LRE/RLE...PDF (U+202A/U+202B...U+202C) pairs to strings that assume natural layout.This would help owners of string compositing code to keep the fixes for the problems simple, unless the composition itself requires reordering of parts.
*** Issue 32179 has been marked as a duplicate of this issue. ***
Fixed in CWS vcl99. Files changed: - svtools/inc/svtools/langtab.hxx - svtools/source/misc/langtab.cxx - svx/source/dialog/optgdlg.cxx
Now fixed for language list boxes as well. See the other list boxes in the same dialog or the ones in the "Format/Character" dialog for example. Files changed: - svx\source\dialog\langbox.cxx
Verified in CWS vcl99.
OK in OOO310_m11. Closed.