On Fri, Apr 10, 2026 at 05:18:34PM +0100, Gavin Smith wrote: > Again, what you might think as basic string processing may be hard to > implement > in TeX, so please avoid allowing elaborate arguments to @documentlanguage > other > than what is currently supported (it wasn't clear to me from your message > whether you were proposing to use such "BCP 47" locale names as arguments to > @documentlanguage or not).
No, I am not proposing to use "BCP 47" locale names as arguments to @documentlanguage, but generate "BCP 47" locale names based on @documentlanguage and @documentscript. "BCP 47" locale names are used for xml:lang, HTML lang and LaTeX babel language names. These names could be used too in Texinfo TeX to specify the txi-*.tex file names like txi-xx-Latn.tex used for a @documentlanguage/@documentscript combination, when @documentscript is specified. -- Pat
