[NTG-context] Can I use language as a mode (set on the command line) and simplify this?
Pablo Rodriguez
oinos at gmx.es
Wed May 11 17:57:39 CEST 2022
On 5/11/22 09:40, Gerben Wierda via ntg-context wrote:
>> On 11 May 2022, at 08:59, Taco Hoekwater <taco at bittext.nl> wrote:
>> [...]
>> The language settings trigger a system mode, see
>>
>> https://wiki.contextgarden.net/Modes#System_modes
>
> Thanks, but how do I influence this from the command line? Does it
> work the other way around, so with “—mode=en”?
Hi Gerben,
I think this may do the trick:
\doiftext{\env{ml}}
{\mainlanguage[\env{ml}]}
\starttext
Document main language:
\startmodeset
[**en] {English}
[**es] {Spanish}
[**de] {German}
[**nl] {Dutch}
[**ru] {Russian}
\stopmodeset%
.
\stoptext
Of course, "--arguments=ml=nl" would be the right option to pass the
language from the command line.
AfaIk, there is not "--language" option from the command line. (This
also makes sense to me.)
Just in case it might help,
Pablo
More information about the ntg-context
mailing list