summaryrefslogtreecommitdiff
path: root/tex/context/base/mkiv/lang-dis.lua
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2017-02-25 17:26:17 +0100
committerContext Git Mirror Bot <phg42.2a@gmail.com>2017-02-25 17:26:17 +0100
commita616b343d8dfe81008c9e8aee253cf31f088f35b (patch)
treeced45226ad64ca20c507fc062c2fcab8f8bf6693 /tex/context/base/mkiv/lang-dis.lua
parentb614515b957fb2283a848d1204952a72f31b0ac7 (diff)
downloadcontext-a616b343d8dfe81008c9e8aee253cf31f088f35b.tar.gz
2017-02-25 16:30:00
Diffstat (limited to 'tex/context/base/mkiv/lang-dis.lua')
-rw-r--r--tex/context/base/mkiv/lang-dis.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/tex/context/base/mkiv/lang-dis.lua b/tex/context/base/mkiv/lang-dis.lua
index 42abea569..448966d49 100644
--- a/tex/context/base/mkiv/lang-dis.lua
+++ b/tex/context/base/mkiv/lang-dis.lua
@@ -96,6 +96,12 @@ local expanders = {
return template
end,
[automatic_code] = function(d,template)
+ -- the penalty has been determined by the mode (currently we force 1):
+ --
+ -- 0 : exhyphenpenalty
+ -- 1 : hyphenpenalty
+ -- 2 : automatichyphenpenalty
+ --
-- following a - : the pre and post chars are already appended and set
-- so we have pre=preex and post=postex .. however, the previous
-- hyphen is already injected ... downside: the font handler sees this