Hello, I have done a complete implementation in texi2any. It was more involved than what I had expected, though not complex.
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. Also because of that, the code is a bit different from the other cases, as the equivalence of @-commands and string customization variables is used a lot in texi2any. 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? -- Pat
