On Thu, Apr 23, 2026 at 06:38:14PM +0200, Patrice Dumas wrote: > Hello, > > I have done a complete implementation in texi2any. It was more involved > than what I had expected, though not complex.
I can do stubs for the new commands in texinfo.tex. > Having @documentlanguagevariant variants as a line command arguments > list is Texinfo-ish, but it has a drawback, it is not possible to > also consider @documentlanguagevariant as a simple string customization > variable, in contrast with line @-command with only one argument. So, > for example, it is not possible to do > > -c documentlanguagevariant=toto_tata > > and similar. How do you do it, then? Do you do -c "documentlanguagevariant=toto, tata" instead? > It can stay that way, but if we want to change, it is still possible. > > > To reset a @documentlanguagevariant or a @documentscript, what I > implemented was that the user needs to put an empty command. > > For example > > @documentlanguage az > @documentscript Cyrl > > ... > > @documentscript > @documentlanguage fr > > > The alternative would be have @documentlanguage reset the > documentlanguagevariant and documentscript. The above example could be > > @documentlanguage az > @documentscript Cyrl > > ... > > @documentlanguage fr > > Looks ok? I think the @documentlanguage should reset the documentlanguagevariant and documentscript as you say, as the second example you give is more natural.
