On Wed, Aug 27, 2003 at 06:55:05PM +0200, Patrick Gundlach wrote:
> Hello Peter,
> 
> I am not so sure if I can help you, but I'll give it a try. 
> 
> The examples are taken from my t-layout module.
> 
> I wanted to have 
> 
> \ShowLayout[a=b,c=d]
> 
> but with the possibility to say \ShowLayout without [ ]. So I define
> \ShowLayout as 
> 
> \def\ShowLayout{\dosingleempty\doShowLayout} 
> 
> and \doShowLayout as
> 
> \def\doShowLayout[#1]{%
>    \getparameters[ShowLayout][#1]
> 
>    (some not important stuff)
> 
> }
> 
> to access a value, just use \getvalue{ShowLayout....} where ... is
> your keyword.
> 
> I hope I did not forget anything.

There is a translation step for the keywords. For example, if a user
would say \ShowLayout[command=\xxx], you would have to retrieve it as
\getvalue{ShowLayoutcommando} (note the Dutch translation
commando). Translation is done for all keywords that are used in
Context's core; language variants are mapped to a canonical value,
often but not always the Dutch form of the keyword. I do not remember
where to look this up; usually I just look into the trace log to find
out.

Regards, Simon

-- 
Simon Pepping
email: [EMAIL PROTECTED]
home page: scaprea.hobby.nl

_______________________________________________
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context

Reply via email to