From: Gerben Wierda via ntg-context <ntg-context@ntg.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: Gerben Wierda <gerben.wierda@rna.nl>
Subject: What is going wrong with this use of --mode for switching language?
Date: Fri, 8 Jul 2022 11:42:00 +0200 [thread overview]
Message-ID: <DE008562-3777-4673-98FE-6261011039D2@rna.nl> (raw)
[-- 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
___________________________________________________________________________________
next reply other threads:[~2022-07-08 9:42 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-08 9:42 Gerben Wierda via ntg-context [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=DE008562-3777-4673-98FE-6261011039D2@rna.nl \
--to=ntg-context@ntg.nl \
--cc=gerben.wierda@rna.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).