ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* bug in typeset table in Chinese
@ 2008-02-26 11:08 Yue Wang
  2008-02-26 15:02 ` Zhichu Chen
  0 siblings, 1 reply; 2+ messages in thread
From: Yue Wang @ 2008-02-26 11:08 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: bug in typeset table in Chinese
  2008-02-26 11:08 bug in typeset table in Chinese Yue Wang
@ 2008-02-26 15:02 ` Zhichu Chen
  0 siblings, 0 replies; 2+ messages in thread
From: Zhichu Chen @ 2008-02-26 15:02 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

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 <yuleopen@gmail.com>:

> 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
----------------------------------------------------------------

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

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

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-02-26 15:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-26 11:08 bug in typeset table in Chinese Yue Wang
2008-02-26 15:02 ` 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).