texlive-langgerman: "Package babel Warning: No hyphenation patterns were preloaded"
Description:
German hyphenation (new orthography) doesn't work even though texlive-langgerman is installed.
Additional info:
- package version(s): texlive 2024.0-2
It's unclear if this is related to the recent update. I ran into this bug today, but I don't think I've ever tried to use German hyphenation earlier. So the timing may just be a coincidence, and this may as well be a problem in earlier versions.
Steps to reproduce:
- Install
texlive-langgerman
- Compile a document with
\usepackage[ngerman]{babel}
- See this warning message in the log:
Package babel Warning: No hyphenation patterns were preloaded for
(babel) the language 'German (new orthography)' into the format.
(babel) Please, configure your TeX system to add them and
(babel) rebuild the format. Now I will use the patterns
(babel) preloaded for \language=0 instead on input line 48.
There's this possibly useful link, but it's mostly concerned with MiKTeX: https://tex.stackexchange.com/questions/365804/how-to-fix-the-warning-no-hyphenation-patterns-were-preloaded-for-babel-the-l
There's also this, which suggests installing the hyphen-german
TeXLive package: https://github.com/zauguin/install-texlive/issues/13
However, it seems to be installed:
> tlmgr info hyphen-german
package: hyphen-german
category: TLCore
shortdesc: German hyphenation patterns.
longdesc: Hyphenation patterns for German in T1/EC and UTF-8 encodings, for traditional and reformed spelling, including Swiss German. The package includes the latest patterns from dehyph-exptl (known to TeX under names 'german', 'ngerman' and 'swissgerman'), however 8-bit engines still load old versions of patterns for 'german' and 'ngerman' for backward-compatibility reasons. Swiss German patterns are suitable for Swiss Standard German (Hochdeutsch) not the Alemannic dialects spoken in Switzerland (Schwyzerduetsch). There are no known patterns for written Schwyzerduetsch.
installed: Yes
revision: 59807
sizes: run: 2133k
relocatable: No
collection: collection-langgerman
My understanding is that tlmgr generate language
may help, but this yields the following error:
> tlmgr generate language
Cannot open /var/lib/texmf/tex/generic/config/language.dat.lua for writing: No such file or directory at /usr/share/perl5/vendor_perl/TeXLive/TLUtils.pm line 3661.