<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>175931</bug_id>
          
          <creation_ts>2008-11-23 21:51:48 +0000</creation_ts>
          <short_desc>text editor&apos;s line is aligned to the right if there are more hebrew chars then english ones</short_desc>
          <delta_ts>2009-04-24 19:24:12 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>krusader</product>
          <component>general</component>
          <version>unspecified</version>
          <rep_platform>unspecified</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>178594</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Nadav Kavalerchik">nadavkav</reporter>
          <assigned_to name="Shie Erlich">manson</assigned_to>
          <cc>elcuco</cc>
    
    <cc>kde-2011.08</cc>
    
    <cc>matitiahu.allouche</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>669845</commentid>
    <comment_count>0</comment_count>
    <who name="Nadav Kavalerchik">nadavkav</who>
    <bug_when>2008-11-23 21:51:48 +0000</bug_when>
    <thetext>Version:           2.0.0-beta2 &quot;SVN TRUNK Space Odyssey&quot; (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 = &quot;שורה ארוכה של תווים בעברית&quot;
like...
a= &quot;this is a long line...&quot;

maybe it is a deeper issie with QT ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>679609</commentid>
    <comment_count>1</comment_count>
    <who name="Dotan Cohen">kde-2011.08</who>
    <bug_when>2008-12-11 09:39:29 +0000</bug_when>
    <thetext>I agree, the first letter should determine directionality. I am almost certain that this is a dupe, though I cannot find the original bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>680667</commentid>
    <comment_count>2</comment_count>
    <who name="Nadav Kavalerchik">nadavkav</who>
    <bug_when>2008-12-13 14:59:27 +0000</bug_when>
    <thetext>see this page :
http://www.w3.org/International/tutorials/svg-tiny-bidi/Overview.en.php

for the right way to implement the bidi algorithm.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>707913</commentid>
    <comment_count>3</comment_count>
    <who name="Matitiahu Allouche">matitiahu.allouche</who>
    <bug_when>2009-01-30 14:18:55 +0000</bug_when>
    <thetext>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 &quot;strong&quot; 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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>746712</commentid>
    <comment_count>4</comment_count>
    <who name="Dotan Cohen">kde-2011.08</who>
    <bug_when>2009-04-24 15:46:04 +0000</bug_when>
    <thetext>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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>746806</commentid>
    <comment_count>5</comment_count>
    <who name="Diego Iastrubni">elcuco</who>
    <bug_when>2009-04-24 19:24:12 +0000</bug_when>
    <thetext>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&apos;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 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>