summaryrefslogtreecommitdiff
path: root/tex/context/base/mkiv/node-dir.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/mkiv/node-dir.lua')
-rw-r--r--tex/context/base/mkiv/node-dir.lua62
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 = {