summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorwlemb <wlemb>2003-01-25 16:57:40 +0000
committerwlemb <wlemb>2003-01-25 16:57:40 +0000
commitbe78d187113a40c88e1dcc5736895148247a9600 (patch)
treef07dde40b256fa9b2b7aa67537cdcb0504e62eaa /doc
parentfec4b0b151d32506eb0ee8c8b6220a312d392e6d (diff)
downloadgroff-be78d187113a40c88e1dcc5736895148247a9600.tar.gz
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.
Diffstat (limited to 'doc')
-rw-r--r--doc/groff.texinfo5
1 files changed, 3 insertions, 2 deletions
diff --git a/doc/groff.texinfo b/doc/groff.texinfo
index bf6f338b..77ff2846 100644
--- a/doc/groff.texinfo
+++ b/doc/groff.texinfo
@@ -6116,11 +6116,12 @@ can use character codes which would be invalid otherwise.
@pindex troffrc
@pindex troffrc-end
@pindex hyphen.us
+@pindex hyphenex.us
The set of hyphenation patterns is associated with the current language
set by the @code{hla} request. The @code{hpf} request is usually
invoked by the @file{troffrc} or @file{troffrc-end} file; by default,
-@file{troffrc} loads hyphenation patterns for American English (in file
-@file{hyphen.us}).
+@file{troffrc} loads hyphenation patterns and exceptions for American
+English (in files @file{hyphen.us} and @file{hyphenex.us}).
A second call to @code{hpf} (for the same language) will replace the
hyphenation patterns with the new ones.