Issue 87530 - [CTL] OOo breaks new line in wrong position
Summary: [CTL] OOo breaks new line in wrong position
Status: CLOSED DUPLICATE of issue 89789
Alias: None
Product: Internationalization
Classification: Code
Component: code (show other issues)
Version: DEV300m2
Hardware: Mac Mac OS X, all
: P3 Trivial (vote)
Target Milestone: ---
Assignee: hdu@apache.org
QA Contact: issues@l10n
URL:
Keywords: aqua
Depends on:
Blocks:
 
Reported: 2008-03-27 22:32 UTC by markpeak
Modified: 2008-09-10 11:12 UTC (History)
9 users (show)

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


Attachments
Screenshot - Thai text on the new line (9.27 KB, image/png)
2008-03-27 22:37 UTC, markpeak
no flags Details
Screenshot - English text on the new line (9.83 KB, image/png)
2008-03-27 22:37 UTC, markpeak
no flags Details
sample Thai doc in ODT - Creative Commons news (45.57 KB, application/vnd.oasis.opendocument.text)
2008-04-17 08:11 UTC, arthit
no flags Details
sample Thai doc in plain text (utf-8) - Creative Commons news (12.30 KB, text/plain)
2008-04-17 08:12 UTC, arthit
no flags Details
sample Thai doc in ODT - Politics article from newspaper (37.61 KB, application/vnd.oasis.opendocument.text)
2008-04-17 08:13 UTC, arthit
no flags Details
sample Thai doc in plain text (utf-8) - Politics article from newspaper (46.57 KB, text/plain)
2008-04-17 08:14 UTC, arthit
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description markpeak 2008-03-27 22:32:36 UTC
OOo 3 DEV300_m2 on Mac OS X 10.5.2

Steps to reproduce:
1. Open blank document in Writer
2. Enable CTL in Preferences > Language Settings > Languages and select Default
languages for Document (CTL) to "Thai"
3. Input some Thai words

Result:

When the input cursor passes around 8 or 9cm point in the document ruler,
entering more text will appear in the new line. 

If it is Thai text, it will be shown in the next line once but will be bring
back when the word is complete.

If it is English text or numbers (which come with whitespace) the new characters
will appear in new line.
Comment 1 markpeak 2008-03-27 22:37:16 UTC
Created attachment 52331 [details]
Screenshot - Thai text on the new line
Comment 2 markpeak 2008-03-27 22:37:42 UTC
Created attachment 52332 [details]
Screenshot - English text on the new line
Comment 3 markpeak 2008-03-27 22:39:07 UTC
This bug does not appear if the cursor is in the left half of document (around
8cm by the ruler). The total width of document is 21cm (A4 paper).
Comment 4 pruet 2008-03-28 00:49:22 UTC
OOo DEV300_m2/OS X 10.5.2 Intel

I would like to confirm this problem. If this words used don't have any upper or lower vowels, then the 
line will cut around 13-14 cm., instead of 9-pcm.
Comment 5 kengggg 2008-03-28 03:03:47 UTC
OOo 3 DEV300_m2 on Mac OS X 10.5.2

Confirmed.

Here is my various test case results:-
1. Character+Lower level vowel+tone mark
- With the word ปู่ (0E1B 0E39 0E48) this bug will appear at 6cm

2. Character+Upper level vowel+tone mark
- With the word ปี่ (0E1B 0E35 0E48) this bug will appear at 6cm

3. Combination of words from 1 and 2
- With the word ปู่ปี่ (0E1B 0E39 0E48 0E1B 0E35 0E48) this bug will appear at 6cm
as well
Comment 6 bordin 2008-03-28 09:16:27 UTC
Confirm to this issue.
 It occur frequency when content  mixed  with multiple  language  in one 
paragraph .  
Comment 7 arthit 2008-03-29 06:17:34 UTC
confirmed.
Comment 8 moniguna 2008-03-31 05:24:33 UTC
confirmed.
Comment 9 ivo.hinkelmann 2008-04-08 14:47:22 UTC
something for you? If not please forward to the right developer 
Comment 10 hdu@apache.org 2008-04-08 15:13:53 UTC
Can anyone confirm the problem on Windows or Unix? If yes, did it happen with 2.3 too?
Is this with the Aqua port or the X11 port?

