W3C home > Mailing lists > Public > www-international@w3.org > January to March 2010

Re: Ruby in HTML5

From: MURAKAMI Shinyu <murakami@antenna.co.jp>
Date: Wed, 10 Mar 2010 22:06:30 +0900
To: Suzumizaki-Kimikata <szmml@h12u.com>
Cc: Jeroen Ruigrok van der Werven <asmodai@in-nomine.org>, Richard Ishida <ishida@w3.org>, www-international@w3.org, public-html-ig-jp@w3.org
Message-Id: <20100310220630.5423.C598BCD7@antenna.co.jp>
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:11 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 10 March 2010 13:07:12 GMT