You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
lang: "fr" doesn't manage spaces before punctuation marks #4674
French "best practice" of typography requires "tall" punctuation marks (namely ! ? ; and : ) to be preceded by a fine unbreakable space (u202F) instead of a normal one (u0020) (or nothing at all).
Currently, these two examples output the exact same results
This sentence has spaces ; and a semicolon.
This one has an exclamation mark without typing a space before!
It wouldn't look correct in french.
and
#set text(lang: "fr")
This sentence has spaces ; and a semicolon.
This one has an exclamation mark without typing a space before!
It wouldn't look correct in french.
It would be nice if, when having lang set to "fr", such spaces (or lack thereof) are transparently replaced by the "correct" one, e.g. the above code (with lang set to "fr") would output the bottom lines
Use Case
It would be very convenient for french users, having the punctuation mark that looks "correct" without having to input Unicode character via code-point. Modern editing/typesetting software generally handle that automatically.
Issue #4672 prevents a simple use of #show and regexp to fix this easily.
Activity
Enivex commentedon Aug 4, 2024
Duplicate of #1920
(More or less)
Thumuss commentedon Aug 4, 2024
It's really not the same because one is unbreakable quote and the other is just an automatic space
Enivex commentedon Aug 4, 2024
See the comment on that issue as well. I don't see a reason to have two separate issues here.
Thumuss commentedon Aug 4, 2024
My bad, I get it!