summaryrefslogtreecommitdiff
path: root/tmac/doc-common
diff options
context:
space:
mode:
authorwlemb <wlemb>2002-03-22 16:11:16 +0000
committerwlemb <wlemb>2002-03-22 16:11:16 +0000
commitd3ee1a9bb3f7ade0b59bc6f5f20707f11ef809f8 (patch)
treef3c1028a19808b0aa7b849f941bb7ee171d2943e /tmac/doc-common
parent94890fcbf6dc9668f5e16b95c17cbafc49600721 (diff)
downloadgroff-d3ee1a9bb3f7ade0b59bc6f5f20707f11ef809f8.tar.gz
Improve handling of hyphenation patterns. It is now possible to
use most of TeX's pattern files unmodified. To make the process more flexible, a new request `hpfcode' has been added which provides a character code mapping for the `hpf' request. See comment before hpf_getc() for more details. * src/roff/troff/env.cc (insert_hyphenation, hpf_getc): New functions. (read_patterns_file): Additional parameter for exception dictionary. Extended to recognize \pattern, \hyphenation, and \endinput. (do_hyphenation_patterns_file): Updated. * src/roff/troff/env.h (hpf_code_table): New extern. * src/roff/troff/input.cc (hpf_code_table): New array. (init_hpf_code_table, hyphenation_patterns_file_code): New functions. (hyphenation_code): Handle translation from `trin' correctly. (main, init_input_requests): Updated. (charinfo::set_translation): Handle hyphenation code also. * src/roff/troff/charinfo.h (charinfo::get_translation_input): New inline function. * src/roff/troff/env.cc (WORD_MAX): Reduced to 256 since `unsigned char' is used for offsets in hyphenation exceptions. * tmac/hyphen.us: Replace with contents of unmodified `hyphen.tex'. * NEWS, man/groff_diff.man, man/groff.man: Document it. * doc/groff.texinfo: Document possible conflict between `tr' and `char' requests.
Diffstat (limited to 'tmac/doc-common')
0 files changed, 0 insertions, 0 deletions