-
Notifications
You must be signed in to change notification settings - Fork 590
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
CJK punctuation collapsing as part of shaping? #4651
Comments
CC @jfkthame |
In my mind, all the |
I remember I briefly chatted with @behdad for the possibility of emulating the The feature consists of three different types of the glyph metrics adjustments.
Technically speaking, 1 is covered by the Other technical challenges as far as I understand are:
Do these changes fit well for the shaping layer? |
HarfBuzz does provide "cluster" mappings to the original text.
I suggest pursuing solutions using OpenType features only. |
https://drafts.csswg.org/css-text-4/#fullwidth-collapsing discusses punctuation collapsing and reducing spacing dependent on context and punctuation sequences.
This is shipped in Chrome from M123, improves CJK typography related to punctuation sequences, is controlled by the
text-spacing-trim
property, and currently done as an implementation on the layout engine side.This blog post illustrates the feature: https://developer.chrome.com/blog/css-i18n-features#cjk_punctuation_kerning_text-spacing-trim
As a discussion starter, without having sufficiently looked into this myself to form an opinion: Are there parts of this functionality that could be done and would be architecturally in the right place in the shaping library? This might help with adoption in other browsers as well. Or is this more of an application level feature?
CC @kojiishi
The text was updated successfully, but these errors were encountered: