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

Bug#594538: debian-history: Please switch to UTF-8



Package: debian-history
Version: 2.12
Severity: wishlist

Hi,

Thanks for taking care of the project history.

As it has been made recently in the maint-guide package, it would
be nice to switch SGML files to UTF-8, and specify this in Makefile
with "po4a-translate -L UTF-8" and "debiandoc2xxx -l $*.utf-8".

The French translation has been updated in PO file format and is
currently beeing reviewed in the debian-l10n-french@l.d.o list of
contributors. Sadely, with the current encoding, it fails to build.

Please find attach an ugly patch against Makefile we would like to
apply if you don't consider switching files to UTF-8 in the meantime,
in order to produce the French translation properly without touching
the other files (I would be glad if someone provideis a less ugly
patch) once we'll upload the new project-history.fr.po file.

Cheers

David

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (600, 'unstable'), (500, 'testing'), (500, 'stable'), (150, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.34-1-amd64 (SMP w/1 CPU core)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

-- no debconf information
Index: project-history/Makefile
===================================================================
--- project-history/Makefile	(révision 7505)
+++ project-history/Makefile	(copie de travail)
@@ -49,8 +49,13 @@
 	if [ ! -f $(MANUAL).$$lang.html/index.$$lang.html -o $$i -nt $(MANUAL).$$lang.html/index.$$lang.html ]; then \
 	    sgmlfile=$$nosuffix.sgml; \
 	    [ $$sgmlfile != $$i ] && make $$sgmlfile; \
-	    echo debiandoc2html -c -l $$lang $$sgmlfile; \
-            debiandoc2html -c -l $$lang $$sgmlfile; \
+	    if [ $$lang != fr ]; then \
+	      echo debiandoc2html -c -l $$lang $$sgmlfile; \
+	      debiandoc2html -c -l $$lang $$sgmlfile; \
+	    else \
+	      echo debiandoc2html -C -l $$lang.UTF-8 $$sgmlfile; \
+	      debiandoc2html -C -l $$lang.UTF-8 $$sgmlfile; \
+	    fi; \
           fi; \
         done
 
@@ -62,7 +67,13 @@
 	mv $(MANUAL).txt $(MANUAL).en.txt
 
 $(MANUAL).%.txt: $(MANUAL).%.sgml
-	debiandoc2text -l $* $<
+	@if [ $* != fr ]; then \
+	  echo debiandoc2text -l $* $<; \
+	  debiandoc2text -l $* $<; \
+	else \
+	  echo debiandoc2text -l $*.UTF-8 $<; \
+	  debiandoc2text -l $*.UTF-8 $<; \
+	fi
 
 # generating PostScript
 ps: $(MANUAL).en.ps $(patsubst %.sgml,%.ps,$(sources_noncjk))
@@ -72,7 +83,13 @@
 	mv $(MANUAL).ps $(MANUAL).en.ps
 
 $(MANUAL).%.ps: $(MANUAL).%.sgml
-	debiandoc2latexps -l $* $<
+	@if [ $* != fr ]; then \
+	  echo debiandoc2latexps -l $* $<; \
+	  debiandoc2latexps -l $* $<; \
+	else \
+	  echo debiandoc2latexps -l $*.UTF-8 $<; \
+	  debiandoc2latexps -l $*.UTF-8 $<; \
+	fi
 
 # generating Portable Document Format
 pdf: $(MANUAL).en.pdf $(patsubst %.sgml,%.pdf,$(sources_noncjk))
@@ -82,7 +99,13 @@
 	mv $(MANUAL).pdf $(MANUAL).en.pdf
 
 $(MANUAL).%.pdf: $(MANUAL).%.sgml
-	debiandoc2latexpdf -l $* $<
+	@if [ $* != fr ]; then \
+	  echo debiandoc2latexpdf -l $* $<; \
+	  debiandoc2latexpdf -l $* $<; \
+	else \
+	  echo debiandoc2latexpdf -l $*.UTF-8 $<; \
+	  debiandoc2latexpdf -l $*.UTF-8 $<; \
+	fi
 
 # publishing to the DDP web pages
 publish: all

Reply to: