clone 441835 -1
reassign 441835 debsums
tags 441835 patch
retitle -1 po4a: [man] option to recode output with *roff sequences
severity -1 whishlist
thanks

On Wed, Sep 12, 2007 at 09:06:59PM +1000, [EMAIL PROTECTED] wrote:
> On Wed, Sep 12, 2007 at 08:59:22PM +1000, Brendan O'Dea wrote:
> >I'm not very familiar with the po4a code, but have attached a simple
> >proof of concept script which could perhaps be of help in adding this
> >feature to po4a.
> 
> Bugger.  Really attaching this script this time...

Thanks for the patch.

I will use it to add an option to recode the output using the appropriate
*roff sequences.

Regarding the original bug, here is a patch which will generate the Swedish
manpages in ISO-8859-1.
(The po4a_alias line redefines the default options for the man module for
all the documents; specifying the output encoding will avoid breakage in
case a PO gets its encoding changed to UTF-8).

Best Regards,
-- 
Nekral
--- ../orig/debsums-2.0.32/man/po4a.cfg	2006-02-20 15:40:49.000000000 +0100
+++ debsums-2.0.32/man/po4a.cfg	2007-09-12 20:23:10.000000000 +0200
@@ -1,15 +1,19 @@
 [po4a_langs] fr pt_BR ru sv
 [po4a_paths] po/debsums.pot $lang:po/$lang.po
 
+[po4a_alias:man] man opt:"-o groff_code=verbatim -o untranslated=Id" \
+                     opt_fr:"-L ISO-8859-1" \
+                     opt_pt_BR:"-L ISO-8859-1" \
+                     opt_ru:"-L KOI8-R" \
+                     opt_sv:"-L ISO-8859-1"
+
 [type: man] debsums.1 $lang:$lang/debsums.$lang.1 \
 	add_fr:fr/addendum.fr \
-	add_pt_BR:fr/addendum.pt_BR \
-	add_ru:ru/addendum.ru opt_ru:"-L KOI8-R" \
-	opt:"-o groff_code=verbatim -o untranslated=Id"
+	add_pt_BR:pt_BR/addendum.pt_BR \
+	add_ru:ru/addendum.ru
 
 [type: man] debsums_gen.8 \
 	$lang:$lang/debsums_gen.$lang.8 \
 	add_fr:fr/addendum.fr \
 	add_pt_BR:pt_BR/addendum.pt_BR \
-	add_ru:ru/addendum.ru opt_ru:"-L KOI8-R" \
-	opt:"-o groff_code=verbatim -o untranslated=Id"
+	add_ru:ru/addendum.ru

Reply via email to