Apache OpenOffice (AOO) Bugzilla – Issue 65501
Wrong line break when inserting LTR text in RTL paragraph
Last modified: 2013-02-22 11:46:50 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.
Instead of "RTL" in the second line of my description read "LTR".
ayaniger -> khong: Karl, can you take a look at this? Thanks, Alan
I have been able to reproduce this bug. sba, have you had trouble reproducing it (since I see the status is still "unconfirmed")?
No activity for a while but it seems the bug have been reproduced. Perhaps the status should be changed to NEW ?
Can someone been able to reproduce this with 2.4 ?
This bug still exists in version 2.4 (checked on Ubuntu Hardy Beta).
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.
Created attachment 52694 [details] test document
Created attachment 52695 [details] Screen shot 1
Created attachment 52696 [details] screen shot 2
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.
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.
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
Created attachment 53310 [details] correctly displayed hidden characters in a paragraph.
please ignore the attachment i sent in this issue it was meant for another issue ;-) if anyone knows how to delete it, please do :-)
hmm... two years just to the the confirmed status? Still occurs on OpenOffice.org 3.2.1 (OOO320m19).
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.