Changes

Jump to navigation Jump to search
Added sample code, minor formatting correction.
[[User:Xiaojf|Xiao Jianfeng ]] wrote in a [http://archive.contextgarden.net/message/20050606.080842.5e1c2057.en.html mail to the mailing list on 2005-06-06]:
Here is my way of Chinese setup in ConTeXt. I hope this can be of any help to some newbies like me who have problems in processing Chinese.
# Unzip the files you got in step 2 and you get four corresponding directories (which contain tfm files), then put them in <tt>texmf-fonts/fonts/tfm/chinese</tt>
# Unzip <tt>Gbk.zip</tt>, you will get a directory named <tt>Gbk</tt> which contains many enc files. Put the directory to <tt>texmf-fonts/fonts/enc/chinese</tt>
# Unzip <tt>map.zip</tt>, you will get many map files, you need just the <tt>gbk.map</tt>. You need to edit <tt>gbk.map</tt>, delete entries of gbli* at the end of the file (lines 505-629). ((sample deleted)). Then, put the modified <tt>gbk.map</tt> to <tt>texmf-fonts/fonts/map/chinese</tt>. Note that newer pdfetex don't read [[pdftex.cfg]] so better use <cmd>loadmapfile[gbk]</cmd> in your document.# Your document should be compilable now. ((Attached is a test file from Lutz, so you can test your ConTeXtSee sample below.))
# I haven't tried to compile Traditional Chinese documents. Maybe just get corresponding files for Traditional Chinese and put there to the right location will work. I'm not sure.
 
Sample Code:
<texcode>
\loadmapfile[gbk]
\usemodule[chinese]
\setuppagenumbering[state=stop]
\starttext
\tfd
这里什么饮料也没有真不像话!
\stoptext
</texcode>
[[Category:Fonts]]
[[Category:International]]

Navigation menu