summaryrefslogtreecommitdiff
path: root/tex/context/base/mkxl/mlib-lua.lmt
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2022-04-01 11:01:40 +0200
committerContext Git Mirror Bot <phg@phi-gamma.net>2022-04-01 11:01:40 +0200
commitc1224cc330e695938cfcf944f8e9d0c14c15fa8c (patch)
tree1ab4e67a616e7338f91cded3a0d803d61a185ea3 /tex/context/base/mkxl/mlib-lua.lmt
parent6a2738578157926c6ebd64048ddabb7d923b2be5 (diff)
downloadcontext-c1224cc330e695938cfcf944f8e9d0c14c15fa8c.tar.gz
2022-04-01 09:35:00
Diffstat (limited to 'tex/context/base/mkxl/mlib-lua.lmt')
-rw-r--r--tex/context/base/mkxl/mlib-lua.lmt36
1 files changed, 31 insertions, 5 deletions
diff --git a/tex/context/base/mkxl/mlib-lua.lmt b/tex/context/base/mkxl/mlib-lua.lmt
index 005a57a72..19423e7b1 100644
--- a/tex/context/base/mkxl/mlib-lua.lmt
+++ b/tex/context/base/mkxl/mlib-lua.lmt
@@ -127,7 +127,37 @@ local function same(p,n)
return false
end
-function inject.path(p,close,connector)
+-- function inject.path(p,close,connector)
+-- local closed = false
+-- local curled = false
+-- local n = #p
+-- print("spec",p,close,connector)
+-- if close == nil then
+-- closed = (p.close or p.cycle or p.closed) and true or false
+-- else
+-- closed = close
+-- end
+-- if connector then
+-- if connector == "auto" then
+-- connector = #p[1] > 2
+-- end
+-- if connector == false or connector == "--" then
+-- curled = true
+-- -- elseif connector == true or connector == ".." then
+-- -- if close and not same(p,n) then
+-- -- p[n+1] = p[1]
+-- -- end
+-- end
+-- elseif p.curled then
+-- curled = true
+-- end
+-- if trace then reporti("path") end
+-- inspect(p)
+-- print(p,closed,curled)
+-- return injectpath(currentmpx,p,closed,curled)
+-- end
+
+function inject.path(p,connector,close)
local closed = false
local curled = false
local n = #p
@@ -142,10 +172,6 @@ function inject.path(p,close,connector)
end
if connector == false or connector == "--" then
curled = true
- -- elseif connector == true or connector == ".." then
- -- if close and not same(p,n) then
- -- p[n+1] = p[1]
- -- end
end
elseif p.curled then
curled = true