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
In French from France (and maybe other regions as well), single guillemets are never used. The only used quotes are the guillemets (« and »), double quotation marks (“ and ”), and rarely single quotation marks (‘ and ’). I suggest we change the main (i.e., non-alternative) single smartquotes for French to “ and ”.
There is the question of whether it makes sense to have single smartquotes map to double quotation marks. I'm not sure, but it feels more useful than mapping them to an essentially useless character.
Additionally, I'm not sure whether single guillemets are used in other regions. In Switzerland, single guillemets are used as second-level guillemets. Otherwise, it seems that single guillemets are not used.1
Use Case
Easier access to double quotation marks in French.
One thing is absolutely sure here: you need to change 00A0 => 202F on l.241 there... You want narrow no-break space in "other" French (as well as CA and CH).
As for the change, it's a bit bold but does make a lot of sense. I'm of the opinion that French quote use should be encouraged (because it is the convention) so double quotes should map to that, like it does almost everywhere else (including Word).
As for single quote,
I've never actually seen single French quotes outside of Switzerland so really I don't see that being useful at all (for non-CH): that needs to go.
Single (English or French) quotes are generally frowned upon in FR French at least. And convention says that if you want to differentiate, double English quotes are acceptable.
I think the only complaint that it may raise is people not understanding why single quotes outputs what double quotes already are on their keyboard, to which I would answer with "the point is to differentiate, which it does... plus smart quotes for a document can be changed or disabled, please do so if you are not happy with the default mapping: we only follow conventions so that our defaults are useful to the greatest number".
I noticed the very same thing (I have that book), especially about them saying one thing and using another, leading me to believe it was a "typo". :) I'd always been under the impression that it was the same as before ?!; and that, just like for these, that we see full spaces because typewriters and people don't know better.
Practically, a non-breaking narrow space is a bit easier on the line breaking algorithm and, IMHO, helps a lot with visual association whilst being common practice widely used by editors:
That being said, that's only a default and I'm really not shocked by full spaces actually. I think that either line above is quite lovely (with a preference for some space).
I think that to decide what is the best solution here depends on what behavior we want smart quotes to have:
if we consider their role is to make some common quote characters easier to type on a standard keyboard, then having " map to double guillemets, and ' to double English quotes makes sense. As said above, the only issue with that is that it could be confusing to have single quotes map to double quotes.
if we give some semantics to quotes ("double quote are for top level citations, single quotes delimit nested citations, regardless of the language and the region"), then the proposed change also makes sense as explained in the Wikipedia article linked in the original message. The benefit of this option is that it gives an explanation to why single quotes map to double quotes. However, I would personally have used nested double guillemets to delimit nested citations instead of English quotes (for example: « L’ouvreuse m’a dit : « Donnez-moi votre ticket. » Je le lui ai donné. ») and it seems to me that this convention is more common, so I would argue that is should be the default.
the current implementation only makes sense if we want smart quotes to provide a way to easily type some quote characters that are relevant to the current language and region, but not at the cost of looking too different from the input character, which is a bit contrived in my opinion, so it should definitely be changed.
If it is decided that single smart quotes should always be used for inner smart quotes (second option), this behavior should be documented to not confuse the users too much. We should also check that other languages provide the correct mapping according to their typographic rules. Also, this syntax would be very confusing if some language uses single quotes for outer citations and double quotes for nested ones.
If we map both kind of smart quotes to double guillemets, we should also take into account that the imprimerie nationale apparently recommends to include only one closing double guillemet in case the outer citation ends with the inner citation (in other words, make the guillemet unbalanced), so if we follow their recommendations we should implement custom logic for that. We can also ignore that and have two closing double guillemets, but I think this choice is less common.
TL;DR: I mostly agree with the proposed changes, but I wonder if we maybe the default shouldn't be to have everything map to double guillemets?
FYI CSS (at lease Chrome) uses <q>a <q>b</q> c</q> for English, and <spanlang="fr"><q>a <q>b/q> c</q></span> for French.
FYI CSS (at lease Chrome) uses a b c for English, and a b c for French.
You can inspect the source of the above paragraph.
in zh-CN “‘’” are used in formal writing; but on the Internet sometimes「『』」 are preferred. The iOS keyboard defaulted to the latter rather than the former before iOS 7. We never type ' or ", perhaps it's because with smart quotes, we'd actually need to switch to the English mode to type regular ' and " characters. I’m not sure what is most convenient for French users when typing, and I hope the default settings won’t be overly English- or QWERTY-US-Layout-centric.
However, I would personally have used nested double guillemets to delimit nested citations
That seems to be the traditional proper way. In the Imprimerie Nationale book, they basically say that English double quotes are tolerated when a distinction must be made. But in principle, you can always write "a "b" c" and get that transformed to what you want, keeping the distinction opt-in (i.e. if you really wish to distinguish, you do "a 'b' c").
I feel like making both of them collapse to the same thing (whilst not shocking and definitely proper) would be a bit of a shame since English double quotes are still extensively used in informal FR French (and formal FR, sometimes).
I agree about documentation.
FYI CSS (at lease Chrome)
IDK what it looks like on Chrome but on Firefox, the two levels are identical (double) guillemets (which is valid), but no space.
At any rate, FR French does not widely use single guillemets so that should be replaced. The alternatives are guillemets, single quotes and double quotes. My opinion is that guillemets are already covered, single quotes are not a thing in current FR publications (and actually pose a few problems with pattern matching like in my 'good ol' shoe'), so double quotes are the only obvious choice.
Activity
MDLC01 commentedon Feb 24, 2025
For reference, here are the default smartquotes for Switz French (which this proposal wouldn't change):
typst/crates/typst-library/src/text/smartquote.rs
Lines 233 to 236 in 36d83c8
And for other regions:
typst/crates/typst-library/src/text/smartquote.rs
Lines 240 to 241 in 36d83c8
gdonval commentedon Feb 26, 2025
One thing is absolutely sure here: you need to change
00A0 => 202Fon l.241 there... You want narrow no-break space in "other" French (as well as CA and CH).As for the change, it's a bit bold but does make a lot of sense. I'm of the opinion that French quote use should be encouraged (because it is the convention) so double quotes should map to that, like it does almost everywhere else (including Word).
As for single quote,
I think the only complaint that it may raise is people not understanding why single quotes outputs what double quotes already are on their keyboard, to which I would answer with "the point is to differentiate, which it does... plus smart quotes for a document can be changed or disabled, please do so if you are not happy with the default mapping: we only follow conventions so that our defaults are useful to the greatest number".
sijow commentedon Feb 28, 2025
Linking (rather brief) relevant discussion: #4992
gdonval commentedon Feb 28, 2025
I noticed the very same thing (I have that book), especially about them saying one thing and using another, leading me to believe it was a "typo". :) I'd always been under the impression that it was the same as before
?!;and that, just like for these, that we see full spaces because typewriters and people don't know better.Practically, a non-breaking narrow space is a bit easier on the line breaking algorithm and, IMHO, helps a lot with visual association whilst being common practice widely used by editors:
That being said, that's only a default and I'm really not shocked by full spaces actually. I think that either line above is quite lovely (with a preference for some space).
elegaanz commentedon Mar 4, 2025
My two cents on this issue:
I think that to decide what is the best solution here depends on what behavior we want smart quotes to have:
"map to double guillemets, and'to double English quotes makes sense. As said above, the only issue with that is that it could be confusing to have single quotes map to double quotes.If it is decided that single smart quotes should always be used for inner smart quotes (second option), this behavior should be documented to not confuse the users too much. We should also check that other languages provide the correct mapping according to their typographic rules. Also, this syntax would be very confusing if some language uses single quotes for outer citations and double quotes for nested ones.
If we map both kind of smart quotes to double guillemets, we should also take into account that the imprimerie nationale apparently recommends to include only one closing double guillemet in case the outer citation ends with the inner citation (in other words, make the guillemet unbalanced), so if we follow their recommendations we should implement custom logic for that. We can also ignore that and have two closing double guillemets, but I think this choice is less common.
TL;DR: I mostly agree with the proposed changes, but I wonder if we maybe the default shouldn't be to have everything map to double guillemets?
MDLC01 commentedon Mar 4, 2025
Related: #1194.
OverflowCat commentedon Mar 5, 2025
FYI CSS (at lease Chrome) uses for English, and for French.
You can inspect the source of the above paragraph.
in zh-CN “‘’” are used in formal writing; but on the Internet sometimes「『』」 are preferred. The iOS keyboard defaulted to the latter rather than the former before iOS 7. We never type ' or ", perhaps it's because with smart quotes, we'd actually need to switch to the English mode to type regular ' and " characters. I’m not sure what is most convenient for French users when typing, and I hope the default settings won’t be overly English- or QWERTY-US-Layout-centric.
gdonval commentedon Mar 14, 2025
That seems to be the traditional proper way. In the Imprimerie Nationale book, they basically say that English double quotes are tolerated when a distinction must be made. But in principle, you can always write
"a "b" c"and get that transformed to what you want, keeping the distinction opt-in (i.e. if you really wish to distinguish, you do"a 'b' c").I feel like making both of them collapse to the same thing (whilst not shocking and definitely proper) would be a bit of a shame since English double quotes are still extensively used in informal FR French (and formal FR, sometimes).
I agree about documentation.
IDK what it looks like on Chrome but on Firefox, the two levels are identical (double) guillemets (which is valid), but no space.
At any rate, FR French does not widely use single guillemets so that should be replaced. The alternatives are guillemets, single quotes and double quotes. My opinion is that guillemets are already covered, single quotes are not a thing in current FR publications (and actually pose a few problems with pattern matching like in
my 'good ol' shoe'), so double quotes are the only obvious choice.