On 2/22/2015 9:42 PM, Pablo Rodriguez wrote:
On 02/22/2015 07:44 PM, Hans Hagen wrote:
[...] for pablo: there are csv scanners built in context
Hans,
I don’t really need this at home, but I’m interested in this.
in addition to the previous mail, t.txt is: first,second,third,fourth "1","2","3","4" "a","b","c","d" "foo","bar""baz","boogie","xyzzy" the code is in util-prs.lua (where all kind of parsing code lives) if you want to use that kind of code outside context you can do something like this: lua mtxlibs.lua --selfmerge foo.lua and then in your script load foo.lua this makes it possible to use the same set of helpers in context as well outside it (alternatively you can just use luatex as lua engine and mtxrun as script runner which is what we mostly do); this means that the context distribution provides all kind of means to set up workflows
I guess you mean m-database.mkiv. But I don’t have a clue on how to handle it.
I mean, how to ignore the first line and how to make commands from the so-called cells (A2, B5...; to use them in document combination) reading an external file.
Many thanks for your help,
Pablo
-- ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------