diff --git a/library/src/text/quotes.rs b/library/src/text/quotes.rs index a8f7aa34..31dbb81f 100644 --- a/library/src/text/quotes.rs +++ b/library/src/text/quotes.rs @@ -130,7 +130,7 @@ impl<'s> Quotes<'s> { /// /// Currently, the supported languages are: English, Czech, Danish, German, /// Swiss / Liechtensteinian German, Estonian, Icelandic, Lithuanian, - /// Latvian, Slovak, Slovenian, Bosnian, Finnish, Swedish, French, + /// Latvian, Slovak, Slovenian, Spanish, Bosnian, Finnish, Swedish, French, /// Hungarian, Polish, Romanian, Japanese, Traditional Chinese, Russian, and /// Norwegian. /// @@ -144,6 +144,7 @@ impl<'s> Quotes<'s> { } "fr" => ("‹\u{00A0}", "\u{00A0}›", "«\u{00A0}", "\u{00A0}»"), "bs" | "fi" | "sv" => ("’", "’", "”", "”"), + "es" if matches!(region, Some("ES") | None) => ("“", "”", "«", "»"), "hu" | "pl" | "ro" => ("’", "’", "„", "”"), "ru" | "no" | "nb" | "nn" | "ua" => ("’", "’", "«", "»"), _ => return Self::default(), diff --git a/tests/ref/text/quotes.png b/tests/ref/text/quotes.png index 20bf6828..14bcc933 100644 Binary files a/tests/ref/text/quotes.png and b/tests/ref/text/quotes.png differ diff --git a/tests/typ/text/quotes.typ b/tests/typ/text/quotes.typ index c63caa74..05812e7c 100644 --- a/tests/typ/text/quotes.typ +++ b/tests/typ/text/quotes.typ @@ -13,6 +13,12 @@ #set text(lang: "de", region: "CH") "Das Pferd frisst keinen Gurkensalat" war der erste jemals am 'Fernsprecher' gesagte Satz. +#set text(lang: "es", region: none) +"El caballo no come ensalada de pepino" fue la primera frase pronunciada por 'teléfono'. + +#set text(lang: "es", region: "MX") +"El caballo no come ensalada de pepino" fue la primera frase pronunciada por 'teléfono'. + #set text(lang: "fr", region: none) "Le cheval ne mange pas de salade de concombres" est la première phrase jamais prononcée au 'téléphone'.