diff options
author | Hans Hagen <pragma@wxs.nl> | 2021-10-19 00:16:55 +0200 |
---|---|---|
committer | Context Git Mirror Bot <phg@phi-gamma.net> | 2021-10-19 00:16:55 +0200 |
commit | 9d2ad7dea5c20379f6679c57c3b16752b1af445a (patch) | |
tree | 45f39853be982c52f7386b968cf4f15f1f70ccce /tex/context/base/mkxl/lpdf-res.lmt | |
parent | 6ca88e6f1f15cea89db047839c3126a501f39eea (diff) | |
download | context-9d2ad7dea5c20379f6679c57c3b16752b1af445a.tar.gz |
2021-10-18 23:13:00
Diffstat (limited to 'tex/context/base/mkxl/lpdf-res.lmt')
-rw-r--r-- | tex/context/base/mkxl/lpdf-res.lmt | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/tex/context/base/mkxl/lpdf-res.lmt b/tex/context/base/mkxl/lpdf-res.lmt deleted file mode 100644 index d3c591343..000000000 --- a/tex/context/base/mkxl/lpdf-res.lmt +++ /dev/null @@ -1,41 +0,0 @@ -if not modules then modules = { } end modules ['lpdf-res'] = { - version = 1.001, - comment = "companion to lpdf-ini.mkiv", - author = "Hans Hagen, PRAGMA-ADE, Hasselt NL", - copyright = "PRAGMA ADE / ConTeXt Development Team", - license = "see context related readme files" -} - -local codeinjections = backends.codeinjections - -local nuts = nodes.nuts -local tonut = nodes.tonut - -local setwhd = nuts.setwhd -local setlist = nuts.setlist - -local new_hlist = nuts.pool.hlist - -local boxresources = tex.boxresources -local saveboxresource = boxresources.save -local useboxresource = boxresources.use -local getboxresourcedimensions = boxresources.getdimensions - -local pdfcollectedresources = lpdf.collectedresources - -function codeinjections.registerboxresource(n,offset) - local r = saveboxresource(n,nil,pdfcollectedresources(),true,0,offset or 0) -- direct, todo: accept functions as attr/resources - return r -end - -function codeinjections.restoreboxresource(index) - local hbox = new_hlist() - local list, wd, ht, dp = useboxresource(index) - setlist(hbox,tonut(list)) - setwhd(hbox,wd,ht,dp) - return hbox -- so we return a nut ! -end - -function codeinjections.boxresourcedimensions(index) - return getboxresourcedimensions(index) -end |