Add US-english hyphenation exceptions (converted from Barbara
commit7a85ce8f6f40f52889dc33d69413839100af302f
authorWerner LEMBERG <wl@gnu.org>
Sat, 25 Jan 2003 16:57:48 +0000 (25 16:57 +0000)
committerWerner LEMBERG <wl@gnu.org>
Sat, 25 Jan 2003 16:57:48 +0000 (25 16:57 +0000)
treef73b372f823d0c0cc859089483d555ecd490724a
parentf25587085a721a941e39997ba480189d34e6a023
Add US-english hyphenation exceptions (converted from Barbara
Beeton's hyphenation exception log reports which appear irregularly
in TUGBoat).

* tmac/hyphen.us: Updated to latest version.
* tmac/README: Updated.
* tmac/hyphenex.us, tmac/hyphenex.sh: New files.
* tmac/troffrc: Load `hyphenex.us'.
* tmac/Makefile.sub (NORMALFILES): Add `hyphenex.us'.
* doc/groff.texinfo: Updated.

Improve hyphenation slightly.  This is a first step in redesigning
the hyphenation algorithm to make it more flexible (e.g. allowing
kerns and ligatures between the hyphenation character and the
following character -- while not used normally in English, other
languages like German would benefit).

* src/roff/troff/env.cc (environment::hyphenate_line): Use
assertion instead of if-clause.
Let `get_hyphen_list' return the number of involved characters in
the hyphenation pattern instead of computing it directly (which
often yields too small values).
* src/roff/troff/node.h (*::get_hyphen_list): Add second parameter.
* src/roff/troff/node.cc (*::get_hyphen_list): Handle new second
parameter.

Fixing a bug which caused groff to hang if the hyphenation exception
dictionary tried to grow.

* src/roff/troff/env.cc (hyphen_trie::insert_hyphenation,
hyphen_trie::read_patterns_file, do_hyphenation_patterns_file): Use
pointer to dictionary.
ChangeLog
doc/groff.texinfo
src/roff/troff/env.cc
src/roff/troff/node.cc
src/roff/troff/node.h
tmac/Makefile.sub
tmac/README
tmac/hyphen.us
tmac/troffrc