Issue 104564 - Telugu language package renders incorrectly
Summary: Telugu language package renders incorrectly
Status: CLOSED DUPLICATE of issue 106904
Alias: None
Product: Internationalization
Classification: Code
Component: code (show other issues)
Version: OOo 3.1
Hardware: All Linux, all
: P3 Trivial (vote)
Target Milestone: ---
Assignee: hdu@apache.org
QA Contact: issues@l10n
URL:
Keywords:
Depends on: 106904
Blocks:
  Show dependency tree
 
Reported: 2009-08-27 23:05 UTC by jmadero
Modified: 2010-09-17 12:25 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description jmadero 2009-08-27 23:05:08 UTC
I've posted this in launchpad with the images, you can find it here:

https://bugs.launchpad.net/ubuntu/+source/openoffice.org/+bug/418464

Here is the description, all of the images are in launchpad so I didn't see a
reason to re upload the images here. Thank you much




I've reported problems with this before, I have to say it's gotten much better
but there are still some problems. I am also willing to help on this project but
I'll need some guidance as it's new. So if whoever is working on it wants me to
help out let me know and we can get in touch, I really want to get this language
functioning flawlessly in Open Office.

System:
Ubuntu 9.04
OpenOffice 3.1.0
Language: Telugu

Complex script not rendering right (does render perfectly in Text Editor.
Examples done in Presentation. Examples:

1. When actually typing the image looks weird but once you get out of text box
it corrects itself. See Image 1 and 2, image 1 shows as typing, image 2 shows
after I click off of the text box.
Keystroke: k + e

2. Sometimes characters get too scrunched up but then when you change text size
they get fixed. See image 3 and 4
Keystroke: kvb with text size originally 44 then changed to 36

3. Some letters will show up smaller for no reason while typing. See image 5 and 6.
Image 5: size 44, keystroke: v
Image 6: size 44, keystroke: k

4. Some characters are just wrong. See image 7. The curved hook on the top left
should be a check mark.
keystroke: m+d+l

5. Sometimes letters just randomly start being small and incorrect, see image 8 & 9
Image 8: keystroke k, small + missing upper check mark
image 9: keystroke u+k, completely correct, k should turn out just like the
second character in this image

Thanks for the hard work, sorry for being picky but these problems make the
language hard to use in open office (and it is the 14th most used language on
the planet :) )

Again, I'm willing to help, just need some guidance to begin with.
Comment 1 ivo.hinkelmann 2009-08-28 09:59:13 UTC
herbert, please have a look
Comment 2 arjunaraoc 2009-09-07 17:14:17 UTC
Just an input.
On ubuntu 8.10+open office 2.4.1, telugu typing is flawless with english as user
interface. However with telugu as locale, scim support did not work.
Comment 3 jmadero 2009-09-07 18:17:48 UTC
My settings are English locale (I live in the United States) and the rendering
is not correct at all. All of those images that I posted in launchpad are with
English locale but changing to Telugu script through SCIM. 
Comment 4 hdu@apache.org 2009-09-08 07:59:48 UTC
> Complex script not rendering right (does render perfectly in Text Editor. Examples done in Presentation.

With Text Editor you mean Writer? Does it look good in Calc too? Does it look good when Impress is in 
edit-mode?

If the problem is just visible during a presentation I suggest to use the VCL-canvas.
@thb: is there any way to force the use of the VCL-canvas
Comment 5 jmadero 2009-09-08 16:08:04 UTC
No by text editor, I mean the text editor in Ubuntu (gnome text editor I believe
is the full name). All OOo apps work incorrectly
Comment 6 hdu@apache.org 2010-01-07 11:49:20 UTC
Without having debugged into this the symptoms look as if Writer was not treating Telugu script as 
requiring CTL-processing. The script detector in the i18n module decides whether that needs to be done.
@er: does U+0c00..U+0C7F get the CTL-flag in the i18n-module
Comment 7 ooo 2010-01-07 15:05:51 UTC
i18npool/source/breakiterator/breakiteratorImpl.cxx
BreakIteratorImpl::getScriptType() uses BreakIteratorImpl::getScriptClass() that
in turn uses ICU's ublock_getCode() to determine an offset in the UBlock2Script
scriptList table. UBLOCK_HEBREW=11 to UBLOCK_MYANMAR=28 have assigned
ScriptType::COMPLEX, which includes UBLOCK_TELUGU=21 and as such should work.
Would have to be verified by placing a breakpoint.

Also i18npool/source/isolang/mslangid.cxx MsLangId::getScriptType() identifies
LANGUAGE_TELUGU as CTL.

@jmadero: you did enable CTL support under
Tools->Options->LanguageSettings->Languages, yes?
Comment 8 hdu@apache.org 2010-01-07 15:33:59 UTC
Thanks Eike for pointing at the relevant sources. This gives a good start for debugging.
@od: does Writer use the "Enable CTL" checkbox for any document layout decisions?

AFAIK the "Enable CTL" checkbox should not make much difference though as it is only used for UI-
elements (e.g. in the Format->Character dialog for enabling the CTL-Font elements). So the code to do 
the actual layout is all the same independent of this checkbox. Even BiDi-stuff like the LTR- and RTL-
controls get enabled by it even though BiDi only accidentally has to do with CTL.
Comment 9 jmadero 2010-01-07 19:10:18 UTC
Not sure if this is relevant still but I have enabled CTL support and this makes
no difference. I have also switched from SCIM to Ibus and still am seeing the
problem. Thanks for the updates
Comment 10 Oliver-Rainer Wittmann 2010-01-08 08:31:01 UTC
> @od: does Writer use the "Enable CTL" checkbox for any document layout decisions?

As far as I know, the value of the check box is not used for the document layout.
Comment 11 arjunaraoc 2010-08-17 10:41:33 UTC
Not a bug with Ubuntu 10.04 and Open Office 3.2.0
Comment 12 hdu@apache.org 2010-08-17 11:31:15 UTC
Thanks for checking with OOo320; it was probably fixed indirectly, the most likely candidate being the 
upgraded ICU (version 3.6 to 4.0.1) in issue 106904 for OOo320.
Can you test with the latest OOo330 beta too?

*** This issue has been marked as a duplicate of 106904 ***
Comment 13 hdu@apache.org 2010-09-17 12:25:11 UTC
Closing resolved issue.