W3C home > Mailing lists > Public > public-i18n-cjk@w3.org > July to September 2010

Re: Thoughts on ruby

From: Shiozawa, Hajime <hajime.shiozawa@gmail.com>
Date: Tue, 28 Sep 2010 15:16:26 +0900
Message-ID: <AANLkTinWBEpVaOJrn3frDEH6umB1c=iEfpumZT_csH4U@mail.gmail.com>
To: "public-i18n-cjk@w3.org" <public-i18n-cjk@w3.org>
On 2010/09/24 22:26, Richard Ishida wrote:

> [1] I've heard people say that complex ruby has never been implemented, but
> actually there is a Firefox add-on (XHTML Ruby Support
> https://addons.mozilla.org/en-US/firefox/addon/1935/ ) that does a good job,
> so it's not impossible. Amaya also supports complex ruby with XHTML 1.1
> files.

RE: [1].

Firstly, Amaya 11.3 dose not fully support complex ruby in XHTML 1.1.
Amaya can not display taiji ruby (対字ルビ), it is automatically
transforms to taigo ruby (対語ルビ).

<ruby>
    <rbc><rb>AAAAA</rb><rb>BBBBB</rb></rbc>
    <rtc><rt>a</rt><rt>b</rt></rtc>
</ruby>

So, the above markup is equal to the one below on Amaya rendering.

<ruby><rb>AAAAABBBBB</rb><rt>ab</rt></ruby>

Also, Amaya can display ruby on both sides (up and bottom) when <ruby>
has two <rtc>.
But css ruby-postion property can not use on Amaya, Amaya can not
display ruby only on the bottom side.
Amaya is able to display ruby only on the up side and both side of the
ruby-base character.



My implementation is able to display correctly by solving the case
written above.
If <ruby> has more than three <rtc>, these are ignored.
I'm considering about in the case when the numbers of <rt> in <rtc>
and <rb> in <rbc> is different like below...

<ruby>
  <rbc><rb>AAA<rb><rb>BBB</rb></rbc>
  <rbc><rb>a</rb></rbc>
</ruby>


If you have any questions, I'm looking foward to answering it.

Regards,
Hajime.


-- 
# 青山学院大学大学院
# 理工学研究科  知能情報コース
# 塩澤 元 (Shiozawa, Hajime)
# mail: hajime.shiozawa@gmail.com
Received on Tuesday, 28 September 2010 07:27:50 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 28 September 2010 07:27:51 GMT