diff options
Diffstat (limited to 'Master/texmf-dist/tex/context/base/mkiv/typo-dir.lua')
-rw-r--r-- | Master/texmf-dist/tex/context/base/mkiv/typo-dir.lua | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/Master/texmf-dist/tex/context/base/mkiv/typo-dir.lua b/Master/texmf-dist/tex/context/base/mkiv/typo-dir.lua index 88c84bd0244..7fbf5f6d3eb 100644 --- a/Master/texmf-dist/tex/context/base/mkiv/typo-dir.lua +++ b/Master/texmf-dist/tex/context/base/mkiv/typo-dir.lua @@ -45,9 +45,8 @@ local band = bit32.band local texsetattribute = tex.setattribute local unsetvalue = attributes.unsetvalue -local nuts = nodes.nuts -local getnext = nuts.getnext -local getattr = nuts.getattr +local getnext = nodes.getnext +local getattr = nodes.getattr local enableaction = nodes.tasks.enableaction local tracers = nodes.tracers @@ -166,24 +165,24 @@ local stoptiming = statistics.stoptiming -- -- \enabledirectives[typesetters.directions.onetoo] -function directions.handler(head,where,_,_,direction) +function directions.handler(head,_,_,_,direction) local only_one = not getnext(head) if only_one and not one_too then - return head + return head, false end local attr = getattr(head,a_directions) if not attr or attr == 0 then - return head + return head, false end local method = getmethod(attr) local handler = handlers[method] if not handler then - return head + return head, false end starttiming(directions) - head = handler(head,direction,only_one,where) + local head, done = handler(head,direction,only_one) stoptiming(directions) - return head + return head, done end statistics.register("text directions", function() |