W3C home > Mailing lists > Public > www-style@w3.org > September 2015

Re: i18n-ISSUE-362: [css-counter-styles] In the document language

From: Martin J. Dürst <duerst@it.aoyama.ac.jp>
Date: Fri, 25 Sep 2015 10:37:14 +0900
To: Richard Ishida <ishida@w3.org>, W3C Style <www-style@w3.org>, www International <www-international@w3.org>
Message-ID: <5604A54A.8090602@it.aoyama.ac.jp>
On 2015/09/25 02:03, Richard Ishida wrote:
> 3.9 Speech Synthesis: the speak-as descriptor
> http://dev.w3.org/csswg/css-counter-styles/#counter-style-speak-as
> I guess that 'in the document language' actually means in the language
> most recently declared

That sounds like tag soup parsing. What we want to say is that it's the 
language that applies to the element in question.

A simple example of what I mean:

<ol lang='en'>
   <li lang='fr'>Second</li>

If this is rendered as:

1. First
2. Second
3. Third

and the numbers are spoken as numbers, then I'd expect this to be read:

'one' First
'deux' Second
'three' Third

and not:

'one' First
'deux' Second
'trois' Third

which would be what "the language most recently declared" would imply.

Another question: Are there languages where we need to be able to 
distinguish between reading numbers as ordinals and as cardinals? Or 
languages where there are other distinctions between numbers that may 
have to be made?

Regards,    Martin.

> for the text where the counter appears, which may
> not be the same as that declared for the document as a whole.
> if that is indeed what is meant, i such we make an editorial change to
> replace 'in the document language' with something more precise.
> (btw, bullets is the only value that doesn't say 'in the document
> language", but i think it or its replacement is equally applicable here.
> If the list is in French, the French word for the UA defined phrase
> needs to be used.)
> ri
> .
Received on Friday, 25 September 2015 01:37:57 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:57 UTC