Skip to content

[css-text-decor] text-decoration-skip: spaces should not skip Mongolian NNBSP #3393

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
r12a opened this issue Dec 3, 2018 · 3 comments
Closed
Labels
Closed Accepted by Editor Discretion css-text-decor-4 i18n-mlreq Mongolian language enablement i18n-tracker Group bringing to attention of Internationalization, or tracked by i18n but not needing response.

Comments

@r12a
Copy link
Contributor

r12a commented Dec 3, 2018

2.5.1. Text Decoration Line Continuity: the text-decoration-skip property
https://drafts.csswg.org/css-text-decor-4/#text-decoration-skip-property

The value space, when applied to the CSS property text-decoration-skip, breaks the line under white space. According to the Mongolian Layout Requirements folks, there should be no break under a gap produced by the suffix separator NNBSP, because the suffix(es) are considered to be part of the word.

The current text of the CSS spec says: "Skip all spacing, i.e. all typographic character units with the Unicode White_Space property [UAX44], plus any adjacent letter-spacing or word-spacing." This definition includes NNBSP, which is a problem for Mongolian.

There is a test available, but no production browsers currently support text-decoration-skip, so there are no useful results yet, but it shows an example of relevant text.

@r12a r12a added the i18n-mlreq Mongolian language enablement label Dec 3, 2018
@r12a
Copy link
Contributor Author

r12a commented Dec 3, 2018

Some additional background: NNBSP is in the Unicode Mongolian block because it was envisaged that Mongolian suffixes was the main reason for this character to be added. NNBSP also interacts with the characters on either side of it in Mongolian, changing shapes. Since then, however, others have begun using the character as an ordinary white space – such as French people, who want a short no-break space before sentence-final punctuation !

@frivoal frivoal added the css-text-decor-3 Current Work label Dec 4, 2018
@frivoal
Copy link
Collaborator

frivoal commented Dec 4, 2018

Without having researched it, and going from a gut feeling I'd say that for the french usage, not skipping NNBSP would also make sense. Otherwise, you'll end up underlining lone punctuation marks separately from the nearby word, which doesn't seem great. Compare these two (which also skip ink):

screenshot 2018-12-04 09 51 39

@xfq xfq added the i18n-tracker Group bringing to attention of Internationalization, or tracked by i18n but not needing response. label Dec 4, 2018
@fantasai
Copy link
Collaborator

Done. Thanks for the report @r12a!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Closed Accepted by Editor Discretion css-text-decor-4 i18n-mlreq Mongolian 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