W3C home > Mailing lists > Public > www-international@w3.org > July to September 2011

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

From: Asmus Freytag <asmusf@ix.netcom.com>
Date: Sun, 21 Aug 2011 18:19:06 -0700
Message-ID: <4E51AE8A.1010502@ix.netcom.com>
To: "T. Kuro Kurosaka" <kuro@bhlab.com>
CC: www-international@w3.org
On 8/21/2011 5:56 PM, Asmus Freytag wrote:
> On 8/21/2011 4:26 PM, T. Kuro Kurosaka wrote:
>> > 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.
>> > These quotation marks will be used to surround the content of a q 
>> element
>> > with the attribute lang="de".
>> >
>> > :lang(en) > * { quotes: '"' '"' "'" "'"; }
>> > :lang(en) > * { quotes: '„' '“' '‚' '‘'; }
>> > q:before { content: open-quote; }
>> > q:after { content: close-quote;    }
>>
>>
>> Perhaps this sample illustrates how to change quotation marks
>> depending on the language, and the the second line meant to
>> be :lang(de) rather?
>
> Looks like you spotted a typo.
>
>> I didn't get what the last two lines mean but that's probably because
>> I don't have enough knowledge about CSS that this article requires.
>>
>
> They should be instructions to add quotes before or after a "q" 
> element. The source text would not contain the quotes as it would 
> otherwise be more difficult to make them vary by language.
>
> A./
>
>
>
I meant to add "automatically".

A./

PS: I can't think off-hand of a context where I would use such a 
feature, but perhaps someone on the list knows a use case he or she 
could share.
Received on Monday, 22 August 2011 01:20:21 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 22 August 2011 01:21:37 GMT