From: Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: \setregisterentry levels with colon (keys:1, entries:1) in lua
Date: Sat, 10 Oct 2020 21:32:32 +0200 [thread overview]
Message-ID: <958512d9-275e-c3f8-6992-da3b153cd9f8@gmail.com> (raw)
In-Reply-To: <CAPefzZ0L=-Ukxwp0Nt6euJVsfrSHMr9Et7GeCE5_0gTuG-cPsQ@mail.gmail.com>
Jano Kula schrieb am 10.10.2020 um 20:52:
> Greetings!
>
> One can can set register levels with keys and entries
> \setregisterentry[MyIndex]
> [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.
> \startluacode
> context.setregisterentry({ "MyIndex" },
> { keys:1="C Level 1", entries:1="C Level 2"})
context.setregisterentry (
{ "MyIndex" },
{ ["keys:1"] = "...", ["entries:1"] = "..." }
)
Wolfgang
___________________________________________________________________________________
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
___________________________________________________________________________________
prev parent reply other threads:[~2020-10-10 19:32 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-10 18:52 Jano Kula
2020-10-10 19:32 ` Wolfgang Schuster [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=958512d9-275e-c3f8-6992-da3b153cd9f8@gmail.com \
--to=wolfgang.schuster.lists@gmail.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).