Apache OpenOffice (AOO) Bugzilla – Issue 51150
Slideshow ignores digit language
Last modified: 2007-08-29 16:06:01 UTC
Please advise: cppcanvas/source/mtfrenderer/implrenderer.cxx has a NYI META_TEXTLANGUAGE_ACTION. I have no idea how to transport the digit language across the XCanvas API. Any ideas?
Setting a target.
.
As you already suggested it would be best to have the strings already converted to use the proper digits. See the function GetLocalizedChar() in vcl/source/gdi/sallayout.cxx for how to convert the ASCII digits into localized digits.
Retargetted due to resource constraints.
Retargetted to 2.0.4 due to resource constraints.
Retargetted due to resource constraints
Created attachment 45481 [details] Bugdoc
@liujianli: please have a look at the attached bugdoc. when loading this in a plain office, the digits should show up as Latin numerals. now go to tools->options->language settings->complex text layout, and choose 'Hindi' from the General Options/Numerals dropdown. Now, the digits should use Hindi numerals. Fire up a slideshow: now the digits are Latin again. This is the actual issue. How to fix this? First, you need to find out who's setting the digit language at the OutputDevice::SetDigitLanguage(), and whether a metaaction of META_TEXTLANGUAGE_ACTION appears in the shape metafiles (which get processed in said cppcanvas/source/mtfrenderer/implrenderer.cxx). After that, you need to find out how to transport that information across the XCanvas API, or, as hdu suggested, directly convert the digit characters in the string, before passing them to the TextAction in implrenderer.cxx
Created attachment 46129 [details] the patch of issue
Created attachment 46241 [details] the patch of issue
Adapted cc list
Created attachment 46273 [details] the patch of issue
Created attachment 46331 [details] the patch of issue
Created attachment 46532 [details] the patch of issue
Changing target, this should go in asap.
@liujl: thanks for the fix, committed to CVS with only slight adaptations. Fixed in CWS thbpp8.
@clu: fixed in CWS thbpp8, please verify.
verified in cws
verified in master