MkIV 会错误的吃掉中文字符与半角标点之间的空白
给 Hans 发了邮件,不过他没搭理我。尴尬……
Hi Hans,
In scrp-cjk.lua, the function "process" can eat some glue node between
CJK glyphs. But the following glue nodes between CJK glyph and
half_width_open/half_width_<wbr/>close glyphs should not be eaten.
For example:
\starttext
中国 (Chinese) 的未来
\stoptext
Its output need stay the same.
Therefore I think the function "process" need add some codes for the
test of half_width_open/half_width_<wbr/>close glyphs. This is a patch for
it.
--- /opt/context/tex/texmf-context/tex/context/base/scrp-cjk.lua 2010-08-20
01:35:20.000000000 +0800
+++ /home/garfileo/scrp-cjk.lua 2010-08-30 17:08:31.000000000 +0800
@@ -553,7 +553,8 @@
if not pcjk or not ncjk
or pcjk == "korean" or ncjk == "korean"
or pcjk == "other" or ncjk == "other"
- or pcjk == "jamo_final" or ncjk ==
"jamo_initial" then
+ or pcjk == "jamo_final" or ncjk == "jamo_initial"
+ or pcjk == "half_width_close" or ncjk == "half_width_open" then
previous = "start"
else -- if head ~= first then
remove_node(head,first,true)