- From: Doug Schepers <schepers@w3.org>
- Date: Sun, 02 Nov 2008 23:53:01 -0500
- To: Richard Ishida <ishida@w3.org>
- CC: www-svg@w3.org, public-i18n-core@w3.org, fantasai <fantasai.lists@inkedblade.net>
Hi, Richard, Elika- Thanks for your comment. We've added wording to the spec to address your issue: http://dev.w3.org/SVG/profiles/1.2T/publish/text.html#RelationshipWithBiDirectionality [[ Within text content elements, the alignment of text with regards to the 'text-anchor' or 'text-align' properties is determined by the values of the 'direction' and 'unicode-bidi' properties. For example, given a 'text' element with a 'text-anchor' value of "end", for a 'direction' value of "ltr", the text will extend to the left of the position of the 'text' element's 'x' attribute value, while for 'direction' value of "rtl", the text will extend to the right of the position of the 'text' element's 'x' attribute value. ]] Please let us know right away if this satisfies your comment, or if not, what changes we can make to do so. Thanks- -Doug Richard Ishida wrote (on 10/30/08 2:09 PM): > 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. > > RI fantasai wrote (on 10/30/08 4:47 PM): > > Actually, Richard has a good point in > http://lists.w3.org/Archives/Public/www-svg/2008Oct/0255.html > > You haven't updated the text-align text to reference 'direction', which > ties into both of these issues: > http://lists.w3.org/Archives/Public/www-svg/2008Sep/0057.html > http://lists.w3.org/Archives/Public/www-svg/2008Sep/0058.html
Received on Monday, 3 November 2008 04:53:11 UTC