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         = "Monday",
        },
        {
            speakername = "Ampère",
            title       = "What is Magnetism",
            time        = "10am",
            room        = "A",
            day         = "Monday",
        },
        {
            speakername = "Dirac",
            title       = "Quaternions and the wave equation",
            time        = "11am",
            room        = "B",
            day         = "Tuesday",
        },
    }

\stopluacode

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.

Aditya
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to