* How should I config the ConTeXt in order to use utf-8 encoding chinese characters? @ 2007-01-16 3:23 Hongyi Zhao 2007-01-16 4:47 ` Aditya Mahajan 0 siblings, 1 reply; 4+ messages in thread From: Hongyi Zhao @ 2007-01-16 3:23 UTC (permalink / raw) 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. Thanks --- Hongyi Zhao (赵弘毅) GnuPG DSA: 0xD108493B 老子道德经:第十七章 太上,不知有之;其次,亲而誉之; 其次,畏之;其次,侮之。 信不足焉,有不信焉。悠兮,其贵言。 功成事遂,百姓皆谓:“我自然”。 _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How should I config the ConTeXt in order to use utf-8 encoding chinese characters? 2007-01-16 3:23 How should I config the ConTeXt in order to use utf-8 encoding chinese characters? Hongyi Zhao @ 2007-01-16 4:47 ` Aditya Mahajan 2007-01-16 7:31 ` Hongyi Zhao 0 siblings, 1 reply; 4+ messages in thread From: Aditya Mahajan @ 2007-01-16 4:47 UTC (permalink / raw) 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]? Aditya ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How should I config the ConTeXt in order to use utf-8 encoding chinese characters? 2007-01-16 4:47 ` Aditya Mahajan @ 2007-01-16 7:31 ` Hongyi Zhao 2007-01-16 7:43 ` Zhichu Chen 0 siblings, 1 reply; 4+ messages in thread From: Hongyi Zhao @ 2007-01-16 7:31 UTC (permalink / raw) 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 ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How should I config the ConTeXt in order to use utf-8 encoding chinese characters? 2007-01-16 7:31 ` Hongyi Zhao @ 2007-01-16 7:43 ` Zhichu Chen 0 siblings, 0 replies; 4+ messages in thread From: Zhichu Chen @ 2007-01-16 7:43 UTC (permalink / raw) [-- 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 ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-01-16 7:43 UTC | newest] Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2007-01-16 3:23 How should I config the ConTeXt in order to use utf-8 encoding chinese characters? Hongyi Zhao 2007-01-16 4:47 ` Aditya Mahajan 2007-01-16 7:31 ` Hongyi Zhao 2007-01-16 7:43 ` Zhichu Chen
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).