-
Notifications
You must be signed in to change notification settings - Fork 707
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[css-ruby] Alignment of bopomofo #1907
Comments
(This may not an issue for current spec, but I file this issue to track whether the alternative solution may make more sense.) |
Seems easiest to fix this through a UA stylesheet with CSS4 Selectors
Of course, you only need one of these depending on what the default keyword turns out to be. |
The spec has been using this approach. The question is whether this is what we really want. Koji pointed out that we may not want to insert justification opportunities between bopomofo, in which case we would not need the UA stylesheet rule at all. |
Ah, I see. "Justification opportunities" is a Ruby spec key term. The spacing of many of the ruby annotations at https://choyce.tw/momguide/ seem to approximate Bopomofo is only used for single characters and, if you look at examples like https://books.google.com/books?id=AMVoCgAAQBAJ&printsec=frontcover, how much space can |
First let me tease something apart here: bopomofo ruby can be used above the base in a similar way to furigana in Japanese, or (more commonly) it can be used vertically to the right of each character. The This means that we can't assume that all ruby or even all bopomofo ruby in Taiwan is rendered in the same way.
Inter-character bopomofo ruby is normally solid set and centred, with tone marks appearing to the right at varying heights, depending on the annotation itself. My links to the diagrams at the Ministry of Education in Taiwan don't seem to work any more, but you can see a summary at https://w3c.github.io/clreq/#h-examples_of_zhuyin_annotations (clreq).
Not sure how you came to your conclusion here. Bopomofo ruby is rarely a single character. It is typically 1-3 phonetic characters plus a tone mark. I suggest reading https://r12a.github.io/scripts/bopomofo/ontheweb So, to summarise, when ruby-position for bopomofo ruby is set to over, i don't have a specific recommendation, but i suspect that the annotation is usually centred, like pinyin. @bobbytung may provide some advice there. When bopomofo ruby annotations are displayed vertically to the right of each character, using the |
I believe that when I wrote "Bopomofo is only used for single characters…", I was referring to single base characters. I think the point I was trying to make (last year) was that the default doesn't matter much because (A) a UA stylesheet can address the issue with CSS4 Selectors support and (B) there will normally be a negligible difference between I don't feel strongly about this issue though. I think I was mostly interested in chiming in because I saw “
This was an interesting read. I'd suggest changing the text color from gray to a more legible black though to encourage more people to read it. (I manually changed the text color.) For what it’s worth, I think a better approach to handling bopomofo tone mark rendering would be to create |
If we treat |
…ities in ruby (in a comment). #1907 #771 w3c/jlreq#184
In an early email, I raised that the default value of
ruby-align
is not desirable for bopomofo:From the minutes of 2015 Sydney meeting, the group somehow resolved to:
This doesn't seem to match what the spec is currently saying, actually. The current spec has
space-around
as the default value ofruby-align
, and use default style sheet to set it tocenter
for Chinese element, and I failed to figure out how do we actually get here.In a later reply from @kojiishi, he said:
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 valuespace-around
ofruby-align
.The text was updated successfully, but these errors were encountered: