Version: 2.0.0-beta2 "SVN TRUNK Space Odyssey" (using 4.1.3 (KDE 4.1.3), Kubuntu packages) Compiler: cc OS: Linux (i686) release 2.6.27-7-generic i think this is an issue with the rtl (hebrew) algorithm Now... no matter how the line starts: hebrew or english, if there are more charecters of english in the line then it is justified (on the fly) to the left and other wise to the right. it should be (i think) if i start the line with english it should stay justified to the left at all times and other wise if i start it in hebrew it should be justified to the right. example: i would like the following line to be justified to the right. a = "שורה ארוכה של תווים בעברית" like... a= "this is a long line..." maybe it is a deeper issie with QT ?
I agree, the first letter should determine directionality. I am almost certain that this is a dupe, though I cannot find the original bug.
see this page : http://www.w3.org/International/tutorials/svg-tiny-bidi/Overview.en.php for the right way to implement the bidi algorithm.
The Unicode Bidi Algorithm (UBA) states that, in the absence of a higher level protocol to specify the base direction of a piece of text, the first "strong" character (character with a clear left-to-right or right-to-left directionality) determines the base direction of the text. In most cases, left alignment is appropriate for text with a left-to-right base direction, and right alignment is appropriate for text with a right-to-left base direction, so that the first strong character is also an appropriate criterion to determine the alignment.
Why is this filed as a Krusader bug? I could not get the Krusader CLI to align right at all, even with the appropriate option selected in Qt Config. For that matter, I cannot get Kate to right-align either.
Mati, Dotan, This was done by design in KDE 4.1 - originally I designed katepart to choose the direction not by the first strong char, but by the most characters available. This is fixed in KDE 4.2, and it's a dup of 178594. This is not a bug in Qt4, but only in katepart. If you are using Ubuntu, please see also https://bugs.launchpad.net/ubuntu/+source/kde4libs/+bug/314016 Closing. *** This bug has been marked as a duplicate of bug 178594 ***