Re: wml build errors in japanese/ and spanish/

2003-06-13 Thread Denis Barbier
On Fri, Jun 13, 2003 at 12:52:05PM +0200, Frank Lichtenheld wrote:
> 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

You can try
  iconv -f iso-2022-jp -t utf-8 rfa_bypackage.ja.html >/dev/null
and see if it fails.

> > 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:
[...]

Looks fine, I could not find a better solution.

Denis



Re: wml build errors in japanese/ and spanish/

2003-06-13 Thread Frank Lichtenheld
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
--- Makefile24 May 2003 14:35:17 -  1.10
+++ Makefile13 Jun 2003 10:44:55 -
@@ -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.wml12 Jun 2003 14:25:55 -  1.2
+++ wnpp.wml13 Jun 2003 10:47:56 -
@@ -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 <[EMAIL PROTECTED]> ***
  *** http://www.djpig.de/ ***
see also: - http://www.usta.de/
  - http://fachschaft.physik.uni-karlsruhe.de/



Re: wml build errors in japanese/ and spanish/

2003-06-12 Thread Tomohiro KUBOTA
Hi,

From: Frank Lichtenheld <[EMAIL PROTECTED]>
Subject: Re: wml build errors in japanese/ and spanish/
Date: Thu, 12 Jun 2003 10:34:53 +0200

> While we're at it, I think I identified and solved another build problem:
> in japanese/devel/wnpp/wnpp.wml you have to replace all occurences of
> en.html in the shebang line with ja.html . Otherwise the translated
> pages get not installed.

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)

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.

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

---
Tomohiro KUBOTA <[EMAIL PROTECTED]>
http://www.debian.or.jp/~kubota/




Re: wml build errors in japanese/ and spanish/

2003-06-12 Thread Matt Kraai
On Wed, Jun 11, 2003 at 09:41:41PM +, Michelle Ribeiro wrote:
> Em Wed, 11 Jun 2003 23:40:25 +0200
> Frank Lichtenheld <[EMAIL PROTECTED]> escreveu:
> > I inspected the wml build logs and found two fixable errors:
> > spanish/devel/debian-lex/ has no Makefile
> > japanese/News/weekly/2003/21 in lines 57,58 something seems
> > wrong. There is some English text and a unclosed  > just fix such errors but the Japanese text is so cryptic for me :)
> 
> Hummm... Where I can find the buil logs? 

http://www-master.debian.org/build-logs/

-- 
Matt Kraai <[EMAIL PROTECTED]>
Debian GNU/Linux Peon



Re: wml build errors in japanese/ and spanish/

2003-06-11 Thread Michelle Ribeiro
Em Wed, 11 Jun 2003 23:40:25 +0200
Frank Lichtenheld <[EMAIL PROTECTED]> escreveu:

> Hi.
> 
> I inspected the wml build logs and found two fixable errors:
> spanish/devel/debian-lex/ has no Makefile
> japanese/News/weekly/2003/21 in lines 57,58 something seems
> wrong. There is some English text and a unclosed  just fix such errors but the Japanese text is so cryptic for me :)

Hummm... Where I can find the buil logs? 

-- 
--
Michelle Ribeiro
Consultoria em Software Livre
Campinas - SP 



Re: wml build errors in japanese/ and spanish/

2003-06-11 Thread Tomohiro KUBOTA
Hi,

From: Frank Lichtenheld <[EMAIL PROTECTED]>
Subject: wml build errors in japanese/ and spanish/
Date: Wed, 11 Jun 2003 23:40:25 +0200

> japanese/News/weekly/2003/21 in lines 57,58 something seems
> wrong. There is some English text and a unclosed  just fix such errors but the Japanese text is so cryptic for me :)

Thank you.  I fixed the problem.

---
Tomohiro KUBOTA <[EMAIL PROTECTED]>
http://www.debian.or.jp/~kubota/