Issue 65501 - Wrong line break when inserting LTR text in RTL paragraph
Summary: Wrong line break when inserting LTR text in RTL paragraph
Status: RESOLVED FIXED
Alias: None
Product: Internationalization
Classification: Code
Component: BiDi (show other issues)
Version: OOo 2.0.2
Hardware: All All
: P3 Trivial with 2 votes (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-17 15:39 UTC by baruchs
Modified: 2013-02-22 11:46 UTC (History)
9 users (show)

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


Attachments
test document (8.51 KB, application/vnd.oasis.opendocument.text)
2008-04-09 19:03 UTC, karl.hong
no flags Details
Screen shot 1 (73.24 KB, image/jpeg)
2008-04-09 19:05 UTC, karl.hong
no flags Details
screen shot 2 (73.51 KB, image/jpeg)
2008-04-09 19:06 UTC, karl.hong
no flags Details
correctly displayed hidden characters in a paragraph. (89.47 KB, image/jpeg)
2008-05-02 13:18 UTC, nadavkav
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description baruchs 2006-05-17 15:39:14 UTC
I found two apparently related bugs in the paragraph lines breaking algorithm
of RTL text in Hebrew paragraphs. This bug appears on both Window and Linux.
Here is how to reproduce:

1. Start a new Hebrew paragraph, and write a little less than one line of
   Hebrew text. Then, type in a sequence of numbers and dots with no spaces
   like: "1.1.1.1.1.1". This sequence will get split between the two lines.
   Now, add a single character somewhere within the Hebrew text. The whole
   numbers-dots sequence will jump to the second line, and stay unbroken, no
   matter how much you change the Hebrew text.

2. Start a new Hebrew paragraph, and write a little less than one line of
   Hebrew text. Then, in the same line, type in some English characters with
   no space, insert a Non-breaking Hyphen, and add some more English
   characters to fill the line. When the line gets full the English word will
   break in the middle, after the Non-breaking Hyphen, even though there is no
   space or any other breaking character there. Now, type in some English
   characters before the Non-breaking Hyphen. You'll see characters from the
   first line drop to the second line one by one as if they were separate
   words. The same thing happens if you insert Hebrew characters into the
   Hebrew section of this paragraph.
Comment 1 baruchs 2006-05-17 15:42:49 UTC
Instead of "RTL" in the second line of my description read "LTR".
Comment 2 alan 2006-05-18 11:11:19 UTC
ayaniger -> khong:
Karl, can you take a look at this? Thanks, Alan
Comment 3 alan 2006-06-12 10:15:05 UTC
I have been able to reproduce this bug. sba, have you had trouble reproducing it
(since I see the status is still "unconfirmed")?
Comment 4 jbf.faure 2008-01-02 20:19:11 UTC
No activity for a while but it seems the bug have been reproduced. Perhaps the
status should be changed to NEW ?
Comment 5 kaplanlior 2008-04-09 11:17:10 UTC
Can someone been able to reproduce this with 2.4 ?
Comment 6 orenbarnea 2008-04-09 16:24:53 UTC
This bug still exists in version 2.4 (checked on Ubuntu Hardy Beta).
Comment 7 karl.hong 2008-04-09 18:57:09 UTC
I could not duplicate this bug. The attached are my test document and screen shot. 

65501-1 shows a Hebrew line with 'this-i', here '-'  is Non-breaking Hyphen, as
soon as I type in 'i', whole 'this-is' with a Hbrew word are move to next line,
break on space, as shows on 65501-2.
Comment 8 karl.hong 2008-04-09 19:03:21 UTC
Created attachment 52694 [details]
test document
Comment 9 karl.hong 2008-04-09 19:05:32 UTC
Created attachment 52695 [details]
Screen shot 1
Comment 10 karl.hong 2008-04-09 19:06:08 UTC
Created attachment 52696 [details]
screen shot 2
Comment 11 orenbarnea 2008-04-09 19:55:08 UTC
khong, are you sure you followed baruchs's description exactly like it is? I
did, and for me the English text was on the left side of the Hebrew text, and
the bug did happen. On your screenshots the English text is to the right.
Or maybe the paragraph was not an RTL one? I can't see the paragraph direction
indication in the toolbars in your screenshots.
Comment 12 karl.hong 2008-04-10 01:34:00 UTC
Ops, I did not set RTL.

Yes, I can duplicate the bug. 

Since it appears differently between RTL and LTR, it does not look like a
breakiterator issue, breakiterator does not know or care text rendering directions.
Comment 13 kaplanlior 2008-04-14 14:51:22 UTC
kaplan -> sba: 
Could you update the bug version to 2.4.0 and change it from UNCONFIRMED to NEW
(we have two verifications the bug exists).

Thanks
Comment 14 nadavkav 2008-05-02 13:18:16 UTC
Created attachment 53310 [details]
correctly displayed hidden characters in a paragraph.
Comment 15 nadavkav 2008-05-17 11:32:09 UTC
please ignore the attachment i sent in this issue
it was meant for another issue ;-)

if anyone knows how to delete it, please do :-)
Comment 16 kaplanlior 2010-08-14 17:54:44 UTC
hmm... two years just to the the confirmed status?

Still occurs on OpenOffice.org 3.2.1 (OOO320m19).
Comment 17 Edwin Sharp 2013-02-22 11:46:50 UTC
Wrong description given:
item 1 - sequence of numbers and dots jumps to next line without splitting. 
item 2 - English word doesn't break after the non breaking hyphen.
Checked using Rev. 1400866.