Bug 41561 - RTL text is misaligned
Summary: RTL text is misaligned
Status: RESOLVED WONTFIX
Alias: None
Product: Batik - Now in Jira
Classification: Unclassified
Component: SVG Viewer (show other bugs)
Version: 1.8
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: Batik Developer's Mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-07 15:38 UTC by ariel18
Modified: 2007-02-11 23:24 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ariel18 2007-02-07 15:38:55 UTC
Please see
https://sourceforge.net/tracker/?func=detail&atid=604306&aid=1652188&group_id=93438
for a discussion on this bug, relating to Inkscape. Basically, text which is
made in the right-to-left format (like Hebrew or Arabic) in Inkscape appears
misaligned in Batik.
Comment 1 Cameron McCormack 2007-02-07 16:04:32 UTC
[CCing the Inkscape bug]

As far as I know, the text layout is correct.  Where the text is anchored and
which direction the text is rendered in are two different things.  Section 10.9
of SVG 1.1 says:

  The 'text-anchor' property is used to align (start-, middle- or end-alignment)
  a string of text relative to a given point.

  The 'text-anchor' property is applied to each individual text chunk within a
  given 'text' element. Each text chunk has an initial current text position,
  which represents the point in the user coordinate system resulting from
  (depending on context) application of the x and y attributes on the 'text'
  element, any x or y attribute values on a 'tspan', 'tref' or 'altGlyph'
  element assigned explicitly to the first rendered character in a text chunk,
  or determination of the initial current text position for a 'textPath'
  element.

and for the "start" value (which is the initial value):

  The rendered characters are aligned such that the start of the text string is
  at the initial current text position. For Latin or Arabic, which is usually
  rendered horizontally, this is comparable to left alignment. For Asian text
  with a vertical primary text direction, this is comparable to top alignment.

So the anchoring of the text is independent of directionality.  Test
text-intro-05 in the recently released SVG 1.1 test suite uses text-anchor="end"
on the text elements to right align the Arabic text.

Do you agree with this assessment?
Comment 2 ariel18 2007-02-07 16:12:04 UTC
I don't know. I'm not the expert, I just know that there is a problem somewhere.
I also know that Arabic and Hebrew should be right aligned (as is done , as the
text is written right-to-left. As you can see in the thread from sourceforge,
lots of programs have this same "problem". What you need to do is contact
Inkscape's designers and figure out where the problem really is.
Comment 3 Cameron McCormack 2007-02-11 23:24:55 UTC
Behaviour is conformant.