summaryrefslogtreecommitdiff
path: root/tex/context/base/luat-bwc.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/luat-bwc.lua')
-rw-r--r--tex/context/base/luat-bwc.lua7
1 files changed, 4 insertions, 3 deletions
diff --git a/tex/context/base/luat-bwc.lua b/tex/context/base/luat-bwc.lua
index e41f241dc..138c0deba 100644
--- a/tex/context/base/luat-bwc.lua
+++ b/tex/context/base/luat-bwc.lua
@@ -10,18 +10,19 @@ if not modules then modules = { } end modules ['luat-bwc'] = {
local box = tex.box
-tex.wd = { } setmetatable(tex.wd, {
+local wd = { } setmetatable(wd, {
__index = function(t,k) local bk = box[k] return bk and bk.width or 0 end,
__newindex = function(t,k,v) local bk = box[k] if bk then bk.width = v end end,
}
-tex.ht = { } setmetatable(tex.ht, {
+local ht = { } setmetatable(ht, {
__index = function(t,k) local bk = box[k] return bk and bk.height or 0 end,
__newindex = function(t,k,v) local bk = box[k] if bk then bk.height = v end end,
}
-tex.dp = { } setmetatable(tex.dp, {
+local dp = { } setmetatable(dp, {
__index = function(t,k) local bk = box[k] return bk and bk.depth or 0 end,
__newindex = function(t,k,v) local bk = box[k] if bk then bk.depth = v end end,
}
+tex.wd, tex.ht, tex.dp = wd, ht, dp