You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-dev@xmlgraphics.apache.org by bu...@apache.org on 2007/02/08 01:04:32 UTC

DO NOT REPLY [Bug 41561] - RTL text is misaligned

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41561>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41561


cam@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO




------- Additional Comments From cam@apache.org  2007-02-07 16:04 -------
[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?

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-dev-help@xmlgraphics.apache.org