W3C home > Mailing lists > Public > www-svg@w3.org > November 2006

switch with systemLanguage is broken by standards

From: Jonathan Chetwynd <j.chetwynd@btinternet.com>
Date: Thu, 16 Nov 2006 17:17:06 +0000
Message-Id: <F0579F09-EBF1-474C-81D6-73BF22E9D9CA@btinternet.com>
Cc: Doug Schepers <doug@schepers.cc>
To: www-svg@w3.org



Camino developers have suggested that the current definitions used  
for 'switch' and 'systemLanguage'
http://www.w3.org/TR/SVG11/struct.html#SwitchElement
http://www.w3.org/TR/SVG11/struct.html#SystemLanguageAttribute

mean that it's not possible for the client to express any language  
preference.

The result is that the user should have no control over the language  
displayed, as the first language in the authors switch statement  
which is accepted by the client will be used.

It is evident this will only very rarely be the users language of  
choice.

a test case is here:
https://bugzilla.mozilla.org/attachment.cgi?id=233450
My machine is set to accept the three languages, french, spanish,  
german, but I will only get french, whatever my preference, unless I  
edit the accepted language list.

a longer description of the issue is here:
https://bugzilla.mozilla.org/show_bug.cgi?id=326375
#3 & #17 in particular

regards

Jonathan Chetwynd

it seems to me they may be equally true of the SVG1.2 definitions:
http://www.w3.org/TR/SVGMobile12/struct.html#SwitchElement
http://www.w3.org/TR/SVGMobile12/struct.html#SystemLanguageAttribute



<?xml version="1.0" encoding="utf-8" standalone="no"?>
<svg xmlns="http://www.w3.org/2000/svg"  xmlns:xlink="http:// 
www.w3.org/1999/xlink" width="100%" height="100%">
     <g id='symbol1Text'>
                 <switch >
                     <text x="20" y="20" systemLanguage="fr" >ploc</ 
text>
                     <text x="20" y="20" systemLanguage="es" >la  
mancha</text>
                     <text x="20" y="20" systemLanguage="de" >splat</ 
text>
                     <text x="20" y="20" >splat</text>
                 </switch>


     </g>
   </svg>
Received on Thursday, 16 November 2006 18:17:28 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:35 GMT