summaryrefslogtreecommitdiff
path: root/tmac/hyphen.us
Commit message (Collapse)AuthorAgeFilesLines
* Add US-english hyphenation exceptions (converted from Barbarawlemb2003-01-251-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Improve handling of hyphenation patterns. It is now possible towlemb2002-03-221-0/+4466
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* *** empty log message ***wlemb2002-03-221-4449/+0
|
* *** empty log message ***wlemb2000-10-231-0/+4449