W3C home > Mailing lists > Public > public-i18n-cjk@w3.org > October to December 2013

Re: Bopomofo Ruby layout hack

From: Robin Berjon <robin@w3.org>
Date: Mon, 23 Dec 2013 12:12:32 +0100
Message-ID: <52B81AA0.9030909@w3.org>
To: "川幡 太一 ( Taichi KAWABATA )" <kawabata.taichi@gmail.com>, 董福興 Bobby Tung <bobbytung@wanderer.tw>
CC: CJK discussion <public-i18n-cjk@w3.org>, Richard Ishida <ishida@w3.org>, ethantw@me.com, Kawamori Masahito <kawamori@w3.org>
On 21/12/2013 08:50 , 川幡 太一 ( Taichi KAWABATA ) wrote:
> should be split to multiple ruby such as ::
>
> <ruby>
>    <rb>你</rb>
>    <rtc><rt>ㄌㄧˋ</rt></rtc>
>    <rtc>Lí</rt></rtc>
> </ruby>
> <ruby>
>    <rb>敢</rb><rb>有</rb>
>    <rtc><rt>ㄍㆰˋ</rt><rt>ㄨ˫</rt></rtc>
>    <rtc><rt>kám-ū</rt></rtc>
> </ruby>
> <ruby>
>    <rb>聽</rb><rb>著</rb>
>    <rtc><rt>ㄊㄧㆩ</rt><rt>ㄉㄧㄜㆷ̍</rt></rtc>
>    <rtc><rt>thiann-tio̍h</rt></rtc>
> </ruby>
>
> If that would cause some problem, then you should clarify how such
> problem may be caused by the use-case.

Actually, unless I'm missing something (which is certainly possible!) I 
don't see that it would require being split into multiple <ruby> 
elements. Normally, the above is equivalent to:

<ruby>
   <rb>你</rb>
   <rtc><rt>ㄌㄧˋ</rt></rtc>
   <rtc>Lí</rt></rtc>

   <rb>敢</rb><rb>有</rb>
   <rtc><rt>ㄍㆰˋ</rt><rt>ㄨ˫</rt></rtc>
   <rtc><rt>kám-ū</rt></rtc>

   <rb>聽</rb><rb>著</rb>
   <rtc><rt>ㄊㄧㆩ</rt><rt>ㄉㄧㄜㆷ̍</rt></rtc>
   <rtc><rt>thiann-tio̍h</rt></rtc>
</ruby>

And in fact, relying on both the tag closing and the pairing algorithm 
it can be shortened to:

<ruby>
   你
   <rt>ㄌㄧˋ
   <rtc>Lí

   敢<rb>有
   <rtc>ㄍㆰˋ<rt>ㄨ˫
   <rtc>kám-ū

   聽<rb>著
   <rtc>ㄊㄧㆩ<rt>ㄉㄧㄜㆷ̍
   <rtc>thiann-tio̍h
</ruby>

Admittedly, it could be more readable to actually use more elements — 
but that's an author's choice.

-- 
Robin Berjon - http://berjon.com/ - @robinberjon
Received on Monday, 23 December 2013 11:12:48 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:10:24 UTC