summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBorna Punda <borna@bornapunda.com>2024-12-08 17:29:24 +0100
committerGitHub <noreply@github.com>2024-12-08 16:29:24 +0000
commitfbcd624eebf9763d5cedbbc433e8b5ffee8402d8 (patch)
tree969f1f8d1fb5a76c2391b56ff1083b77eb603245
parenta1a521523451c693218274d2f88466a07bfff9ea (diff)
Add support for Croatian quotes (#5539)
-rw-r--r--crates/typst-library/src/text/smartquote.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/crates/typst-library/src/text/smartquote.rs b/crates/typst-library/src/text/smartquote.rs
index 925e86d6..2f89fe29 100644
--- a/crates/typst-library/src/text/smartquote.rs
+++ b/crates/typst-library/src/text/smartquote.rs
@@ -211,7 +211,7 @@ impl<'s> SmartQuotes<'s> {
/// Swiss / Liechtensteinian German, Estonian, Icelandic, Italian, Latin,
/// Lithuanian, Latvian, Slovak, Slovenian, Spanish, Bosnian, Finnish,
/// Swedish, French, Swiss French, Hungarian, Polish, Romanian, Japanese,
- /// Traditional Chinese, Russian, Norwegian, and Hebrew.
+ /// Traditional Chinese, Russian, Norwegian, Hebrew and Croatian.
///
/// For unknown languages, the English quotes are used as fallback.
pub fn get(
@@ -250,6 +250,7 @@ impl<'s> SmartQuotes<'s> {
"ru" | "no" | "nb" | "nn" | "uk" => ("’", "’", "«", "»"),
"el" => ("‘", "’", "«", "»"),
"he" => ("’", "’", "”", "”"),
+ "hr" => ("‘", "’", "„", "”"),
_ if lang.dir() == Dir::RTL => ("’", "‘", "”", "“"),
_ => default,
};