-
Notifications
You must be signed in to change notification settings - Fork 118
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
Biblatex fails to detect languages loaded with \babelprovide
#1362
Comments
Oh, this is going to be a bigger project. I haven't yet looked at \listfiles
\documentclass{article}
\usepackage{babel}
\babelprovide[import=fr, main]{french}
\babelprovide[import=nl]{english}
\usepackage{csquotes}
\usepackage{biblatex}
\addbibresource{biblatex-examples.bib}
\begin{document}
Donec varius orci eget risus.\cite{bertram} \today
\begin{otherlanguage}{english}
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. \today
\end{otherlanguage}
\today
\printbibliography
\end{document} |
We discussed and agreed with the maintainer of the language package to provide data about the languages in bcp format. latex3/latex2e#1035. The support is not fully complete (e.g. babel currently errors on the
gives If you miss something (e.g. a list of loaded languages) I would suggest to discuss that with the package maintainers so that they provide that in a uniform way. |
Thanks, that looks like a good start. I think our problem though is that at the moment we build everything upon
But maybe we should be moving away from |
Why not to use the basic syntax, namely, \documentclass[english,french]{report}
\usepackage{babel} (Or, if you want It's a real question, to know if I can improve something. |
But it is Babel that is allowing users to deviate from standard naming, no?
If Babel allowed only the use you describe above, the problem would be
mute, no?
…On Fri, Jun 14, 2024 at 8:41 AM Javier Bezos ***@***.***> wrote:
Why not to use the basic syntax, namely,
\documentclass[english,french]{report}\usepackage{babel}
That way, languages can be detected by other packages.
—
Reply to this email directly, view it on GitHub
<#1362 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAR7WYX7RALFXJ4A7GK74U3ZHMFLFAVCNFSM6AAAAABJA6FLRCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNRYGI4TKNZUHA>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
|
biblatex can not control what user do, and user use all syntax variants as they are examples of all of them everywhere (some of them e.g. using ini-files as intended to avoid problems with old ldf like the ones for arabic or hebrew). So from the biblatex view they need reliable interface to detect the main and the current language for all these variants. And they need reliable interfaces to detect how to select a language, e.g. if the bib-file contains |
I would go beyond what Ulrike said and add that detection of languages is
extremely important even on settings where running a TeX command is not
possible -- like for example -- a speller, where most parsing is done in
Perl, and it has to separate the pieces of each language on separate files.
Parsing such code with Perl to obtain the language of a string is awful and
unreliable.
…On Sat, Jun 15, 2024, 9:03 AM Ulrike Fischer ***@***.***> wrote:
@jbezos <https://github.com/jbezos>
Why not to use the basic syntax, namely,
biblatex can not control what user do, and user use all syntax variants as
they are examples of all of them everywhere (some of them e.g. using
ini-files as intended to avoid problems with old ldf like the ones for
arabic or hebrew).
So from the biblatex view they need reliable interface to detect the main
and the current language for all these variants. And they need reliable
interfaces to detect how to select a language, e.g. if the bib-file
contains langid=french biblatex must know what do even if the user does
something like \babelprovide[import=fr, main]{quack}
—
Reply to this email directly, view it on GitHub
<#1362 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAR7WYWEPTUNXLI76VHQSP3ZHRQWFAVCNFSM6AAAAABJA6FLRCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNZQGA3TKOJTGY>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Judging by questions on SE, I do not think this is how users are treating this facility. And the manual is not clear enough on this point that I've felt confident telling somebody to prefer the old interface, even though I was well aware of that description. If you mean, 'do not use unless ...', it would be better to say so, imho. (Still people will use it, of course. Whatever you do, people will still do that.) |
As suggested by @u-fischer on stackexchange, I'm opening this issue to report a problem with
biblatex
failing to detect languages loaded using\babelprovide
from thebabel
package.Description
I'm experiencing a persistent warning
Please rerun LaTeX
when usingbiblatex
in a multilingual document withbabel
(check this.log
file). The warning only appears when I use a macro or environment that requires switching to a non-main language, specifically when using theotherlanguage
environment with a non-main language as an option.Here's a minimal example that reproduces the warning:
The text was updated successfully, but these errors were encountered: