[Po4a-commits] po4a/lib/Locale/Po4a Man.pm,1.29,1.30
Martin Quinson
po4a-devel@lists.alioth.debian.org
Sun, 15 Aug 2004 19:58:15 +0000
Update of /cvsroot/po4a/po4a/lib/Locale/Po4a
In directory haydn:/tmp/cvs-serv4555
Modified Files:
Man.pm
Log Message:
Convert \- to - on the fly. The asteatic of the printed man page may suffer (a hyphen is different of a minus sign in ps/pdf), but makes translator's life easier
Index: Man.pm
===================================================================
RCS file: /cvsroot/po4a/po4a/lib/Locale/Po4a/Man.pm,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -d -r1.29 -r1.30
--- Man.pm 15 Aug 2004 18:11:06 -0000 1.29
+++ Man.pm 15 Aug 2004 19:58:13 -0000 1.30
@@ -127,12 +127,6 @@
.splitfont .Sx .T .TF .The
.TT .UC .ul .Vb .zZ
-=head2 Don't escape spaces to make them non-breaking.
-
-Some authors escape spaces to make sure that the wrapping tool won't mangle
-them. po4a::man I<will> eat them. Use the .nf/.fi groff macro to control
-whether the text should be wrapped or not.
-
=head2 Don't mess nest font specifier.
In order to make translator's life easier, po4a::man will change all font
@@ -318,7 +312,7 @@
" %s"),$ref,$origstr)."\n";
}
-# $str =~ s|\\-|-|sg;
+ $str =~ s|\\-|-|sg;
$str =~ s/\\\*\(lq/``/sg;
$str =~ s/\\\*\(rq/''/sg;
@@ -358,7 +352,8 @@
if ($debug{'postrans'});
# Post formating, so that groff see the strange chars
-# $str =~ s|-|\\-|sg;
+ $str =~ s|\\-|-|sg; # in case the translator added some of them manually
+ $str =~ s|-|\\-|sg;
# No . on first char, or nroff will think it's a macro
$str =~ s/\n([.'"])/ $1/mg; #'