Issue 89974

Summary: Rendering of Thai Script Corrupted
Product: Writer Reporter: smackoz <smackoz>
Component: programmingAssignee: AOO issues mailing list <issues>
Status: REOPENED --- QA Contact:
Severity: Trivial    
Priority: P2 CC: frank.meies, hdu, issues, khirano, lists, samphan, sdgilmor, stefan.baltzer, tantai
Version: OOo 3.0Keywords: needmoreinfo, oooqa
Target Milestone: ---   
Hardware: PC   
OS: All   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---
Issue Depends on: 88376, 89262    
Issue Blocks: 41707, 92549    
Attachments:
Description Flags
Test Document to verify Thai Script rendering and printing errors.
none
Test Doc Printed on Kubuntu
none
Test Doc Printed on Windows XP SP3
none
Test Doc >> HTML viewed in FireFox 2.0.0.14 Printed on Kubuntu
none
Sample Screen Capture of OOo 2.4.0 Dialog Box (Thai Script rendered correctly) and Writer view (same Thai Script rendered incorrectly)
none
Sample test document >> added Garuda Font - Checked against OOo 2.4.1
none
Sample test document >> Checked against OOo 3.0.0rc1 20080904
none
OpenOffice 2.4.1 on Kubuntu 8.04 copy of printout
none
OpenOffice 3.0 RC1 on Windows XP SP3 copy of printout
none
OpenOffice 3.0 RC1 on Windows XP SP3 copy of printout (correct MIME type!) none

Description smackoz 2008-05-26 17:13:05 UTC
Using Writer on both XP(SP3) and Linux(Kubuntu 8.04) rendering of Thai Script on
screen can be incorrect and printing of the same text from Writer can produce
output with formatting errors.

Use the attached sample test document to verify screen rendering and print
formatting errors. This sample test document consists of valid Thai words and
sentences.
Comment 1 smackoz 2008-05-26 17:15:27 UTC
Created attachment 53951 [details]
Test Document to verify Thai Script rendering and printing errors.
Comment 2 michael.ruess 2008-05-26 17:38:22 UTC
Reassigned to SBA.
Comment 3 smackoz 2008-05-27 04:26:23 UTC
Created attachment 53962 [details]
Test Doc Printed on Kubuntu
Comment 4 smackoz 2008-05-27 04:27:51 UTC
Created attachment 53963 [details]
Test Doc Printed on Windows XP SP3
Comment 5 smackoz 2008-05-27 04:30:05 UTC
Created attachment 53964 [details]
Test Doc >> HTML viewed in FireFox 2.0.0.14 Printed on Kubuntu
Comment 6 smackoz 2008-06-02 06:04:34 UTC
Sample Text Document Screen Capture of OOo 2.4.0 on Kubuntu 8.04LTS.

Note:- The Thai script rendered in the OOo dialog box from the sample document
is correctly formatted on te screen but the same Thai script rendered in Writer
on the screen is incorrectly formatted.
Comment 7 smackoz 2008-06-02 06:09:13 UTC
Created attachment 54141 [details]
Sample Screen Capture of OOo 2.4.0 Dialog Box (Thai Script rendered correctly) and Writer view (same Thai Script rendered incorrectly)
Comment 8 smackoz 2008-06-30 05:28:38 UTC
Created attachment 54819 [details]
Sample test document >> added Garuda Font - Checked against OOo 2.4.1
Comment 9 sugree 2008-09-16 04:53:52 UTC
Any progress on this issue? Thai people need this issue to be fixed asap. More
samples are posted at ubuntu.

https://bugs.launchpad.net/openoffice/+bug/256278
Comment 10 nataoh 2008-09-16 05:04:46 UTC
*** Issue 89974 has been confirmed by votes. ***
Comment 11 pattrawoots 2008-09-16 13:43:31 UTC
I confirmed this is a significant issue that really needs to be fixed for Thai
people.
Comment 12 stefan.baltzer 2008-09-16 16:39:27 UTC
SBA: With the correct fonts installed, I have no problem on WinXP (SP2), neither
with OOo 2.4.1 nor with current OOo 3.0 RC1. Display and printout look fine.

SBA->smackoz: Please re-verify your (K)Ubuntu findings with OOo 3.0 RC1 or
younger and comment here. Thank you.

