Re: [NTG-context] break strings

2011-06-13 Thread Hans Hagen
On 13-6-2011 3:58, Wolfgang Schuster wrote: 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'

Re: [NTG-context] break strings

2011-06-13 Thread luigi scarso
On Mon, Jun 13, 2011 at 3:58 PM, Wolfgang Schuster wrote: > > Am 13.06.2011 um 15:40 schrieb luigi scarso: > >> Where is the difference ? > > The TeX solution is faster. and the Lua's one is usually more flexible. -- luigi _

Re: [NTG-context] break strings

2011-06-13 Thread luigi scarso
On Mon, Jun 13, 2011 at 3:52 PM, Steffen Wolfrum wrote: >> Where is the difference ? >> >> \starttext >> >> >> \showframe >> >> \define[1]\ThisHelps {\handletokens#1\with{\hskip 0pt plus >> .1pt\firstofoneargument}} >> >> Test text test text\ThisHelps >> {9769387937933hhgiuiuziuziduzid93739837fhi

Re: [NTG-context] break strings

2011-06-13 Thread Wolfgang Schuster
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")

Re: [NTG-context] break strings

2011-06-13 Thread Steffen Wolfrum
Am 13.06.2011 um 15:40 schrieb luigi scarso: > On Mon, Jun 13, 2011 at 3:18 PM, Steffen Wolfrum > wrote: >> >> Am 13.06.2011 um 14:25 schrieb Wolfgang Schuster: >> >>> >>> Am 13.06.2011 um 14:12 schrieb Steffen Wolfrum: >>> Hi, say I have arbitrary string of alphanumeric cha

Re: [NTG-context] break strings

2011-06-13 Thread luigi scarso
On Mon, Jun 13, 2011 at 3:18 PM, Steffen Wolfrum wrote: > > Am 13.06.2011 um 14:25 schrieb Wolfgang Schuster: > >> >> Am 13.06.2011 um 14:12 schrieb Steffen Wolfrum: >> >>> Hi, >>> >>> say I have arbitrary string of alphanumeric characters: >>> >>> >>> \starttext >>> >>> \showframe >>> >>> 9769387

Re: [NTG-context] break strings

2011-06-13 Thread Steffen Wolfrum
Am 13.06.2011 um 14:25 schrieb Wolfgang Schuster: > > Am 13.06.2011 um 14:12 schrieb Steffen Wolfrum: > >> Hi, >> >> say I have arbitrary string of alphanumeric characters: >> >> >> \starttext >> >> \showframe >> >> 9769387937933hhgiuiuziuziduzid93739837fhieuhifeuhfeiu39739837938398zfhfdku

Re: [NTG-context] break strings

2011-06-13 Thread Steffen Wolfrum
Am 13.06.2011 um 14:19 schrieb luigi scarso: > On Mon, Jun 13, 2011 at 2:12 PM, Steffen Wolfrum > wrote: >> Hi, >> >> say I have arbitrary string of alphanumeric characters: >> >> >> \starttext >> >> \showframe >> >> 9769387937933hhgiuiuziuziduzid93739837fhieuhifeuhfeiu39739837938398zfhfdk

Re: [NTG-context] break strings

2011-06-13 Thread Wolfgang Schuster
Am 13.06.2011 um 14:12 schrieb Steffen Wolfrum: > Hi, > > say I have arbitrary string of alphanumeric characters: > > > \starttext > > \showframe > > 9769387937933hhgiuiuziuziduzid93739837fhieuhifeuhfeiu39739837938398zfhfdkuhfiufhz398739837r98z379dihhfiu > > \stoptext > > How can I (automa

Re: [NTG-context] break strings

2011-06-13 Thread luigi scarso
On Mon, Jun 13, 2011 at 2:12 PM, Steffen Wolfrum wrote: > Hi, > > say I have arbitrary string of alphanumeric characters: > > > \starttext > > \showframe > > 9769387937933hhgiuiuziuziduzid93739837fhieuhifeuhfeiu39739837938398zfhfdkuhfiufhz398739837r98z379dihhfiu > > \stoptext In mkiv make a lua sc

[NTG-context] break strings

2011-06-13 Thread Steffen Wolfrum
Hi, say I have arbitrary string of alphanumeric characters: \starttext \showframe 9769387937933hhgiuiuziuziduzid93739837fhieuhifeuhfeiu39739837938398zfhfdkuhfiufhz398739837r98z379dihhfiu \stoptext How can I (automatically) force a break at end of line, without manually adding \crlf or \br