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

Also sprach "Martin J. Dürst":

 > >    <link rel="stylesheet" href="horizontal.css" class="horizontal"/>
 > >    <link rel="alternate stylesheet" href="vertical.css" class="vertical"/>

 > 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 }

PS. Martin is responsible for naming the 'span' element. As such, he
has contributed a lot of bytes to the web :-)

Cheers,

-h&kon
              Håkon Wium Lie                          CTO °þe®ª
howcome@opera.com                  http://people.opera.com/howcome

Received on Tuesday, 26 October 2010 08:13:17 UTC