diff options
| author | Hans Hagen <pragma@wxs.nl> | 2021-05-16 11:46:45 +0200 | 
|---|---|---|
| committer | Context Git Mirror Bot <phg@phi-gamma.net> | 2021-05-16 11:46:45 +0200 | 
| commit | 330909ad62342ff873dc758b909968c66d0252a4 (patch) | |
| tree | 72b7552cdc6925b962badb33aa9b307d949144b0 /tex/context/base/mkiv/lang-dis.lua | |
| parent | 4396699cb99f42f6378ed7229788bbceb898851a (diff) | |
| download | context-330909ad62342ff873dc758b909968c66d0252a4.tar.gz | |
2021-05-15 22:44:00
Diffstat (limited to 'tex/context/base/mkiv/lang-dis.lua')
| -rw-r--r-- | tex/context/base/mkiv/lang-dis.lua | 13 | 
1 files changed, 6 insertions, 7 deletions
| diff --git a/tex/context/base/mkiv/lang-dis.lua b/tex/context/base/mkiv/lang-dis.lua index 3e4678801..f6b27175c 100644 --- a/tex/context/base/mkiv/lang-dis.lua +++ b/tex/context/base/mkiv/lang-dis.lua @@ -36,8 +36,7 @@ local isglyph            = nuts.isglyph  local copy_node          = nuts.copy  local remove_node        = nuts.remove -local flush_list         = nuts.flush_list -local flush_node         = nuts.flush_node +----- flushnode          = nuts.flushnode  local nextdisc           = nuts.traversers.disc @@ -124,12 +123,12 @@ end  local wiped = 0 -local flatten_discretionaries = nuts.flatten_discretionaries -- todo in nodes +local flattendiscretionaries = nuts.flattendiscretionaries -- todo in nodes --- if flatten_discretionaries then +-- if flattendiscretionaries then      function languages.flatten(head) -        local h, n = flatten_discretionaries(head) +        local h, n = flattendiscretionaries(head)          wiped = wiped + n          return h, n > 0      end @@ -152,7 +151,7 @@ local flatten_discretionaries = nuts.flatten_discretionaries -- todo in nodes  --             head = h  --         end  --         wiped = wiped + 1 ---         flush_node(delayed) +--         flushnode(delayed)  --         return head  --     end  -- @@ -202,7 +201,7 @@ function languages.explicithyphen(template)      local pre, post      local disc = new_disc()      if template then -        local langdata = getlanguagedata(getlang(template)) +        local langdata = getlanguagedata(getlanguage(template))          local instance = langdata and langdata.instance          if instance then              local prechr  = prehyphenchar(instance) | 
