From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, HTML_MESSAGE,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE, T_SCC_BODY_TEXT_LINE,URIBL_SBL_A autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 9983 invoked from network); 30 Apr 2023 08:48:40 -0000 Received: from zapf.ntg.nl (5.39.185.232) by inbox.vuxu.org with ESMTPUTF8; 30 Apr 2023 08:48:40 -0000 Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 5C2571C02FC; Sun, 30 Apr 2023 10:48:21 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.ntg.nl 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 K9K6cgn-HqMT; Sun, 30 Apr 2023 10:48:19 +0200 (CEST) Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 8A1C51C1009; Sun, 30 Apr 2023 10:48:19 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 4D6DC1C1009 for ; Sun, 30 Apr 2023 10:48:18 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.ntg.nl 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 51SKwFnphMdq for ; Sun, 30 Apr 2023 10:48:17 +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= 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) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id F1BF51C02FC for ; Sun, 30 Apr 2023 10:48:16 +0200 (CEST) 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 albus.rna.nl (Postfix) with ESMTPSA id CF3E5176054FC for ; Sun, 30 Apr 2023 10:48:14 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rna.nl; s=dkim_rsa2048; t=1682844494; 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=UnsWXKBNkTvqJbrRILitFTENl1VlVACrSAlh0jec3Eo=; b=JpqL8EU+1Iv/0Q431YRMltNwBhJWKTAx9IEdGlT5PCe8Zoa3p8u32nwnQKXIPjOsmgTjLO mlLL4djb+1WqtqzWqSidx3HGCgAWHShVeZEZ8zwVEpkZzGH0dP49rMB5guJ1axXVB8ZUF0 Mkiru8QeLI8kLMpPkgZnRnQRcb2DBNUXKCmpspUi3KDstl34xR69yvd9KMEUZFQbaF+W/I oTKQGjn/jDM4Ayt40S7qKgAfUWqIIbsE9ckg6azMT96F70lzFCBtIjC1cURu4rMNylV6kr b023BNFzhe2KtjWzZfoQ0C0iRFZKF0dNAwFv4r+jNqOWGrESPOoOby04qmQTtw== Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.3\)) Date: Sun, 30 Apr 2023 10:48:12 +0200 References: <71493015-436b-bf88-9c66-883aa59dda07@gmail.com> To: mailing list for ConTeXt users In-Reply-To: <71493015-436b-bf88-9c66-883aa59dda07@gmail.com> Message-Id: <7B63FFB4-A181-43BF-A562-2C9CEAB64C21@rna.nl> X-Mailer: Apple Mail (2.3696.120.41.1.3) Subject: Re: [NTG-context] Linebreaking in Japanese in ConTeXt X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.38 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Gerben Wierda via ntg-context Reply-To: mailing list for ConTeXt users Cc: Gerben Wierda Content-Type: multipart/mixed; boundary="===============0599298982689850242==" Errors-To: ntg-context-bounces@ntg.nl Sender: "ntg-context" --===============0599298982689850242== Content-Type: multipart/alternative; boundary="Apple-Mail=_614C1DC2-CFEB-4AA6-A6F9-31D779AF729E" --Apple-Mail=_614C1DC2-CFEB-4AA6-A6F9-31D779AF729E Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On 30 Apr 2023, at 10:04, Wolfgang Schuster via ntg-context = wrote: >=20 > %%%% begin example > \definefontfamily [noto-jp] [rm] [Noto Serif CJK JP] > \definefontfamily [noto-jp] [ss] [Noto Sans CJK JP] > \definetypeface [noto-jp] [mm] [math] [pagella] [default] >=20 > \setupbodyfont [noto-jp] >=20 > \mainlanguage [ja] >=20 > \setscript [nihongo] Thank you. How do I change that in my setup? My setup is creating the same stuff in different languages from XML = input (LMTX using lua and METAPOST), which means I need to adapt the = following setup (cyrillic and greek shown as the other languages with = different character sets I use) \startmode[JA] \setuplanguage[ja][patterns=3D{ja}]\mainlanguage[ja] \stopmode \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] \definefallbackfamily [archimate] [ss] [Hiragino Sans] [preset=3Drange:japanese, tf=3Dstyle:W3, it=3Dstyle:W3, bf=3Dstyle:W5, bi=3Dstyle:W5, force=3Dyes] =20 \definefontfamily [archimate] [ss] [Optima] \setupbodyfont[archimate] \starttext lua code creates METAPOST code which creates images with embedded = ConTeXt 'vboxes' which again contain language-setting ConTeXt code for = each piece of text. Gerben Wierda (LinkedIn , = Mastodon ) R&A IT Strategy (main site) Book: Chess and the Art of Enterprise=C2=A0Architecture = Book: Mastering ArchiMate --Apple-Mail=_614C1DC2-CFEB-4AA6-A6F9-31D779AF729E Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii
On = 30 Apr 2023, at 10:04, Wolfgang Schuster via ntg-context <ntg-context@ntg.nl> = wrote:

%%%% begin example
\definefontfamily [noto-jp] [rm] [Noto Serif CJK = JP]
\definefontfamily [noto-jp] [ss] [Noto Sans CJK JP]
\definetypeface   = [noto-jp] [mm] [math] [pagella] [default]

\setupbodyfont [noto-jp]

\mainlanguage [ja]

\setscript [nihongo]

Thank you.

How = do I change that in my setup?

My setup is creating the same stuff in = different languages from XML input (LMTX using lua and METAPOST), which = means I need to adapt the following setup (cyrillic and greek shown as = the other languages with different character sets I use)

\startmode[JA]
\setuplanguage[ja][patterns=3D{ja}]\mainlanguage[ja]
\stopmode

\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]
\definefallbackfamily
  [archimate]
  [ss]
  [Hiragino Sans]
  [preset=3Drange:japanese,
  =  tf=3Dstyle:W3,
   it=3Dstyle:W3,
   bf=3Dstyle:W5,
  =  bi=3Dstyle:W5,
   force=3Dyes]
 
\definefontfamily [archimate] [ss] = [Optima]

\setupbodyfont[archimate]

\starttext

lua code creates METAPOST code which creates images with = embedded ConTeXt 'vboxes' which again contain language-setting ConTeXt = code for each piece of text.
= --Apple-Mail=_614C1DC2-CFEB-4AA6-A6F9-31D779AF729E-- --===============0599298982689850242== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============0599298982689850242==--