Skip to content

[css-ruby] Ruby text and browser minimal font size #1917

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

Closed
upsuper opened this issue Oct 29, 2017 · 4 comments
Closed

[css-ruby] Ruby text and browser minimal font size #1917

upsuper opened this issue Oct 29, 2017 · 4 comments
Labels
Closed Rejected as Wontfix by Editor Discretion Commenter Satisfied Commenter has indicated satisfaction with the resolution / edits. css-ruby-1 Current Work i18n-clreq Chinese language enablement i18n-jlreq Japanese language enablement i18n-tracker Group bringing to attention of Internationalization, or tracked by i18n but not needing response.

Comments

@upsuper
Copy link
Member

upsuper commented Oct 29, 2017

Copy from my old email:

Most browsers have an option called "Minimum font size" or something similar, which enables users to enforce a proper font size for them to read.

But this feature generally doesn't work fine with ruby. If the base text of ruby is not larger than the minimum font size, the ruby text would end up having the same size with its base text. It seems to be unfortunate.

There are some existing workarounds for authors to ensure the minimum font size in their page not being smaller than the user setting. But generally, the "minimum font size" is for the main text, not ruby. It doesn't make sense to enlarge text of a whole page by 1x just for ensuring that ruby is shown properly.

I guess that user agents should probably ignore the minimum font size setting for ruby text elements and their descendents. And this might be worth a mention in the spec.

One thing I'm concerned is that, ignoring this setting on certain elements effectively opens a door to authors to completely escape from it, which might also be unfortunate.

Thoughts?

@upsuper
Copy link
Member Author

upsuper commented Oct 29, 2017

Reply from 千葉 淳一 (Chiba Junichi):

I noticed the same thing you mentioned while I was making a ruby sample. A pair of Kanji with mono-ruby (two hiragana each) happened to have an extra space between the ruby base characters due to the browser's minimum font size.

The rendering with an extra space was not what I expected.

I guess that user agents should probably ignore the minimum font size setting for ruby text elements and their descendents. And this might be worth a mention in the spec.

I agree.
The minimum size should not work for the ruby characters because of its original purpose:
provide phonetic annotation using "ruby" sized typeface (smaller font size than the body elements).

One thing I'm concerned is that, ignoring this setting on certain elements effectively opens a door to authors to completely escape from it, which might also be unfortunate.

One suggestion to keep the door small enough is to define the minimum size for ruby separately.
I believe 50% of the minimum body size set by the user agent is one reasonable min value, regarding that the current draft mentions "typically sized to 50% when used as annotations".
It shall be 30% for bopomofo. Or 30% for Japanese too, because somebody may want to put three hiragana for one base without adding spaces to the base characters.

I wonder if there are other doors we should be aware of.

@upsuper
Copy link
Member Author

upsuper commented Oct 29, 2017

One thing I'm concerned is that, ignoring this setting on certain elements effectively opens a door to authors to completely escape from it, which might also be unfortunate.

Some new thought on this: I don't think this is something we really need to be concerned, because modern CSS already has approaches to bypass the minimum font restriction, if authors really want. e.g. they can use transform to resize the whole area to produce a smaller size.

@upsuper upsuper added the css-ruby-1 Current Work label Oct 29, 2017
@r12a r12a added i18n-tracker Group bringing to attention of Internationalization, or tracked by i18n but not needing response. i18n-jlreq Japanese language enablement i18n-clreq Chinese language enablement labels Apr 30, 2018
@fantasai
Copy link
Collaborator

fantasai commented Feb 2, 2021

Spec currently says “UAs implementing a user-controlled “minimum font size” feature should consider scaling that minimum down for ruby annotations.” in the (informative) Default Style Sheet appendix. We could make that normative, but otherwise I think we're covered here? (There's no normative definition of the “minimum font size” currently.)

@upsuper
Copy link
Member Author

upsuper commented Feb 2, 2021

The existing text sounds good. I agree that we don't need normative text for this.

@upsuper upsuper closed this as completed Feb 2, 2021
@frivoal frivoal added Commenter Satisfied Commenter has indicated satisfaction with the resolution / edits. and removed Commenter Response Pending labels Feb 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Closed Rejected as Wontfix by Editor Discretion Commenter Satisfied Commenter has indicated satisfaction with the resolution / edits. css-ruby-1 Current Work i18n-clreq Chinese language enablement i18n-jlreq Japanese language enablement i18n-tracker Group bringing to attention of Internationalization, or tracked by i18n but not needing response.
Projects
None yet
Development

No branches or pull requests

4 participants