ref: f22eca6a0b1783231b743d550fc38035fc4bcd5c
parent: b01175229102277d71f34c45c8360a0426c094bf
author: Ali Gholami Rudi <ali@rudi.ir>
date: Tue Jul 1 20:18:46 EDT 2014
hyph: load english hyphenation patterns with ".hpf" When the .hpf and .hpfa requests have no arguments, neatroff loads the built-in English hyphenation patterns and exceptions.
--- a/hyph.c
+++ b/hyph.c
@@ -240,9 +240,14 @@
{
char tok[ILNLEN];
FILE *filp;
+ hyinit = 1;
+ /* load english hyphenation patterns with no arguments */
+ if (!args[1]) {
+ hyph_readpatterns(en_patterns);
+ hyph_readexceptions(en_exceptions);
+ }
/* reading patterns */
if (args[1]) {
- hyinit = 1;
filp = fopen(args[1], "r");
while (fscanf(filp, "%s", tok) == 1)
if (strlen(tok) < WORDLEN)