[NTG-context] Problem with Lua processing UTF8 substrings

Jaroslav Hajtmar hajtmar at gyza.cz
Wed Feb 1 21:17:28 CET 2012


Hello Philipp.
Thanx very much for very quick and perfect help.
Is there any manual or source, where I can read these (and next and 
similar) information?

One more thanx
Jaroslav Hajtmar



Dne 1.2.2012 21:05, Philipp Gesang napsal(a):
> \def\mymacro#1{%
>    \startluacode
>      local utf = unicode.utf8
>      local target = [==[\detokenize{#1}]==]
>      for i=1, utf.len(target) do
>        context(utf.sub(target,i,i)..", ")
>      end
>    \stopluacode%
> }
>    



More information about the ntg-context mailing list