From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/61653 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: (Xe)ConTeXt and CJK support Date: Sun, 12 Sep 2010 09:10:04 +0200 Message-ID: <38055BE7-739B-4C6C-9D48-A7EE92DC83C9@gmail.com> References: <4C8898F6.7090809@googlemail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1081) Content-Type: multipart/mixed; boundary="===============1850584916==" X-Trace: dough.gmane.org 1284275448 11335 80.91.229.12 (12 Sep 2010 07:10:48 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 12 Sep 2010 07:10:48 +0000 (UTC) To: severinbarmeier@googlemail.com, mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Sep 12 09:10:46 2010 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Ougi6-00024Q-Hu for gctc-ntg-context-518@m.gmane.org; Sun, 12 Sep 2010 09:10:46 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id CBA3BCA71B; Sun, 12 Sep 2010 09:10:45 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id A0lp5zqRIVxH; Sun, 12 Sep 2010 09:10:42 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id DD51ACA707; Sun, 12 Sep 2010 09:10:42 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D113FCA707 for ; Sun, 12 Sep 2010 09:10:41 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id dQv1ce4gsKf5 for ; Sun, 12 Sep 2010 09:10:30 +0200 (CEST) Original-Received: from filter4-til.mf.surf.net (filter4-til.mf.surf.net [194.171.167.220]) by balder.ntg.nl (Postfix) with ESMTP id 75E3BCA702 for ; Sun, 12 Sep 2010 09:10:30 +0200 (CEST) Original-Received: from mail-fx0-f41.google.com (mail-fx0-f41.google.com [209.85.161.41]) by filter4-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id o8C7ATll006478 for ; Sun, 12 Sep 2010 09:10:29 +0200 Original-Received: by fxm3 with SMTP id 3so3252860fxm.14 for ; Sun, 12 Sep 2010 00:10:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:from:mime-version :content-type:subject:date:in-reply-to:to:references:message-id :x-mailer; bh=5sMR2HzDA50nhsAvill/d8R9hhFf+Aqxsxqc9dTZbRM=; b=xbiE5mqwAz3r/3Hb/y69VB7EX/Fmv19H5C0WnN4x59H9GpTPZCtSBeFcMaWKBy6mdz Pz4nEFwo1d8ZrBYTeIYz+8+MYpukAwdV0WTZjjSXF336TpUNfBui7Of5FeufPZvBQOTY lrSMfJn5FbF26/dRPVn9BZGCjm/wrEtUUH5Mc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=from:mime-version:content-type:subject:date:in-reply-to:to :references:message-id:x-mailer; b=TKZmAJn9IhlH76yKvXG3Uyd6xnP60ywUpZ58yswrz5YO3MJTc43G9Ngd+J6WSTuE8Q ZeZRnlWtMXy7anbUyBxNAegjdOiU7SwFvQD1e///tPTAvoqnyBDhneTe1aZTAwBpI/uD aJf/nU9D/40WZNi+p2bif/1Rn97p6qG7UQkbc= Original-Received: by 10.223.116.3 with SMTP id k3mr1982859faq.81.1284275428912; Sun, 12 Sep 2010 00:10:28 -0700 (PDT) Original-Received: from [192.168.2.23] (p5B297DE3.dip.t-dialin.net [91.41.125.227]) by mx.google.com with ESMTPS id j14sm2204498faa.47.2010.09.12.00.10.19 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 12 Sep 2010 00:10:27 -0700 (PDT) In-Reply-To: <4C8898F6.7090809@googlemail.com> X-Mailer: Apple Mail (2.1081) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.161.41; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 05D5HatUc - 8c1d41a3b223 - 20100912 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.220 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:61653 Archived-At: --===============1850584916== Content-Type: multipart/alternative; boundary=Apple-Mail-3-1025526650 --Apple-Mail-3-1025526650 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Am 09.09.2010 um 10:21 schrieb S Barmeier: > Dear ConTeXt users, >=20 > I am trying to write a document (grammar notes) in English and = Japanese > and so far have used XeTeX (for Unicode support) with tikZ (for > graphics) quite successfully. However, I wish to convert to = (Xe)ConTeXt > in order to have more control over the page design. >=20 > At the moment I am stuck at trying to define English and Japanese = fonts. > In XeTeX I used >=20 > \usepackage[BoldFont]{xeCJK} > \setCJKmainfont{IPAMincho} > \setCJKsansfont{IPAGothic} > \setCJKmonofont{KanjiStrokeOrders} >=20 > in order to set the three different Japanese fonts I am using. >=20 > I haven't found any documentation on how to implement something > equivalent in ConTeXt and would be most grateful if someone could > outline how I would best go about converting my XeTeX document to = ConTeXt. With MkIV you can set different fonts for Japanese with the fontfallback mechanism, there is not documentation about it but you can on the net a few examples how to use it: - = http://liyanrui.is-programmer.com/2009/10/21/not-just-for-chinese.12264.ht= ml - http://liyanrui.is-programmer.com/posts/5737.html - = http://blogs.gnome.org/happyaron/2009/11/02/font-fallback-in-context-minin= als/ The simplefonts modules provides a fontspec inspired interface to use the mechanism in a simpler way: \usemodule[simplefonts] \setcjkmainfont[IPAMincho] \setcjksansfont[IPAGothic] \setcjkmonofont[KanjiStrokeOrders] \starttext ... \stoptext Wolfgang --Apple-Mail-3-1025526650 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii
Dear ConTeXt users,

I am trying to write a document (grammar notes) in English and Japanese
and so far have used XeTeX (for Unicode support) with tikZ (for
graphics) quite successfully. However, I wish to convert to (Xe)ConTeXt
in order to have more control over the page design.

At the moment I am stuck at trying to define English and Japanese fonts.
In XeTeX I used

\usepackage[BoldFont]{xeCJK}
\setCJKmainfont{IPAMincho}
\setCJKsansfont{IPAGothic}
\setCJKmonofont{KanjiStrokeOrders}

in order to set the three different Japanese fonts I am using.

I haven't found any documentation on how to implement something
equivalent in ConTeXt and would be most grateful if someone could
outline how I would best go about converting my XeTeX document to =
ConTeXt.

With MkIV you can set = different fonts for Japanese with the fontfallback
mechanism, = there is not documentation about it but you can on the net
a = few examples how to use it:


The simplefonts modules = provides a fontspec inspired interface to use
the mechanism in = a simpler = way:

\usemodule[simplefonts]

=
\setcjkmainfont[IPAMincho]
\setcjksansfont[IPAGothic]
=
\setcjkmonofont[KanjiStrokeOrders]

\starttex= t
...
\stoptext

Wolfgang


= --Apple-Mail-3-1025526650-- --===============1850584916== 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 / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --===============1850584916==--