Skip to content

[css-ruby] Alignment of bopomofo #1907

@upsuper

Description

@upsuper

In an early email, I raised that the default value of ruby-align is not desirable for bopomofo:

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; }

From the minutes of 2015 Sydney meeting, the group somehow resolved to:

fantasai: 1) Change initial value to center. Reset it for Japanese to be space-around in the UA stylesheet.
fantasai: 2) Keep it as space-around, reset it for Chinese to center.
fantasai: 3) Have a value that does custom justifications - auto - which justifies between Han and Kana, and not between bopomofo.
...
RESOLVED: Either option 1 or 3 for ruby-position, at editor's discretion.

This doesn't seem to match what the spec is currently saying, actually. The current spec has space-around as the default value of ruby-align, and use default style sheet to set it to center for Chinese element, and I failed to figure out how do we actually get here.

In a later reply from @kojiishi, he said:

So, not 1 please.

I think the question is how to justify Bopomofo, rather than the default value of ruby-align.

This real-world page[2] indicates that Bopomofo is a space-delimited scripts, so I'm guessing we do not want justify between Bopomofo, similar to Korean, where Hanja justifies between letters while Hangul does not.

I would love to see if there were any real example of justified Bopomofo, but IIUC Richard has been trying that without success, even for single example.

which sounds like another solution to this problem is that, we make bopomofo not justifiable, so that we don't need any additional rule for ruby-align on Chinese, and all languages would just work fine with the default value space-around of ruby-align.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Commenter Response Pendingcss-ruby-1Current Worki18n-clreqChinese language enablementi18n-trackerGroup bringing to attention of Internationalization, or tracked by i18n but not needing response.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions