From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/61678 Path: news.gmane.org!not-for-mail From: S Barmeier Newsgroups: gmane.comp.tex.context Subject: Re: (Xe)ConTeXt and CJK support Date: Tue, 14 Sep 2010 11:10:51 +0200 Message-ID: References: <4C8898F6.7090809@googlemail.com> <38055BE7-739B-4C6C-9D48-A7EE92DC83C9@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-2022-jp" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1284455468 15861 80.91.229.12 (14 Sep 2010 09:11:08 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 14 Sep 2010 09:11:08 +0000 (UTC) Cc: mailing list for ConTeXt users To: Wolfgang Schuster Original-X-From: ntg-context-bounces@ntg.nl Tue Sep 14 11:11:06 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 1OvRXd-0005Vh-Mm for gctc-ntg-context-518@m.gmane.org; Tue, 14 Sep 2010 11:11:05 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 6D41DCA6BD; Tue, 14 Sep 2010 11:11:03 +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 Kt4iNZp9uSEv; Tue, 14 Sep 2010 11:10:57 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 2D776CA6B8; Tue, 14 Sep 2010 11:10:57 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 68C59CA6B8 for ; Tue, 14 Sep 2010 11:10:55 +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 nacIMPm+T8BV for ; Tue, 14 Sep 2010 11:10:53 +0200 (CEST) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by balder.ntg.nl (Postfix) with ESMTP id E567CCA6A8 for ; Tue, 14 Sep 2010 11:10:52 +0200 (CEST) Original-Received: from mail-wy0-f169.google.com (mail-wy0-f169.google.com [74.125.82.169]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id o8E9ApFY013150 for ; Tue, 14 Sep 2010 11:10:52 +0200 Original-Received: by wyb36 with SMTP id 36so8627143wyb.14 for ; Tue, 14 Sep 2010 02:10:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type:content-transfer-encoding; bh=Y8CdszPNInfq9QH1GOlSMgppW5eu7iGSRO+iAUIxYBY=; b=Fx5gm0gDtYKKVuLfLb4XqpdZ5NI41N50WjO+0KuhzXLi+cVGOyB6DJHJGvyRX8RiuU LLNMRJkyFH59H4F52FH5BTswpudbxxkJRkGkwjlG9LDBQ6pO3kpYyTZ+ND6ioXa+DVWY Ovz/uLafMVQn7PvBs6e2ujnCLQ87OpORtA8gQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=wPRz6P/2wE7w+1FwMhSETOkeg1gX3dt7C8BlQUkEzPJpp5EXiQPM9+uQNSXOGhWn3H A9d3TDaccPUVetGJpHuoTPveqjzCz3F1xIWbEM8YnqU54Mf3QEZXWFsNRJZx+iGGlQFA 4WqH++8eidaEL4W15i2gC5Q0jmhEJKpBNy2JM= Original-Received: by 10.216.17.135 with SMTP id j7mr5315645wej.97.1284455451744; Tue, 14 Sep 2010 02:10:51 -0700 (PDT) Original-Received: by 10.216.184.68 with HTTP; Tue, 14 Sep 2010 02:10:51 -0700 (PDT) In-Reply-To: X-Google-Sender-Auth: iVD_F2C25BmL681Scnetiqpeq14 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=74.125.82.169; 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: 0cD6xaQEM - d5583d00b5ce - 20100914 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.71 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:61678 Archived-At: Thank you for your quick reply. In the above example neither IPAMincho nor Sazanami Mincho (Regular) are loaded correctly. I get several lines of simplefonts : font 'sazanamiminchoregular' not found interspersed with ! fonts : font database matches configuration and file hashes The simplefonts message ignores spaces and caps... Any ideas? Thank you. Severin On 9/14/10, Wolfgang Schuster wrote: > > Am 14.09.2010 um 02:28 schrieb S Barmeier: > >> Thank you all for your detailed answers. Wolfgang's suggestion does >> not produce any errors and seems like the perfect solution except that >> I have trouble loading any of my installed CJK fonts. I have tried to >> play with \definefontsynonym for ConTeXt to find the font files. I >> have >> - OpenType fonts IPAMincho and IPAGothic as ipam.ttf and ipag.ttf >> - TrueType font KanjiStrokeOrders as KanjiStrokeOrders_v2.014.ttf >> - a bunch of *.tfm, *.vf, and *.pfb files for a font family called >> Wadalab, of which half of them seem to be only suited for JIS >> encoding, whilst the other half is suited for Unicode. >> >> I hope you don't find it too basic a question, but the font system is >> not very transparent and I'd be most grateful if someone could outline >> how I would write the preamble in order to set up the CJK in a way I >> can use them for the \setcjk....font commands and (as an exercise) >> redefine the Latin font to Palatino. >> >> I envision something like >> >> \usemodule[simplefonts] >> \definefontsynonym[Palatino][uplr8t] >> \setupbodyfont[Palatino,11pt] % See 1. >> \definefontsynonym[WadalabMincho][???] % See 2. >> \setcjkmainfont[WadalabMincho] >> \setcjksansfont[IPAGothic] % See 3. >> \setcjkmonofont[KanjiStrokeOrders] % See 4. >> \starttext >> Hello! 今日は! >> \stoptext > > > For a Palantino font you can use “TeX Gyre Pagella”, to use it as roman > font you have to load it with \setmainfont. > > \usemodule[simplefonts] > > \setmainfont[TeX Gyre Pagella] > > \setcjkmainfont[IPAMincho] > \setcjksansfont[IPAGothic] > \setcjkmonofont[KanjiStrokeOrders] > > \starttext > text 本 {\ss text 本} {\tt text 本} > \stoptext > > Loading the Sazanami fonts isn’t a problem for me, the following code > use them in the output instead of the IPA fonts. > > \usemodule[simplefonts] > > \setmainfont[TeX Gyre Pagella] > > \setcjkmainfont[Sazanami Mincho] > \setcjksansfont[Sazanami Gothic] > \setcjkmonofont[KanjiStrokeOrders] > > \starttext > text 本 {\ss text 本} {\tt text 本} > \stoptext > > but you can try “Sazanami Mincho Regular” because this is the real name > of the fonts. > > Wolfgang > > ___________________________________________________________________________________ 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 ___________________________________________________________________________________