From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/115429 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gerben Wierda via ntg-context Newsgroups: gmane.comp.tex.context Subject: What is going wrong with this use of --mode for switching language? Date: Fri, 8 Jul 2022 11:42:00 +0200 Message-ID: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.100.31\)) Content-Type: multipart/mixed; boundary="===============3920174553380087668==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="705"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Gerben Wierda To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Jul 08 11:42:57 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 1o9kVk-000AVt-M2 for gctc-ntg-context-518@m.gmane-mx.org; Fri, 08 Jul 2022 11:42:56 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 73D0628A0FC; Fri, 8 Jul 2022 11:42:11 +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 52uVN4qefKLi; Fri, 8 Jul 2022 11:42:09 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id A12F028A19D; Fri, 8 Jul 2022 11:42:09 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 986F228A12D for ; Fri, 8 Jul 2022 11:42:08 +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 usWFCjVzOU_n for ; Fri, 8 Jul 2022 11:42:07 +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 6783F28A0FC for ; Fri, 8 Jul 2022 11:42:07 +0200 (CEST) Original-Received: from smtpclient.apple (unknown [178.238.166.241]) (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 C2B81F3FCFD6 for ; Fri, 8 Jul 2022 11:41:59 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rna.nl; s=dkim_rsa2048; t=1657273320; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=b9XseI2ExMr+gYl6HEz/o+M1z+7u863qwawHK+DQbVo=; b=pgtUz5VPYpJ6bknyB8DlRMOvJJ+oN4SqEhI2oyHjwW6unBz75B7mDmPlICh9r20umdc0xJ YE1G3J/+y+Wqv+rLVXpQr8Snbj2uwTbsgwMWc8a9vCktz1n1ZgJZF47GHCcswWsvlr6FVY uvUExz5c+AMX+0iS+5F9cqnOkaj+u73P7Gifj+JSZkHJcTCShSPhpN+JA7UU367TfretPv Q2Fo4I5pWpOj4bnLGXkKddYghGnB/A5+yiaoh9Hau50DQtzg9c9QSBwaONGxmS8SJ8uD8O GF0ZsTITqMfSx26gu6sUiNCFGEuq16vgac4d+IzBf9PUQiT89uWiNnY/4fEgpw== X-Mailer: Apple Mail (2.3696.100.31) Authentication-Results: mail.rna.nl; auth=pass smtp.auth=gerben smtp.mailfrom=gerben.wierda@rna.nl 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:115429 Archived-At: --===============3920174553380087668== Content-Type: multipart/alternative; boundary="Apple-Mail=_996D6D82-FBEB-4010-A49F-0C0736B60E77" --Apple-Mail=_996D6D82-FBEB-4010-A49F-0C0736B60E77 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 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=3D{en}]\mainlanguage[en] \stopmode \startmode[RU] \setuplanguage[ru][patterns=3D{ru}]\mainlanguage[ru] \stopmode \startmode[EL] \setuplanguage[el][patterns=3D{el}]\mainlanguage[el] \stopmode \definelabelclass[phrase] \setupphrasetext[en][sheettitle=3D{EN Core}] \setupphrasetext[ru][sheettitle=3D{RU =D0=AF=D0=B4=D1=80=D0=BE}] \setupphrasetext[el][sheettitle=3D{EL A=CE=92=CE=B1=CF=83=CE=B9=CE=BA=CF=8C= }] \definefallbackfamily [archimate] [ss] [Helvetica] [preset=3Drange:cyrillic, tf=3Dstyle:light, it=3Dstyle:lightoblique, bf=3Dstyle:regular, bi=3Dstyle:oblique, force=3Dyes, rscale=3D1.0] \definefallbackfamily [archimate] [ss] [Helvetica] [preset=3Drange:greek, tf=3Dstyle:light, it=3Dstyle:lightoblique, bf=3Dstyle:regular, bi=3Dstyle:oblique, force=3Dyes] \definefontfamily [archimate] [ss] [Optima] \setupbodyfont[archimate] \starttext \phrasetext{sheettitle} \stoptext I run this with one of three modes: context --mode=3DEN --result=3Dtest-en test.tex context --mode=3DRU --result=3Dtest-ru test.tex context --mode=3DEL --result=3Dtest-el test.tex This works for EN, RU, but not for EL. When I run with =E2=80=9C=E2=80=94m= ode=3DEL=E2=80=9D I get EN. Why? I am either blind or something is = wrong. Gerben Wierda (LinkedIn ) R&A Enterprise Architecture (main site) Book: Chess and the Art of Enterprise=C2=A0Architecture = Book: Mastering ArchiMate --Apple-Mail=_996D6D82-FBEB-4010-A49F-0C0736B60E77 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 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=3D{en}]\mainlanguage[en]
\stopmode
\startmode[RU]
\setuplanguage[ru][patterns=3D{ru}]\mainlanguage[ru]
\stopmode
\startmode[EL]
\setuplanguage[el][patterns=3D{el}]\mainlanguage[el]
\stopmode

\definelabelclass[phrase]

\setupphrasetext[en][sheettitle=3D{EN Core}]
\setupphrasetext[ru][sheettitle=3D{RU =D0=AF=D0=B4=D1=80=D0=BE}= ]
\setupphrasetext[el][sheettitle=3D{EL A=CE=92=CE=B1=CF=83=CE= =B9=CE=BA=CF=8C}]


\definefallbackfamily
  [archimate]
  [ss]
  [Helvetica]
  [preset=3Drange:cyrillic,
  =  tf=3Dstyle:light,
  =  it=3Dstyle:lightoblique,
  =  bf=3Dstyle:regular,
  =  bi=3Dstyle:oblique,
   force=3Dyes,
   rscale=3D1.0]
 \definefallbackfamily
  = [archimate]
  [ss]
  = [Helvetica]
  [preset=3Drange:greek,
   tf=3Dstyle:light,
  =  it=3Dstyle:lightoblique,
  =  bf=3Dstyle:regular,
  =  bi=3Dstyle:oblique,
   force=3Dyes]

\definefontfamily [archimate] [ss] = [Optima]

\setupbodyfont[archimate]

\starttext
\phrasetext{sheettitle}
\stoptext


I run this with one of three = modes:

context --mode=3DEN --result=3Dtest-en = test.tex
context = --mode=3DRU --result=3Dtest-ru test.tex
context --mode=3DEL = --result=3Dtest-el test.tex

This works for EN, RU, but not for EL. = When I run with =E2=80=9C=E2=80=94mode=3DEL=E2=80=9D I get EN. Why? I am = either blind or something is wrong.

= --Apple-Mail=_996D6D82-FBEB-4010-A49F-0C0736B60E77-- --===============3920174553380087668== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cHM6Ly93d3cubnRnLm5sL21haWxtYW4v bGlzdGluZm8vbnRnLWNvbnRleHQKd2VicGFnZSAgOiBodHRwczovL3d3dy5wcmFnbWEtYWRlLm5s IC8gaHR0cDovL2NvbnRleHQuYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHBzOi8vYml0YnVja2V0 Lm9yZy9waGcvY29udGV4dC1taXJyb3IvY29tbWl0cy8Kd2lraSAgICAgOiBodHRwczovL2NvbnRl eHRnYXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============3920174553380087668==--