summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/context/base/mkiv/lang-exp.lua
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/context/base/mkiv/lang-exp.lua')
-rw-r--r--Master/texmf-dist/tex/context/base/mkiv/lang-exp.lua36
1 files changed, 17 insertions, 19 deletions
diff --git a/Master/texmf-dist/tex/context/base/mkiv/lang-exp.lua b/Master/texmf-dist/tex/context/base/mkiv/lang-exp.lua
index 254961ee6f9..70fad48b0fe 100644
--- a/Master/texmf-dist/tex/context/base/mkiv/lang-exp.lua
+++ b/Master/texmf-dist/tex/context/base/mkiv/lang-exp.lua
@@ -31,8 +31,6 @@ local expanders -- this will go away
if LUATEXVERSION < 1.005 then -- not loaded any more
- -- some shortcuts go here
-
expanders = {
[discretionary_code] = function(d,template)
-- \discretionary
@@ -174,23 +172,23 @@ languages.expanders = expanders
----- expand_explicit = expanders and expanders[explicit_code]
----- expand_automatic = expanders and expanders[automatic_code]
--- if LUATEXVERSION < 1.005 then -- not loaded any more
---
--- expanded = function(head)
--- local done = hyphenate(head)
--- if done then
--- for d in traverse_id(disc_code,head) do
--- local s = getsubtype(d)
--- if s ~= discretionary_code then
--- expanders[s](d,template)
--- done = true
--- end
--- end
--- end
--- return head, done
--- end
---
--- end
+if LUATEXVERSION < 1.005 then -- not loaded any more
+
+ expanded = function(head)
+ local done = hyphenate(head)
+ if done then
+ for d in traverse_id(disc_code,tonut(head)) do
+ local s = getsubtype(d)
+ if s ~= discretionary_code then
+ expanders[s](d,template)
+ done = true
+ end
+ end
+ end
+ return head, done
+ end
+
+end
-- if id == disc_code then
-- if expanded then