summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--crates/typst-library/src/text/smartquote.rs3
-rw-r--r--tests/ref/smartquote-uk.pngbin0 -> 1971 bytes
-rw-r--r--tests/suite/text/smartquote.typ4
3 files changed, 6 insertions, 1 deletions
diff --git a/crates/typst-library/src/text/smartquote.rs b/crates/typst-library/src/text/smartquote.rs
index 270d8f0f..09cefd01 100644
--- a/crates/typst-library/src/text/smartquote.rs
+++ b/crates/typst-library/src/text/smartquote.rs
@@ -247,8 +247,9 @@ impl<'s> SmartQuotes<'s> {
"es" if matches!(region, Some("ES") | None) => ("“", "”", "«", "»"),
"hu" | "pl" | "ro" => ("’", "’", "„", "”"),
"no" | "nb" | "nn" if alternative => low_high,
- "no" | "nb" | "nn" | "uk" => ("’", "’", "«", "»"),
+ "no" | "nb" | "nn" => ("’", "’", "«", "»"),
"ru" => ("„", "“", "«", "»"),
+ "uk" => ("“", "”", "«", "»"),
"el" => ("‘", "’", "«", "»"),
"he" => ("’", "’", "”", "”"),
"hr" => ("‘", "’", "„", "”"),
diff --git a/tests/ref/smartquote-uk.png b/tests/ref/smartquote-uk.png
new file mode 100644
index 00000000..7ac1c032
--- /dev/null
+++ b/tests/ref/smartquote-uk.png
Binary files differ
diff --git a/tests/suite/text/smartquote.typ b/tests/suite/text/smartquote.typ
index f2af93ce..6eab3507 100644
--- a/tests/suite/text/smartquote.typ
+++ b/tests/suite/text/smartquote.typ
@@ -46,6 +46,10 @@
#set text(lang: "ru")
"Лошадь не ест салат из огурцов" - это была первая фраза, сказанная по 'телефону'.
+--- smartquote-uk ---
+#set text(lang: "uk")
+"Кінь не їсть огірковий салат" — перше речення, коли-небудь вимовлене по 'телефону'.
+
--- smartquote-it ---
#set text(lang: "it")
"Il cavallo non mangia insalata di cetrioli" è stata la prima frase pronunciata al 'telefono'.