aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2016-05-31 11:15:21 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2016-05-31 11:15:21 -0700
commit561afac0bc004e324358782c30a18eae0cd3cc4c (patch)
tree2327ac7fb21a6060bf74a56f9b362c36af3a0753
parentf54873d5ea757787ec816336c61c24a813799554 (diff)
downloadpandoc-561afac0bc004e324358782c30a18eae0cd3cc4c.tar.gz
brazilian -> brazil for polyglossia.
Closes #2953.
-rw-r--r--src/Text/Pandoc/Writers/LaTeX.hs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Writers/LaTeX.hs b/src/Text/Pandoc/Writers/LaTeX.hs
index be9fd7ad7..888c866a6 100644
--- a/src/Text/Pandoc/Writers/LaTeX.hs
+++ b/src/Text/Pandoc/Writers/LaTeX.hs
@@ -1197,7 +1197,9 @@ toBabel x = commonFromBcp47 x
-- https://tools.ietf.org/html/bcp47#section-2.1
commonFromBcp47 :: [String] -> String
commonFromBcp47 [] = ""
-commonFromBcp47 ("pt":"BR":_) = "brazilian"
+commonFromBcp47 ("pt":"BR":_) = "brazil"
+-- Note: documentation says "brazilian" works too, but it doesn't seem to work
+-- on some systems. See #2953.
commonFromBcp47 ("sr":"Cyrl":_) = "serbianc"
commonFromBcp47 ("zh":"Latn":"pinyin":_) = "pinyin"
commonFromBcp47 x = fromIso $ head x