- From: therahedwig via GitHub <sysbot+gh@w3.org>
- Date: Sat, 04 Dec 2021 15:57:15 +0000
- To: public-svg-issues@w3.org
Reading through the ruby css spec, it seems that there might be a solution in using [specific values for display on a text-span](https://www.w3.org/TR/css-ruby-1/#ruby-display). > For document languages (such as XML applications) that do not have pre-defined ruby elements, authors must map document language elements to ruby elements; this is done with the display property. This could look like... ``` <text> Here is some <tspan style="display:ruby"><tspan style="display:ruby-base">text</tspan><tspan style="display:ruby-text">annotation</tspan></tspan> with annotation. </text> ``` The only thing I am missing here is a way to define `<rp>` elements, that is, the fallback parentheses for ruby-annotations in html. So the above example "Here is some <ruby><rb>text</rb><rp>(</rp><rt>annotation</rt><rp>)</rp></ruby> with annotation", would ideally be handled as "Here is some text (annotation) with annotation." when the implementation doesn't understand the ruby display elements. We might need to [raise this](https://github.com/w3c/csswg-drafts/issues?q=is%3Aissue+label%3Acss-ruby-1) with the authors of CSS Ruby Annotation Layout Module Level 1. There might be more issues with the spec. What I think might be a good next step is to try and make a script that tries to consume tspans with the markup and outputs SVG 1.1 (or non-autowrapped) text, as a prototype. -- GitHub Notification of comment by therahedwig Please view or discuss this issue at https://github.com/w3c/svgwg/issues/870#issuecomment-986049425 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Saturday, 4 December 2021 15:57:16 UTC