* problem with the removing of glue node in scrp-cjk.lua
@ 2010-08-30 9:13 Li Yanrui (李延瑞)
0 siblings, 0 replies; only message in thread
From: Li Yanrui (李延瑞) @ 2010-08-30 9:13 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-08-30 9:13 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-30 9:13 problem with the removing of glue node in scrp-cjk.lua Li Yanrui (李延瑞)
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).