aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dw/hyphenator.cc4
-rw-r--r--test/hyph-de-1996.pat25
-rw-r--r--test/hyph-en-us.pat22
3 files changed, 49 insertions, 2 deletions
diff --git a/dw/hyphenator.cc b/dw/hyphenator.cc
index 6774f1c8..6af77603 100644
--- a/dw/hyphenator.cc
+++ b/dw/hyphenator.cc
@@ -51,7 +51,7 @@ Hyphenator::Hyphenator (core::Platform *platform,
while (!feof (patF)) {
char buf[LEN + 1];
char *s = fgets (buf, LEN, patF);
- if (s) {
+ if (s && s[0] != '%') { // ignore lines starting with '%' as comment
// TODO Better exit with an error, when the line is too long.
int l = strlen (s);
if (s[l - 1] == '\n')
@@ -73,7 +73,7 @@ Hyphenator::Hyphenator (core::Platform *platform,
while (!feof (excF)) {
char buf[LEN + 1];
char *s = fgets (buf, LEN, excF);
- if (s) {
+ if (s && s[0] != '%') { // ignore lines starting with '%' as comment
// TODO Better exit with an error, when the line is too long.
int l = strlen (s);
if (s[l - 1] == '\n')
diff --git a/test/hyph-de-1996.pat b/test/hyph-de-1996.pat
index e922353e..302951de 100644
--- a/test/hyph-de-1996.pat
+++ b/test/hyph-de-1996.pat
@@ -1,3 +1,28 @@
+% TeX-Trennmuster für die reformierte (2006) deutsche Rechtschreibung
+%
+%
+% Copyright (C) 2007, 2008, 2009, 2011, 2012 Werner Lemberg <wl@gnu.org>
+%
+% This program can be redistributed and/or modified under the terms
+% of the LaTeX Project Public License Distributed from CTAN
+% archives in directory macros/latex/base/lppl.txt; either
+% version 1 of the License, or any later version.
+%
+%
+% The word list is available from
+%
+% http://repo.or.cz/w/wortliste.git?a=commit;h=7915938d035684993f8c363729f963eec71c85b1
+%
+% The used patgen parameters are
+%
+% 1 1 | 2 5 | 1 1 1
+% 2 2 | 2 5 | 1 2 1
+% 3 3 | 2 6 | 1 1 1
+% 4 4 | 2 6 | 1 4 1
+% 5 5 | 2 7 | 1 1 1
+% 6 6 | 2 7 | 1 6 1
+% 7 7 | 2 13 | 1 4 1
+% 8 8 | 2 13 | 1 8 1
.ab1a
.abi4
.ab3l
diff --git a/test/hyph-en-us.pat b/test/hyph-en-us.pat
index f69e835d..7d54d034 100644
--- a/test/hyph-en-us.pat
+++ b/test/hyph-en-us.pat
@@ -1,3 +1,25 @@
+% version of 2005-05-30.
+% Patterns of March 1, 1990.
+%
+% Copyright (C) 1990, 2004, 2005 Gerard D.C. Kuiken.
+% Copying and distribution of this file, with or without modification,
+% are permitted in any medium without royalty provided the copyright
+% notice and this notice are preserved.
+%
+% Needs extended pattern memory.
+% Hyphenation trie becomes 7283 with 377 ops.
+%
+% These patterns are based on the Hyphenation Exception Log
+% published in TUGboat, Volume 10 (1989), No. 3, pp. 337-341,
+% and a large number of incorrectly hyphenated words not yet published.
+% If added to Liang's before the closing bracket } of \patterns,
+% the patterns run errorfree as far as known at this moment.
+%
+% These patterns find all admissible hyphens of the words in
+% the Exception Log. ushyph2.tex is a smaller set.
+%
+% Please send bugs or suggestions to tex-live (at) tug.org.
+%
.ach4
.ad4der
.af1t