[Po4a-commits] "po4a/lib/Locale/Po4a Man.pm,1.176,1.177"

Nicolas FRANCOIS nekral-guest at alioth.debian.org
Mon Aug 7 22:24:24 UTC 2006


Update of /cvsroot/po4a/po4a/lib/Locale/Po4a
In directory haydn:/tmp/cvs-serv4361/lib/Locale/Po4a

Modified Files:
	Man.pm 
Log Message:
Some \\f fonts wer not converted to B<...> or I<...>, which caused a lot
of fuzzy strings.


Index: Man.pm
===================================================================
RCS file: /cvsroot/po4a/po4a/lib/Locale/Po4a/Man.pm,v
retrieving revision 1.176
retrieving revision 1.177
diff -u -d -r1.176 -r1.177
--- Man.pm	4 Aug 2006 00:08:46 -0000	1.176
+++ Man.pm	7 Aug 2006 22:24:22 -0000	1.177
@@ -1007,7 +1007,7 @@
     return $str if ($str eq "\n");
     # Do not translate the strings that only consist of fonts, spaces and
     # \&. This is usefull because we introduced \& in shiftline.
-    if ($str =~ m/^($FONT_RE|\s|\\&)*$/) {
+    if ($str =~ m/^($FONT_RE|\s|\\&)*$/s) {
         return do_fonts($str, $ref);
     }
 
@@ -1450,7 +1450,7 @@
             # Do not touch the fonts in the inline macros
             # These inline macros may have their argument in bold or italic,
             # we can't know.
-            if ($str =~ m/E<\.[^>]/s) {
+            if ($str =~ m/E<\.[^>]$/s) {
                 # We can't use \\f here, otherwise the font simplifier regexp
                 # will use the fonts of the inline macros.
                 $str .= "PO4A-FAKE-FONT".$elem;




More information about the Po4a-commits mailing list