Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tabular ruby markup support is needed for searching #2

Open
r12a opened this issue May 1, 2018 · 0 comments
Open

Tabular ruby markup support is needed for searching #2

r12a opened this issue May 1, 2018 · 0 comments

Comments

@r12a
Copy link
Contributor

r12a commented May 1, 2018

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant