summaryrefslogtreecommitdiff
path: root/tex/context/base/lang-hyp.lua
diff options
context:
space:
mode:
authorContext Git Mirror Bot <phg42.2a@gmail.com>2015-09-13 17:15:07 +0200
committerContext Git Mirror Bot <phg42.2a@gmail.com>2015-09-13 17:15:07 +0200
commitc9ac836b7b44d49c623ad8052639ca7beeaf1311 (patch)
treebc84331e7425b30b471feada722ff797f4b45403 /tex/context/base/lang-hyp.lua
parent31cd4d643836f69279b399acf864474c1283b8f5 (diff)
downloadcontext-c9ac836b7b44d49c623ad8052639ca7beeaf1311.tar.gz
2015-09-13 13:33:00
Diffstat (limited to 'tex/context/base/lang-hyp.lua')
-rw-r--r--tex/context/base/lang-hyp.lua9
1 files changed, 8 insertions, 1 deletions
diff --git a/tex/context/base/lang-hyp.lua b/tex/context/base/lang-hyp.lua
index 496cfd19b..8e17721ed 100644
--- a/tex/context/base/lang-hyp.lua
+++ b/tex/context/base/lang-hyp.lua
@@ -818,7 +818,7 @@ if context then
local joinerchars = featureset.joiners
local alternative = featureset.alternative
local rightwordmin = tonumber(featureset.rightwordmin)
- local charmin = tonumber(featureset.charmin)
+ local charmin = tonumber(featureset.charmin) -- luatex now also has hyphenationmin
local leftcharmin = tonumber(featureset.leftcharmin)
local rightcharmin = tonumber(featureset.rightcharmin)
local rightedge = featureset.rightedge
@@ -958,6 +958,7 @@ if context then
local characters = nil
local unicodes = nil
local exhyphenchar = tex.exhyphenchar
+ -- local discpenalty = tex.discpenalty -- makes no sense globally
local extrachars = nil
local hyphenchars = nil
local language = nil
@@ -1180,6 +1181,9 @@ if context then
if attributes then
setfield(disc,"attr",attributes)
end
+ -- if discpenalty > 0 then
+ -- setfield(disc,"penalty",discpenalty)
+ -- end
-- could be a replace as well
insert_before(first,current,disc)
elseif type(r) == "table" then
@@ -1201,6 +1205,9 @@ if context then
if attributes then
setfield(disc,"attr",attributes)
end
+ -- if discpenalty > 0 then
+ -- setfield(disc,"penalty",discpenalty)
+ -- end
insert_before(first,current,disc)
else
setfield(current,"char",characters[r])