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

Babel use is non-idiomatic, breaking hebrew, greek #7604

Closed
4 tasks
hseg opened this issue Oct 3, 2021 · 0 comments · Fixed by #7605
Closed
4 tasks

Babel use is non-idiomatic, breaking hebrew, greek #7604

hseg opened this issue Oct 3, 2021 · 0 comments · Fixed by #7605
Labels

Comments

@hseg
Copy link
Contributor

hseg commented Oct 3, 2021

Explain the problem.
#7562's move to babel has forced me to confront its use in the default template
Several issues arise in using babel over polyglossia

  • Language loading from babel has some problems that I haven't been able to fully trace. Suffice to say that the wiki advice to pass provide=* does not work well enough to just dump the entire used-language list in it. What works consistently for me is to use \babelprovide[langopts]{lang}. Note that some of these (especially arabic, hebrew) might want to pass per-language options, cf end of the linked page and 1.23 in manual)
  • lang: he-IL doesn't work under lualatex, complaining of Right-to-Left Support Error: use TeX--XeT or e-TeX engine.. If the global language setting (in documentclass) is removed, (and main passed to the main language's \babelprovide), this is no longer a problem.
  • RTL languages need babel to be passed a bidi parameter, set to default under xelatex and basic under lualatex. pdflatex isn't supported by babel here. Note this also means the bidi package doesn't need to be invoked explicitly.
  • Per-language fonts aren't supported. Worse, the header-includes expansion in the default template occurs before babel is imported, so a simple \babelfont invocation cannot be added in header-includes. However, if a single font covers all uses, this can be mitigated by just setting mainfont.

Pandoc version?
Self-built 6742e77 (2.14.2)

@hseg hseg added the bug label Oct 3, 2021
hseg added a commit to hseg/pandoc that referenced this issue Oct 3, 2021
* Use `babel`'s bidi implementation
* Remove global `lang` option -- it broke eg hebrew
* Import babel languages individually instead of as package options --
  was broken for greek, hebrew
* Move `header-includes` to after `babel` setup

Closes jgm#7604
@jgm jgm closed this as completed in #7605 Oct 4, 2021
jgm pushed a commit that referenced this issue Oct 4, 2021
* Use `babel`'s bidi implementation
* Remove global `lang` option -- it broke eg hebrew
* Import babel languages individually instead of as package options --
  was broken for greek, hebrew
* Move `header-includes` to after `babel` setup

Closes #7604
jgm added a commit that referenced this issue Oct 17, 2021
This fixes a regression in #7604, which modernized
babel usage but omitted to load babel for pdflatex,
with the result that even simple documents could no
longer be produced.

Closes #7627.
lcreteig added a commit to lcreteig/amsterdown that referenced this issue Feb 16, 2024
lcreteig added a commit to lcreteig/amsterdown that referenced this issue Feb 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant