ref: eb3870332f30b4726793496e1513ff9016f68d6f
parent: df5cfb6498460292e986bd24e28f57717decc65b
author: Ali Gholami Rudi <[email protected]>
date: Mon Dec 15 11:18:25 EST 2014
hyph: prevent hyphenation on unrecognised characters
--- a/hyph.c
+++ b/hyph.c
@@ -109,7 +109,7 @@
hy_find(w + c[i], n + c[i]);
memset(hyph, 0, wlen * sizeof(hyph[0]));
for (i = 3; i < nc - 2; i++)
- if (n[c[i]] % 2 && w[c[i - 1]] != '.' &&
+ if (n[c[i]] % 2 && w[c[i - 1]] != '.' && w[c[i]] != '.' &&
w[c[i - 2]] != '.' && w[c[i + 1]] != '.' &&
(~flg & HY_FINAL2 || w[c[i + 2]] != '.') &&
(~flg & HY_FIRST2 || w[c[i - 3]] != '.'))