-
Notifications
You must be signed in to change notification settings - Fork 707
[css-ruby-1] Default ruby centring for more than just zh #779
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
Comments
I don't think it's worth adding them. Web content shouldn't use them. If we really want to take those tags into consideration, we really need a new mechanism to handle macrolanguages, rather than listing everything inside it. |
My experience is that the language is a lot less important than the script for styling purposes. |
It seems to me we might want to just remove this rule, and rely on controlling the justification opportunities instead. The reason Chinese is centered by default here because its annotations tend to be in Latin (Pinyin) or Bopomofo. But when they are in Hanzi, they are not centered, they are spaced out. |
(For my own reference, filed Gecko bug 1691243 for this change) |
I had another look at the issue, and it seems to me that bopomofo does have justification opportunities inside, so removing But I also agree that when the annotation is Chinese, it seems right to have it spaced out. Not sure how we can solve this conflict. |
(reopening, so that we don't forget to deal with @upsuper's comment) |
CSS will ping I18N when text is written for review by CLREQ |
@upsuper we've now made edits to deal with #779 (comment). Feedback appreciated. |
Looks good to me, thanks. |
A.1 Supporting Ruby Layout
https://drafts.csswg.org/css-ruby-1/#default-ua-ruby
the default UA style sheet information includes the following:
This establishes centred display for ruby for Chinese, but there are other language subtags that indicate that text is chinese besides the generic
zh
. These should presumably also be included here.The current list of more specific tags recommended by the IANA subtag registry rather than
zh
is:cdo cjy cmn cpx czh czo gan hak hsn lzh mnp nan wuu yue
.The text was updated successfully, but these errors were encountered: