From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/115446 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gerben Wierda via ntg-context Newsgroups: gmane.comp.tex.context Subject: Re: Getting started with Japanese Date: Sat, 9 Jul 2022 17:24:13 +0200 Message-ID: References: <137359BB-950B-4D95-82BF-040053CEC1D4@rna.nl> 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="===============0816571971017245258==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36763"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Gerben Wierda To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Jul 09 17:25:00 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 1oACKK-0009L9-Iy for gctc-ntg-context-518@m.gmane-mx.org; Sat, 09 Jul 2022 17:25:00 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 887E728987D; Sat, 9 Jul 2022 17:24:22 +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 tSagqlWOZv2B; Sat, 9 Jul 2022 17:24:20 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 82F6E289904; Sat, 9 Jul 2022 17:24:20 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 440CC289903 for ; Sat, 9 Jul 2022 17:24:19 +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 qQ9Vt6wVnTgR for ; Sat, 9 Jul 2022 17:24: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= 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 9240528987D for ; Sat, 9 Jul 2022 17:24:17 +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 09D58F41CA48 for ; Sat, 9 Jul 2022 17:24:09 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rna.nl; s=dkim_rsa2048; t=1657380250; 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=/WvZ1gDCJeGHcji2Md4jSsqN6PeN5dNwESx5m775SAE=; b=fIX4PxICIScIXPPMdMHE81eTmvcRtvaUKREAZkQ5QnfpD/vyRuDUUOC2TSWu6cEK3i0cTg GQQdXknRO+ITjtTWTRA+19ggRG5Duu0KOmuJRf8jfkVkKaqgeDpewGN7YZV2tJ2xtweOJs zcMTMKFNWla91w1ZexfkSIX2spWP3urnMRGQ/xE7GivRmimCdD7BbUN8s5ljXqHGu8JT4C U+pnPaLKCX8POHFRJu2KWpjopzuhD31a5LZg5CS3BwTUlHokffXB/NCmMxbOs+uBLCzjU1 O/hg/2fXbT1ogDAjvKQiKqhX/mp6GCiHymrrS7/W/ZOhm6QqN8EP7HfAsaEySQ== In-Reply-To: <137359BB-950B-4D95-82BF-040053CEC1D4@rna.nl> 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:115446 Archived-At: --===============0816571971017245258== Content-Type: multipart/alternative; boundary="Apple-Mail=_43F1D97F-4DCD-4FAE-BFEB-20078922AD0E" --Apple-Mail=_43F1D97F-4DCD-4FAE-BFEB-20078922AD0E Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Answering myself on Japanese, this actually works out of the box: \setuplanguage[ja][patterns=3D{ja}]\mainlanguage[ja] \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 Some text. =E4=BB=96=E3=81=AE=E3=83=86=E3=82=AD=E3=82=B9=E3=83=88\\ \stoptext I have no idea why this works and if stuff is missing because more is = needed than just the above. Of course the translation of italics into = weights is nonsense, in Japanese that would probably mean using quite = different characters (katakana?) Am I missing something? G >=20 > Thanks, >=20 > Gerben Wierda (LinkedIn ) > R&A Enterprise Architecture (main site) > Book: Chess and the Art of Enterprise=C2=A0Architecture = > Book: Mastering ArchiMate > = __________________________________________________________________________= _________ > If your question is of interest to others as well, please add an entry = to the Wiki! >=20 > 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 > = __________________________________________________________________________= _________ --Apple-Mail=_43F1D97F-4DCD-4FAE-BFEB-20078922AD0E Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8
Answering myself on Japanese, this actually works = out of the box:

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

 \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
Some text. = =E4=BB=96=E3=81=AE=E3=83=86=E3=82=AD=E3=82=B9=E3=83=88\\
\stoptext

I have no idea why this works and if stuff is = missing because more is needed than just the above. Of course the = translation of italics into weights is nonsense, in Japanese that would = probably mean using quite different characters (katakana?)

Am I missing something?

G

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

= --Apple-Mail=_43F1D97F-4DCD-4FAE-BFEB-20078922AD0E-- --===============0816571971017245258== 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== --===============0816571971017245258==--