* What is going wrong with this use of --mode for switching language?
@ 2022-07-08 9:42 Gerben Wierda via ntg-context
2022-07-08 9:57 ` Taco Hoekwater via ntg-context
0 siblings, 1 reply; 4+ messages in thread
From: Gerben Wierda via ntg-context @ 2022-07-08 9:42 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Gerben Wierda
[-- Attachment #1.1: Type: text/plain, Size: 1887 bytes --]
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/>
[-- Attachment #1.2: Type: text/html, Size: 3863 bytes --]
[-- Attachment #2: Type: text/plain, Size: 496 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage : https://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: What is going wrong with this use of --mode for switching language?
2022-07-08 9:42 What is going wrong with this use of --mode for switching language? Gerben Wierda via ntg-context
@ 2022-07-08 9:57 ` Taco Hoekwater via ntg-context
2022-07-08 10:21 ` Gerben Wierda via ntg-context
0 siblings, 1 reply; 4+ messages in thread
From: Taco Hoekwater via ntg-context @ 2022-07-08 9:57 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Taco Hoekwater
> On 8 Jul 2022, at 11:42, Gerben Wierda via ntg-context <ntg-context@ntg.nl> 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)
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage : https://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: What is going wrong with this use of --mode for switching language?
2022-07-08 9:57 ` Taco Hoekwater via ntg-context
@ 2022-07-08 10:21 ` Gerben Wierda via ntg-context
2022-07-08 10:41 ` Wolfgang Schuster via ntg-context
0 siblings, 1 reply; 4+ messages in thread
From: Gerben Wierda via ntg-context @ 2022-07-08 10:21 UTC (permalink / raw)
To: Taco Hoekwater; +Cc: Gerben Wierda, mailing list for ConTeXt users
> On 8 Jul 2022, at 11:57, Taco Hoekwater <taco@bittext.nl> wrote:
>
>
>
>> On 8 Jul 2022, at 11:42, Gerben Wierda via ntg-context <ntg-context@ntg.nl> 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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage : https://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: What is going wrong with this use of --mode for switching language?
2022-07-08 10:21 ` Gerben Wierda via ntg-context
@ 2022-07-08 10:41 ` Wolfgang Schuster via ntg-context
0 siblings, 0 replies; 4+ messages in thread
From: Wolfgang Schuster via ntg-context @ 2022-07-08 10:41 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Wolfgang Schuster
Gerben Wierda via ntg-context schrieb am 08.07.2022 um 12:21:
>> On 8 Jul 2022, at 11:57, Taco Hoekwater <taco@bittext.nl> wrote:
>>> On 8 Jul 2022, at 11:42, Gerben Wierda via ntg-context <ntg-context@ntg.nl> 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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage : https://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-07-08 10:41 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-08 9:42 What is going wrong with this use of --mode for switching language? Gerben Wierda via ntg-context
2022-07-08 9:57 ` Taco Hoekwater via ntg-context
2022-07-08 10:21 ` Gerben Wierda via ntg-context
2022-07-08 10:41 ` Wolfgang Schuster via ntg-context
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).