mirror of
https://github.com/typst/typst
synced 2025-05-14 04:56:26 +08:00
Add support for Croatian quotes (#5539)
This commit is contained in:
parent
a1a5215234
commit
fbcd624eeb
@ -211,7 +211,7 @@ impl<'s> SmartQuotes<'s> {
|
|||||||
/// Swiss / Liechtensteinian German, Estonian, Icelandic, Italian, Latin,
|
/// Swiss / Liechtensteinian German, Estonian, Icelandic, Italian, Latin,
|
||||||
/// Lithuanian, Latvian, Slovak, Slovenian, Spanish, Bosnian, Finnish,
|
/// Lithuanian, Latvian, Slovak, Slovenian, Spanish, Bosnian, Finnish,
|
||||||
/// Swedish, French, Swiss French, Hungarian, Polish, Romanian, Japanese,
|
/// 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.
|
/// For unknown languages, the English quotes are used as fallback.
|
||||||
pub fn get(
|
pub fn get(
|
||||||
@ -250,6 +250,7 @@ impl<'s> SmartQuotes<'s> {
|
|||||||
"ru" | "no" | "nb" | "nn" | "uk" => ("’", "’", "«", "»"),
|
"ru" | "no" | "nb" | "nn" | "uk" => ("’", "’", "«", "»"),
|
||||||
"el" => ("‘", "’", "«", "»"),
|
"el" => ("‘", "’", "«", "»"),
|
||||||
"he" => ("’", "’", "”", "”"),
|
"he" => ("’", "’", "”", "”"),
|
||||||
|
"hr" => ("‘", "’", "„", "”"),
|
||||||
_ if lang.dir() == Dir::RTL => ("’", "‘", "”", "“"),
|
_ if lang.dir() == Dir::RTL => ("’", "‘", "”", "“"),
|
||||||
_ => default,
|
_ => default,
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user