Re: [NTG-context] Tabulator in database file not passed to Lua

2014-01-24 Thread Joshua Krämer
Am Thu, 23 Jan 2014 23:17:24 +0100 schrieb Hans Hagen pra...@wxs.nl: \startluacode local f = io.open(test.dat) for line in f:lines() do local t = string.split(line,;) -- or \t for tabs context(% /t,t) -- context(table.concat(t, / ) context.par()

Re: [NTG-context] Tabulator in database file not passed to Lua

2014-01-24 Thread Hans Hagen
On 1/25/2014 1:32 AM, Joshua Krämer wrote: Am Thu, 23 Jan 2014 23:17:24 +0100 schrieb Hans Hagen pra...@wxs.nl: \startluacode local f = io.open(test.dat) for line in f:lines() do local t = string.split(line,;) -- or \t for tabs context(% /t,t) --

[NTG-context] Tabulator in database file not passed to Lua

2014-01-23 Thread Joshua Krämer
Dear list, I use the database module to load the lines of a file with some data. The lines are then separated with a lua script. I use lua, because I need to do some other things with the data (rounding numbers, combining some fields etc.) Please consider the following minimal working example:

Re: [NTG-context] Tabulator in database file not passed to Lua

2014-01-23 Thread Hans Hagen
On 1/23/2014 9:43 PM, Joshua Krämer wrote: Dear list, I use the database module to load the lines of a file with some data. The lines are then separated with a lua script. I use lua, because I need to do some other things with the data (rounding numbers, combining some fields etc.) Please