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

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

From: Xidorn Quan <quanxunzhen@gmail.com>
Date: Thu, 15 Jan 2015 13:12:34 +1100
Message-ID: <CAMdq69-KfPFLF8mE_4OGLdf0Fn3E8bo+-firDD4BWCv2J=kS_A@mail.gmail.com>
To: www-style list <www-style@w3.org>
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; }

- Xidorn
Received on Thursday, 15 January 2015 02:13:48 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:51:56 UTC