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.3 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,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 B821128CBC for ; Wed, 28 Feb 2024 08:38:47 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 060DB4847E9 for ; Wed, 28 Feb 2024 08:38:34 +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=gmail.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 cAc6JJClUKGJ for ; Wed, 28 Feb 2024 08:38:33 +0100 (CET) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 5D231484935 for ; Wed, 28 Feb 2024 08:34:58 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id DFEC84845C2 for ; Wed, 28 Feb 2024 08:34:31 +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 I8o7wP383gzv for ; Wed, 28 Feb 2024 08:34:31 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.128.42; helo=mail-wm1-f42.google.com; envelope-from=otared@gmail.com; receiver= Received: from mail-wm1-f42.google.com (mail-wm1-f42.google.com [209.85.128.42]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 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 174CF4845C1 for ; Wed, 28 Feb 2024 08:34:30 +0100 (CET) Received: by mail-wm1-f42.google.com with SMTP id 5b1f17b1804b1-412af1c91f3so9346825e9.1 for ; Tue, 27 Feb 2024 23:34:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709105670; x=1709710470; darn=ntg.nl; h=message-id:in-reply-to:to:references:date:subject:mime-version:from :from:to:cc:subject:date:message-id:reply-to; bh=qD09G6yYIXR99W+Y8uehC/3IThSPvmuzjWiXRN/1o8s=; b=c88IgITqI8rBSFB9mbjz1sQ9RtkqL4UlQitGYdLtSGYrSvnkQFe8gsXyE3JGKwhs3i xROhYC9UtKUxb7sih8/Xejp1TkDOcWlPtCpyXZZiJTfn/PBI2ncEltRu73SUltPbi9y3 k8Pzbl65d916RLUx9HoZB6N0OC2RMYOJMpXtTByPL19ipo8VT84aDe1FaLAcEywwcGHi 84yv2ZAEJZVK29a1iWkYd2dxs7HQn8BQF9VH9wRPoo8DwwgkmoYQ3SLW5smiNcQLW35L oXO8qR8Qn450bO9tbwIKewKykcsRMeuwgUF6FmRnpYjeHiLkerq/CEChXivlcykY6kgH ZQUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709105670; x=1709710470; h=message-id:in-reply-to:to:references:date:subject:mime-version:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=qD09G6yYIXR99W+Y8uehC/3IThSPvmuzjWiXRN/1o8s=; b=XG17He9qD9OX7UEZn9zXRp/ddYu5ziGR772CMwj5x02ZS2c7JbmKP4pJfO7Lw/jqAO 7izST5KQhoYEuS5UQMZynZ3VqzedbNi+COegkwsK1Y5zx1ElFLhXAbBoRcroJ67FOqOO JOIsZiDdOK/+KkiuWfA0hpsKXWitsOvpW83JhZSQ+KAq57/M3qIP2tYSOP/1B9ZsZO7B hUS5pFpw0DK0cZVD1Ao25NCNBuOCxSC2Eah+P+VCNFvsSaepGxxBvCmMvs/XLdZ6QYEa QO7iXvhjruCaLBbF/YQeR+n97jkF6hci5GSpfB6gGvq0uVaYEQLzFfA5jFBXQIu1jt/d aPBg== X-Gm-Message-State: AOJu0YwsjvQByRj1b/Qi3hgapYeV8V+IU1+xVSQepzlqUhP6uhsCuk3y xVPLo22Y25+8pKBwSJWrHQC4Id7ETBvBjetvBBF8re57iIRn/s7qkr+WwBzoFbw= X-Google-Smtp-Source: AGHT+IHA0zwhKKQ+0mgvM66dA0nvIAgrJrcIXxhh9oa59MsIrrriT31b0GLrkuHP+A3CIZzNvvnDrQ== X-Received: by 2002:a5d:4111:0:b0:33d:9c51:1776 with SMTP id l17-20020a5d4111000000b0033d9c511776mr8119414wrp.10.1709105670057; Tue, 27 Feb 2024 23:34:30 -0800 (PST) Received: from smtpclient.apple ([2a01:e34:ec02:4760:453a:9563:5cc9:ce22]) by smtp.gmail.com with ESMTPSA id z6-20020a5d4d06000000b0033d873f08d4sm13556253wrt.98.2024.02.27.23.34.28 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 27 Feb 2024 23:34:29 -0800 (PST) From: Otared Kavian Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.15\)) Date: Wed, 28 Feb 2024 08:34:28 +0100 References: <87a7ee6f-3492-4cab-b55f-9c4fa0e5b8de@fiee.net> <54DA6745-6134-4754-8BEE-CA36C0F25800@gmail.com> To: mailing list for ConTeXt users In-Reply-To: Message-Id: X-Mailer: Apple Mail (2.3654.120.0.1.15) Message-ID-Hash: DE27BPYCWPW2PP6U3F5ULQ6NGPOI4TXM X-Message-ID-Hash: DE27BPYCWPW2PP6U3F5ULQ6NGPOI4TXM X-MailFrom: otared@gmail.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: Content-Type: multipart/mixed; boundary="===============3626144615361923283==" --===============3626144615361923283== Content-Type: multipart/alternative; boundary="Apple-Mail=_2A102D1C-FFB4-429D-8497-0C54F872C847" --Apple-Mail=_2A102D1C-FFB4-429D-8497-0C54F872C847 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Dear Dalyoung, Thank you very much for your insight. I downloaded the Noto Serif JP = fonts and set up a fontfamily as you indicated, by adding \setscript[nihongo] which solves a problem I had with line breakings. And everything works = smoothly! So, for the mail archive, here is what I have and what works fine: %%% Noto Fonts \definefontfamily[JapaneseFont][rm][Noto Serif JP] [ it=3D{style:regular,features:{*,slanted}}, sl=3D{style:regular,features:{*,slanted}}, bi=3D{style:bold,features:{*,slanted}},force=3Dyes] \definefontfamily[JapaneseFont][ss][Noto Serif JP] [ it=3D{style:regular,features:{*,slanted}}, sl=3D{style:regular,features:{*,slanted}}, bi=3D{style:bold,features:{*,slanted}},force=3Dyes] \definefontfamily[JapaneseFont][tt][Noto Serif JP] [ it=3D{style:regular,features:{*,slanted}}, sl=3D{style:regular,features:{*,slanted}}, bi=3D{style:bold,features:{*,slanted}},force=3Dyes] \definefontfamily[JapaneseFont][math][Tex Gyre Termes Math] %\definefontfamily[JapaneseFont][math][Tex Gyre Pagella Math] %\definefontfamily[JapaneseFont][math][Tex Gyre Aventor] %%%% \setupbodyfont[JapaneseFont,12pt] \setupruby[location=3Dtop,voffset=3D-2ex] \setupwhitespace[big] \setscript[nihongo] \starttext \ruby{=E6=97=A9}{=E3=81=AF=E3=82=84}=E3=81=8F=E3=80=82 =E3=81=84=E3=81=8D=E3=81=BE=E3=81=97=E3=82=87=E3=81=86=E3=80=82 \stoptext Best regards: Otared > On 27 Feb 2024, at 13:55, Jeong Dal via ntg-context = wrote: >=20 > Dear Otared, >=20 > 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. >=20 > You may change "Noto Serif CJK KR=E2=80=9D to Japanese font. >=20 > I also use "\setscript[hangul]=E2=80=9D when I use Korean as = mainlanaguage. >=20 > I hope that you may enhance the following code. >=20 > Best regards, >=20 > Dalyoung >=20 >=20 > %%% Noto Fonts >=20 > \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] >=20 > \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] >=20 > \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] >=20 > \definefontfamily[notoFont][math][Tex Gyre Termes Math] > %\definefontfamily[notoFonts][math][Tex Gyre Pagella Math] > %\definefontfamily[notoCJK][math][Tex Gyre Aventor] >=20 >=20 >> 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 = >> = __________________________________________________________________________= _________ >=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 > = __________________________________________________________________________= _________ Otared Kavian e-mail: otared@gmail.com Phone: +33 6 88 26 70 95 --Apple-Mail=_2A102D1C-FFB4-429D-8497-0C54F872C847 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Dear = Dalyoung,

