summaryrefslogtreecommitdiff
path: root/tex/context/base/mlib-pdf.lua
diff options
context:
space:
mode:
authorContext Git Mirror Bot <phg42.2a@gmail.com>2014-12-28 20:15:04 +0100
committerContext Git Mirror Bot <phg42.2a@gmail.com>2014-12-28 20:15:04 +0100
commitd446579377e40332a41f3c61b087b683a4a9b30c (patch)
treeec04b76dea309ff2b33af3b5f31c08a99d9ffb42 /tex/context/base/mlib-pdf.lua
parent69d17e62dd57cce4d59d020319edf1c5121f4319 (diff)
downloadcontext-d446579377e40332a41f3c61b087b683a4a9b30c.tar.gz
2014-12-28 19:53:00
Diffstat (limited to 'tex/context/base/mlib-pdf.lua')
-rw-r--r--tex/context/base/mlib-pdf.lua10
1 files changed, 6 insertions, 4 deletions
diff --git a/tex/context/base/mlib-pdf.lua b/tex/context/base/mlib-pdf.lua
index 025bfc144..11325b9fe 100644
--- a/tex/context/base/mlib-pdf.lua
+++ b/tex/context/base/mlib-pdf.lua
@@ -19,13 +19,17 @@ local report_metapost = logs.reporter("metapost")
local trace_variables = false trackers.register("metapost.variables",function(v) trace_variables = v end)
-local mplib, context = mplib, context
+local mplib = mplib
+local context = context
local allocate = utilities.storage.allocate
local copy_node = node.copy
local write_node = node.write
+local pen_info = mplib.pen_info
+local object_fields = mplib.fields
+
metapost = metapost or { }
local metapost = metapost
@@ -167,8 +171,6 @@ local bend_tolerance = 131/65536
local rx, sx, sy, ry, tx, ty, divider = 1, 0, 0, 1, 0, 0, 1
-local pen_info = mplib.pen_info
-
local function pen_characteristics(object)
local t = pen_info(object)
rx, ry, sx, sy, tx, ty = t.rx, t.ry, t.sx, t.sy, t.tx, t.ty
@@ -640,7 +642,7 @@ function metapost.totable(result)
for o=1,#objects do
local object = objects[o]
local result = { }
- local fields = mplib.fields(object) -- hm, is this the whole list, if so, we can get it once
+ local fields = object_fields(object) -- hm, is this the whole list, if so, we can get it once
for f=1,#fields do
local field = fields[f]
result[field] = object[field]