From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/115461 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Wolfgang Schuster via ntg-context Newsgroups: gmane.comp.tex.context Subject: Re: Getting started with Japanese Date: Sun, 10 Jul 2022 14:13:30 +0200 Message-ID: <42c7db20-ba11-6980-f398-2cbaef469a4c@gmail.com> References: <137359BB-950B-4D95-82BF-040053CEC1D4@rna.nl> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3669852103657767329==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2482"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 PostboxApp/7.0.56 Cc: Wolfgang Schuster To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Jul 10 14:14:14 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 1oAVpG-0000Q6-4p for gctc-ntg-context-518@m.gmane-mx.org; Sun, 10 Jul 2022 14:14:14 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id DFAD02802DA; Sun, 10 Jul 2022 14:13:36 +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 Brfq8S3F3rhD; Sun, 10 Jul 2022 14:13:34 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 67AF22802E4; Sun, 10 Jul 2022 14:13:34 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 214D92802E3 for ; Sun, 10 Jul 2022 14:13:33 +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 DM_lxkvtM59C for ; Sun, 10 Jul 2022 14:13:32 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.218.44; helo=mail-ej1-f44.google.com; envelope-from=wolfgang.schuster.lists@gmail.com; receiver= Original-Received: from mail-ej1-f44.google.com (mail-ej1-f44.google.com [209.85.218.44]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 0DC742802DA for ; Sun, 10 Jul 2022 14:13:31 +0200 (CEST) Original-Received: by mail-ej1-f44.google.com with SMTP id h23so4590130ejj.12 for ; Sun, 10 Jul 2022 05:13:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language; bh=a30tVWH+9m1M1t5pL4GzNL6jMOgGXqNblql+P2/8ytA=; b=Si+h3BVzAnQyavZJlnyiOYK5BqJCJI2OZPFDX8a05E5+bz6MZiF1s9j/n0OQbDPrvp byr/4gZFF39wGE+bJvNNt2uJjpJLoA3dxz5IkfOobLIkYNZSpC9ueaTpaubEv3DrCfuz Dl+kbCLkmIYSMCvfMhbGsiyunu6yQVI2BCWrktXxzSR8yQMZ+6a0A8fKtbOC7UYGRl9b YbJDtpGK/Gmwb2UvguyF9lluXVzrifHb7UyIi/JYNM6gtlbWFuY+Kt7DxPK3ufuIR1d/ QjVMKFTSxYXEJoKQ2G+ALuU5Q3WRk+LPUgrNU0G+tWlCqJoyDEBDE94XsrJFWaHfsPsb s7mg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=a30tVWH+9m1M1t5pL4GzNL6jMOgGXqNblql+P2/8ytA=; b=wiW6WBXbDtEb2b4cxGv5RNahxwd84fT4iEuzVH6+4kFLBUwFwopmsboVeWjaFqzZbK z61m3D2j+ivUUox5W1NU92MMFVd4wR3mhmCIR7GRd40w5Nyba88FL9j5W8Pat6oxdOkJ MMnMSLbUaa79FdNSTXTCOE6OVRVY9laJAuoRhP5fp8Wa94CrfTlFE7TshNaeWJQ5NHVr x0Ki7eOs1UcAcXa22u7uYonEB9TtncbW8PlSl8DR/cYIr2fj/aWkF8NOVqCrPslCUbnm MnsGIvkxCdd/iZ+s47Ssq2ZMaRC8/LDtEXzBTHxOYJq/D/O0dVgmrTOQPp1ZD6cF8jJ7 WSTg== X-Gm-Message-State: AJIora8sGP+0+ccokA+lDKc5dspt8+zlA8UmIB2s2Ry1EbnTDck2NCTZ CzGDYBEcQwczg8RJQrKa0xQ5nbjVzYY= X-Google-Smtp-Source: AGRyM1uyufCKz+ZtpDJqPaj2A/ePHqLkyxipaiJIG6rZsNCqw9x6rAexdAlKKfnYJab9E7qz1un3Ig== X-Received: by 2002:a17:907:2cec:b0:72b:44e4:b01 with SMTP id hz12-20020a1709072cec00b0072b44e40b01mr4192821ejc.293.1657455211608; Sun, 10 Jul 2022 05:13:31 -0700 (PDT) Original-Received: from ?IPv6:2a02:810d:a8bf:f874:b88c:6cbc:fab3:ce5c? ([2a02:810d:a8bf:f874:b88c:6cbc:fab3:ce5c]) by smtp.gmail.com with ESMTPSA id wi1-20020a170906fd4100b0072b21e27d7esm1513759ejb.105.2022.07.10.05.13.30 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 10 Jul 2022 05:13:31 -0700 (PDT) In-Reply-To: <137359BB-950B-4D95-82BF-040053CEC1D4@rna.nl> Content-Language: en-US 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:115461 Archived-At: This is a multi-part message in MIME format. --===============3669852103657767329== Content-Type: multipart/alternative; boundary="------------195D461C1749A81EAC8671F0" Content-Language: en-US This is a multi-part message in MIME format. --------------195D461C1749A81EAC8671F0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Gerben Wierda via ntg-context schrieb am 09.07.2022 um 13:58: > I’d like to experiment a bit with typesetting Japanese in ConTeXt > (LMTX), to see if it is doable. > > I tried looking for Japanese on ConTeXtgarden, but did not find anything. > > Can someone point me to instructions to get started with Japanese in > LMTX (on macOS). 1. You need a font to typeset japanese. 2. Add \setscript[nihongo] to your document to enable line breaks. %%%% begin example \definefontfamily [noto-cjk-jp] [serif] [Noto Serif CJK JP]   [it={style:regular,features:{*,slanted}},    bi={style:bold,features:{*,slanted}}] \definefontfamily [noto-cjk-jp] [sans]  [Noto Sans CJK JP]   [it={style:regular,features:{*,slanted}},    bi={style:bold,features:{*,slanted}}] \definefontfamily [noto-cjk-jp] [mono]  [Noto Sans Mono CJK JP]   [it={style:regular,features:{*,slanted}},    bi={style:bold,features:{*,slanted}}] \definetypeface [noto-cjk-jp] [mm] [math] [pagella] [default] \setupbodyfont [noto-cjk-jp] \setscript [nihongo] \starttext \rm\tf 日本語 \it 日本語 \bf 日本語 \bi 日本語 \ss\tf 日本語 \it 日本語 \bf 日本語 \bi 日本語 \tt\tf 日本語 \it 日本語 \bf 日本語 \bi 日本語 \stoptext %%%% end example Wolfgang --------------195D461C1749A81EAC8671F0 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit Gerben Wierda via ntg-context schrieb am 09.07.2022 um 13:58:
I’d like to experiment a bit with typesetting Japanese in ConTeXt (LMTX), to see if it is doable.

