Re: For review: 1 new and 3 updated articles about language declarations in HTML

On 21/08/2011 23:40, Gunnar Bittersmann wrote:
>> 2 Why use the language attribute?
>> http://www.w3.org/International/tutorials/new-language-decl/qa-lang-why
>
> [[
> The following example shows how you can apply different quotation marks
> for quotations in German text.
> ]]
>
> The example shows for quotations in English and German texts, actually.
>
> [[
> These quotation marks will be used to surround the content of a q
> element with the attribute lang="de".
> ]]
>
> No. On the one hand, :lang(de) does not only select elements with the
> attribute lang="de", but also elements whose computed (inherited)
> language is "de". On the other hand, the selector ':lang(de) > *' does
> not take into account the language of the q element itself, but the
> language of its parent element.

Yes.  I did a very bad job of that paragraph.  I have changed the 
paragraph to read:

"The following example shows how you could use different quotation marks 
around a q element depending on whether the surrounding text is in 
English or German."


>
> Proposal:
> These quotation marks will be used to surround the content of a q
> element in English and German texts respectively.
>
> [[
> :lang(en) > * { quotes: '"' '"' "'" "'"; }
> :lang(en) > * { quotes: '„' '“' '‚' '‘'; }
> ]]
>
> The second line should read :lang(de) > *

Fixed.

>
> For English, I propose to use the typographically correct (i.e. better
> looking) quotation marks:
>
> :lang(en) > * { quotes: '“' '”' '‘' '’'; }
> :lang(en) > * { quotes: '„' '“' '‚' '‘'; }

Done.

>
> How about a fallback for all text neither in English nor in German? You
> might use the ugly " and ' here:
>
> * { quotes: '"' '"' "'" "'"; }
> :lang(en) > * { quotes: '“' '”' '‘' '’'; }
> :lang(en) > * { quotes: '„' '“' '‚' '‘'; }

I didn't do this.  I want to focus on the language-specific stuff in 
this article, and leave the tutorial on how to do this for another article.

Cheers,
RI


> Gunnar
>
>

-- 
Richard Ishida
Internationalization Activity Lead
W3C (World Wide Web Consortium)

http://www.w3.org/International/
http://rishida.net/


Register for the W3C MultilingualWeb Workshop!
Limerick, 21-22 September 2011
http://multilingualweb.eu/register

Received on Friday, 2 September 2011 09:15:54 UTC