On 2010-09-23 <23:43:15>, Wolfgang Schuster wrote:
These are namespaces but you don't need these constructs anymore in mkiv because there is now a \definenamespace command which takes care of this.
Hi Wolfgang, following your fancybreak module I put together dummy module. ··8<····························································· \startmodule[test] \unprotect \startinterface all \setinterfacevariable {TEST} {TEST} \stopinterface \definenamespace[testns] [ type=module, name=TEST, command=yes, setup=list, ] \unexpanded\def\typetest{% \TESTparameter{teststyle} This is a test.% } \defineTEST[\v!TEST] \setupTEST[ teststyle=\sc ] \protect \endinput ··8<····························································· When called like: \usemodule[test] \starttext \typetest \stoptext it works as expected. Could you please explain what these other parameters do: style=yes, parent=fb Also, what other values would the parameter ‘setup’ accept besides ‘list’?
BTW: The two letter namespaces are reserved for Hams and me but you’re free to use longer ones (we should collect them on a page at the wiki).
What information should go into this list? In my dummy, the namespace ‘testns’ declares the \defineXX and \setupXX commands, where XX=name and name=TEST. Thus if I am not mistaken, namespace clashes might occur both a) among the \????…, and b) among the \setup…|\define… commands. A table on the wiki will need at least three columns: +-----------+------------+---------------------+ | Namespace | Setup | Reserved for module | +===========+============+=====================+ | fb | fancybreak | Fancy Break | +-----------+------------+---------------------+ | … | … | … | Is this OK so far? Anything critical I missed? Philipp -- () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments