[Po4a-commits] po4a/lib/Locale/Po4a TeX.pm,1.40,1.41

Nicolas FRAN??OIS po4a-devel@lists.alioth.debian.org
Sat, 26 Feb 2005 00:57:12 +0000


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

Modified Files:
	TeX.pm 
Log Message:
* Add a no_wrap option
* Document the exclude_include option
* Minor documentation fix.


Index: TeX.pm
===================================================================
RCS file: /cvsroot/po4a/po4a/lib/Locale/Po4a/TeX.pm,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -d -r1.40 -r1.41
--- TeX.pm	26 Feb 2005 00:44:48 -0000	1.40
+++ TeX.pm	26 Feb 2005 00:57:09 -0000	1.41
@@ -136,6 +136,18 @@
 This list is appended to the default list containing
 vspace, hspace and label.
 
+=item no_wrap
+
+Coma-separated list of environments whose arguments shouldnot be re-wrapped.
+
+Note that there is a difference between verbatim and no_wrap environments.
+There is no command and comments analysis in verbatim blocks.
+
+=item exclude_include
+
+Colon-separated list of files that should not be included by \input and
+\include.
+
 =back
 
 Using these options permits to override the behaviour of the commands defined
@@ -281,6 +293,7 @@
 my @comments = ();
 
 =item translate
+
 Wrapper arround Transtractor's translate, with pre- and post-processing
 filters.
 
@@ -1305,6 +1318,7 @@
     $self->{options}{'translate'}='';
     $self->{options}{'untranslated'}='';
     $self->{options}{'exclude_include'}='';
+    $self->{options}{'no_wrap'}='';
     $self->{options}{'debug'}='';
 
     foreach my $opt (keys %options) {
@@ -1328,6 +1342,12 @@
         }
     }
 
+    if ($options{'no_wrap'}) {
+        foreach (split(/,/, $options{'no_wrap'})) {
+            $no_wrap_environments .= " $_";
+        }
+    }
+
     foreach (split(/ /, $command_categories{'untranslated'})) {
         if (defined($commands{$_})) {
             # FIXME: Should we allow to redefine commands
@@ -1393,10 +1413,6 @@
 
 The parser assumes every command is followed by optional arguments (enclosed in
 []) and then by mandatory arguments (enclosed in {}).
-
-=item verbatim environments
-
-A % in a verbatim environments cause the end of the line to be ignored.
 
 =item Others