Now that CTAN no longer contains the translation files (following a recent thread on this list, <https://lists.gnu.org/archive/html/bug-texinfo/2025-06/msg00061.html>), the texinfo bundle from CTAN is no longer sufficient to process the following minimal Texinfo document

    \input texinfo
    @settitle Test of document language
    @documentlanguage en
    foo
    @bye

texi2pdf will fail from trying to read the language file txi-en.tex:

./test.texi:3: Cannot read language file txi-en.tex.
@documentlanguagetrywithoutunderscore ...i-#1.tex}
                                                  @else @globaldefs = 1 @inp...

@\documentlanguage ...ithoutunderscore #1_@finish @else @globaldefs = 1 @inp...
l.3 @documentlanguage en
? ./test.texi:3: Emergency stop.

This is a pity as reading txi-en.tex seems to be a no-op in this case: it only replicates the English defaults from the main texinfo.tex. However, declaring the document language is good practice, and it isn't a no-op for `texi2any --html` where it is used to set the "lang" attribute.

Would it make sense for texinfo.tex to skip over @documentlanguage en when no other language has been set before?

Thanks and best regards,

        Sebastian Meyer


PS: This came up as a MiKTeX packaging issue <https://github.com/MiKTeX/miktex/issues/1651> because their "texinfo" now only contains the three files from CTAN's "texinfo-latest" (whereas the one from TeX Live does include txi-*.tex).


Reply via email to