diff options
| author | Andrew Voynov <37143421+Andrew15-5@users.noreply.github.com> | 2025-06-03 17:42:22 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-03 14:42:22 +0000 |
| commit | f7f163a8faff533b1646197a4260c98d1f30a0be (patch) | |
| tree | dd19c6b2f0df66db3b5860a967de49cd670f3c0b /crates | |
| parent | dd95f7d59474800a83a4d397dd13e34de35d56be (diff) | |
Change Russian secondary smart quotes & remove alternatives (#6331)
Diffstat (limited to 'crates')
| -rw-r--r-- | crates/typst-library/src/text/smartquote.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/crates/typst-library/src/text/smartquote.rs b/crates/typst-library/src/text/smartquote.rs index 4dda689d..270d8f0f 100644 --- a/crates/typst-library/src/text/smartquote.rs +++ b/crates/typst-library/src/text/smartquote.rs @@ -237,7 +237,7 @@ impl<'s> SmartQuotes<'s> { "cs" | "da" | "de" | "sk" | "sl" if alternative => ("›", "‹", "»", "«"), "cs" | "de" | "et" | "is" | "lt" | "lv" | "sk" | "sl" => low_high, "da" => ("‘", "’", "“", "”"), - "fr" | "ru" if alternative => default, + "fr" if alternative => default, "fr" => ("“", "”", "«\u{202F}", "\u{202F}»"), "fi" | "sv" if alternative => ("’", "’", "»", "»"), "bs" | "fi" | "sv" => ("’", "’", "”", "”"), @@ -247,7 +247,8 @@ impl<'s> SmartQuotes<'s> { "es" if matches!(region, Some("ES") | None) => ("“", "”", "«", "»"), "hu" | "pl" | "ro" => ("’", "’", "„", "”"), "no" | "nb" | "nn" if alternative => low_high, - "ru" | "no" | "nb" | "nn" | "uk" => ("’", "’", "«", "»"), + "no" | "nb" | "nn" | "uk" => ("’", "’", "«", "»"), + "ru" => ("„", "“", "«", "»"), "el" => ("‘", "’", "«", "»"), "he" => ("’", "’", "”", "”"), "hr" => ("‘", "’", "„", "”"), |
