On 22-3-2012 11:38, Mojca Miklavec wrote:
- The fact that assignments and simple options have to be separated is not a limitation of TeX, but the way how ConTeXt is programmed. Hans uses a single command that takes all options inside brackets at once that defines (results in) something similar to (syntax is not exact and is probably completely different in MKIV) \@@itmstart -> 11, \@@itmbefore -> \startlinecorrection, etc.
fyi: In mkiv the principle is the same but it's a bit more more dynamic: \<namespace><instance>:<key> with namespace being efficiently shortcut deep down in context. The new fashion is then \<namespace>parameter{key} given that \current<namespace> == <instance> is set. This is the new commandhandler approach that we use in overhauled core code as well as in Wolfgangs and Adityas modules. The dynamic approach is somewhat slower but it's compensated by way less hash entries and other speedups in the overhaul. Hans ----------------------------------------------------------------- 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 -----------------------------------------------------------------