From: Simon Pepping <spepping@scaprea.hobby.nl>
Subject: Re: Re: parameter mechanism
Date: Wed, 27 Aug 2003 21:18:35 +0200 [thread overview]
Message-ID: <20030827191835.GB1725@scaprea> (raw)
In-Reply-To: <m2brubvy52.fsf@schnee.local>
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: spepping@scaprea.hobby.nl
home page: scaprea.hobby.nl
next prev parent reply other threads:[~2003-08-27 19:18 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-08-27 13:32 Peter Rolf
2003-08-27 14:56 ` Giuseppe Bilotta
2003-08-27 16:53 ` Hans Hagen
2003-08-27 17:03 ` Re[2]: " Giuseppe Bilotta
2003-08-27 17:22 ` Re[3]: " Giuseppe Bilotta
2003-08-28 8:38 ` Hans Hagen
2003-08-28 10:49 ` Peter Rolf
2003-08-27 16:54 ` Hans Hagen
2003-08-27 16:55 ` Patrick Gundlach
2003-08-27 19:18 ` Simon Pepping [this message]
2003-08-27 20:33 ` Patrick Gundlach
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=20030827191835.GB1725@scaprea \
--to=spepping@scaprea.hobby.nl \
--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).