diff options
author | Hans Hagen <pragma@wxs.nl> | 2014-06-05 23:04:00 +0200 |
---|---|---|
committer | Hans Hagen <pragma@wxs.nl> | 2014-06-05 23:04:00 +0200 |
commit | 1b8d827a6d33b746d004ac5cfab16de8840054e9 (patch) | |
tree | 9f9c49a37d2d1eb913d17dac51247cdfc296b2e7 /tex/context/base/anch-pos.lua | |
parent | ca16b82275f15170ca269f77b9dd9b0e29bbd7f6 (diff) | |
download | context-1b8d827a6d33b746d004ac5cfab16de8840054e9.tar.gz |
beta 2014.06.05 23:04
Diffstat (limited to 'tex/context/base/anch-pos.lua')
-rw-r--r-- | tex/context/base/anch-pos.lua | 27 |
1 files changed, 26 insertions, 1 deletions
diff --git a/tex/context/base/anch-pos.lua b/tex/context/base/anch-pos.lua index c2b62bae7..4230d1d16 100644 --- a/tex/context/base/anch-pos.lua +++ b/tex/context/base/anch-pos.lua @@ -259,9 +259,15 @@ local function enhance(data) return data end -local function set(name,index,val) +-- analyze some files (with lots if margindata) and then when one key optionally +-- use that one instead of a table (so, a 3rd / 4th argument: key, e.g. "x") + +local function set(name,index,val) -- ,key local data = enhance(val or index) if val then +-- if data[key] and not next(next(data)) then +-- data = data[key] +-- end container = tobesaved[name] if not container then tobesaved[name] = { @@ -284,6 +290,25 @@ local function get(id,index) end end +-- local function get(id,index) -- ,key +-- local data +-- if index then +-- local container = collected[id] +-- if container then +-- data = container[index] +-- if not data then +-- -- nothing +-- elseif type(data) == "table" then +-- return data +-- else +-- return { [key] = data } +-- end +-- end +-- else +-- return collected[id] +-- end +-- end + jobpositions.setdim = setdim jobpositions.setall = setall jobpositions.set = set |