W3C home > Mailing lists > Public > www-international@w3.org > October to December 2010

Re: [css3-writing-modes] direction vs. writing mode in markup vs. style

From: John Daggett <jdaggett@mozilla.com>
Date: Tue, 26 Oct 2010 01:26:21 -0700 (PDT)
To: Håkon Wium Lie <howcome@opera.com>
Cc: "Tab Atkins Jr." <jackalmage@gmail.com>, fantasai <fantasai.lists@inkedblade.net>, www-style@w3.org, WWW International <www-international@w3.org>, \"Martin J. Dürst\ <duerst@it.aoyama.ac.jp>
Message-ID: <365496511.182752.1288081581442.JavaMail.root@cm-mail03.mozilla.org>
Håkon Wium Lie wrote:

>  > Sorry to jump into this discussion without potentially understanding all
>  > the details, but while it is to a large extent possible e.g. in Japanese
>  > to switch from horizontal to vertical just by switching styling, there
>  > are some aspects of this switch that need more work. A typical example
>  > is that in horizontal text, you may use Arabic numerals (0123...),
>  > whereas in vertical text, Kanji numbers (〇一二三...) may be preferred.
> That's an interesting use case which can be handled by the above code.
> For example, you could have:
>   <span class=arabic>0123</span><span class=kanji>〇一二三</span>
> horizonal.css:
>    .kanji { display: none }
> vertical.css:
>    .arabic { display: none }

Might be better to define 'chinese-numerals' as a value for
'text-transform', which transforms u+030-039 to the appropriate chinese
numeral characters. Then you would simply have:


   .number { text-transform: none; }


   .number { text-transform: chinese-numerals; }

The ability to have different stylesheets for different writing modes
provides authors more options for styling content.

John Daggett
Received on Tuesday, 26 October 2010 08:27:51 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 21 September 2016 22:37:32 UTC