Thank you = very much for your insight. I downloaded the Noto Serif JP fonts and set = up a fontfamily as you indicated, by adding
\setscript[nihongo]
which solves a = problem I had with line breakings. And everything works = smoothly!

So, = for the mail archive, here is what I have and what works fine:

%%% Noto = Fonts

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

\definefontfamily[JapaneseFont][ss][Noto Serif JP]
  [   = it=3D{style:regular,features:{*,slanted}},
  =     sl=3D{style:regular,features:{*,slanted}},
      = bi=3D{style:bold,features:{*,slanted}},force=3Dyes]

\definefontfamily[JapaneseFont][tt][Noto Serif JP]
  [   = it=3D{style:regular,features:{*,slanted}},
  =     sl=3D{style:regular,features:{*,slanted}},
      = bi=3D{style:bold,features:{*,slanted}},force=3Dyes]

\definefontfamily[JapaneseFont][math][Tex Gyre Termes = Math]
%\definefontfamily[JapaneseFont][math][Tex = Gyre Pagella Math]
%\definefontfamily[JapaneseFont][math][Tex Gyre = Aventor]

%%%%

\setupbodyfont[JapaneseFont,12pt]
\setupruby[location=3Dtop,voffset=3D-2ex]
\setupwhitespace[big]
\setscript[nihongo]

\starttext
\ruby{=E6=97=A9}{=E3=81=AF=E3=82=84}=E3=81=8F=E3=80=82
=E3=81=84=E3=81=8D=E3=81=BE=E3=81=97=E3=82=87=E3=81=86=E3=80=82=
\stoptext

Best regards: Otared


On 27 Feb 2024, at 13:55, Jeong Dal via = ntg-context <ntg-context@ntg.nl> wrote:

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
_______________________________________________________________= ____________________

___________________________________________________= ________________________________
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




= --Apple-Mail=_2A102D1C-FFB4-429D-8497-0C54F872C847-- --===============3626144615361923283== 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 ___________________________________________________________________________________ --===============3626144615361923283==--