summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2024-06-14 21:42:27 +0000
committerKarl Berry <karl@freefriends.org>2024-06-14 21:42:27 +0000
commitbb242cd81dbec769b223473039bff23014587fb7 (patch)
treefc6ef40e4c36c4997d6d1b94a984a5c09359cf0a
parente9a5988c90a3109c0c8278e9f60c0c0ea513b40c (diff)
texlogfilter (14jun24)
git-svn-id: svn://tug.org/texlive/trunk@71525 c570f23f-e606-0410-a88d-b1316a301751
-rwxr-xr-xBuild/source/texk/texlive/linked_scripts/texlogfilter/texlogfilter17
-rw-r--r--Master/texmf-dist/doc/man/man1/texlogfilter.110
-rw-r--r--Master/texmf-dist/doc/man/man1/texlogfilter.man1.pdfbin24794 -> 24904 bytes
-rw-r--r--Master/texmf-dist/doc/support/texlogfilter/README7
-rw-r--r--Master/texmf-dist/doc/support/texlogfilter/texlogfilter.html7
-rwxr-xr-xMaster/texmf-dist/scripts/texlogfilter/texlogfilter17
6 files changed, 36 insertions, 22 deletions
diff --git a/Build/source/texk/texlive/linked_scripts/texlogfilter/texlogfilter b/Build/source/texk/texlive/linked_scripts/texlogfilter/texlogfilter
index 341318e5764..d5086b75e8d 100755
--- a/Build/source/texk/texlive/linked_scripts/texlogfilter/texlogfilter
+++ b/Build/source/texk/texlive/linked_scripts/texlogfilter/texlogfilter
@@ -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 Getopt::Long;
use Term::ANSIColor;
my $name = "texlogfilter";
-my $version = "1.3";
+my $version = "1.4";
# options
my @userfilters;
@@ -188,7 +188,7 @@ while (<>) {
# 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 @@ while (<>) {
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,13 +337,15 @@ distributions of LaTeX version 2005/12/01 or later.
=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.
diff --git a/Master/texmf-dist/doc/man/man1/texlogfilter.1 b/Master/texmf-dist/doc/man/man1/texlogfilter.1
index 4d14fc36ecf..d15c2b983f5 100644
--- a/Master/texmf-dist/doc/man/man1/texlogfilter.1
+++ b/Master/texmf-dist/doc/man/man1/texlogfilter.1
@@ -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,11 +136,13 @@ any later version. The latest version of this license is in
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.
diff --git a/Master/texmf-dist/doc/man/man1/texlogfilter.man1.pdf b/Master/texmf-dist/doc/man/man1/texlogfilter.man1.pdf
index b69be79f2e2..43f2ea61252 100644
--- a/Master/texmf-dist/doc/man/man1/texlogfilter.man1.pdf
+++ b/Master/texmf-dist/doc/man/man1/texlogfilter.man1.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/support/texlogfilter/README b/Master/texmf-dist/doc/support/texlogfilter/README
index d621a2aeb4b..e2f626bed7d 100644
--- a/Master/texmf-dist/doc/support/texlogfilter/README
+++ b/Master/texmf-dist/doc/support/texlogfilter/README
@@ -66,10 +66,13 @@ texlogfilter
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
diff --git a/Master/texmf-dist/doc/support/texlogfilter/texlogfilter.html b/Master/texmf-dist/doc/support/texlogfilter/texlogfilter.html
index 350951829e8..1df9cdb0652 100644
--- a/Master/texmf-dist/doc/support/texlogfilter/texlogfilter.html
+++ b/Master/texmf-dist/doc/support/texlogfilter/texlogfilter.html
@@ -88,13 +88,16 @@
<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>
diff --git a/Master/texmf-dist/scripts/texlogfilter/texlogfilter b/Master/texmf-dist/scripts/texlogfilter/texlogfilter
index 341318e5764..d5086b75e8d 100755
--- a/Master/texmf-dist/scripts/texlogfilter/texlogfilter
+++ b/Master/texmf-dist/scripts/texlogfilter/texlogfilter
@@ -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 Getopt::Long;
use Term::ANSIColor;
my $name = "texlogfilter";
-my $version = "1.3";
+my $version = "1.4";
# options
my @userfilters;
@@ -188,7 +188,7 @@ while (<>) {
# 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 @@ while (<>) {
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,13 +337,15 @@ distributions of LaTeX version 2005/12/01 or later.
=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.