Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Generating completion functions from XML
- X-seq: zsh-workers 15454
- From: Andrej Borsenkow <Andrej.Borsenkow@xxxxxxxxxxxxxx>
- To: Felix Rosencrantz <f_rosencrantz@xxxxxxxxx>
- Subject: Re: Generating completion functions from XML
- Date: Mon, 23 Jul 2001 08:25:01 +0400 (MSD)
- Cc: Oliver Kiddle <opk@xxxxxxxxxxxxx>, zsh-workers <zsh-workers@xxxxxxxxxx>
- In-reply-to: <20010722203414.62581.qmail@xxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
On Sun, 22 Jul 2001, Felix Rosencrantz wrote:
>
> I know there are some tricky exclusion list rules where it is not
> always repetitive, though I think it is more common to use the same
> set. Also, the other place for repetition is for equivalent flags
> (short/long versions).
>
I really wish we had different notation for equivalent flags. Exclusion
lists at this point are already overloaded and loko ugly (most important,
tgey force us to repeat the whole line). Consider
-b, --binary
-t, --text
where two lines are obviously incompatible. You can't write it using brace
notation; you need *four* lines! like
(-b --binary -t)--text...
(-b --binary --text)-t...
O.K. it could be shrtened to two lines but then quoting becomes unnatural
and too error prone.
>
> >Another thing you might want to think about is if your XML format can
> >somehow be flexible enough to include support for multiple languages.
>
> That's a great idea. And this is one of the places where the XML would
> actually contain information you can't easily place in _arguments call.
>
Why? Assuming that main code for _arguments is in C (as I believe is the
case) it makes it quite easy to add call to gettext there. Current message
strings will the serve as keys to message catalog. Actually, GNU gettext
makes such transition transition natural.
We stil have strings that are not passed to C code, of course. But I doubt
that XML will help here. The problem is not to generate them but rather to
select at run time.
-
andrej
Messages sorted by:
Reverse Date,
Date,
Thread,
Author