W3C home > Mailing lists > Public > public-svg-wg@w3.org > October to December 2008

ISSUE-2171 (direction text-anchor text-align): text-align and text-anchor with direction [Last Call: SVG 1.2 Tiny ]

From: SVG Working Group Issue Tracker <sysbot+tracker@w3.org>
Date: Fri, 31 Oct 2008 14:31:29 +0000 (GMT)
To: public-svg-wg@w3.org
Message-Id: <20081031143129.752EFC6DB9@barney.w3.org>


ISSUE-2171 (direction text-anchor text-align): text-align and text-anchor with direction [Last Call: SVG 1.2 Tiny ]

http://www.w3.org/Graphics/SVG/WG/track/issues/2171

Raised by: Doug Schepers
On product: Last Call: SVG 1.2 Tiny 

Richard Ishida
<http://lists.w3.org/Archives/Public/www-svg/2008Oct/0255.html>:
[[
Sorry for the lateness of this comment.  It just dawned on me that there is no text afaict indicating that in SVG Tiny automatically changes the result of text-align or text-anchor when direction="rtl" is specified on a block element or its ancestor (unlike CSS).  Is this intentional?


The textArea element has a text-align property whose start and end values are dependent on the writing system being used. The text says "For right to left horizontal (Hebrew, Arabic, etc): start is right and end is left ", but it's not clear to me what indicates to an implementation that we are dealing with right to left horizontal text.  (I suspect there may be some legacy-derived reliance on the setting of writing-mode lingering in the text here.) Shouldn't an implementation align text to the right in textArea by default if direction is set to rtl on that textArea element or inherited from higher up the hierarchy (as it would in CSS)?  


For the text element 'alignment' is achieved using the text-anchor property.  Judging from the expected result of the test text-align-202-t start means put the right edge of the rendered text at the initial cursor position if the first character in the text block is an Arabic or Hebrew character, although that seems at odds with the text in 10.8.1 about start that says "The rendered characters are aligned such that the start of the resulting rendered text is at the initial current text position. For Latin or Arabic, which is usually rendered horizontally, this is comparable to left alignment. "  Isn't it comparable to left alignment for left-to-right text, but right alignment for right-to-left?  

I think that if the text element or its ancestor has a direction property set to rtl, this should make the text appear to the left of the initial cursor position too, and that that should be clarified in the text.
]]
Received on Friday, 31 October 2008 14:31:40 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 31 October 2008 14:31:40 GMT