summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/scripts/findhyph
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2015-10-19 22:36:23 +0000
committerKarl Berry <karl@freefriends.org>2015-10-19 22:36:23 +0000
commit246e641675931ad30bc0ca272fd0ccbad1b50b2a (patch)
tree7ef50e2c0c647eb6c59ab53ad178d6691ef7a480 /Master/texmf-dist/scripts/findhyph
parent90eab0f6fae15d48f312525a7613f63546292087 (diff)
findhyph (19oct15)
git-svn-id: svn://tug.org/texlive/trunk@38674 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/scripts/findhyph')
-rwxr-xr-xMaster/texmf-dist/scripts/findhyph/findhyph36
1 files changed, 27 insertions, 9 deletions
diff --git a/Master/texmf-dist/scripts/findhyph/findhyph b/Master/texmf-dist/scripts/findhyph/findhyph
index 7436af4c552..b4a42ba35d3 100755
--- a/Master/texmf-dist/scripts/findhyph/findhyph
+++ b/Master/texmf-dist/scripts/findhyph/findhyph
@@ -6,7 +6,7 @@ $opt_l = 'kKsSvVzZoOuUiIA'; # defaults for Slovak and Czech
$opt_c = $opt_f = $opt_h = $opt_v = 0;
getopts('cfphvl:');
-$version_msg = "findhyph version 3.2\n";
+$version_msg = "findhyph version 3.4\n";
$help_msg = "\nUsage: findhyph [options] <yourtexfile.log>\n" .
"\n" .
"Options: -c display hyphenated words in context\n" .
@@ -36,7 +36,7 @@ $act_text = "";
$looseness = 0;
while(<IN>) {
- chomp;
+ s/[\r\n]*$//;
if (/^\@looseness=(\-?\d+)$/) {
$looseness = $1;
}
@@ -70,7 +70,7 @@ while(<IN>) {
%LOOSE = ();
next;
}
- if ($search && /^@@(\d+): line (\d+)\..+ t=(\-?\d+) \-\> @@(\d+)/) {
+ if ($search && /^@@(\d+): line (\d+)\..+ t=(\-?\d+) (?:s=\S+ (?:g|a)=\S+ )?\-\> @@(\d+)/) {
$act_break = $1;
$BREAKS{$act_break}{'prev'} = $4;
if ($endgraf && $3 < $demerits) {
@@ -205,9 +205,11 @@ sub do_hyph {
__END__
+=encoding utf8
+
=head1 NAME
-B<findhyph> - find words hyphenated by TeX in a document
+B<findhyph> – find words hyphenated by TeX in a document
=head1 INSTALLATION
@@ -320,7 +322,7 @@ public release
=item *
fixes in line breaks detection algorithm; support for the third pass of line
-breaking algorithm in TeX (positive \emergencystretch); support for
+breaking algorithm in TeX (positive C<\emergencystretch>); support for
discretionary breaks in the first pass
=item *
@@ -340,7 +342,7 @@ hyphenated words can be displayed in context
=item *
-suggestions and testing by Pavel Striz
+suggestions and testing by Pavel Stříž
=back
@@ -354,7 +356,7 @@ fixed a bug when total paragraph demerits are negative
=item *
-C<\looseness> setting is now taken into account (thanks to Karel Horak
+C<\looseness> setting is now taken into account (thanks to Karel Horák
for identifying the issue)
=back
@@ -365,7 +367,7 @@ for identifying the issue)
=item *
-fixed displaying of hyphenated ligatures (bug reported by Karel Horak)
+fixed displaying of hyphenated ligatures (bug reported by Karel Horák)
=back
@@ -390,6 +392,21 @@ fixed the manual page as suggested by Eric S. Raymond
=back
+=head4 3.4 (2015-10-18)
+
+=over 4
+
+=item *
+
+fixed processing of logs produced using ε-TeX's C<\lastlinefit> option
+(bug reported by Karel Horák)
+
+=item *
+
+fixed cross-platform handling of linebreaks in the input file
+
+=back
+
=head1 LICENSE
This program is free software; you can redistribute it and/or modify
@@ -399,6 +416,7 @@ any later version.
=head1 AUTHOR
-Copyright (c) Martin Budaj E<lt>m.b@speleo.skE<gt> 2000, 2001, 2009, 2012
+Copyright (c) Martin Budaj E<lt>m.b@speleo.skE<gt> 2000, 2001, 2009, 2012,
+2015
=cut