[Date Index][Thread Index]
[Date Prev][Date Next][Thread Prev][Thread Next]

Re: Multi Language Support Question

On Sat, Jul 21, 2001 at 04:56:43PM +0200, Axel Beckert wrote:
> Me again... :-)
> Axel Beckert wrote:
> > Therefore I would suggest a parameter '-S' (for *s*lice behaviour) to
> > wml and slice, which gets as values a string containing one or more of
> > those flags.
> > 
> > Examples, which result in the same file:
> > 
> > #!wml -S an -oDEuUNDEF:foo.de.html@g+x -oENuUNDEF:foo.en.html@g+x
> Of course, BSD style should be allowed here, too:
> #!wml -San -oDEuUNDEF:foo.de.html@g+x -oENuUNDEF:foo.en.html@g+x
> > #!wml -oDEuUNDEF:foo.de.html@g+x#an -oENuUNDEF:foo.en.html@g+x#an
> As I read my own lines: Analogously a -C option for wml an slices
> could define a default chmodcmd for all following slices, which would
> be also very useful inside .wmlrc's and .wmkrc's. (I thought about
> that a few days ago, too, but had no good idea and postponed it,
> because a 'find . -name "*.html" | xargs chmod g+x' did it well for
> playing around with the XBitHack of Apache... :-)
> But perhaps it would be more intuitive, if we use -# instead of -S and
> -@ instead of -C, because those are the seperators in the -o
> parameter...

To be honest, I really dislike adding new options to wml.  I'll do if
there is no other solution.
An alpha release of Slice is available at
It implements (documentation not yet included) the `#' suffix, which
accepts any combination of
     u:  do not accept undefined slices
     z:  do not accept empty output
     s:  do not accept whitespace only output
Here the term `do not accept' means that file won't be generated.
Uppercase letters have not been considered yet.

Its interface may change (this is why there is no documentation), this
version was only useful to ensure that your request was feasible.
If you have some test suite, they may be added to the t/ subdirectory.

Denis Barbier
WML Maintainer
Website META Language (WML)                www.engelschall.com/sw/wml/
Official Support Mailing List                   sw-wml@engelschall.com
Automated List Manager                       majordomo@engelschall.com