summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--crates/typst-library/src/text/smartquote.rs5
-rw-r--r--tests/ref/smartquote-ru.pngbin1877 -> 1886 bytes
2 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" => ("‘", "’", "„", "”"),
diff --git a/tests/ref/smartquote-ru.png b/tests/ref/smartquote-ru.png
index 05c79263..867121d1 100644
--- a/tests/ref/smartquote-ru.png
+++ b/tests/ref/smartquote-ru.png
Binary files differ