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

Re: [2.0.1] How to get outputfile name?

On Wed, Jun 28, 2000 at 02:03:37PM +0000, Jan Holler wrote:
> Thu, 22 Jun 2000 11:46:05 +0200, Roland wrote:
> > #!wml -o (ALL-LANG_*)+LANG_DE:%BASE.html \
> >       -o (ALL-LANG_*)+LANG_EN:%BASE-en.html
> > 
> > WML_SRC_FILENAME, WML_SRC_BASENAME), but is there an easy way to get
> > the output file name?
> This is still interesting. Would it be hard to implement
> that directly in the source and have something like

As far as I can tell, it would be difficult as the WML_OUT_FILENAME
cannot be expanded until after the slice-pass, and you really usually
need it much earlier (like WML_SRC_FILENAME etc.). This is also why I
asked for support of "Variables in #!-lines" in an earlier post (where
I also proposed a simple implementation of this); then you could call
wml twice, once with -DLANGUAGE=DE and
once with -DLANGUAGE=EN -DSUFFIX=-en and have a single shebang line

    #!wml -o (ALL-LANG_*)+LANG_%LANGUAGE%:%BASE%SUFFIX.html

(of course this is much slower). This feature would also come in
handy in other situations, e.g. if a text in a single language is
presented in various transliterations (Unicode support still being
poor for many browsers).

G^is / Ĝis / Ghis / Gxis / ^Gis,



Albert Reiner                                   <areiner@tph.tuwien.ac.at>
Deutsch       *       English       *       Esperanto       *       Latine
Website META Language (WML)                www.engelschall.com/sw/wml/
Official Support Mailing List                   sw-wml@engelschall.com
Automated List Manager                       majordomo@engelschall.com