ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Zhichu Chen" <zhichu.chen@gmail.com>
Subject: Re: How should I config the ConTeXt in order to use utf-8 encoding chinese characters?
Date: Tue, 16 Jan 2007 15:43:26 +0800	[thread overview]
Message-ID: <769ba7780701152343h2e2a4e02l1f2bfceab4fddb73@mail.gmail.com> (raw)
In-Reply-To: <20070116073101.GA4152@debian-testing-hy.localdomain>


[-- Attachment #1.1: Type: text/plain, Size: 2098 bytes --]

Hi, Hongyi

There is a small example, it should work if your fonts are configured
properly:
--------------------------------------------------
\enableregime      [utf]
\usemodule         [chi-00]

\starttext

你好

\stoptext
-------------------------------------------------

On 1/16/07, Hongyi Zhao <hongyi.zhao@gmail.com> wrote:
>
> On Mon, Jan 15, 2007 at 11:47:04PM -0500, Aditya Mahajan wrote:
> > On Tue, 16 Jan 2007, Hongyi Zhao wrote:
> >
> > > Dear all
> > >
> > > Now I can use the GBK encoding chinese characters in my ConTeXt, but
> > > if I want to use the utf-8 encoding chinese characters in my tex
> > > files, this is, I want the tex source file encoded by UTF-8, how
> > > should I config the ConTeXt.  BYW, all the chinese fonts needed have
> > > been installed correctly by me, including the TTFs and the
> > > corresponding Type1 fonts.
> >
> > Maybe \enableregime[utf]?
>
> Thanks, can you give me a minimal sample file, in my case, the chinese
> font is song.
>
> Furthmore, I use Werner's CJK, that is, if I want to invoke the song
> font with UTF-8 encoding in the normal tex file, I should use the
> argument like this:
>
> [...]
> \begin{CJK}{UTF8}{song}
> [...]
>
> But, what should I do if I want to use the argument \enableregime[utf]
> with ConTeXt?
>
> ---
> Hongyi Zhao (赵弘毅)
> GnuPG DSA: 0xD108493B
>
> 老子道德经:第四十九章
> 圣人常无心,以百姓心为心。
> 善者吾善之,不善者吾亦善之,德善。
> 信者吾信之,不信者吾亦信之,德信。
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
>



-- 
Sincerely yours,
Chen
----------------------------------------------------------------

          Zhi-chu Chen | Shanghai Synchrotron Radiation Facility
         No. 2019 | Jialuo Rd. | Jiading | Shanghai | P.R. China
             tel: 086 21 5955 3405 | zhichu.chen.googlepages.com
                                               | www.sinap.ac.cn
----------------------------------------------------------------

[-- Attachment #1.2: Type: text/html, Size: 3315 bytes --]

[-- Attachment #2: Type: text/plain, Size: 139 bytes --]

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

      reply	other threads:[~2007-01-16  7:43 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-16  3:23 Hongyi Zhao
2007-01-16  4:47 ` Aditya Mahajan
2007-01-16  7:31   ` Hongyi Zhao
2007-01-16  7:43     ` Zhichu Chen [this message]

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=769ba7780701152343h2e2a4e02l1f2bfceab4fddb73@mail.gmail.com \
    --to=zhichu.chen@gmail.com \
    --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).