From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/114917 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gerben Wierda via ntg-context Newsgroups: gmane.comp.tex.context Subject: Re: Can I use language as a mode (set on the command line) and simplify this? Date: Tue, 10 May 2022 23:40:32 +0200 Message-ID: References: <9EB5A77F-F313-4242-B11E-ACB525230295@rna.nl> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 (Mac OS X Mail 15.0 \(3693.60.0.1.1\)) Content-Type: multipart/mixed; boundary="===============3424625980241833619==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32961"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Gerben Wierda To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue May 10 23:46:06 2022 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1noXgE-0008KC-24 for gctc-ntg-context-518@m.gmane-mx.org; Tue, 10 May 2022 23:46:06 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id BFF65289E5A; Tue, 10 May 2022 23:40:37 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lF5wMGjQMxJU; Tue, 10 May 2022 23:40:36 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 0AA0E289DD5; Tue, 10 May 2022 23:40:36 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 77AD8289E2B for ; Tue, 10 May 2022 23:40:34 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id i6IlprklbMoo for ; Tue, 10 May 2022 23:40:33 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=213.125.118.53; helo=mail.rna.nl; envelope-from=gerben.wierda@rna.nl; receiver= Original-Received: from mail.rna.nl (mail.rna.nl [213.125.118.53]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 3B620289A33 for ; Tue, 10 May 2022 23:40:33 +0200 (CEST) Original-Received: from smtpclient.apple (hermione.rna.nl [192.168.2.86]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.rna.nl (Postfix) with ESMTPSA id 1EBA4D66F970 for ; Tue, 10 May 2022 23:40:30 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rna.nl; s=dkim_rsa2048; t=1652218830; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=9C9+cRNO9fHS5b9ltNRuVmxLhEldb8TxpIW2MohAJuQ=; b=FhgKwlxud+WiMW5NOG0Ovde01DImD8dEpYWgExErzhrZMAsNaq1YSThUAIZVVvnsQwZJL1 UGRa6awelTehh3bn1RpxGVpc3/uwGM8fBjhT9C3w2DY+KCVUCV0JtY5zrS8gRCg1aC3Pkm PbfeD7R7xgjG9lmz19baMhErDbFpuVwZqhOo0CxgmyR67/lAFE7q9eNUHuGOhorMC+nY3w MaJTNvPTqqGf/pVFwYsNAOP06Jx4JbGJSEQMYstTyGWeSw+NyKADPueSsyaCVp67fTWDBt 5kweeyjdL4KJmSHY9jKYk2t2tpjeZbn34X4pL5dKkrwgmDpRGMpLhq/yxQ0uaA== In-Reply-To: <9EB5A77F-F313-4242-B11E-ACB525230295@rna.nl> X-Mailer: Apple Mail (2.3693.60.0.1.1) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.io gmane.comp.tex.context:114917 Archived-At: --===============3424625980241833619== Content-Type: multipart/alternative; boundary="Apple-Mail=_104E948D-2DFE-47B0-A46F-60A12D9A0AD4" --Apple-Mail=_104E948D-2DFE-47B0-A46F-60A12D9A0AD4 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Fix > On 10 May 2022, at 22:41, Gerben Wierda via ntg-context = wrote: >=20 > I currently have: >=20 > \startnotallmodes[FR,RU]% english is the default > \enablemode[EN] > \stopnotallmodes > \startmode[EN] > \setuplanguage[en][patterns=3D{en}] > \setupexternalfigure[directory=3D../LMTX-Output/without-ids/en/ArchiMate= 3.1 Metamodel ESv4] > \stopmode > \startmode[FR] > \setuplanguage[fr][patterns=3D{en,fr}] > \setupexternalfigure[directory=3D../LMTX-Output/without-ids/fr/ArchiMate= 3.1 Metamodel ESv4] > \stopmode > \startmode[RU] > \setuplanguage[ru][patterns=3D{en,ru}] > \setupexternalfigure[directory=3D../LMTX-Output/without-ids/ru/ArchiMate= 3.1 Metamodel ESv4] > \stopmode >=20 > I was wondering if this can be simplified, e.g. by setting language on = the command line instead, enable a mode derived from a language set on = the command line, and if I would have a single command = \setupexternalfigure[directory=3D that reacts to the language by using = the name of the language as part of the directory? >=20 > Gerben Wierda (LinkedIn ) > R&A IT Strategy (main site) > Book: Chess and the Art of Enterprise=C2=A0Architecture = > Book: Mastering ArchiMate >=20 > = __________________________________________________________________________= _________ > If your question is of interest to others as well, please add an entry = to the Wiki! >=20 > maillist : ntg-context@ntg.nl / = http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > = __________________________________________________________________________= _________ --Apple-Mail=_104E948D-2DFE-47B0-A46F-60A12D9A0AD4 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii Fix

On 10 May 2022, at 22:41, = Gerben Wierda via ntg-context <ntg-context@ntg.nl> wrote:

I currently have:

\startnotallmodes[FR,RU]% english is the default
\enablemode[EN]
\stopnotallmodes
\startmode[EN]
\setuplanguage[en][patterns=3D{en}]
\setupexternalfigure[directory=3D../LMTX-Output/without-ids/en/= ArchiMate 3.1 Metamodel ESv4]
\stopmode
\startmode[FR]
\setuplanguage[fr][patterns=3D{en,fr}]
\setupexternalfigure[directory=3D../LMTX-Output/without-ids/fr/= ArchiMate 3.1 Metamodel ESv4]
\stopmode
\startmode[RU]
\setuplanguage[ru][patterns=3D{en,ru}]
\setupexternalfigure[directory=3D../LMTX-Output/without-ids/ru/= ArchiMate 3.1 Metamodel ESv4]
\stopmode

I was wondering if this = can be simplified, e.g. by setting language on the command line instead, = enable a mode derived from a language set on the command line, and if I = would have a single command \setupexternalfigure[directory=3D that = reacts to the language by using the name of the language as part of the = directory?


___________________________________________________= ________________________________
If your question is of = interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : = https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
_______________________________________________________________= ____________________

= --Apple-Mail=_104E948D-2DFE-47B0-A46F-60A12D9A0AD4-- --===============3424625980241833619== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============3424625980241833619==--