texlive[71525] trunk: texlogfilter (14jun24)

commits+karl at tug.org commits+karl at tug.org
Fri Jun 14 23:42:28 CEST 2024


Revision: 71525
          https://tug.org/svn/texlive?view=revision&revision=71525
Author:   karl
Date:     2024-06-14 23:42:27 +0200 (Fri, 14 Jun 2024)
Log Message:
-----------
texlogfilter (14jun24)

Modified Paths:
--------------
    trunk/Build/source/texk/texlive/linked_scripts/texlogfilter/texlogfilter
    trunk/Master/texmf-dist/doc/man/man1/texlogfilter.1
    trunk/Master/texmf-dist/doc/man/man1/texlogfilter.man1.pdf
    trunk/Master/texmf-dist/doc/support/texlogfilter/README
    trunk/Master/texmf-dist/doc/support/texlogfilter/texlogfilter.html
    trunk/Master/texmf-dist/scripts/texlogfilter/texlogfilter

Modified: trunk/Build/source/texk/texlive/linked_scripts/texlogfilter/texlogfilter
===================================================================
--- trunk/Build/source/texk/texlive/linked_scripts/texlogfilter/texlogfilter	2024-06-14 21:42:14 UTC (rev 71524)
+++ trunk/Build/source/texk/texlive/linked_scripts/texlogfilter/texlogfilter	2024-06-14 21:42:27 UTC (rev 71525)
@@ -1,7 +1,7 @@
 #!/usr/bin/env perl
 ################################################################################
 # texlogfilter - filter latex engines output or log file
-# Julien Labbé, 2021
+# Julien Labbé, 2021-2024
 #
 # This work may be distributed and/or modified under the conditions of the LaTeX
 # Project Public License, either version 1.3 of this license or (at your option)
@@ -16,7 +16,7 @@
 use Term::ANSIColor;
 
 my $name = "texlogfilter";
-my $version = "1.3";
+my $version = "1.4";
 
 # options
 my @userfilters;
@@ -188,7 +188,7 @@
     # assume currentfile is given in the last open parenthesis
     # (works badly for packages)
     if (/^[^(]*\)/) {$currentfile = ""; $lastfile = "";}
-    if (/\(([^)]+($extpattern))$/) {$currentfile = $1;}
+    if (/\(([^)]+($extpattern))[^)]*$/) {$currentfile = $1;}
 
     # try to show usefull lines following some warnings or errors (starting with
     # whitespaces or package name)
@@ -209,12 +209,13 @@
     elsif (/^(!|.*?:\d+:)/i)                                            { handle_error(); }
     elsif (/^No pages of output/i)                                      { handle_error(); }
 
-    # find warning
+    # find warnings
     elsif (/^(!\s+)?(Class|Package)\s+(\S+)?\s*Warning/i)               { if ($3){$currentpackage=$3}; handle_warning(0, "nofilename"); }
     elsif (/^(!\s+)?(LaTeX|\* LaTeX) Warning: (Citation|Reference)/i)   { if ($showrefmsg) {handle_warning();} }
     elsif (/^(!\s+)?(LaTeX|\* LaTeX) Font Warning/i)                    { $currentpackage="Font"; handle_warning(); }
     elsif (/^(!\s+)?(LaTeX|\* LaTeX) Warning/i)                         { handle_warning(); }
-    elsif (/Runaway argument\?/i)                                       { handle_warning(1); }
+    elsif (/Runaway (definition|argument|preamble|text)\?/i)            { handle_warning(1); }
+    elsif (/Missing character: There is no /i)                          { handle_warning(); }
     elsif (/(overfull|underfull|badbox)/i)                              { if ($showboxmsg){handle_warning(1);} }
 
     # find infos
@@ -336,14 +337,16 @@
 
 =head2 VERSION
 
-1.1
+1.3.1
 
 =head2 HISTORY
 
 =over
 
-=item * 2024, February, version 1.3: better detect the current file name.
+=item * 2024, June, versions 1.4: add warning patterns.
 
+=item * 2024, February, versions 1.3 and 1.3.1: better detect the current file name.
+
 =item * 2024, February, version 1.2: fix duplicate or missing lines; handle
 package and class names with hyphen; add info and warning patterns for fonts.
 

Modified: trunk/Master/texmf-dist/doc/man/man1/texlogfilter.1
===================================================================
--- trunk/Master/texmf-dist/doc/man/man1/texlogfilter.1	2024-06-14 21:42:14 UTC (rev 71524)
+++ trunk/Master/texmf-dist/doc/man/man1/texlogfilter.1	2024-06-14 21:42:27 UTC (rev 71525)
@@ -1,5 +1,5 @@
 .\" -*- mode: troff; coding: utf-8 -*-
-.\" Automatically generated by Pod::Man 5.01 (Pod::Simple 3.43)
+.\" Automatically generated by Pod::Man 5.0102 (Pod::Simple 3.45)
 .\"
 .\" Standard preamble:
 .\" ========================================================================
@@ -55,7 +55,7 @@
 .\" ========================================================================
 .\"
 .IX Title "TEXLOGFILTER 1"
-.TH TEXLOGFILTER 1 2024-02-14 texlogfilter "Julien Labbe"
+.TH TEXLOGFILTER 1 2024-06-14 texlogfilter "Julien Labbe"
 .\" For nroff, turn off justification.  Always turn off hyphenation; it makes
 .\" way too many mistakes in technical documents.
 .if n .ad l
@@ -136,12 +136,14 @@
 distributions of LaTeX version 2005/12/01 or later.
 .SS VERSION
 .IX Subsection "VERSION"
