mirror of
https://github.com/jgm/pandoc.git
synced 2026-08-29 01:41:20 +08:00
LaTeX writer: use polytonicgreek instead of polutonikogreek...
with babel. polutonikogreek is outdated. Also recognize both in the LaTeX reader. Closes #9698.
This commit is contained in:
@@ -48,6 +48,7 @@ toIETF "germanb" = "de-DE"
|
||||
toIETF "ngerman" = "de-DE"
|
||||
toIETF "greek" = "el-GR"
|
||||
toIETF "polutonikogreek" = "el-GR"
|
||||
toIETF "polytonicgreek" = "el-GR"
|
||||
toIETF "hebrew" = "he-IL"
|
||||
toIETF "hungarian" = "hu-HU"
|
||||
toIETF "icelandic" = "is-IS"
|
||||
|
||||
@@ -226,6 +226,7 @@ babelLangToBCP47 s =
|
||||
"ngerman" -> Just $ Lang "de" Nothing (Just "DE") [] [] []
|
||||
"lowersorbian" -> Just $ Lang "dsb" Nothing Nothing [] [] []
|
||||
"uppersorbian" -> Just $ Lang "hsb" Nothing Nothing [] [] []
|
||||
"polytonicgreek" -> Just $ Lang "el" Nothing Nothing ["polyton"] [] []
|
||||
"polutonikogreek" -> Just $ Lang "el" Nothing Nothing ["polyton"] [] []
|
||||
"slovene" -> Just $ simpleLang "sl"
|
||||
"australian" -> Just $ Lang "en" Nothing (Just "AU") [] [] []
|
||||
|
||||
@@ -33,7 +33,7 @@ toBabel (Lang "de" _ _ vars _ _)
|
||||
| otherwise = Just "ngerman"
|
||||
toBabel (Lang "dsb" _ _ _ _ _) = Just "lowersorbian"
|
||||
toBabel (Lang "el" _ _ vars _ _)
|
||||
| "polyton" `elem` vars = Just "polutonikogreek"
|
||||
| "polyton" `elem` vars = Just "polytonicgreek"
|
||||
toBabel (Lang "en" _ (Just "AU") _ _ _) = Just "australian"
|
||||
toBabel (Lang "en" _ (Just "CA") _ _ _) = Just "canadian"
|
||||
toBabel (Lang "en" _ (Just "GB") _ _ _) = Just "british"
|
||||
|
||||
Reference in New Issue
Block a user