W3C home > Mailing lists > Public > www-style@w3.org > February 2015

Re: [css-ruby] The default value of ruby-align is undesirable for bopomofo

From: fantasai <fantasai.lists@inkedblade.net>
Date: Fri, 06 Feb 2015 21:00:07 -0500
Message-ID: <54D571A7.5020101@inkedblade.net>
To: www-style@w3.org
On 01/14/2015 09:12 PM, Xidorn Quan wrote:
> In the current spec, ruby-align has a default value "space-around". This value is the usual behavior for Japanese, and is fine
> for pinyin since it is just like Latin words. But this value is not fine for bopomofo.
>
> There are justification opportunities between bopomofo characters, just like other Chinese/Japanese characters. But if we have
> "ruby-align: space-around" on them, we will get an undesirable result, because bopomofo is generally centered when in annotations.
>
> Hence I propose that we add an "auto" value to ruby-align, and make it default. UA may choose a proper value for it. It may
> behave as "center" in Chinese locales, and "space-around" otherwise.
>
> Or alternatively, I guess we can solve it as a rule in the default style sheet like:
> ruby:lang(zh) { ruby-align: center; }

I'd prefer leaving locale-specific defaults as locale-specific rules
rather than as magic keywords. :) I've added the rule to the default
UA stylesheet. Let me know if there's any problem with that logic.

~fantasai
Received on Saturday, 7 February 2015 05:18:10 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:28 UTC