Re: Ruby in HTML5

I'm not sure whether HTML5 should adopt the XHTML complex ruby,
but I think the both sides ruby is possible with current HTML5.

Ruby use cases from the JLReq document
http://www.w3.org/International/datespace/2010/02/jlreq-examples/
shows the example "[8] Figure 117: Ruby on both sides" as:

1. XHTML complex.
 <ruby>
   <rbc><rb>東</rb><rb>南</rb></rbc><rtc><rt>とう</rt><rt>なん</rt></rtc>
   <rtc><rt rbspan="2">たつみ</rt></rtc>
 </ruby>

and says "There is no way to do this using HTML5 markup."

I think it's possible because HTML5 doesn't prohibit nesting ruby.

  <ruby class="after">
    <ruby>東<rt>とう</rt>南<rt>なん</rt></ruby>
    <rt>たつみ</rt>
  </ruby>

with stylesheet:
  ruby       { ruby-position: before }
  ruby.after { ruby-position: after }

This seems simpler than the XHTML complex markup.

-- 
村上 真雄 (MURAKAMI Shinyu)
http://twitter.com/MurakamiShinyu
Antenna House Formatter:
http://www.antenna.co.jp/AHF/

Received on Wednesday, 10 March 2010 13:07:12 UTC