summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/luatexdir/lang
diff options
context:
space:
mode:
authorLuigi Scarso <luigi.scarso@gmail.com>2022-02-25 19:02:02 +0000
committerLuigi Scarso <luigi.scarso@gmail.com>2022-02-25 19:02:02 +0000
commit7fd23e1688a45a7f1d30afeafa4b10549ea5fe76 (patch)
tree96fe30c7f8550074b46ae48dabaea949cbaad4a8 /Build/source/texk/web2c/luatexdir/lang
parentd57fc63a2cb82c2e25db58c2633fdb3c23474ddd (diff)
Lower max to 10000 and reverse check to max check exception penalty (H.Hagen).
git-svn-id: svn://tug.org/texlive/trunk@62173 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/luatexdir/lang')
-rw-r--r--Build/source/texk/web2c/luatexdir/lang/texlang.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Build/source/texk/web2c/luatexdir/lang/texlang.c b/Build/source/texk/web2c/luatexdir/lang/texlang.c
index ba7614ffafc..67ef25ca1d1 100644
--- a/Build/source/texk/web2c/luatexdir/lang/texlang.c
+++ b/Build/source/texk/web2c/luatexdir/lang/texlang.c
@@ -674,10 +674,10 @@ static void do_exception(halfword wordstart, halfword r, char *replacement)
/*tex Let's check if we have a penalty spec. */
if (((i+3) < len) && uword[i+1] == '[' && uword[i+2] >= '0' && uword[i+2] <= '9' && uword[i+3] == ']') {
if (exception_penalty_par > 0) {
- if (exception_penalty_par > 100000) {
- pen = (uword[i+2] - '0') * exception_penalty_par ;
- } else {
+ if (exception_penalty_par > 10000) {
pen = exception_penalty_par;
+ } else {
+ pen = (uword[i+2] - '0') * exception_penalty_par ;
}
} else {
pen = hyphen_penalty_par;
@@ -993,7 +993,7 @@ void hnj_hyphenation(halfword head, halfword tail)
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) {