W3C home > Mailing lists > Public > public-css-archive@w3.org > July 2021

Re: [csswg-drafts] [css-ruby] Zaima Use Cases for Ruby Annotation Level Testing (#6432)

From: Florian Rivoal via GitHub <sysbot+gh@w3.org>
Date: Mon, 12 Jul 2021 16:12:23 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-878408923-1626106341-sysbot+gh@w3.org>
I wasn't aware of Zaima, but that's very interesting, and your offer is very much welcome. From what I understand about it based on the documents you shared, css-ruby should indeed be able to handle it, but that however comes with a major caveat: the layout would work assuming that a markup language which supports explicit spanning is used, so that you can indicate how many bases each annotation is supposed to span.

*If* such a language is used, css-ruby should do the job.

But HTML is not (at the moment) such a language. [XHTML Complex Ruby Annotations](https://www.w3.org/TR/2001/REC-ruby-20010531/Overview.html.utf-8) would fit the bill, thanks to the [rbspan attribute on the rt element](https://www.w3.org/TR/2001/REC-ruby-20010531/Overview.html.utf-8#rt), but I don't believe that is implemented anywhere.

Theoretically, there's no reason HTML couldn't be extended to support that, but given the resistance that simpler features have faced, that's unfortunately going to be a challenge. In particular, multi-level itself is still not fully accepted. Only Firefox supports it so at the moment. I don't know how much importance browser vendors will give to Zaima, but I suspect they may not be aware of its need for multi-level ruby, so maybe letting them know could contribute to prioritizing this feature.

Also, I'd like to draw your attention to this note from [section 3.1.1](https://drafts.csswg.org/css-ruby-1/#interlinear-inline):
> Note: If there are multiple annotations spanning the same number of bases that overlap but do not coincide, the distribution of space is undefined. […] can happen in markup languages with explicit spanning […]

Depending on how specific the layout needs of Zaima are, this may or may not be an issue.

GitHub Notification of comment by frivoal
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6432#issuecomment-878408923 using your GitHub account

Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Monday, 12 July 2021 16:12:25 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:42:39 UTC