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

Re: wml build errors in japanese/ and spanish/



On Fri, Jun 13, 2003 at 09:49:57AM +0900, Tomohiro KUBOTA wrote:
> Thank you for information.  I fixed this, but the fix caused
> a much serious problem.
> 
> For example,
> 
>    http://www.debian.org/devel/wnpp/rfa_bypackage.ja.html
> 
> is written in EUC-JP encoding but the header says the page is 
> ISO-2022-JP encoding.  This causes the page entirely unreadable.
> (Just a row of random letters)

Hmm, ok, can't check this

> Though I am not familiar with the build process of Debian web
> pages, I imagine Makefile has some problem and WMEPILOG is
> ignored.  (WMEPILOG for Japanese converts pages from EUC-JP
> to ISO-2022-JP).  I have no idea how to fix this.

This analysis is correct.

> I'd like to revert my modification if there are no solution.

I think there is one. But before committing it, I will give others the
chance to comment:

Following patch for english/devel/wnpp/Makefile:
We can use WMLPROLOG direct, it's just a filter on the input file.
But we can't use WMLEPILOG because it contains the targetname, which
would be wnpp.ja.html. So we apply it afterwards. (It would
also be possible to change the convert script to do "the right thing"
but I don't know if this would break other files)

Index: Makefile
===================================================================
RCS file: /cvs/webwml/webwml/english/devel/wnpp/Makefile,v
retrieving revision 1.10
diff -u -r1.10 Makefile
--- Makefile    24 May 2003 14:35:17 -0000      1.10
+++ Makefile    13 Jun 2003 10:44:55 -0000
@@ -27,7 +27,10 @@
 # There is no wnpp.XY.html destination. This will be run every time,
 # which is what we want
 wnpp.$(LANGUAGE).html: wnpp.wml
-       wml -q wnpp.wml
+       wml -q $(WMLPROLOG) wnpp.wml
+ifeq "$(LANGUAGE)" "ja"
+       $(foreach file,$(WNPP_FILES),$(WMLBASE)/convert $(file) $(file).tmp;)
+endif
 
 $(HTMLDIR)/wnpp.$(LANGUAGE).html: wnpp.$(LANGUAGE).html
        @:

japanese/devel/wnpp must be changed to

Index: wnpp.wml
===================================================================
RCS file: /cvs/webwml/webwml/japanese/devel/wnpp/wnpp.wml,v
retrieving revision 1.2
diff -u -r1.2 wnpp.wml
--- wnpp.wml    12 Jun 2003 14:25:55 -0000      1.2
+++ wnpp.wml    13 Jun 2003 10:47:56 -0000
@@ -1,4 +1,4 @@
-#!wml -o UNDEFuADOPTuJA:being_adopted.ja.html -o UNDEFuPACKuJA:being_packaged.ja.html -o UNDEFuORPHNuJA:orphaned.ja.html -o UNDEFuPROSPuJA:prospective.ja.html -o UNDEFuREQUuJA:requested.ja.html -o UNDEFuADPTMuJA:rfa_bymaint.ja.html -o UNDEFuADPTPuJA:rfa_bypackage.ja.html -o UNDEFuWORKuJA:work_needing.ja.html
+#!wml -o UNDEFuADOPTuJA:being_adopted.ja.html.tmp -o UNDEFuPACKuJA:being_packaged.ja.html.tmp -o UNDEFuORPHNuJA:orphaned.ja.html.tmp -o UNDEFuPROSPuJA:prospective.ja.html.tmp -o UNDEFuREQUuJA:requested.ja.html.tmp -o UNDEFuADPTMuJA:rfa_bymaint.ja.html.tmp -o UNDEFuADPTPuJA:rfa_bypackage.ja.html.tmp -o UNDEFuWORKuJA:work_needing.ja.html.tmp
 #use wml::debian::translation-check translation="1.10"


This seems to work but I can't say for sure if it produces the correct
output encoding.

Gruss,
-- 
*** Frank Lichtenheld <frank@lichtenheld.de> ***
          *** http://www.djpig.de/ ***
see also: - http://www.usta.de/
          - http://fachschaft.physik.uni-karlsruhe.de/



Reply to: