I want better french typography support #336
Replies: 2 comments
-
This seems to me like a fair request. <!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="utf8">
</head>
<body>
<q>this is a quote</q>
</body>
</html> I don't know what authoring mechanism could be put in place for this, but something similar to generate correct sentence endings seems useful. |
Beta Was this translation helpful? Give feedback.
-
Hi, As a matter of fact, what is requested might be the expected behavior for any lang using Unicode. The UAX14 spec states that the exclamation and question marks are defied as EX class, which specifically prohibit breaking before these characters.
Additionally, the white-space character is defined as BA class (break-after), which prohibits breaking before the space. |
Beta Was this translation helpful? Give feedback.
-
Browsers localize automatically quotation marks if a
lang
attribute is provided which is great, but we can do much more to enhance and simplify experience of developers but also authors on the web.In French, exclamation and question mark both require a non-breaking space before them, on the contrary of English. Often, people on the web use normal space which create orphan sign at the end of a new line.
Currently, developers aware of this problem solve it by:
Some links to illustrate the issue:
HTML authoring in French
Whitespace before some punctuation characters in French: is there a CSS way to avoid lines breaking? - Stack Overflow
Space Yourself
https://webwewant.fyi/wants/5ffb01b21e3e3f6db4eb6404/
Beta Was this translation helpful? Give feedback.
All reactions