W3C home > Mailing lists > Public > public-i18n-core@w3.org > April to June 2016

SVG labelling issue with ARIA

From: Chaals McCathie Nevile <chaals@yandex-team.ru>
Date: Thu, 21 Apr 2016 09:46:10 +0200
To: intlcore <public-i18n-core@w3.org>
Cc: "SVG public list" <www-svg@w3.org>, "ARIA Working Group" <public-aria@w3.org>
Message-ID: <op.yf9ha8iks7agh9@widsith.local>
Hi,

SVG issue https://github.com/w3c/svgwg/issues/116 is an i18n issue:

if you use e.g.

<rect width="100" height="100" aria-labeledby="fr-title-1 en-title-1  
es-title-1">
   <title lang="fr" id="fr-title-1">Assez carré</title>
   <title lang="en" id="en-title-1">Sort of square</title>
   <title lang="es" id="es-title-1">Es quadrilateral por lo menos</title>
</rect>
The multilingual selection model won't work with the ARIA name  
calculation, as written today.

Note that the idea of using multiple titles is at risk since it isn't  
implemented in browsers. The mechanism that does work is to use  
systemLanguage:

   <switch>
    <circle r="50" cx="450" cy="100" fill="purple" systemLanguage="jp">
     <title>これは日本語です</title>
    </circle>
    <circle r="50" cx="450" cy="100" fill="purple" systemLanguage="ru">
     <title>Вот что-то по-русски</title>
    </circle>
    <circle r="50" cx="450" cy="100" fill="purple" systemLanguage="en">
     <title>This is english</title>
    </circle>
    <circle r="50" cx="450" cy="100" fill="purple" systemLanguage="fr">
     <title>Voici français, le defaut</title>
    </circle>
   </switch>

Which is pretty ugly where you have a real structure to maintain...

Running the <switch> just for the titles doesn't work in any browser  
either :(

cheers

Chaals

-- 
Charles McCathie Nevile - web standards - CTO Office, Yandex
  chaals@yandex-team.ru - - - Find more at http://yandex.com
Received on Thursday, 21 April 2016 08:46:45 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:02:12 UTC