w3c / i18n-issues

A place to log problems encountered when developing web sites and pages for international use.
3 stars 2 forks source link

Tabular ruby markup support is needed for searching #2

Open r12a opened 6 years ago

r12a commented 6 years ago

@bobbytung reports how the currently supported model for ruby markup causes problems when searching for text.

When text is marked up in the normal mono-ruby way, searching will often fail. If you have the following markup (example from Makoto-san):

<p><ruby>漢<rt>かん</rt>字<rt>じ</rt></ruby></p>

and search for the word "漢字" in a browser, you will not get a result.

Same problem for Chinese. Here’s Bobby’s example, where bopomofo ruby is used. Bopomofo is naturally associated with each individual han character, so group ruby is not appropriate.

<ruby>天<rt>ㄊㄧㄢ</rt></ruby><ruby>氣<rt>ㄑㄧˋ</rt></ruby>

If you search for the base text "天氣" in the browser, you'll get no result. 

Tabular markup could solve this problem, but it’s currently not well supported by browsers. Tabular markup would present the text as follows:

<p><ruby><rb>漢<rb>字<rt>じ<rt>かん</ruby></p>

screen shot 2018-05-01 at 16 59 58