-1.1
+1.3.1
 .SS HISTORY
 .IX Subsection "HISTORY"
 .IP \(bu 4
-2024, February, version 1.3: better detect the current file name.
+2024, June, versions 1.4: add warning patterns.
 .IP \(bu 4
+2024, February, versions 1.3 and 1.3.1: better detect the current file name.
+.IP \(bu 4
 2024, February, version 1.2: fix duplicate or missing lines; handle
 package and class names with hyphen; add info and warning patterns for fonts.
 .IP \(bu 4

Modified: trunk/Master/texmf-dist/doc/man/man1/texlogfilter.man1.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/support/texlogfilter/README
===================================================================
--- trunk/Master/texmf-dist/doc/support/texlogfilter/README	2024-06-14 21:42:14 UTC (rev 71524)
+++ trunk/Master/texmf-dist/doc/support/texlogfilter/README	2024-06-14 21:42:27 UTC (rev 71525)
@@ -66,11 +66,14 @@
     of all distributions of LaTeX version 2005/12/01 or later.
 
   VERSION
-    1.1
+    1.3.1
 
   HISTORY
-    *   2024, February, version 1.3: better detect the current file name.
+    *   2024, June, versions 1.4: add warning patterns.
 
+    *   2024, February, versions 1.3 and 1.3.1: better detect the current
+        file name.
+
     *   2024, February, version 1.2: fix duplicate or missing lines; handle
         package and class names with hyphen; add info and warning patterns
         for fonts.

Modified: trunk/Master/texmf-dist/doc/support/texlogfilter/texlogfilter.html
===================================================================
--- trunk/Master/texmf-dist/doc/support/texlogfilter/texlogfilter.html	2024-06-14 21:42:14 UTC (rev 71524)
+++ trunk/Master/texmf-dist/doc/support/texlogfilter/texlogfilter.html	2024-06-14 21:42:27 UTC (rev 71525)
@@ -88,15 +88,18 @@
 
 <h2 id="VERSION">VERSION</h2>
 
-<p>1.1</p>
+<p>1.3.1</p>
 
 <h2 id="HISTORY">HISTORY</h2>
 
 <ul>
 
-<li><p>2024, February, version 1.3: better detect the current file name.</p>
+<li><p>2024, June, versions 1.4: add warning patterns.</p>
 
 </li>
+<li><p>2024, February, versions 1.3 and 1.3.1: better detect the current file name.</p>
+
+</li>
 <li><p>2024, February, version 1.2: fix duplicate or missing lines; handle package and class names with hyphen; add info and warning patterns for fonts.</p>
 
 </li>

Modified: trunk/Master/texmf-dist/scripts/texlogfilter/texlogfilter
===================================================================
--- trunk/Master/texmf-dist/scripts/texlogfilter/texlogfilter	2024-06-14 21:42:14 UTC (rev 71524)
+++ trunk/Master/texmf-dist/scripts/texlogfilter/texlogfilter	2024-06-14 21:42:27 UTC (rev 71525)
@@ -1,7 +1,7 @@
 #!/usr/bin/env perl
 ################################################################################
 # texlogfilter - filter latex engines output or log file
-# Julien Labbé, 2021
+# Julien Labbé, 2021-2024
 #
 # This work may be distributed and/or modified under the conditions of the LaTeX
 # Project Public License, either version 1.3 of this license or (at your option)
@@ -16,7 +16,7 @@
 use Term::ANSIColor;
 
 my $name = "texlogfilter";
-my $version = "1.3";
+my $version = "1.4";
 
 # options
 my @userfilters;
@@ -188,7 +188,7 @@
     # assume currentfile is given in the last open parenthesis
     # (works badly for packages)
     if (/^[^(]*\)/) {$currentfile = ""; $lastfile = "";}
-    if (/\(([^)]+($extpattern))$/) {$currentfile = $1;}
+    if (/\(([^)]+($extpattern))[^)]*$/) {$currentfile = $1;}
 
     # try to show usefull lines following some warnings or errors (starting with
     # whitespaces or package name)
@@ -209,12 +209,13 @@
     elsif (/^(!|.*?:\d+:)/i)                                            { handle_error(); }
     elsif (/^No pages of output/i)                                      { handle_error(); }
 
-    # find warning
+    # find warnings
     elsif (/^(!\s+)?(Class|Package)\s+(\S+)?\s*Warning/i)               { if ($3){$currentpackage=$3}; handle_warning(0, "nofilename"); }
     elsif (/^(!\s+)?(LaTeX|\* LaTeX) Warning: (Citation|Reference)/i)   { if ($showrefmsg) {handle_warning();} }
     elsif (/^(!\s+)?(LaTeX|\* LaTeX) Font Warning/i)                    { $currentpackage="Font"; handle_warning(); }
     elsif (/^(!\s+)?(LaTeX|\* LaTeX) Warning/i)                         { handle_warning(); }
-    elsif (/Runaway argument\?/i)                                       { handle_warning(1); }
+    elsif (/Runaway (definition|argument|preamble|text)\?/i)            { handle_warning(1); }
+    elsif (/Missing character: There is no /i)                          { handle_warning(); }
     elsif (/(overfull|underfull|badbox)/i)                              { if ($showboxmsg){handle_warning(1);} }
 
     # find infos
@@ -336,14 +337,16 @@
 
 =head2 VERSION
 
-1.1
+1.3.1
 
 =head2 HISTORY
 
 =over
 
-=item * 2024, February, version 1.3: better detect the current file name.
+=item * 2024, June, versions 1.4: add warning patterns.
 
+=item * 2024, February, versions 1.3 and 1.3.1: better detect the current file name.
+
 =item * 2024, February, version 1.2: fix duplicate or missing lines; handle
 package and class names with hyphen; add info and warning patterns for fonts.
 



More information about the tex-live-commits mailing list.