SBA->ES: (K)Ubuntu/Linux Font installation? Fontcache? AFAIK the font handling
changed on all Linuxes for OOo 3.0. Please proceed, thx.
Comment 13 stefan.baltzer 2008-09-16 16:40:40 UTC
Set to "Worksforme". Put HDU, FME and myself on c/c.
Comment 14 eric.savary 2008-09-16 19:07:12 UTC
.
Comment 15 sugree 2008-09-17 00:04:28 UTC
To confirm again, I rechecked on Ubuntu 8.04.1 with OpenOffice.org
1:2.4.1-1ubuntu2. The problem is not solved in 2.4.1 yet.

http://launchpadlibrarian.net/17668232/Test%20Doc%20Printed%20on%20Ubuntu%208.04.1%20LTS.jpg
Comment 16 jittat 2008-09-17 00:29:33 UTC
Recheck with OpenOffice.org 2.4.1-ubuntu2 on Ubuntu 8.04.1.

In the following screen caps, I put some highlight on 
the incorrect rendering in Angsana New 
(rendered with Waree, I think?) against Norasi (in cap1), 
and Arial against Garuda (in cap2.  
(For Lucida Sans and Times New Roman,
I think it's clear the rendering is incorrect.)

Please see:

http://garnet.cpe.ku.ac.th/~jtf/oo/cap1.png
http://garnet.cpe.ku.ac.th/~jtf/oo/cap2.png
Comment 17 mormmam 2008-09-17 04:50:45 UTC
I use OO on ubuntu 8.04.1

http://www.eblogbiz.com/images/oo.png
Comment 18 stefan.baltzer 2008-09-17 09:39:35 UTC
SBA: OOo 2.4.1 is released.

Again: What are the findings with the Office that is actually being worked on? 
-> Please visit http://download.openoffice.org
-> Download a current Developer snapshot or Release candidate (OOO 3.0 RC1 is
available)
-> Install it on the same system you found the problems with
-> Re-verify your findings
-> Comment here.

Thank you.
Comment 19 sugree 2008-09-17 09:53:58 UTC
I have tried OOO300m5 build 9350 and this problem has gone. Anyway, 3.0.0 will
not be included in Ubuntu 8.10 which will be released next month. That means we
may need to wait around 6 months to get OOo work by default after installing
Ubuntu and also other distributions.

Is it possible to point us to some patches for backport?
Comment 20 hdu@apache.org 2008-09-17 10:36:50 UTC
The fixes for issues 89262 and for issue 88376 probably solved this problem here.
If Ubuntu needs to stay with OOo2.4.1 I really recommend that they integrate these fixes into their build.
Comment 22 eric.savary 2008-09-17 13:25:13 UTC
Closed
Comment 23 smackoz 2008-09-22 05:41:03 UTC
If you check this issue by using the test document attached with OpenOffice
3.0.0rc1 20080904 you will see for yourself how this issue is NOT yet resolved
for OpenOffice 3.0.0rc1 20080904! Rendering / Printing Errors still exist for
some Thai fonts. Garuda and Norasi are two notable examples. Are there others?
Comment 24 smackoz 2008-09-22 05:51:20 UTC
Created attachment 56693 [details]
Sample test document >> Checked against OOo 3.0.0rc1 20080904
Comment 25 eric.savary 2008-09-22 14:45:06 UTC
Well, I think we have here different problems (printing, rendering) so that they
should be treated separately.

I will only treat the rendering problem here.

I has a look at your last attachment: "Thai Langauge rendering Test Doc 03.odt" 

Test environnement: with OOO300m7 on Ubuntu 8.10 alpha.
Fonts present in the document and on my system:
- Garuda   
- Lucida Sans
- Waree
- Norasi

Fonts present in the document but NOT on my system:
- Arial
- Angsana New
- Times New Roman

Your problem: Though you wrote "correct/incorrect" I guess we can express the
problem with: the diacritical signs of some letters are sometimes not placed on
the letter, sometimes crushed together. Is that correct?

My results: At anytime I could reproduce the rendering problem of diacriticals
as it shows on your screen shots.

NEEDMOREINFO:
- Please send me by mail all the fonts listed above which show the problem.
Write the issue number in the subject line.
- Test if this rendering problem does/doesn't show *with the same fonts* in
other non OOo application (Text Editor, Mailer, other word processor)



Comment 26 eric.savary 2008-09-22 19:41:35 UTC
of course I meant: "at NO time I could reproduce..."

Waiting for information.
Comment 27 sugree 2008-09-23 03:00:07 UTC
I can give the exact problem explanation here.

The real problem is sara-um, "ำ". This character consists of 2 parts which one
of them must be rendered on previous character, e.g., "อำ". This problem will
occur with upper character after sara-um for example "่" in "ตำแหน่ง".

One thing I can notice is that it seems this problem only occurs with
distribution specific binary. Note that it occurs on many distributions
including ubuntu and mandriva. However, there is no problem for binary from OOo.
Other applications on ubuntu has no problem like this.

I will try to send all fonts to you. Hope my guess of your email is correct.
Comment 28 hdu@apache.org 2008-09-23 09:00:09 UTC
> it occurs on many distributions including ubuntu and mandriva. However, there is no problem for 
binary from OOo.

Now that is interesting. The difference between the builds is that the ICU-version used in OOo-builds 
is patched, while the distributions prefer the straight version. To fix this problem they probably 
shouldn't build with "--use-system-icu" unless they are sure that their system-icu is better.

Though OOo's layout code could easily handle newer versions of ICU's layout engine, so that the 
corresponding system-icu wouldn't need the patches, other parts of OOo still depend on specific 
versions. See issue 84683 for the khong's progress on that frontier. 

> Other applications on ubuntu has no problem like this.

I suspect that all applications that use ICU for layout (instead of pango) have the same problems with 
the same fonts.
Comment 29 hdu@apache.org 2008-09-23 09:05:45 UTC
Correction to the above: issue 86483 is about the using the newer version of icu
Comment 30 eric.savary 2008-09-23 09:45:35 UTC
"There is no problem for binary from OOo"

So we can close here.
Comment 31 eric.savary 2008-09-23 09:46:50 UTC
closed
Comment 32 smackoz 2008-09-27 12:06:32 UTC
Sorry for the slow reply.
I'm confused by the latest responses from sugree and es.
Am I missing something because the formatting errors I have listed as examples
have been generated with the OOo binary on Windows XP NOT Linux.


Comment 33 eric.savary 2008-09-27 12:37:06 UTC
I am also confused because:
- 2 (smackoz, sugree and more) people reported different problems. Sugree's
problem is solved as "WORKSFORME"
- smackoz: you say it happens on Windows, not Linux but in your first comments
you talk about Ubuntu and the screenshot is on Linux... so what?
- Not all the "problems with Thai fonts" are the same problem.

So please be clear:
- which font on which system makes which problems? Send me the fonts and
*describe* the problem (not only with screenshots)
- also check in other applications what happens *with the same font*: the linux
screenshot shows a wrong rendering in OOo compared with a correct rendering in a
dialog box. Yes but it is not the same font.
- at best, reopen a new issue with all the needed info. This one is too confusing
Comment 34 smackoz 2008-09-27 14:54:59 UTC
Created attachment 56861 [details]
OpenOffice 2.4.1 on Kubuntu 8.04 copy of printout
Comment 35 smackoz 2008-09-27 14:56:56 UTC
Created attachment 56862 [details]
OpenOffice 3.0 RC1 on Windows XP SP3 copy of printout
Comment 36 smackoz 2008-09-27 15:01:07 UTC
Created attachment 56863 [details]
OpenOffice 3.0 RC1 on Windows XP SP3 copy of printout (correct MIME type!)
Comment 37 smackoz 2008-09-27 15:17:21 UTC
OOo 3.0 RC1 Windows XP. You can see from the newly attached images where the
problem occurs. The tone marker ้ over the ำ and the tone marker ่ seem to cause
alignment errors with some fonts on Windows XP.

OOo 2.4.1 Kubuntu 8.04. Here the rendering of the fonts seems to be more
problematic. The vowel เ and the tone markers ้ and the ่ are not rendering
correctly or seem to be causing rendering errors with more of the sample fonts
or is it something else?

Will test OOo RC2 on Kubuntu and Windows XP once I've downloaded the binaries.
Does this help to identify the cause of the problem?
If you need copies of the fonts for test purposes let me know.
Comment 38 ccheney 2008-10-18 23:26:26 UTC
See more comments left...
Comment 39 eric.savary 2008-10-20 16:49:35 UTC
@smackoz: yes please send me the fonts you are using and confirm that other non
OOo applications DON'T have this problem when using the same fonts.
Comment 40 lists 2008-11-03 07:41:50 UTC
Does the problem only happen when sara-um is present? This characters is
specifically treated by ICU, with some reordering, if I remember well.
Comment 41 sugree 2008-11-03 08:34:37 UTC
@javiersola Yes, sir. Only after sara-um.
Comment 42 samphan 2010-06-04 21:21:12 UTC
This is a serious bug for Thai. Anyone working on this? need more info?
Comment 43 sdgilmor 2013-11-14 22:14:51 UTC
Windows 7, AOO 4.0.1, Build:9714 - Rev. 1524958

Running the test document still created rendering issues for Lucida Sans.