From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, HTML_MESSAGE,MAILING_LIST_MULTI,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: from cgl.ntg.nl (Cgl.ntg.nl [5.39.185.202]) by inbox.vuxu.org (Postfix) with ESMTP id 1CC0225600 for ; Tue, 27 Feb 2024 13:59:39 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id AEC1248432C for ; Tue, 27 Feb 2024 13:58:53 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Authentication-Results: cgl.ntg.nl (amavisd-new); dkim=fail (2048-bit key) reason="fail (message has been altered)" header.d=mac.com Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id IpC0pPOUYAsE for ; Tue, 27 Feb 2024 13:58:53 +0100 (CET) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id B545D4846C8 for ; Tue, 27 Feb 2024 13:56:13 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id DAAAE48427C for ; Tue, 27 Feb 2024 13:55:23 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id LA95CmGhA2UP for ; Tue, 27 Feb 2024 13:55:23 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=17.58.6.55; helo=pv50p00im-ztdg10021901.me.com; envelope-from=haksan@mac.com; receiver= Received: from pv50p00im-ztdg10021901.me.com (pv50p00im-ztdg10021901.me.com [17.58.6.55]) (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 cgl.ntg.nl (Postfix) with ESMTPS id 19322484279 for ; Tue, 27 Feb 2024 13:55:23 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mac.com; s=1a1hai; t=1709038520; bh=KjZvBim85ymYNUw0iL8QGhkxLwqiFrrj/g7oEovNTq4=; h=From:Content-Type:Mime-Version:Subject:Date:To:Message-Id; b=fqqKsN4iC6Z5Td4zYj2/xvZfHF7jRcU2GsJRnwWChZHfMPEQGEnnlkyWblLM6aTDq Cnk6vuFZXP/ug2BXFmGdnTurDtwzsPAfyAt13xKJ8x+EHGswXLNf2Cik9/i4Oh0v5G 8L0K7RKYcBee7z8sfK3V3zLCjkn70TjrJukbRMrsomUf3WsXS9nILdvwkfFCUJajG9 YGqGC//+3+iilhi59/oLMJwVboAecA6YvWFP186Z5N1BwnlMS6Y3BwhgKlGLER0TKT dIQmHYzKbx9RIBHJXGxWX7yuSCWfYTLMax6b8ya9Um8aHXe8AfKEENtq30czCuoidI XLC//Z9mHmxAA== Received: from smtpclient.apple (pv50p00im-dlb-asmtp-mailmevip.me.com [17.56.9.10]) by pv50p00im-ztdg10021901.me.com (Postfix) with ESMTPSA id 312AB813B4 for ; Tue, 27 Feb 2024 12:55:18 +0000 (UTC) Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.15\)) Date: Tue, 27 Feb 2024 21:55:16 +0900 References: <87a7ee6f-3492-4cab-b55f-9c4fa0e5b8de@fiee.net> <54DA6745-6134-4754-8BEE-CA36C0F25800@gmail.com> To: mailing list for ConTeXt users In-Reply-To: <54DA6745-6134-4754-8BEE-CA36C0F25800@gmail.com> Message-Id: X-Mailer: Apple Mail (2.3654.120.0.1.15) X-Proofpoint-GUID: XRcpDrrIho5UBTbwk1JWHkMpzXSBEpDm X-Proofpoint-ORIG-GUID: XRcpDrrIho5UBTbwk1JWHkMpzXSBEpDm X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-02-26_11,2024-02-27_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 clxscore=1015 mlxlogscore=999 phishscore=0 spamscore=0 suspectscore=0 adultscore=0 mlxscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2308100000 definitions=main-2402270101 Message-ID-Hash: C3OG2OUV3VIFMBHKR6H5B73I7BMQYU2L X-Message-ID-Hash: C3OG2OUV3VIFMBHKR6H5B73I7BMQYU2L X-MailFrom: haksan@mac.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list Reply-To: mailing list for ConTeXt users Subject: [NTG-context] Re: Japanese List-Id: mailing list for ConTeXt users Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: Jeong Dal via ntg-context Cc: Jeong Dal Content-Type: multipart/mixed; boundary="===============3917257513668496442==" --===============3917257513668496442== Content-Type: multipart/alternative; boundary="Apple-Mail=_C6786429-28D7-45A1-AC1D-8513FD6321E3" --Apple-Mail=_C6786429-28D7-45A1-AC1D-8513FD6321E3 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Dear Otared, I am using Korean as main language. I used use typescript file, but recently I use \definefontfamily. Since using Japanese font is similar to use Korean font, I show my = example of using Noto fonts. It was made by the help of expert of this = list long time ago. You may change "Noto Serif CJK KR=E2=80=9D to Japanese font. I also use "\setscript[hangul]=E2=80=9D when I use Korean as = mainlanaguage. I hope that you may enhance the following code. Best regards, Dalyoung %%% Noto Fonts \definefontfamily[notoFont][rm][Noto Serif CJK KR] [ it=3D{style:regular,features:{*,slanted}}, sl=3D{style:regular,features:{*,slanted}}, bi=3D{style:bold,features:{*,slanted}},force=3Dyes] \definefontfamily[notoFont][ss][Noto Sans CJK KR] [ it=3D{style:regular,features:{*,slanted}}, sl=3D{style:regular,features:{*,slanted}}, bi=3D{style:bold,features:{*,slanted}},force=3Dyes] \definefontfamily[notoFont][tt][Noto Sans Mono CJK KR] [ it=3D{style:regular,features:{*,slanted}}, sl=3D{style:regular,features:{*,slanted}}, bi=3D{style:bold,features:{*,slanted}},force=3Dyes] \definefontfamily[notoFont][math][Tex Gyre Termes Math] %\definefontfamily[notoFonts][math][Tex Gyre Pagella Math] %\definefontfamily[notoCJK][math][Tex Gyre Aventor] > 2024. 2. 27. =EC=98=A4=EC=A0=84 6:49, Otared Kavian = =EC=9E=91=EC=84=B1: >=20 > Hi Hraban, >=20 > Your are right indeed ! I didn=E2=80=99t imagine that it was so easy = to set up a document to write in Japanese=E2=80=A6 > Actually I followed the example by Emanuel Han which is essentially = what you suggest (although he gave me also the hint to add the = furagana). >=20 > Best regards: Otared >=20 >> On 26 Feb 2024, at 21:16, Henning Hraban Ramm > wrote: >>=20 >> Am 26.02.24 um 21:08 schrieb Otared Kavian: >>> Does anyone have a simple setup of fonts to write a small Japanese = document (possibly with furagana) ? I am using MacOS and I have several = Japanese fonts on the system. >>> I have some old examples which do not typeset correctly now, maybe = because they use the old module simplefonts and commands such as = \setcjkmainfont and friends. >>=20 >> Try to replace the simplefonts calls with something like >>=20 >> \definefontfamily[myfonts][rm][SomeFont] >> \definefontfamily[myfonts][ss][SomeOtherFont] >>=20 >> \setupbodyfont[myfonts,rm,12pt] >>=20 >> With Latin fonts, it usually works. >>=20 >> Hraban >> = __________________________________________________________________________= _________ >> If your question is of interest to others as well, please add an = entry to the Wiki! >>=20 >> maillist : ntg-context@ntg.nl / = https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl = >> webpage : https://www.pragma-ade.nl / = https://context.aanhet.net (mirror) >> archive : https://github.com/contextgarden/context = >> wiki : https://wiki.contextgarden.net = >> = __________________________________________________________________________= _________ >=20 > Otared Kavian > e-mail: otared@gmail.com > Phone: +33 6 88 26 70 95 >=20 >=20 >=20 >=20 > = __________________________________________________________________________= _________ > If your question is of interest to others as well, please add an entry = to the Wiki! >=20 > maillist : ntg-context@ntg.nl / = https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl > webpage : https://www.pragma-ade.nl / https://context.aanhet.net = (mirror) > archive : https://github.com/contextgarden/context > wiki : https://wiki.contextgarden.net > = __________________________________________________________________________= _________ --Apple-Mail=_C6786429-28D7-45A1-AC1D-8513FD6321E3 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Dear = Otared,

I am using = Korean as main language.
I used use typescript = file, but recently I use \definefontfamily.
Since = using Japanese font is similar to use Korean font, I show my example =  of using Noto fonts. It was made by the help of expert of this = list long time ago.

You may change "Noto Serif CJK = KR=E2=80=9D to Japanese font.

I also use = "\setscript[hangul]=E2=80=9D when I use = Korean as mainlanaguage.

I hope that you may enhance the following = code.

Best regards,

Dalyoung


%%% Noto Fonts

\definefontfamily[notoFont][rm][Noto Serif CJK KR]
[ it=3D{style:regular,features:{*,slanted}},
sl=3D{style:regular,features:{*,slanted}},
bi=3D{style:bold,features:{*,slanted}},force=3Dyes]

\definefontfamily[notoFont][ss][Noto Sans CJK KR]
[ it=3D{style:regular,features:{*,slanted}},
sl=3D{style:regular,features:{*,slanted}},
bi=3D{style:bold,features:{*,slanted}},force=3Dyes]

\definefontfamily[notoFont][tt][Noto Sans Mono CJK KR]
[ it=3D{style:regular,features:{*,slanted}},
sl=3D{style:regular,features:{*,slanted}},
bi=3D{style:bold,features:{*,slanted}},force=3Dyes]

\definefontfamily[notoFont][math][Tex Gyre Termes Math]
%\definefontfamily[notoFonts][math][Tex = Gyre Pagella Math]
%\definefontfamily[notoCJK][math][Tex = Gyre Aventor]


2024. 2. = 27. =EC=98=A4=EC=A0=84 6:49, Otared Kavian <otared@gmail.com> = =EC=9E=91=EC=84=B1:

Hi = Hraban,

Your are = right indeed ! I didn=E2=80=99t imagine that it was so easy to set up a = document to write in Japanese=E2=80=A6
Actually I = followed the example by Emanuel Han which is essentially what you = suggest (although he gave me also the hint to add the = furagana).

Best = regards: Otared

On 26 Feb 2024, at 21:16, = Henning Hraban Ramm <texml@fiee.net> wrote:

Am = 26.02.24 um 21:08 schrieb Otared Kavian:
Does anyone have a simple setup of fonts to = write a small Japanese document (possibly with furagana) ? I am using = MacOS and I have several Japanese fonts on the system.
I = have some old examples which do not typeset correctly now, maybe because = they use the old module simplefonts and  commands such as = \setcjkmainfont and friends.

Try= to replace the simplefonts calls with something like

\definefontfamily[myfonts][rm][SomeFont]
\definefontfamily[myfonts][ss][SomeOtherFont]
\setupbodyfont[myfonts,rm,12pt]

With Latin fonts, it usually works.

Hraban
_______________________________________________________________= ____________________
If your question is of interest to = others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nlwebpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive =  : https://github.com/contextgarden/context
wiki=     : https://wiki.contextgarden.net
_______________________________________________________________= ____________________

Otared = Kavian
Phone: +33 = 6 88 26 70 95




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

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nlwebpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive =  : https://github.com/contextgarden/context
wiki=     : https://wiki.contextgarden.net
_______________________________________________________________= ____________________

= --Apple-Mail=_C6786429-28D7-45A1-AC1D-8513FD6321E3-- --===============3917257513668496442== 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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___________________________________________________________________________________ --===============3917257513668496442==--