Skip to content

Fix smartquotes for Swiss French - #4992

Merged
laurmaedje merged 1 commit into
typst:mainfrom
sijow:fix-swiss-french-quotes
Sep 26, 2024
Merged

laurmaedje merged 1 commit into
typst:mainfrom
sijow:fix-swiss-french-quotes

Conversation

@sijow

@sijow sijow commented Sep 20, 2024

Copy link
Copy Markdown
Contributor

Swiss French uses thin spaces between quote characters and inner text.

@laurmaedje
laurmaedje added this pull request to the merge queue Sep 26, 2024
@laurmaedje

Copy link
Copy Markdown
Member

Thanks!

Merged via the queue into typst:main with commit 4827f28 Sep 26, 2024
@sijow
sijow deleted the fix-swiss-french-quotes branch September 26, 2024 12:13
@Raphael-CV

Copy link
Copy Markdown
Contributor

In fact, the narrow non-breaking space (\u{202f}) is also commonly used between quotation marks in France.
It seems to me that this is babel-french's default way of doing things.

For the moment, I write at the beginning of each of my documents

set smartquote(quotes: ("«\u{202f}", "\u{202f}»"))

@sijow

sijow commented Oct 1, 2024 •

Copy link
Copy Markdown
Contributor Author

I hesitated changing regular French to use narrow spaces too. But after some research I concluded there was no consensus on the preferred usage, so I played it safe and made the change only for Swiss French (I thought I'd leave it to the typst users from France to argue about what they prefer :-) )

For example the Wikipedia page you linked says in one place that "En français de France, les guillemets sont comptés comme des ponctuations hautes, et en tant que telles appellent l’usage d’espaces fines insécables". But in another place they say "En français, on sépare les guillemets typographiques ou français (« ») de l’expression qu’ils mettent en exergue par une espace insécable. En typographie suisse, on utilise une espace fine insécable [...]".

I also like the footnote on that page that mentions that the "Lexique des règles typographiques en usage à l’Imprimerie nationale" tells readers to use a regular space while the book itself uses a thin space...

As for babel, I think they delegate this question to csquotes? From my test that gives default spacing for French that look almost as wide as normal (wider than a thin space).

Dikluwe pushed a commit to Dikluwe/typst-crystalline that referenced this pull request Sep 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants