Skip to content

I want better french typography support #259

Closed
@aarongustafson

Description

@aarongustafson

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:

  • Replacing space characters before ! and ! in text with   or \xa0
  • Using white-space: nowrap; CSS property and adding an HTML element encompassing the last word and the sign ! or ? of a sentence
  • Use no space

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/

Metadata

Metadata

Assignees

Labels

wantIncoming requests from the community

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions