On Mon, May 25, 2009 at 12:18 PM, Peter Münster
On Mon, 25 May 2009, luigi scarso wrote:
I think the point is this : in some situations one find useful to convert things like • in macros like \item . Of course, it can be done with preprocessing , or with some ad-hoc macros in lua code , etc So, apart \remapcharacter, are there any other safe ways to "remap character" ?
Wolfgang mentioned the method with active character. And there is also this one:
\startluacode function my_replace(line) return line:gsub('• ', '\\item ') end callback.register('process_input_buffer', my_replace) \stopluacode \starttext \startitemize • bla • bla • bla \stopitemize \stoptext
I like the latter one, because it permits also replacing whole words and much more. But you need to be careful, see also: http://archive.contextgarden.net/message/20080404.200709.454e4740.en.html ;)
This is what I mean . -- luigi