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

Polyglossia, autolang and language #698

Closed
maieul opened this issue Jan 28, 2018 · 7 comments
Closed

Polyglossia, autolang and language #698

maieul opened this issue Jan 28, 2018 · 7 comments
Labels
invalid localisation concerns lbx files or localisation in general

Comments

@maieul
Copy link
Contributor

maieul commented Jan 28, 2018

Consider this MWE

\documentclass{article}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@book{toto,
  title={toto}
}
\end{filecontents}
\usepackage{polyglossia}
\setmainlanguage{french}
\usepackage[autolang=hyphen,language=french]{biblatex}
\addbibresource{\jobname.bib}
\begin{document}
\cite{toto}
\end{document}

With biblatex 3.9, at the run after the biber run, we get undefined command erro.

If we dont ONE of this following thins

  • switch to babel
  • suppresse language option
  • suppression autolang option

We don't get the problem anymore.

@moewew
Copy link
Collaborator

moewew commented Jan 28, 2018

Not our fault (well partly my fault, but this has nothing to do with biblatex).

\documentclass{article}
\usepackage{polyglossia}
\setmainlanguage{french}
\begin{document}
\begin{hyphenrules}{french}toto\end{hypnerules}
\end{document}

reproduces the same problem.

See https://tex.stackexchange.com/q/400986/35864.

This error came about because of https://tex.stackexchange.com/a/396614/35864 and latex3/latex2e@8b0b10b. hyphenrules now uses certain private macros instead of kernel commands. Apparently polyglossia doesn't like that.

You could try to complain to the polyglossia people (https://github.com/reutenauer/polyglossia/issues), but I'm not sure how quickly things will be fixed then. Or to the babel people: https://github.com/latex3/latex2e/issues

@maieul
Copy link
Contributor Author

maieul commented Jan 28, 2018 via email

@moewew
Copy link
Collaborator

moewew commented Jan 28, 2018

Yes I know this is an annoyance for some polyglossia users.

Since babel's hyphenrules definitions are taken from the format directly by polyglossia you could raise this with Javier https://github.com/latex3/latex2e/issues. Ulrike told me she thinks that hyphenrules should not use internal commands.

@maieul
Copy link
Contributor Author

maieul commented Jan 28, 2018 via email

@moewew
Copy link
Collaborator

moewew commented Jan 28, 2018

OK. Since this is not a biblatex problem, I'm closing this here.

@moewew moewew closed this as completed Jan 28, 2018
@moewew moewew added invalid localisation concerns lbx files or localisation in general labels Jan 28, 2018
@moewew
Copy link
Collaborator

moewew commented Feb 2, 2018

I complained to the babel developer, but I'm not sure if the report will be considered valid.

@moewew
Copy link
Collaborator

moewew commented Feb 16, 2018

babel 3.18 fixes this problem. polyglossia can again use hyphenrules. See latex3/latex2e#17

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid localisation concerns lbx files or localisation in general
Projects
None yet
Development

No branches or pull requests

2 participants