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

Re: WNPP pages not using slices properly



On Mon, Oct 16, 2000 at 01:57:02PM +0200, Josip Rodin wrote:

> Hi,
> 
> Normal files are generated with `-o UNDEFuEN:foo.en.html@g+w'. However,
> webwml/english/devel/wnpp/wnpp.wml generates HTMLs using this shebang:
> 
> #!wml -o UNDEFuADOPT:being_adopted.html -o UNDEFuPACK:being_packaged.html -o
> UNDEFuORPHN:orphaned.html -o UNDEFuPROSP:prospective.html -o
> UNDEFuREQU:requested.html -o UNDEFuADPTM:rfa_bymaint.html -o
> UNDEFuADPTP:rfa_bypackage.html -o UNDEFuWITHD:withdrawn.html -o
> UNDEFuWORK:work_needing.html
> 
> (line wrapped)
> 
> Those `sliceterms' lack `EN', i.e. the language slice, so the tags in the
> header and the footer are left blank. Is there a way to pass two sliceterms
> to slice for one filename?

 #!wml -o UNDEFuADOPTuEN:being_adopted.html \
       -o UNDEFuPACKuEN:being_packaged.html ... 

If you need more complicated stuff, a trick is to dynamically build slice
specifications (i.e. they will be processed by slice but not wml), e.g.

 %!slice -o UNDEFuADOPTu$(LANG):being_adopted.html -o UNDEFuPACKu$(LANG):being_packaged.html ... 

where $(LANG) (or any other variable) is replaced during pass 1.

Denis



Reply to: