ISSUE-2171: text-align and text-anchor with direction

direction text-anchor text-align

text-align and text-anchor with direction

State:
CLOSED
Product:
SVG 1.2 Tiny: Last Call
Raised by:
Doug Schepers
Opened on:
2008-10-31
Description:
Richard Ishida (I18N)
<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.
]]


fantasai (CSS)
<http://lists.w3.org/Archives/Public/www-svg/2008Oct/0259.html>:
[[
fantasai wrote:
>
> Erik Dahlström wrote:
>> Would the following replacement text satisfy your comment:
>>
>> "For the 'direction' property to have any effect on an element that does
> . not by itself establish a new 'text chunk' (such as the 'tspan' element),
>> the 'unicode-bidi' property's value must be 'embed' or 'bidi-override'."
>
> I would suggest writing the parenthetical as
> (such as the 'tspan' element in SVG 1.2 Tiny)
> and s/by iteself/itself/ but either way is acceptable.
>
> Please also remove the paragraph about glyph orientation, and I will
> consider my comment satisfied.

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
]]
Related Actions Items:
No related actions
Related emails:
  1. Re: [1.2T-LC] text-align and text-anchor with direction (ISSUE-2171) (from schepers@w3.org on 2008-11-03)
  2. SVG/profiles/1.2T/publish single-page.html,1.195,1.196 svgudom.html,1.167,1.168 text.html,1.141,1.142 (from cvsmail@w3.org on 2008-11-03)
  3. SVG/profiles/1.2T/publish/examples rtl-text.svg,1.2,1.3 (from cvsmail@w3.org on 2008-11-03)
  4. SVG/profiles/1.2T/master/examples rtl-text.svg,1.2,1.3 (from cvsmail@w3.org on 2008-11-03)
  5. SVG/profiles/1.2T/master svgudom-header.txt,1.65,1.66 text.html,1.167,1.168 (from cvsmail@w3.org on 2008-11-03)
  6. SVG/profiles/1.2T/publish/examples rtl-text.svg,1.1,1.2 (from cvsmail@w3.org on 2008-11-03)
  7. SVG/profiles/1.2T/publish single-page.html,1.194,1.195 text.html,1.140,1.141 (from cvsmail@w3.org on 2008-11-03)
  8. SVG/profiles/1.2T/master text.html,1.166,1.167 (from cvsmail@w3.org on 2008-11-03)
  9. SVG/profiles/1.2T/master/examples rtl-text.svg,1.1,1.2 (from cvsmail@w3.org on 2008-11-03)
  10. SVG/profiles/1.2T/publish refs.html,1.127,1.128 refs.xhtml,1.85,1.86 single-page.html,1.193,1.194 text.html,1.139,1.140 (from cvsmail@w3.org on 2008-11-03)
  11. SVG/profiles/1.2T/master refs.html,1.105,1.106 text.html,1.165,1.166 (from cvsmail@w3.org on 2008-11-03)
  12. SVG/profiles/1.2T/publish single-page.html,1.191,1.192 text.html,1.138,1.139 (from cvsmail@w3.org on 2008-11-03)
  13. SVG/profiles/1.2T/master text.html,1.163,1.164 (from cvsmail@w3.org on 2008-11-03)
  14. Re: [1.2T-LC] text-align and text-anchor with direction (ISSUE-2171) (from fantasai.lists@inkedblade.net on 2008-11-03)
  15. SVG/profiles/1.2T doc-svgt12.html,1.20,1.21 (from cvsmail@w3.org on 2008-11-03)
  16. Re: [1.2T-LC] text-align and text-anchor with direction (ISSUE-2171) (from schepers@w3.org on 2008-11-03)
  17. SVG/profiles/1.2T/publish single-page.html,1.189,1.190 text.html,1.136,1.137 (from cvsmail@w3.org on 2008-11-03)
  18. SVG/profiles/1.2T/master text.html,1.161,1.162 (from cvsmail@w3.org on 2008-11-03)
  19. RE: [1.2T-LC] text-align and text-anchor with direction (ISSUE-2171) (from ishida@w3.org on 2008-11-03)
  20. RE: [1.2T-LC] i18n comment 6: Direction and bidi-override attributes (ISSUE-2107) (from ishida@w3.org on 2008-11-03)
  21. SVG/profiles/1.2T/publish painting.html,1.154,1.155 single-page.html,1.186,1.187 styling.html,1.98,1.99 text.html,1.135,1.136 (from cvsmail@w3.org on 2008-11-03)
  22. SVG/profiles/1.2T/publish/examples media02.png,1.1,1.2 media04.png,1.1,1.2 (from cvsmail@w3.org on 2008-11-03)
  23. SVG/profiles/1.2T/publish single-page.html,1.185,1.186 (from cvsmail@w3.org on 2008-11-03)
  24. SVG/profiles/1.2T/master styling.html,1.41,1.42 text.html,1.159,1.160 (from cvsmail@w3.org on 2008-11-03)
  25. RE: [1.2T-LC] i18n comment 6: Direction and bidi-override attributes (ISSUE-2107) (from ishida@w3.org on 2008-11-03)
  26. SVG/profiles/1.2T/publish index.html,1.125,1.126 single-page.html,1.173,1.174 svgudom.html,1.162,1.163 text.html,1.133,1.134 (from cvsmail@w3.org on 2008-11-03)
  27. SVG/profiles/1.2T/master text.html,1.157,1.158 (from cvsmail@w3.org on 2008-11-03)
  28. Re: [1.2T-LC] i18n comment 6: Direction and bidi-override attributes (ISSUE-2107) (from fantasai.lists@inkedblade.net on 2008-11-02)
  29. Re: [1.2T-LC] text-align and text-anchor with direction (ISSUE-2171) (from fantasai.lists@inkedblade.net on 2008-11-02)
  30. Re: [1.2T-LC] text-align and text-anchor with direction (ISSUE-2171) (from schepers@w3.org on 2008-11-02)
  31. Re: [1.2T-LC] i18n comment 6: Direction and bidi-override attributes (ISSUE-2107) (from schepers@w3.org on 2008-11-02)
  32. Re: [SVGMobile12] Lack of BIDI 'direction' (ISSUE-2058) (from schepers@w3.org on 2008-11-02)
  33. SVG/profiles/1.2T doc-svgt12.html,1.5,1.6 (from cvsmail@w3.org on 2008-11-01)
  34. SVG/profiles/1.2T doc-svgt12.html,1.4,1.5 (from cvsmail@w3.org on 2008-10-31)
  35. ISSUE-2171 (direction text-anchor text-align): text-align and text-anchor with direction [Last Call: SVG 1.2 Tiny ] (from sysbot+tracker@w3.org on 2008-10-31)

Related notes:

Agree.

Doug Schepers, 3 Nov 2008, 04:50:34

Agree, and followup changes made. Commenter satisfied: http://lists.w3.org/Archives/Public/www-svg/2008Nov/0028.html

Doug Schepers, 3 Nov 2008, 16:46:20

Display change log ATOM feed


Dirk Schulze <dschulze@adobe.com>, Chair, Chris Lilley <chris@w3.org>, Staff Contact
Tracker: documentation, (configuration for this group), originally developed by Dean Jackson, is developed and maintained by the Systems Team <w3t-sys@w3.org>.
$Id: index.php,v 1.325 2014-09-10 21:42:02 ted Exp $