Re: [NTG-context] To \getbuffer or to \input: which one is it better?

2018-02-13 Thread Otared Kavian
> On 11 Feb 2018, at 14:17, Aditya Mahajan wrote: > > On Sun, 11 Feb 2018, Hans Hagen wrote: > […] > > I prefer starting with XML and converting it to a lua table using helper > functions. The advantage of XML is that you can verify the data using an RNC > schema. Hi

Re: [NTG-context] To \getbuffer or to \input: which one is it better?

2018-02-11 Thread Hans Hagen
On 2/11/2018 2:17 PM, Aditya Mahajan wrote: On Sun, 11 Feb 2018, Hans Hagen wrote: Think different ... see end. \startluacode     document.speakerdata = {     {     speakername = "Gauss",     title   = "Remarks on Number Theory",     time    = "8am",   

Re: [NTG-context] To \getbuffer or to \input: which one is it better?

2018-02-11 Thread Aditya Mahajan
On Sun, 11 Feb 2018, Hans Hagen wrote: Think different ... see end. \startluacode document.speakerdata = { { speakername = "Gauss", title = "Remarks on Number Theory", time= "8am", room= "B", day

Re: [NTG-context] To \getbuffer or to \input: which one is it better?

2018-02-11 Thread Hans Hagen
On 2/11/2018 8:49 AM, Otared Kavian wrote: On 10 Feb 2018, at 17:56, Hans Hagen wrote: On 2/10/2018 4:10 PM, Otared Kavian wrote: […] buffers are quite efficient as they never see the file system while input reads the file each time .. both are fresh reads so they obey

[NTG-context] To \getbuffer or to \input: which one is it better?

2018-02-10 Thread Otared Kavian
Hi all, In a project using the \setvariables command of ConTeXt, a file containing more than 200 instances of a structure resembling (but with much more fields…) \setvariables[talk] [speaker={Dr Some Speaker}, title={Some title},