Re: [NTG-context] Is there a replacement for \tracechinesetrue in mkiv?

2011-12-30 Thread Zhichu Chen
Well, that's just perfect, only it's not what I'm looking for :( What I need is a fully customable way to debug some of my inputs rather than everything as a font feature. I found a cleaner way now: to use the whatsit node, I hope it's useful for someone so I paste the function here:

Re: [NTG-context] Is there a replacement for \tracechinesetrue in mkiv?

2011-12-29 Thread Hans Hagen
On 29-12-2011 04:22, Zhichu Chen wrote: All right, after some readings, I came out with a node solution. The major idea is listed below and works just fine. n from node_traverse (head) and n.id==node.id ('glyph') My question is: is there a better way? Because these codes are so dirty. I prefer

Re: [NTG-context] Is there a replacement for \tracechinesetrue in mkiv?

2011-12-29 Thread Hans Hagen
On 29-12-2011 04:22, Zhichu Chen wrote: All right, after some readings, I came out with a node solution. The major idea is listed below and works just fine. n from node_traverse (head) and n.id==node.id ('glyph') My question is: is there a better way? Because these codes are so dirty. I prefer

Re: [NTG-context] Is there a replacement for \tracechinesetrue in mkiv?

2011-12-28 Thread Zhichu Chen
All right, after some readings, I came out with a node solution. The major idea is listed below and works just fine. n from node_traverse (head) and n.id==node.id ('glyph') My question is: is there a better way? Because these codes are so dirty. I prefer mplib but I have no clue how to do that.

[NTG-context] Is there a replacement for \tracechinesetrue in mkiv?

2011-12-21 Thread Zhichu Chen
Hi, I wrote some CJK vertical typesetting macros in mkii a long time ago and I want to adopt it to mkiv. Sadly the \iftracechinese is gone. Can I still draw boxes of each glyph to see if they are aligned in my way? Drawing a line in the background is so not cool. -- Best Regards Chen

Re: [NTG-context] Is there a replacement for \tracechinesetrue in mkiv?

2011-12-21 Thread Hans Hagen
On 21-12-2011 12:16, Zhichu Chen wrote: Hi, I wrote some CJK vertical typesetting macros in mkii a long time ago and I want to adopt it to mkiv. Sadly the \iftracechinese is gone. Can I still draw boxes of each glyph to see if they are aligned in my way? Drawing a line in the background is so

Re: [NTG-context] Is there a replacement for \tracechinesetrue in mkiv?

2011-12-21 Thread Zhichu Chen
Interesting, so I guess I should write some lua code? Since I have little experience in that area, could you provide a minimal example just to show me how to draw the baseline of each glyph? Thanks On Thu, Dec 22, 2011 at 6:47 AM, Hans Hagen pra...@wxs.nl wrote: mkiv does things completely