INSTALLATION

Copy findhyph or findhyph.bat (depending on \s-1OS\s0 used) to a directory included in system \s-1PATH\s0. Perl interpreter is required to be in \*(C`/usr/bin/\*(C' for Unix-like systems or in \s-1PATH\s0 when using findhyph.bat.

SYNOPSIS

findhyph [options] foo.log

DESCRIPTION

To use this program:

1)

set \*(C`\tracingparagraphs=1\*(C' in a TeX document foo.tex and run:

2)

tex foo.tex

3)

findhyph [options] foo.log

If you are setting \*(C`\looseness=<N>\*(C' to optimize paragraphs, you need to pass that information to the file foo.log in a form \*(C`@looseness=<N>\*(C' (on a separate line). You can use a macro like \*(C`\def\setlooseness#1{\looseness=#1 \immediate\write-1{@looseness=#1}}\*(C' for this purpose. If the paragraph contains material in display math mode, you need to use the macro in all split parts of the paragraph.

OPTIONS

-c

display hyphenated words in context

-f

display font selectors and other strings starting with a backslash character

-v

display program version

-p

generate file containing information about one-letter prepositions and conjunctions left at the end of line

-l=STRING

use prepositions/conjunctions listed in \s-1STRING\s0 instead of default list of prepositions and conjunctions \*(C`kKsSvVzZoOuUiIA\*(C' used for Slovak and Czech language

OUTPUT FILES

foo.hyph

List of hyphenated words. All punctuation characters, parentheses and other character immediately preceding or following displayed words are included in this list. TeX constructs which are too difficult to display (\*(C`\hbox{}\*(C', \*(C`\mark{}\*(C' etc.) are shown as \*(C`[]\*(C'. Math mode is indicated by \*(C`$\*(C' sign. Page numbers in square brackets refer to \s-1LOG\s0 file and may occasionally differ from the typeset document. The reason is that TeX may need to break more paragraphs than it would eventually fit on the page in order to find a page break. Words hyphenated in footnotes are listed before the words hyphenated in the paragraph in which the footnote is referenced.

foo.prep

List of prepositions if option -p is used.

HISTORY

1.0 (2001-04-08)

  • public release

2.0 (2009-08-10)

  • fixes in line breaks detection algorithm; support for the third pass of line breaking algorithm in TeX (positive \emergencystretch); support for discretionary breaks in the first pass

  • page number detection improved (recognized negative page numbers, compound page numbers when \*(C`\count1\*(C' to \*(C`\count9\*(C' registers are non-zero and \*(C`[nn{mapfile}]\*(C', \*(C`[nn<picture>]\*(C' and \*(C`[nn<newline>\*(C' formats used by pdfTeX; false page number detection should be much more rare)

  • configurable list of prepositions and conjunctions

  • hyphenated words can be displayed in context

  • suggestions and testing by Pavel Striz

3.0 (2012-02-01)

  • fixed a bug when total paragraph demerits are negative

  • \*(C`\looseness\*(C' setting is now taken into account (thanks to Karel Horak for identifying the issue)

3.1 (2012-11-03)

  • fixed displaying of hyphenated ligatures (bug reported by Karel Horak)

3.2 (2012-11-21)

  • improved example definition of the \*(C`\setlooseness\*(C' macro (thanks to Karl Berry)

3.3 (2013-06-18)

  • fixed the manual page as suggested by Eric S. Raymond

LICENSE

This program is free software; you can redistribute it and/or modify it under the terms of the \s-1GNU\s0 General Public License as published by the Free Software Foundation; either version 2 of the License, or any later version.

AUTHOR

Copyright (c) Martin Budaj <[email protected]> 2000, 2001, 2009, 2012