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

-- 
Best regards,

Li Yanrui (李延瑞)
___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to