Re: [css-ruby] spanning of ruby annotations across excess bases

On 11/08/2014 01:42 PM, L. David Baron wrote:
> http://dev.w3.org/csswg/css-ruby/#base-annotation-pairing says:
>    # If there are not enough ruby annotations in a ruby annotation
>    # container, the last one is paired with (spans across) any excess
>    # ruby bases. (If there are not any in the ruby annotation
>    # container, an anonymous empty one is assumed to exist.)
>
> Is there actually a use case for this behavior, or is it really just
> defining error handling?

It's to handle HTML5 spanning ruby markup:
   <ruby><rb>旧<rb>金<rb>山<rt>jiù<rt>jīn<rt>shān<rtc>San Francisco</ruby>

> I ask because I think it adds substantial extra complexity,
> especially around line-breaking of ruby.  If there isn't a good use
> case for it, I would prefer if ruby annotation containers that do
> not have enough annotations simply not provide annotations for the
> final bases, instead of having their final annotation span all the
> remaining bases.

What is the complication wrt line-breaking, and how is it better
to use nested markup?

~fantasai

Received on Tuesday, 11 November 2014 16:39:59 UTC