使用 gnuplot 的 ConTeXt 终端
在 inkscape 中插入 LaTeX 与 ConTeXt 标签

MkIV 会错误的吃掉中文字符与半角标点之间的空白

Garfileo posted @ 2010年8月31日 17:49 in ConTeXt 笔记 with tags ConTeXt luatex , 3559 阅读

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

转载时,希望不要链接文中图片,另外请保留本文原始出处:http://garfileo.is-programmer.com

Avatar_small
views63 说:
2010年8月31日 20:11

这个……我在邮件列表上也没人搭理 2 次了。都不知道是英语太烂,还是那些问题他们觉得没意义。

Avatar_small
views63 说:
2010年9月03日 18:29

- 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
出来的结果,好像都没什么区别啊。

Garfileo 说:
2010年9月04日 19:02

需要 `context --make` 重新生成 ConTeXt 格式。

Avatar_small
views63 说:
2010年9月05日 05:20

有 context --make 过,但就是没看出区别。设置了中文字体才看出来。

Avatar_small
Garfileo 说:
2010年9月10日 16:46

在 2010.09.09 23:45 版本中加进去了。

咖啡 说:
2010年9月11日 04:52

您好。我是个学生,看了您7年前的旧博文里的关于QHULL的一篇文章,我想了解下您知道QHULL程序包里做DELAUNAY三角剖分时采用了什么算法?经典的三角剖分算法里的哪个?谢谢!!希望您看见我留言能回复我,谢谢!

Avatar_small
Garfileo 说:
2010年9月12日 00:27

@咖啡: 可以参考这里 http://qhull.org/html/qdelaun.htm


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter