diff options
author | Hans Hagen <pragma@wxs.nl> | 2018-08-11 01:23:08 +0200 |
---|---|---|
committer | Context Git Mirror Bot <phg@phi-gamma.net> | 2018-08-11 01:23:08 +0200 |
commit | 1ef7a093aaf03b6327b3da94d47f53760c868c60 (patch) | |
tree | 228e6d4a5005598aaea191b3317c2fa21e22de75 /tex/context/base/mkiv/node-dir.lua | |
parent | b61d5dd3555e906b21601ff75b3268c0f359283e (diff) | |
download | context-1ef7a093aaf03b6327b3da94d47f53760c868c60.tar.gz |
2018-08-10 16:58:00
Diffstat (limited to 'tex/context/base/mkiv/node-dir.lua')
-rw-r--r-- | tex/context/base/mkiv/node-dir.lua | 62 |
1 files changed, 43 insertions, 19 deletions
diff --git a/tex/context/base/mkiv/node-dir.lua b/tex/context/base/mkiv/node-dir.lua index 59564ac93..0494fd036 100644 --- a/tex/context/base/mkiv/node-dir.lua +++ b/tex/context/base/mkiv/node-dir.lua @@ -33,59 +33,83 @@ nodes.is_rotated = allocate { -- used RTT = true, ["+RTT"] = true, } -nodes.textdir_is_parallel = allocate { -- used - TLT = { +do + + local tlt = { TLT = true, ["+TLT"] = true, TRT = true, ["+TRT"] = true, -- LTL = false, -- RTT = false, - }, - TRT= { + } + + local trt = { TLT = true, ["+TLT"] = true, TRT = true, ["+TRT"] = true, -- LTL = false, -- RTT = false, - }, - LTL = { + } + + local ltl = { -- TLT = false, -- TRT = false, LTL = true, ["+LTL"] = true, RTT = true, ["+RTT"] = true, - }, - RTT = { + } + + local rtt = { -- TLT = false, -- TRT = false, LTL = true, ["+LTL"] = true, RTT = true, ["+RTT"] = true, } -} -nodes.pardir_is_parallel = allocate { - TLT = { + nodes.textdir_is_parallel = allocate { -- used + TLT = tlt, ["+TLT"] = tlt, -- ["-TLT"] = tlt, + TRT = trt, ["+TRT"] = trt, -- ["-TRT"] = trt, + LTL = ltl, ["+LTL"] = ltl, -- ["-LTL"] = ltl, + RTT = rtt, ["+RTT"] = rtt, -- ["-RTT"] = rtt, + } + +end + +do + + local tlt = { TLT = true, ["+TLT"] = true, TRT = true, ["+TRT"] = true, -- LTL = false, -- RTT = false, - }, - TRT = { + } + + local trt = { TLT = true, ["+TLT"] = true, TRT = true, ["+TRT"] = true, -- LTL = false, -- RTT = false, - }, - LTL = { + } + + local ltl = { -- TLT = false, -- TRT = false, LTL = true, ["+LTL"] = true, RTT = true, ["+RTT"] = true, - }, - RTT = { + } + + local rtt = { -- TLT = false, -- TRT = false, LTL = true, ["+LTL"] = true, RTT = true, ["+RTT"] = true, - }, -} + } + + nodes.pardir_is_parallel = allocate { + TLT = tlt, ["+TLT"] = tlt, -- ["-TLT"] = tlt, + TRT = trt, ["+TRT"] = trt, -- ["-TRT"] = trt, + LTL = ltl, ["+LTL"] = ltl, -- ["-LTL"] = ltl, + RTT = rtt, ["+RTT"] = rtt, -- ["-RTT"] = rtt, + } + +end nodes.pardir_is_opposite = allocate { TLT = { |