Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LaTeX writer sets wrong/outdated locale name for polytonic Greek #9698

Closed
ParkerRobb opened this issue Apr 26, 2024 · 2 comments
Closed

LaTeX writer sets wrong/outdated locale name for polytonic Greek #9698

ParkerRobb opened this issue Apr 26, 2024 · 2 comments
Labels

Comments

@ParkerRobb
Copy link

Explain the problem.

When specifying lang: el-polyton in a Markdown document, either in the metadata or in a div or span in the body, the LaTeX writer converts el-polyton to polutonikogreek. This is done by this line in Lang.hs:

| "polyton" `elem` vars = Just "polutonikogreek"

Combined with the default.latex template, Pandoc produces this line in the LaTeX output:

\babelprovide[main,import]{polutonikogreek}

babel no longer recognizes polutonikogreek as a locale, so PDF compilation fails:

Screenshot 2024-04-22 at 20 55 46

According to the babel documentation (p21), babel's locale name for el-polyton is now polytonicgreek. Manually replacing every instance of polutonikogreek with polytonicgreek in the LaTeX file fixes the problem and allows for successful PDF compilation.

Pandoc version?

This is reproducible in the online Pandoc sandbox by entering the following as a Markdown document, and converting to LaTeX using pandoc --from markdown --to latex --standalone --wrap=none --no-highlight:

---
lang: el-polyton
---

I discovered this on my desktop using Pandoc 3.1.12.2.

@ParkerRobb ParkerRobb added the bug label Apr 26, 2024
@ParkerRobb
Copy link
Author

Changing this was discussed here in the context of #2727 .

@jgm
Copy link
Owner

jgm commented Apr 26, 2024

I'll change to polytonicgreek.

@adunning looping you in, in case you have further thoughts.

@jgm jgm closed this as completed in a3697f9 Apr 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants