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 markup not supported for ruby #175

Open
r12a opened this issue Feb 3, 2020 · 1 comment
Open

Tabular markup not supported for ruby #175

r12a opened this issue Feb 3, 2020 · 1 comment
Labels
doc:jlreq Used for gap analysis (only) to indicate target document. gap The first comment in this issue is read by the gap-analysis document. i:inline_notes Inline notes & annotations l:ja Japanese p:basic Used for gap analysis issues (only) to indicate priority. s:jpan Japanese script x:blink x:html x:jpan x:webkit

Comments

@r12a
Copy link
Contributor

r12a commented Feb 3, 2020

This issue is applicable to all languages using ruby annotations. (See: jlreq)

The basic pattern of 'tabular' markup is ruby-base ruby-base ... ruby-text ruby-text .... An advantage to this approach is that it enables you to style the ruby text to appear inline in such a way that all the ruby text for a word follows that word together. Inline styling can be useful in space-constrained situations, where it would be too difficult to read small ruby characters. Read more.

This also makes certain applications of double-sided ruby impossible when the ruby on each side of the base spans a different set of base characters.

When text is marked up in mono-ruby way, searching will not work well. If you have the following markup

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

and search for the base text "漢字" in a browser, you will not get a result. Tabular markup could solve this problem. (See w3c/i18n-issues#2 for a similar report raised by Japanese & Chinese users.)

Specs:
issue 1771 rb and rtc element should be removed from the list of obsolete features Open.

html has actually removed markup for rb and rtc elements, which would be needed to make this work. The parser, however, supports the use of the markup still.

css-ruby-1 Describes how the tabular approach will work for CSS.

Tests & results:
i18n test suite, HTML5, the ruby element and its children

Gecko supports display of ruby using the tabular model. Blink, and Webkit do not correctly support display. However, all browsers recognise the rb and rtc elements, and allow them to be styled or manipulated using scripting.

Kindle's ePub implementation also implements the tabular model, although not rtc.

Browser bug reports:
GeckoBlinkWebkit

Priority:
The limitations created by the lack of the tabular model are all basic in nature. None more so that the impairment for searching, since browsers have not been incentivised to fix that in any other way. The obsoletion of the rb and rtc elements by the HTML spec runs the risk that browser engines are not implementing the tabular model.

@r12a r12a added gap The first comment in this issue is read by the gap-analysis document. doc:jlreq Used for gap analysis (only) to indicate target document. p:basic Used for gap analysis issues (only) to indicate priority. i:inline_notes Inline notes & annotations labels Feb 3, 2020
@r12a
Copy link
Contributor Author

r12a commented Feb 3, 2020

The first comment in this issue contains text that will automatically appear in one or more gap-analysis documents as a subsection with the same title as this issue. Any edits made to that comment will be immediately available in the document. Proposals for changes or discussion of the content can be made in comments below this point.

Relevant gap analysis documents include:
Japanese

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc:jlreq Used for gap analysis (only) to indicate target document. gap The first comment in this issue is read by the gap-analysis document. i:inline_notes Inline notes & annotations l:ja Japanese p:basic Used for gap analysis issues (only) to indicate priority. s:jpan Japanese script x:blink x:html x:jpan x:webkit
Projects
Status: Awaiting spec text
Development

No branches or pull requests

1 participant