Hi, I find that ConTeXt fails to typeset Chinese table right. Here is the TeX source: \enableregime[utf] \usemodule[units] \usemodule[chinese] \starttext \placetable[here][]{通風模式} \starttable[|c|c|c|] \NC 時間 \NC 通風模式 \NC 室內源 \NC\SR \HL \NC 0:00-8:00 \NC 自然通風 $a=0.5 \Per\Hour$ \NC 無 \NC\FR \NC 8:00-18:00 \NC 機械通風 $n=5 \Per\Hour$ \NC 打印機每小時的起始十分鐘工作\NC\MR \NC 18:00-24:00 \NC 自然通風 $a=0.5 \Per\Hour$ \NC 無 \NC\LR \stoptable \stoptext If everything in the table is English then ConTeXt typeset it right. but in this table all the chinese are aligned left, not centered. Yue Wang
Hi, Yue,
It's all about the mechanism how ConTeXt handle Chinese glyphs, it analyzes
the around
to check whether to insert spaces which I think is not a good idea. Try to
put those Chinese
characters in a box, like
=======================================
\placetable[here][]{算通中的通風模式}
\starttable[|c|c|c|]
\NC \mbox{時間} \NC \mbox{通風模式} \NC \mbox{室內源} \NC\SR
\HL
\NC 0:00-8:00 \NC \mbox{自然通風 $a=0.5 \Per\Hour$} \NC \mbox{無} \NC\FR
\NC 8:00-18:00 \NC \mbox{機械通風 $n=5 \Per\Hour$} \NC \mbox{打印機每小時的起始十分鐘工作}
\NC\MR
\NC 18:00-24:00 \NC \mbox{自然通風 $a=0.5 \Per\Hour$} \NC \mbox{無} \NC\LR
\stoptable
=======================================
2008/2/26 Yue Wang
Hi,
I find that ConTeXt fails to typeset Chinese table right. Here is the TeX source: \enableregime[utf] \usemodule[units] \usemodule[chinese] \starttext \placetable[here][]{通風模式} \starttable[|c|c|c|] \NC 時間 \NC 通風模式 \NC 室內源 \NC\SR \HL \NC 0:00-8:00 \NC 自然通風 $a=0.5 \Per\Hour$ \NC 無 \NC\FR \NC 8:00-18:00 \NC 機械通風 $n=5 \Per\Hour$ \NC 打印機每小時的起始十分鐘工作\NC\MR \NC 18:00-24:00 \NC 自然通風 $a=0.5 \Per\Hour$ \NC 無 \NC\LR \stoptable \stoptext
If everything in the table is English then ConTeXt typeset it right. but in this table all the chinese are aligned left, not centered.
Yue Wang
___________________________________________________________________________________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net
___________________________________________________________________________________
-- Best Regards 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 ----------------------------------------------------------------
participants (2)
-
Yue Wang
-
Zhichu Chen