diff options
author | Marius <mariausol@gmail.com> | 2010-08-19 10:29:42 +0300 |
---|---|---|
committer | Marius <mariausol@gmail.com> | 2010-08-19 10:29:42 +0300 |
commit | 7d7e0d3c8d778650105cfb479f31a2bb54d69d50 (patch) | |
tree | e0c4e7d8bf466a70af56be02a0de703bbd09a5af /tex/context/base/grph-swf.lua | |
parent | b469b8ec1b494ab72cd462bfc539ce01440e6aaf (diff) | |
download | context-7d7e0d3c8d778650105cfb479f31a2bb54d69d50.tar.gz |
beta 2010.08.19 01:08
Diffstat (limited to 'tex/context/base/grph-swf.lua')
-rw-r--r-- | tex/context/base/grph-swf.lua | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/tex/context/base/grph-swf.lua b/tex/context/base/grph-swf.lua index e55454b52..dc36afa0e 100644 --- a/tex/context/base/grph-swf.lua +++ b/tex/context/base/grph-swf.lua @@ -8,9 +8,12 @@ if not modules then modules = { } end modules ['grph-swf'] = { local format = string.format -local texsprint = tex.sprint -local ctxcatcodes = tex.ctxcatcodes -local pdfannotation = nodes.pdfannotation +local texsprint = tex.sprint +local ctxcatcodes = tex.ctxcatcodes +local nodeinjections = backends.nodeinjections +local pdfannotation = nodes.pool.pdfannotation + +local figures = figures function figures.checkers.swf(data) local dr, du, ds = data.request, data.used, data.status @@ -20,7 +23,7 @@ function figures.checkers.swf(data) dr.width, dr.height = width, height du.width, du.height, du.foundname = width, height, foundname texsprint(ctxcatcodes,format("\\startfoundexternalfigure{%ssp}{%ssp}",width,height)) - local annot, preview, ref = backends.pdf.helpers.insertswf { + nodeinjections.insertswf { foundname = foundname, width = width, height = height, @@ -29,11 +32,6 @@ function figures.checkers.swf(data) -- controls = dr.controls, -- label = dr.label, } - -- node.write(pdfannotation(width,-height,0,annot())) - texsprint(ctxcatcodes,format("\\pdfannot width %ssp height %ssp {%s}",width,height,annot())) -- brrrr ---~ if ref then -- wrong ! a direct ref should work ---~ texsprint(ctxcatcodes,format("\\smash{\\pdfrefximage%s\\relax}",ref)) -- brrrr ---~ end texsprint(ctxcatcodes,"\\stopfoundexternalfigure") return data end |