Open jspitz opened 2 months ago
A fix for this would be to use polyglossia's own hyphenation exception macro which takes care for aliases:
diff --git a/tex/latex/biblatex/biblatex.sty b/tex/latex/biblatex/biblatex.sty
index 6495db6b..1e37447d 100644
--- a/tex/latex/biblatex/biblatex.sty
+++ b/tex/latex/biblatex/biblatex.sty
@@ -562,6 +562,9 @@
{\ifundef\xpg@ifdefined
{}
{\def\blx@ifhyphenationundef#1#2#3{\xpg@ifdefined{#1}{#3}{#2}}}%
+ \ifundef\pghyphenation
+ {}
+ {\def\blx@hyphexcept#1#2{\pghyphenation{#1}{#2}}}%
% This is required for languages which are never explicitly selected
% \xpg@bloaded is not defined in polyglossia < v1.45
\ifundef\xpg@bloaded
Also, duplicate \DeclareHyphenationExceptions
in language variant *.ldf
files can go if the files they inherit have the same exceptions (such as in the austrian
case). The exceptions are already set from the inherited files.
I could take care about that once #1392 is resolved and I can make new PRs.
From https://github.com/reutenauer/polyglossia/issues/663:
I have a issue with a document, using the austrian language. Here is a minimal example file:
The run of lualatex gives the following warnings:
The same file without austrian variant
\setdefaultlanguage{german}
gives no warnings. Versions are LuaHBTeX 1.18.0, polyglossia 2024/03/07 v2.1, biblatex 2023/03/05 v 3.19AFAICS this is due
\DeclareHyphenationExceptions
. Interestingly, replacing them with\DefineHyphenationExceptions{ngerman}
does not seem to fix it.(These exceptions themselves are disputable in the lbx files; but I think these go back to plehmann)