diff options
author | wlemb <wlemb> | 2002-03-22 16:11:16 +0000 |
---|---|---|
committer | wlemb <wlemb> | 2002-03-22 16:11:16 +0000 |
commit | d3ee1a9bb3f7ade0b59bc6f5f20707f11ef809f8 (patch) | |
tree | f3c1028a19808b0aa7b849f941bb7ee171d2943e /NEWS | |
parent | 94890fcbf6dc9668f5e16b95c17cbafc49600721 (diff) | |
download | groff-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 'NEWS')
-rw-r--r-- | NEWS | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -81,6 +81,14 @@ o Two new requests `ds1' and `as1' which are similar to `ds' and `as' but with compatibility mode disabled during expansion of strings defined by them. +o `.hpf' has been extended. It can now handle most TeX hyphenation + patterns file without modification. To do that, the commands \patterns, + \hyphenation, and \endinput are recognized. Please refer to groff_diff.7 + for more information. + +o `hpfcode' is a new request to provide an input encoding mapping for the + `hpf' request. + o The new request `hpfa' appends hyphenation patterns (`hpf' replaces already existing patterns). |