diff options
| author | Nazar Serhiichuk <43041209+G1gg1L3s@users.noreply.github.com> | 2025-06-04 11:13:39 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-04 08:13:39 +0000 |
| commit | 4a8367e90add92a0a316bcc258e39d522b484c25 (patch) | |
| tree | 20956477870643b3e9a3c1677b44f7eb7532f212 | |
| parent | f7f163a8faff533b1646197a4260c98d1f30a0be (diff) | |
Fix Ukrainian secondary smart quotes (#6372)
| -rw-r--r-- | crates/typst-library/src/text/smartquote.rs | 3 | ||||
| -rw-r--r-- | tests/ref/smartquote-uk.png | bin | 0 -> 1971 bytes | |||
| -rw-r--r-- | tests/suite/text/smartquote.typ | 4 |
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 Binary files differnew file mode 100644 index 00000000..7ac1c032 --- /dev/null +++ b/tests/ref/smartquote-uk.png 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'. |
