ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Xiao Jianfeng <jfxiao@sibs.ac.cn>
Subject: Re: Chinese in ConTeXt
Date: Mon, 30 May 2005 13:25:41 +0800	[thread overview]
Message-ID: <429AA3D5.5090606@sibs.ac.cn> (raw)
In-Reply-To: <429A9A00.8020109@lbapdm.brandenburg.de>

Lutz Haseloff wrote:
> Hi Jianfeng, Hi Hans,
> 
> because i had the same Problem some time ago i prepared
> two PerlScripts for converting Unicode TrueType fonts
> to suitable bunches of Type 1 fonts for use in ConTeXt
> in big5 and gbk encoding.
> 
> I sent the scripts to Hans. He perhaps wanted to include
> them into texexec.pl if possible. If you use Windows
> or can use Windows i can send you the scripts.
> (they work with a particular version of ttf2pfb.exe only)
> 
> B.t.w. for the use of the fonts described in font-chi.tex you
> will need only some files you can download from
> ftp.ctex.org. (If you like i can send you these files too)
> 

After a search via google, i found the following article posted on 2002 
(http://www.ntg.nl/pipermail/ntg-context/2002/000636.html). I don't know 
if it works or not, but i will have a try. I think it may be helpful to 
people who have similar problems, so i just post the article here again:

***********************************************************************
[NTG-context] chinese font setup
Michael Na Li ntg-context@ntg.nl
Sun, 15 Dec 2002 10:03:52 -0800

     * Previous message: [NTG-context] chinese font setup
     * Next message: [NTG-context] chinese font setup
     * Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

On Sun, 15 Dec 2002, Matthew Huggett told this:

 >  A few weeks back, there was a short exchange on this list regarding
 >  utilities for preparing chinese fonts for ConTeXt.  One of the postings
 >  provided a link to some new utilities.  I've since downloaded the file
 >  there (gbkfonts-linux-0.2.tar.gz) but am unsure as to how to 
proceed.  If
 >  anyone with experience in this area could provide some advice, I'd
 >  appreciate it.

Have you got any Chinese fonts that work for ConTeXt?  If not, you can try,
ftp.ctex.org to get some fonts.  There is no need to use gbkfonts.

For simplified chinese, you can,

1. Get the truetype fonts, htfs.ttf, hthei.ttf, htkai.ttf and htsong.ttf 
from
    ftp://ftp.ctex.org/pub/tex/fonts/truetype/ttf/.

2. Get corresponding tfm file, gbfs.zip, gbhei.zip, gbkai.zip and gbsong.zip
    from ftp://ftp.ctex.org/pub/tex/fonts/truetype/for_pdftex/tfm.

3. Get the enc file, Gbk.zip from
    ftp://ftp.ctex.org/pub/tex/fonts/truetype/for_pdftex/enc_map.

4. Get the map file, map.zip, from above location.

Then read the mchinese.pdf, put those files in the right location and 
you can
then process Chinese in context (to produce pdf file).

The above procedure works because those fonts have already been defined in
font-chi.tex.

However, I have trouble installing new Chinese fonts.  I got fzhcjw.ttf,
ran 'gbkfonts -name fzhc -prefix gbk fzhcjw.ttf fzhc' which resulted in
the tfm, enc and map files, as well as pfb for use with dvips.  It also
generated a fd file for use with LaTeX.  I can then use the font with
CJK-LaTeX.  But I can't use it in ConTeXt.  I tried,

\definefontsynonym [SimplifiedChineseHangCaoRegular] [gbkfzhc] 
[encoding=gbk]
\definefontsynonym [SimplifiedChineseHangCaoSlanted] [gbkfzhcsl] 
[encoding=gbk]
\definefontsynonym [SimplifiedChineseHangCaoItalic]  [gbkfzhcsl] 
[encoding=gbk]
\definefontsynonym [SimplifiedChineseHangCaoBold]    [gbkfzhc] 
[encoding=gbk]
\definefontsynonym 
[SimplifiedChineseHangCaoBoldSlanted][gbkfzhcsl][encoding=gbk
]
\definefontsynonym [SimplifiedChineseHangCaoBoldItalic] 
[gbkfzhcsl][encoding=gbk
]
\defineunicodefont [SimHangCao]  [SimplifiedChineseHangCao] [chinese]

Then when I tried to use \SimHangCao I was told that it is undefined 
command.
The other fonts in the font-chi file, such as \SimFangSong etc, do work.

Any suggestions?

Michael


-- 
----------------------------------------------------------------------------
Michael Na Li
Email: lina@u.washington.edu
Department of Biostatistics, Box 357232
University of Washington, Seattle, WA 98195
---------------------------------------------------------------------------


**************************************************************************** 

  parent reply	other threads:[~2005-05-30  5:25 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-29  8:49 Xiao Jianfeng
2005-05-29 10:53 ` Michael Hallgren
2005-05-29 18:15 ` Hans Hagen
2005-05-30  1:20   ` Xiao Jianfeng
2005-05-30  4:43     ` Lutz Haseloff
2005-05-30  5:09       ` Xiao Jianfeng
2005-05-30  5:25       ` Xiao Jianfeng [this message]
2005-05-31  5:21         ` Lutz Haseloff
2005-05-31  7:33           ` Hans Hagen
2005-06-06  8:08 ` Xiao Jianfeng
2005-06-08 22:54   ` Henning Hraban Ramm
2005-06-09  7:18     ` modules.pdf luigi.scarso
2005-08-19 14:16       ` modules.pdf luigi.scarso
2005-08-23  6:59         ` modules.pdf luigi.scarso
2005-06-03  7:58 Chinese in ConTeXt 常大鹏

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=429AA3D5.5090606@sibs.ac.cn \
    --to=jfxiao@sibs.ac.cn \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).