Re: [NTG-context] lpeg substitution

2009-08-12 Thread Thomas A. Schmitz
On Aug 12, 2009, at 10:32 AM, Hans Hagen wrote: if there is more demand for that i can consider making a substituter that operates on the node list in an early stage; that way it is controlled by attributes and there is no interference with macro definitions, reading modules and such Macr

Re: [NTG-context] lpeg substitution

2009-08-12 Thread Hans Hagen
Taco Hoekwater wrote: Hans Hagen wrote: Thomas A. Schmitz wrote: On Aug 11, 2009, at 2:35 PM, Hans Hagen wrote: what exactly do you want to replace ? Hans I'm trying to use the lpegs you have written for mtx-babel.lua, but instead of rewriting the greek ASCII stuff to a new file, I want

Re: [NTG-context] lpeg substitution

2009-08-11 Thread Taco Hoekwater
Hans Hagen wrote: Thomas A. Schmitz wrote: On Aug 11, 2009, at 2:35 PM, Hans Hagen wrote: what exactly do you want to replace ? Hans I'm trying to use the lpegs you have written for mtx-babel.lua, but instead of rewriting the greek ASCII stuff to a new file, I want to convert it to prop

Re: [NTG-context] lpeg substitution

2009-08-11 Thread Hans Hagen
Thomas A. Schmitz wrote: On Aug 11, 2009, at 2:35 PM, Hans Hagen wrote: what exactly do you want to replace ? Hans I'm trying to use the lpegs you have written for mtx-babel.lua, but instead of rewriting the greek ASCII stuff to a new file, I want to convert it to proper utf Greek and fe

Re: [NTG-context] lpeg substitution

2009-08-11 Thread Thomas A. Schmitz
On Aug 11, 2009, at 2:35 PM, Hans Hagen wrote: what exactly do you want to replace ? Hans I'm trying to use the lpegs you have written for mtx-babel.lua, but instead of rewriting the greek ASCII stuff to a new file, I want to convert it to proper utf Greek and feed that to mkiv. As I sa

Re: [NTG-context] lpeg substitution

2009-08-11 Thread Hans Hagen
Thomas A. Schmitz wrote: On Aug 11, 2009, at 12:59 PM, Hans Hagen wrote: Thomas A. Schmitz wrote: Hi all, I'm working on my Greek module again and am trying to filter and massage the input via lpeg, but there's something I don't quite get. As a minimal example: suppose I want to substitute

Re: [NTG-context] lpeg substitution

2009-08-11 Thread Thomas A. Schmitz
On Aug 11, 2009, at 12:59 PM, Hans Hagen wrote: Thomas A. Schmitz wrote: Hi all, I'm working on my Greek module again and am trying to filter and massage the input via lpeg, but there's something I don't quite get. As a minimal example: suppose I want to substitute A and B in my input wi

Re: [NTG-context] lpeg substitution

2009-08-11 Thread Hans Hagen
Thomas A. Schmitz wrote: Hi all, I'm working on my Greek module again and am trying to filter and massage the input via lpeg, but there's something I don't quite get. As a minimal example: suppose I want to substitute A and B in my input with X and leave all other letters alone. Here's my att

[NTG-context] lpeg substitution

2009-08-11 Thread Thomas A. Schmitz
Hi all, I'm working on my Greek module again and am trying to filter and massage the input via lpeg, but there's something I don't quite get. As a minimal example: suppose I want to substitute A and B in my input with X and leave all other letters alone. Here's my attempt: \startluacode d