@khong,@es: AFAIK there were some Thai related changes in the break iterators since 2.3? Does the 
problem described ring a bell?
Comment 11 karl.hong 2008-04-08 16:53:17 UTC
It may be due to we try to avoid to break a line in a cell, it search back for
cell boundary. For last uncompleted cell, it may think that is the middle of a
cell, and try to find last completed cell, so the uncompleted cell is move to
next line.

If this is the case, I will try to duplicate and fix it in i18npool.
Comment 12 markpeak 2008-04-11 17:17:32 UTC
This bug still happens with OOo-Dev 300_m5 on OS X 10.5.2. The range is around
10.5 cm.
Comment 13 karl.hong 2008-04-17 07:09:04 UTC
Could someone upload a test document for me to duplicate the problem? I could
not type in a long text of Thai.
Comment 14 arthit 2008-04-17 08:11:53 UTC
Created attachment 52949 [details]
sample Thai doc in ODT - Creative Commons news
Comment 15 arthit 2008-04-17 08:12:53 UTC
Created attachment 52950 [details]
sample Thai doc in plain text (utf-8) - Creative Commons news
Comment 16 arthit 2008-04-17 08:13:54 UTC
Created attachment 52951 [details]
sample Thai doc in ODT - Politics article from newspaper
Comment 17 arthit 2008-04-17 08:14:32 UTC
Created attachment 52952 [details]
sample Thai doc in plain text (utf-8) - Politics article from newspaper
Comment 18 karl.hong 2008-04-18 21:38:46 UTC
How can I duplicate this issue with these new attachements?

I need a test docuement like in earlier attached screenshot, and what Thai
letters in Unicode  value should follow to see the problem. I can enter Thai by
selecting letters from a table, but I don't know what combination of letters
will cause the problem.
Comment 19 arthit 2008-04-18 23:04:15 UTC
khong: you can copy from here

พลันสายลมบางเบาที่เกิดจากผีเสื้อขยับปีนี้กลับกลายเป็นพายุใหญ่ลูกหนึ่ง to 

notes, I can't reproduce it on OOo2.4 on Ubuntu 8.04 Beta.
Comment 20 karl.hong 2008-04-21 23:04:23 UTC
I could not duplicate the problem.

I need a reproductable case for fixing this bug.

Comment 21 kengggg 2008-04-21 23:54:29 UTC
khong : I have tried with this parse

ผู้ใหญ่หาผ้าใหม่ ให้สะใภ้ใช้คล้องคอ ใส่ใจเอาใส่ห่อ

once you copy and paste to writer just put 1 space bar after the pasted parse
then type a, it will be shifted to the new line.

tested on OOo 3 DEV300_m9 on Mac OS X 10.5.2
Comment 22 karl.hong 2008-04-23 22:52:35 UTC
It seems the problem is platform dependent. I could not duplicate it on Windows
version.

If it is platform dependent, it will not be breakiterator issue, but font's
issue, it may be font width calculating problem.

Could someone comfirm the problem exists on Windows or Solaris platform?
Comment 23 markpeak 2008-04-24 00:50:59 UTC
@khong: It works fine on OOo DEV_m10 on Windows XP.
Comment 24 karl.hong 2008-05-06 16:43:27 UTC
khong->hdu, it looks like a font issue on Mac platform.
Comment 25 hdu@apache.org 2008-06-02 11:42:45 UTC
Does the problem happen with OOo's Aqua port or also with the X11 port?????

If it is with the aqua port then this issue has most probably the same root cause as issue 89789 (which is 
fixed in CWS aquavcl08). The problem only happening on the right side of the page is an indicator. From 
my cursory look at the sample documents on both aquavcl08-builds and non-aquavcl08 builds the 
problem seems to be fixed indeed. So I'm setting it to duplicate. I'd be very happy if someone could 
confirm/reject this resolution as duplicate by testing on an aquavcl08 based build though... 

*** This issue has been marked as a duplicate of 89789 ***
Comment 26 hdu@apache.org 2008-09-10 11:12:35 UTC
Closing duplicate