[go: up one dir, main page]

Skip to content
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-text-4] Clarify text-spacing: punctuation #318

Closed
frivoal opened this issue Jul 13, 2016 · 3 comments
Closed

[css-text-4] Clarify text-spacing: punctuation #318

frivoal opened this issue Jul 13, 2016 · 3 comments
Labels
Closed Accepted by CSSWG Resolution Commenter Satisfied Commenter has indicated satisfaction with the resolution / edits. css-text-4 i18n-tracker Group bringing to attention of Internationalization, or tracked by i18n but not needing response. Needs Testcase (WPT)

Comments

@frivoal
Copy link
Collaborator
frivoal commented Jul 13, 2016

French text is commonly marked up with regular spaces (U+0020) where the french typographic guidelines refered to by css-text-4 call for various kinds of non breaking spaces. Sometimes it is marked up with the correct (according to that guideline) kind of spaces. Sometimes it is marked up with the some other kind of spaces (U+00A0 where the guideline says there should be U+202F). Sometimes it is marked up with no space in some of these places.

How should text-spacing: punctuation react in these various situations? the current wording (“is inserted where required”) suggest you always add a space (of the right kind), but if there's already one there, that doesn't sound helpful.

How about:

  1. If there is a U+0020 where the guideline says there should be something else, replace the U+0020 with what the guideline says. (rationale: U+00A0 and U+202F are hard to type, and people will write U+0020 instead out of convenience).
  2. If there is a U+00A0, where the guideline says there should be U+202F, replace it with U+202F. (rationale: U+202F is harder to type than U+00A0 and, and people will write U+00A0 instead out of convenience).
  3. If there is some other kind of space where the guidelines says there should be a U+0020, don't change it. (rationale: spaces other than U+0020, and to a limited degree U+00A0 are hard to type, and any other kind of space should be assumed to be deliberate).
  4. If there is no space where the guidelines says there should be U+0020, don't add anything. (rationale: U+0020 is easy to type, and if the author wanted a space there, they'd put one. The lack of a space is therefore likely to be deliberate, maybe because this is a case of unconventional use of the punctuation).
  5. If there is no space where the guideline says there should be U+00A0 or U+202F, insert the right kind. (rationale: these spaces are hard to type, and therefore sometimes skipped. English typing habits also lead to people forgetting to type these spaces. And if you really did not want these spaces inserted, you can always do text-spacing: none instead of text-spacing: punctuation).
  6. if there is a space of any kind where the guideline says there should be none, leave it there. (rationale: something where there should be nothing is likely to be deliberate)
@r12a r12a added the i18n-needs-resolution Issue the Internationalization Group has raised and looks for a response on. label Jul 28, 2016
@r12a r12a added i18n-tracker Group bringing to attention of Internationalization, or tracked by i18n but not needing response. and removed i18n-needs-resolution Issue the Internationalization Group has raised and looks for a response on. labels Nov 17, 2016
@da2x
Copy link
da2x commented Jul 2, 2021

This would also be useful for other languages. The pair f? require extra spacing in more languages than just French. Fonts rarely contain kerning pair metrics for this pair.

@frivoal
Copy link
Collaborator Author
frivoal commented Feb 1, 2023

#4246 (comment), if adopted, would cover for this with text-autospace: punctuation insert vs text-autospace: punctuation replace

fantasai added a commit that referenced this issue Feb 21, 2023
* Remove non-useful keyword combinations #4246 #8288
* Split into longhands #4246 #7183 #8288
* Ensure off values for each thing #8288 #6950
* Add insert|replace to allow replacing incorrect space characters #318 #8263 #7183
* Make space-first the initial value #2462
* Allow hanging-punctuation to hang leading ideographic spaces #2462
* Move no-compress to text-justify #7079

See https://lists.w3.org/Archives/Public/www-style/2023Feb/0002.html
@frivoal frivoal added Closed Accepted by CSSWG Resolution Commenter Satisfied Commenter has indicated satisfaction with the resolution / edits. Needs Testcase (WPT) labels Mar 4, 2023
@frivoal frivoal closed this as completed Mar 4, 2023
@frivoal
Copy link
Collaborator Author
frivoal commented Mar 4, 2023

Satisfied by 2966104 and 5fe43af

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Closed Accepted by CSSWG Resolution Commenter Satisfied Commenter has indicated satisfaction with the resolution / edits. css-text-4 i18n-tracker Group bringing to attention of Internationalization, or tracked by i18n but not needing response. Needs Testcase (WPT)
Projects
None yet
Development

No branches or pull requests

3 participants