diff options
author | Hans Hagen <pragma@wxs.nl> | 2017-01-27 16:14:16 +0100 |
---|---|---|
committer | Context Git Mirror Bot <phg42.2a@gmail.com> | 2017-01-27 16:14:16 +0100 |
commit | 95a1799032dc61dbca4a11e495be34b4397c8fec (patch) | |
tree | 4b24bf117a90ba704dedf19ab1b1a734d78f4e45 /tex/context/base/mkiv/trac-jus.lua | |
parent | 0cfeab235554eeee0dddd6c3f44d3939ab490ff1 (diff) | |
download | context-95a1799032dc61dbca4a11e495be34b4397c8fec.tar.gz |
2017-01-27 14:46:00
Diffstat (limited to 'tex/context/base/mkiv/trac-jus.lua')
-rw-r--r-- | tex/context/base/mkiv/trac-jus.lua | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/tex/context/base/mkiv/trac-jus.lua b/tex/context/base/mkiv/trac-jus.lua index dbf2b8d33..76d6438a1 100644 --- a/tex/context/base/mkiv/trac-jus.lua +++ b/tex/context/base/mkiv/trac-jus.lua @@ -6,43 +6,43 @@ if not modules then modules = { } end modules ['trac-jus'] = { license = "see context related readme files" } -local checkers = typesetters.checkers or { } -typesetters.checkers = checkers +local checkers = typesetters.checkers or { } +typesetters.checkers = checkers ----- report_justification = logs.reporter("visualize","justification") -local a_alignstate = attributes.private("alignstate") -local a_justification = attributes.private("justification") +local a_alignstate = attributes.private("alignstate") +local a_justification = attributes.private("justification") -local nuts = nodes.nuts -local tonut = nuts.tonut +local nuts = nodes.nuts +local tonut = nuts.tonut -local getfield = nuts.getfield -local setfield = nuts.setfield -local getlist = nuts.getlist -local getattr = nuts.getattr -local setattr = nuts.setattr -local setlist = nuts.setlist +local getfield = nuts.getfield +local setfield = nuts.setfield +local getlist = nuts.getlist +local getattr = nuts.getattr +local setattr = nuts.setattr +local setlist = nuts.setlist -local traverse_id = nuts.traverse_id -local get_list_dimensions = nuts.dimensions -local linked_nodes = nuts.linked -local copy_node = nuts.copy +local traverse_id = nuts.traverse_id +local list_dimensions = nuts.dimensions +local linked_nodes = nuts.linked +local copy_node = nuts.copy -local tracedrule = nodes.tracers.pool.nuts.rule +local tracedrule = nodes.tracers.pool.nuts.rule -local nodepool = nuts.pool +local nodepool = nuts.pool -local new_hlist = nodepool.hlist -local new_kern = nodepool.kern +local new_hlist = nodepool.hlist +local new_kern = nodepool.kern -local hlist_code = nodes.nodecodes.hlist +local hlist_code = nodes.nodecodes.hlist -local texsetattribute = tex.setattribute -local unsetvalue = attributes.unsetvalue +local texsetattribute = tex.setattribute +local unsetvalue = attributes.unsetvalue -local min_threshold = 0 -local max_threshold = 0 +local min_threshold = 0 +local max_threshold = 0 local function set(n) nodes.tasks.enableaction("mvlbuilders", "typesetters.checkers.handler") @@ -81,7 +81,7 @@ function checkers.handler(head) if width > 0 then local list = getlist(current) if list then - local naturalwidth, naturalheight, naturaldepth = get_list_dimensions(list) + local naturalwidth, naturalheight, naturaldepth = list_dimensions(list) local delta = naturalwidth - width if naturalwidth == 0 or delta == 0 then -- special box |