I tried looking for Japanese on ConTeXtgarden, but did not find anything.

Can someone point me to instructions to get started with Japanese in LMTX (on macOS).

1. You need a font to typeset japanese.

2. Add \setscript[nihongo] to your document to enable line breaks.

%%%% begin example
\definefontfamily [noto-cjk-jp] [serif] [Noto Serif CJK JP]
  [it={style:regular,features:{*,slanted}},
   bi={style:bold,features:{*,slanted}}]

\definefontfamily [noto-cjk-jp] [sans]  [Noto Sans CJK JP]
  [it={style:regular,features:{*,slanted}},
   bi={style:bold,features:{*,slanted}}]

\definefontfamily [noto-cjk-jp] [mono]  [Noto Sans Mono CJK JP]
  [it={style:regular,features:{*,slanted}},
   bi={style:bold,features:{*,slanted}}]

\definetypeface [noto-cjk-jp] [mm] [math] [pagella] [default]

\setupbodyfont [noto-cjk-jp]

\setscript [nihongo]

\starttext

\rm\tf 日本語 \it 日本語 \bf 日本語 \bi 日本語

\ss\tf 日本語 \it 日本語 \bf 日本語 \bi 日本語

\tt\tf 日本語 \it 日本語 \bf 日本語 \bi 日本語

\stoptext
%%%% end example

Wolfgang

--------------195D461C1749A81EAC8671F0-- --===============3669852103657767329== 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== --===============3669852103657767329==--