From 246e641675931ad30bc0ca272fd0ccbad1b50b2a Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Mon, 19 Oct 2015 22:36:23 +0000 Subject: findhyph (19oct15) git-svn-id: svn://tug.org/texlive/trunk@38674 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/scripts/findhyph/findhyph | 36 +++++++++++++++++++++-------- 1 file changed, 27 insertions(+), 9 deletions(-) (limited to 'Master/texmf-dist/scripts/findhyph') 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] \n" . "\n" . "Options: -c display hyphenated words in context\n" . @@ -36,7 +36,7 @@ $act_text = ""; $looseness = 0; while() { - chomp; + s/[\r\n]*$//; if (/^\@looseness=(\-?\d+)$/) { $looseness = $1; } @@ -70,7 +70,7 @@ while() { %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 - find words hyphenated by TeX in a document +B – 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 Em.b@speleo.skE 2000, 2001, 2009, 2012 +Copyright (c) Martin Budaj Em.b@speleo.skE 2000, 2001, 2009, 2012, +2015 =cut -- cgit v1.2.3