summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Build/source/texk/web2c/luatexdir/lang/texlang.c13
-rw-r--r--Build/source/texk/web2c/luatexdir/luatex_svnversion.h2
2 files changed, 13 insertions, 2 deletions
diff --git a/Build/source/texk/web2c/luatexdir/lang/texlang.c b/Build/source/texk/web2c/luatexdir/lang/texlang.c
index 323d27c5865..48a242fa09b 100644
--- a/Build/source/texk/web2c/luatexdir/lang/texlang.c
+++ b/Build/source/texk/web2c/luatexdir/lang/texlang.c
@@ -983,7 +983,18 @@ void hnj_hyphenation(halfword head, halfword tail)
halfword hyf_font;
halfword end_word = r;
wordstart = r;
- assert(is_simple_character(wordstart));
+ /*assert(is_simple_character(wordstart));*/
+ if (!(is_simple_character(wordstart))){
+ if (!(is_character(wordstart))) {
+ tex_error("the word doesn't start with a character", NULL);
+ } else if (is_ligature(wordstart)) {
+ tex_error("the word starts with a ligature", NULL);
+ } else if (is_ghost(wordstart)) {
+ tex_error("the word starts with a ghost glyph", NULL);
+ } else {
+ tex_error("the word doesn't start with a simple character", NULL);
+ }
+ }
hyf_font = font(wordstart);
if (hyphen_char(hyf_font) < 0) {
/*tex For backward compatibility we set: */
diff --git a/Build/source/texk/web2c/luatexdir/luatex_svnversion.h b/Build/source/texk/web2c/luatexdir/luatex_svnversion.h
index 33a7f462889..818cae4af73 100644
--- a/Build/source/texk/web2c/luatexdir/luatex_svnversion.h
+++ b/Build/source/texk/web2c/luatexdir/luatex_svnversion.h
@@ -1 +1 @@
-#define luatex_svn_revision 7384
+#define luatex_svn_revision 7385