What is going wrong with this use of --mode for switching language?
I have this minimal example: \definemode[EN,FR,RU,PT,EL][keep] \startmodeset [EN] {\disablemode[FR,RU,PT,EL]} [RU] {\disablemode[EN,FR,PT,EL]} [FR] {\disablemode[EN,RU,PT,EL]} [PT] {\disablemode[EN,FR,RU,EL]} [EL] {\disablemode[EN,FR,RU,PT]} [default] {\enablemode[EN]} \stopmodeset \startmode[EN] \setuplanguage[en][patterns={en}]\mainlanguage[en] \stopmode \startmode[RU] \setuplanguage[ru][patterns={ru}]\mainlanguage[ru] \stopmode \startmode[EL] \setuplanguage[el][patterns={el}]\mainlanguage[el] \stopmode \definelabelclass[phrase] \setupphrasetext[en][sheettitle={EN Core}] \setupphrasetext[ru][sheettitle={RU Ядро}] \setupphrasetext[el][sheettitle={EL AΒασικό}] \definefallbackfamily [archimate] [ss] [Helvetica] [preset=range:cyrillic, tf=style:light, it=style:lightoblique, bf=style:regular, bi=style:oblique, force=yes, rscale=1.0] \definefallbackfamily [archimate] [ss] [Helvetica] [preset=range:greek, tf=style:light, it=style:lightoblique, bf=style:regular, bi=style:oblique, force=yes] \definefontfamily [archimate] [ss] [Optima] \setupbodyfont[archimate] \starttext \phrasetext{sheettitle} \stoptext I run this with one of three modes: context --mode=EN --result=test-en test.tex context --mode=RU --result=test-ru test.tex context --mode=EL --result=test-el test.tex This works for EN, RU, but not for EL. When I run with “—mode=EL” I get EN. Why? I am either blind or something is wrong. Gerben Wierda (LinkedIn https://www.linkedin.com/in/gerbenwierda) R&A Enterprise Architecture https://ea.rna.nl/ (main site) Book: Chess and the Art of Enterprise Architecture https://ea.rna.nl/the-book/ Book: Mastering ArchiMate https://ea.rna.nl/the-book-edition-iii/
On 8 Jul 2022, at 11:42, Gerben Wierda via ntg-context
wrote: I have this minimal example:
\startmode[EL] \setuplanguage[el][patterns={el}]\mainlanguage[el]
That (‘el’) is a non-existent language, so it never becomes active. Best wishes, Taco — Taco Hoekwater E: taco@bittext.nl genderfluid (all pronouns)
On 8 Jul 2022, at 11:57, Taco Hoekwater
wrote: On 8 Jul 2022, at 11:42, Gerben Wierda via ntg-context
wrote: I have this minimal example:
\startmode[EL] \setuplanguage[el][patterns={el}]\mainlanguage[el]
That (‘el’) is a non-existent language, so it never becomes active.
Aha. ‘EL’ is the official two-letter language code for the Greek language, so I assumed this was the language code as well. So, what do I use for (modern) Greek? G
Gerben Wierda via ntg-context schrieb am 08.07.2022 um 12:21:
On 8 Jul 2022, at 11:57, Taco Hoekwater
wrote: On 8 Jul 2022, at 11:42, Gerben Wierda via ntg-context
wrote: I have this minimal example:
\startmode[EL] \setuplanguage[el][patterns={el}]\mainlanguage[el] That (‘el’) is a non-existent language, so it never becomes active. Aha. ‘EL’ is the official two-letter language code for the Greek language, so I assumed this was the language code as well.
So, what do I use for (modern) Greek?
\mainlanguage[gr] or \mainlanguage[greek] Wolfgang
participants (3)
-
Gerben Wierda
-
Taco Hoekwater
-
Wolfgang Schuster