diff options
author | John MacFarlane <jgm@berkeley.edu> | 2016-05-31 11:15:21 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2016-05-31 11:15:21 -0700 |
commit | 561afac0bc004e324358782c30a18eae0cd3cc4c (patch) | |
tree | 2327ac7fb21a6060bf74a56f9b362c36af3a0753 | |
parent | f54873d5ea757787ec816336c61c24a813799554 (diff) | |
download | pandoc-561afac0bc004e324358782c30a18eae0cd3cc4c.tar.gz |
brazilian -> brazil for polyglossia.
Closes #2953.
-rw-r--r-- | src/Text/Pandoc/Writers/LaTeX.hs | 4 |
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 |