From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/99650 Path: news.gmane.org!.POSTED!not-for-mail From: Wim Neimeijer Newsgroups: gmane.comp.tex.context Subject: Re: Typefile with Chinese, Korean or Japanase text Date: Tue, 5 Dec 2017 23:10:30 +0100 Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4011922954973034645==" X-Trace: blaine.gmane.org 1512562758 23860 195.159.176.226 (6 Dec 2017 12:19:18 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 6 Dec 2017 12:19:18 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Dec 06 13:19:11 2017 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eMYeZ-00044I-RL for gctc-ntg-context-518@m.gmane.org; Wed, 06 Dec 2017 13:18:19 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id DF7A98A0166; Tue, 5 Dec 2017 23:11:25 +0100 (CET) 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 zsnDHtVg-YuQ; Tue, 5 Dec 2017 23:11:25 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 212E28A0160; Tue, 5 Dec 2017 23:11:25 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id D27578A015C for ; Tue, 5 Dec 2017 23:11:23 +0100 (CET) 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 tEFYO2NdyPq2 for ; Tue, 5 Dec 2017 23:11:23 +0100 (CET) Original-Received: from mail-qt0-f175.google.com (mail-qt0-f175.google.com [209.85.216.175]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id E8F098A015B for ; Tue, 5 Dec 2017 23:11:12 +0100 (CET) Original-Received: by mail-qt0-f175.google.com with SMTP id g9so4531717qth.9 for ; Tue, 05 Dec 2017 14:11:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=KsdmEvBeUVLtT3DlvkwOWLbQEqOuZGPh2K8t6QpO1U8=; b=Jvh8UW1U0SSLAFZk9YoiaQs48z7Sh0wzCajQROvUCIyOy9m4GdlFp84vBSNVIlx2fP ewMstbO1XsYyR0DVfjTCbCeF9uMoGpq78qSe4h1CzL2t+tGLcnVlMG5SyRTz1MBp8fcD 61GisgSWYRx1RiWaEOyncrL3Kk+oZUoCKuxtuUXsz64eu6wEBL8dAnINpDA87atowj8J GZzpBqkS0Q1aa5+nGP2tQMw8bV8kDTy6neSPTQ/Pg+L0yj3ymk5426Pm0559gUy/qweW 9qBsSS/eH5oAh6Go04b7p6jVx3EopSvLPXPjLT6tRRw0SLya3ef7QhpBTBetnktEYBvN DC8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=KsdmEvBeUVLtT3DlvkwOWLbQEqOuZGPh2K8t6QpO1U8=; b=qNKLXsO3zmn9C5TKbQPYrNJ+OYWxZXajWpNYg9XdTH4t6OG3IQr1kHDJH4NIxzZ1tl H534OxRj2+9M3/UHOYedXDsLkVLTcsDfN2SqoJ0wMt//9IEonZc4M+xg5K6rfaTRQCmg qACzzLgneQa2TYh7+EkFQqIe6PcfzelFCJWsO5M7m9TLMw+ME8mZ0H1UuJ9I0tOWgqJO y50Z3CAN2UmS7+01n1F7SgNhI1pRmYglzC+AGgGh0wt+Ry2+dvL2VLIhR5aH07ec+92L dm4p77B803m9G3uaIMNkMUy4lEfgdyGErNwgIQn3weeVTDSqrjqyGIp5hXo769GT0cBx Tdpg== X-Gm-Message-State: AKGB3mKx1qr0j3k+e2Wsg0isxarJM0hhHgw8jmAaojUQfQe3X3thIA+7 akASM52Hy8RYS4VYXz6Pd3vsAYW0U3Ua6Nfebc7rVg== X-Google-Smtp-Source: AGs4zMZ1WJdAXUGwZO/w7xUZThNNhZmB5CqT7V/NkCltLrVWPqi4FCgZMhSurP7LxPAtoai6adSxlMwuP/j2eh+Mlgs= X-Received: by 10.55.201.11 with SMTP id q11mr22514209qki.303.1512511871195; Tue, 05 Dec 2017 14:11:11 -0800 (PST) Original-Received: by 10.140.41.177 with HTTP; Tue, 5 Dec 2017 14:10:30 -0800 (PST) In-Reply-To: X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 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.org gmane.comp.tex.context:99650 Archived-At: --===============4011922954973034645== Content-Type: multipart/alternative; boundary="001a1149d87ccd1fec055f9f1c61" --001a1149d87ccd1fec055f9f1c61 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I wish it is that simple, but alas, I need to to inform \typefile of the font as well, possibly via setuptyping ? The following works with texlive 2017 (pdflatex), meaning I have the fonts installed. I also ran $ mtxrun --script font --reload \documentclass{article} \usepackage[T1]{fontenc} \usepackage{CJKutf8} \usepackage[english]{babel} \begin{document} \begin{CJK}{UTF8}{mj} =EC=9D=B4 FAQ =EC=9D=80 =EC=9E=90=EC=A3=BC =EB=B0=98=EB=B3=B5=EB=90=98=EB= =8A=94 =EC=A7=88=EB=AC=B8=EA=B3=BC =EA=B7=B8=EC=97=90 =EB=8C=80=ED=95=9C = =EB=8C=80=EB=8B=B5=EC=9D=84 =EA=B0=84=EB=8B=A8=EB=AA=85=EB=A3=8C=ED=95=9C = =EC=96=91=EC=8B=9D=EC=9C=BC=EB=A1=9C =EB=AA=A8=EC=95=84 =EC=97=AE=EC=96=B4=EC=A1=8C=EC=8A=B5=EB=8B=88=EB=8B=A4= . \end{CJK} \end{document} On Tue, Dec 5, 2017 at 9:43 PM, luigi scarso wrote= : > On Tue, Dec 5, 2017 at 9:32 PM, Wim Neimeijer > wrote: > > I am writing a manual where I include code snippets with typefile. Some > of > > the code snippets contain text in Japanese > > but don't appear in the PDF document as typefile seems to skip the > Japanese > > characters > > > > MWE > > > > file cjk.asy > > =3D=3D=3D=3D=3D=3D=3D=3D > > Label L; > > L =3D Label("\\begin{CJK}{UTF8}{gbsn}{\\CJKfamily{gbsn}=EC=97=AC=EB=B3= =B4=EC=84=B8=EC=9A=94 \\end{CJK}"); > > label(L); > > shipout(); > > > > main file > > =3D=3D=3D=3D=3D=3D=3D > > \starttext > > \typefile[C][]{cjk.asy} > > \stoptext > > Assuming a font with the glyphs needed, this should work: > \starttext > \typefile{cjk.asy} > \stoptext > > > -- > luigi > ____________________________________________________________ > _______________________ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/ > listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > ____________________________________________________________ > _______________________ --001a1149d87ccd1fec055f9f1c61 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I wish it is that simple, but alas, I need to=C2=A0
to inform \typefile of the font as well,=C2=A0
possi= bly via setuptyping ?

The following works with= texlive 2017 (pdflatex), meaning I have the fonts installed.
I a= lso ran=C2=A0
$ mtxrun --script font --reload=C2=A0
\documentclass{article}
\usepackage[T1]{fontenc}=
\usepackage{CJKutf8}
\usepackage[english]{babel}
=

\begin{document}
\begin{CJK}{UTF8}{mj}
<= div>=C2=A0 =EC=9D=B4 FAQ =EC=9D=80 =EC=9E=90=EC=A3=BC =EB=B0=98=EB=B3=B5=EB= =90=98=EB=8A=94 =EC=A7=88=EB=AC=B8=EA=B3=BC =EA=B7=B8=EC=97=90 =EB=8C=80=ED= =95=9C =EB=8C=80=EB=8B=B5=EC=9D=84 =EA=B0=84=EB=8B=A8=EB=AA=85=EB=A3=8C=ED= =95=9C =EC=96=91=EC=8B=9D=EC=9C=BC=EB=A1=9C
=C2=A0 =EB=AA=A8=EC= =95=84 =EC=97=AE=EC=96=B4=EC=A1=8C=EC=8A=B5=EB=8B=88=EB=8B=A4.
\e= nd{CJK}
\end{document}




--001a1149d87ccd1fec055f9f1c61-- --===============4011922954973034645== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f --===============4011922954973034645==--