mirror of
https://github.com/typst/typst
synced 2025-05-14 04:56:26 +08:00
Improve french smartquotes (#5976)
This commit is contained in:
parent
e60d3021a7
commit
1082181a6f
@ -238,7 +238,7 @@ impl<'s> SmartQuotes<'s> {
|
||||
"cs" | "de" | "et" | "is" | "lt" | "lv" | "sk" | "sl" => low_high,
|
||||
"da" => ("‘", "’", "“", "”"),
|
||||
"fr" | "ru" if alternative => default,
|
||||
"fr" => ("‹\u{00A0}", "\u{00A0}›", "«\u{00A0}", "\u{00A0}»"),
|
||||
"fr" => ("“", "”", "«\u{202F}", "\u{202F}»"),
|
||||
"fi" | "sv" if alternative => ("’", "’", "»", "»"),
|
||||
"bs" | "fi" | "sv" => ("’", "’", "”", "”"),
|
||||
"it" if alternative => default,
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 2.7 KiB |
Binary file not shown.
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.3 KiB |
Binary file not shown.
Before Width: | Height: | Size: 573 B After Width: | Height: | Size: 568 B |
@ -99,7 +99,7 @@ He's told some books contain questionable "example text".
|
||||
|
||||
--- smartquote-disabled-temporarily ---
|
||||
// Test changing properties within text.
|
||||
"She suddenly started speaking french: #text(lang: "fr")['Je suis une banane.']" Roman told me.
|
||||
"She suddenly started speaking french: #text(lang: "fr", region: "CH")['Je suis une banane.']" Roman told me.
|
||||
|
||||
Some people's thought on this would be #[#set smartquote(enabled: false); "strange."]
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user