[NTG-context] \setregisterentry levels with colon (keys:1, entries:1) in lua

Jano Kula jano.kula at gmail.com
Sat Oct 10 20:52:18 CEST 2020


One can can set register levels with keys and entries
    [keys:1=Sorting Key Level 1,
     entries:1=Entry Level 1,
     keys:2=Sorting Key Level 2,
     entries:2=Entry Level 2]

Rewriting the code in lua works until colon (:) is used.
context.setregisterentry({ "MyIndex" },
   { keys:1="C Level 1", entries:1="C Level 2"})
which stops with error: <name> expected near '1'

Can the colon be escaped or underlying
redefined? Tried without success.

MWE (mkiv, latest beta) attached.

Thank you,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20201010/184ea91d/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: index.tex
Type: application/octet-stream
Size: 552 bytes
Desc: not available
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20201010/184ea91d/attachment.obj>

More information about the ntg-context mailing list