W3C home > Mailing lists > Public > public-svg-wg@w3.org > April to June 2011

bidi and the initial current text position

From: Cameron McCormack <cam@mcc.id.au>
Date: Tue, 17 May 2011 17:01:04 +1200
To: public-svg-wg@w3.org
Message-ID: <20110517050104.GE11461@wok.mcc.id.au>
I’m drafting a message on bidi text, but first I have a question.
Consider this:

<style>
  text { direction: ltr }
  tspan { direction: rtl; unicode-bidi: bidi-override }
</style>
<text x="100"><tspan>AB</tspan> cd</text>

The visual order of this is “BA cd”.  The <text> has text-anchor:start.
Where is the text positioned?  Is:

* the left edge of the “B” glyph at x = 100?
* or is the right edge of the “A” glyph at x = 100?
* or something else?

Please show your working. :-)

-- 
Cameron McCormack ≝ http://mcc.id.au/
Received on Tuesday, 17 May 2011 05:01:29 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 17 May 2011 05:01:31 GMT