W3C home > Mailing lists > Public > www-svg@w3.org > March 2007

Re: does the systemLanguage attribute apply to tspan? alternatively does the switch element take x & y coordinates?

From: ~:'' ありがとうございました。 <j.chetwynd@btinternet.com>
Date: Wed, 14 Mar 2007 19:05:02 +0000
Message-Id: <B4C9B91F-08E1-49AF-A936-E27FD7FA3672@btinternet.com>
Cc: Doug Schepers <doug.schepers@vectoreal.com>, SVG List <www-svg@w3.org>, SVG WG <w3c-svg-wg@w3.org>
To: T Rowley <tor@cs.brown.edu>

Tor, Doug, Chris...

the reason that 'switch transform' doesn't work for me is this use case:

  <switch transform='translate(130,250)'>
                 <g  systemLanguage="it"><use xlink:href="#sound"  
id="sound1it"/><text >giochi</text></g>
		<g systemLanguage="en"><use xlink:href="#sound" id="sound1en"/ 
 ><text >games too</text></g>
                 <g><use xlink:href="#sound" id="sound1"/><text  

where #sound is an icon whose position is not related directly to the  
text in the switch statement.
typically  x="10%" y="15%" width="20%" height="30%" but omitted for  

thus icons are all over the page, but the text is only in one fixed  
http://www.peepo.co.uk give a reasonable approximation ~:"

One could duplicate evaluation of systemLanguage, but that seems  
kludgy and makes for harder maintenance.
ie there might be cultural reasons for changing the icon for some  
languages, etc.

Jonathan Chetwynd

On 14 Mar 2007, at 16:56, T Rowley wrote:

> transform='translate(130,250)'
Received on Wednesday, 14 March 2007 19:05:14 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:29:33 UTC