Am 13.06.2011 um 15:40 schrieb luigi scarso:
> Where is the difference ?
The TeX solution is faster.
\define[1]\ThisHelps
{\handletokens#1\with{\hskip 0pt plus .1pt\firstofoneargument}}
\define[1]\ThisHelpsLuigi
{\startluacode
s='#1'
s= string.gsub(s,'(.)',"\%1\\hskip 0sp plus .1pt")
context(s)
\stopluacode}
\showframe
\starttext
\testfeatureonce{10000}{\ThisHelps {abcde123xyz}}%
\testfeatureonce{10000}{\ThisHelpsLuigi{abcde123xyz}}
\stoptext
Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : [email protected] / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________