diff options
Diffstat (limited to 'tex/context/base/mkiv/blob-ini.lua')
-rw-r--r-- | tex/context/base/mkiv/blob-ini.lua | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/tex/context/base/mkiv/blob-ini.lua b/tex/context/base/mkiv/blob-ini.lua index f825b7aa3..0b35c3b65 100644 --- a/tex/context/base/mkiv/blob-ini.lua +++ b/tex/context/base/mkiv/blob-ini.lua @@ -188,7 +188,11 @@ blobs.strht = strht blobs.strdp = strdp blobs.strhd = strhd -implement { name = "strwd", arguments = "string", actions = { strwd, context } } -implement { name = "strht", arguments = "string", actions = { strht, context } } -implement { name = "strdp", arguments = "string", actions = { strdp, context } } -implement { name = "strhd", arguments = "string", actions = { strhd, context } } +-- upgraded + +local scan_hbox = tokens.scanners.hbox + +implement { name = "strwd", actions = function() local l = scan_hbox() context(l.width) flush_node_list(l) end } +implement { name = "strht", actions = function() local l = scan_hbox() context(l.height) flush_node_list(l) end } +implement { name = "strdp", actions = function() local l = scan_hbox() context(l.depth) flush_node_list(l) end } +implement { name = "strhd", actions = function() local l = scan_hbox() context(l.height + l.depth) flush_node_list(l) end } |