W3C home > Mailing lists > Public > www-style@w3.org > October 2010

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

From: Martin J. Dürst <duerst@it.aoyama.ac.jp>
Date: Tue, 26 Oct 2010 18:46:21 +0900
Message-ID: <4CC6A36D.6080708@it.aoyama.ac.jp>
To: John Daggett <jdaggett@mozilla.com>
CC: Håkon Wium Lie <howcome@opera.com>, "Tab Atkins Jr." <jackalmage@gmail.com>, fantasai <fantasai.lists@inkedblade.net>, www-style@w3.org, WWW International <www-international@w3.org>, member-japanese-layout-en@w3.org
Hello John,

Your proposal of text-transform: chinese-numerals; makes quite bit more 
sense because it needs less intervention into the document content. 
However, if I remember the discussion of the Japanese typography experts 
on this topic that I had the chance of attending a few years ago, I 
think their conclusion was more or less: This is a slippery slope. (this 
was in the context of the committee that was responsible for JIS 4051)

There are more cases that have to be taken into account than just the 
example I gave. I think to get really good input, we have to go back to 
the Japanese typography experts. I have cc'ed the relevant list.

Regards,   Martin.

On 2010/10/26 17:26, John Daggett wrote:
> 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:
> horizonal.css:
>     .number { text-transform: none; }
> vertical.css:
>     .number { text-transform: chinese-numerals; }
> The ability to have different stylesheets for different writing modes
> provides authors more options for styling content.
> John Daggett

#-# Martin J. Dürst, Professor, Aoyama Gakuin University
#-# http://www.sw.it.aoyama.ac.jp   mailto:duerst@it.aoyama.ac.jp
Received on Tuesday, 26 October 2010 09:47:05 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:38:40 UTC