summaryrefslogtreecommitdiff
path: root/tex/context/base/typo-dir.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/typo-dir.lua')
-rw-r--r--tex/context/base/typo-dir.lua14
1 files changed, 10 insertions, 4 deletions
diff --git a/tex/context/base/typo-dir.lua b/tex/context/base/typo-dir.lua
index 04528f137..e155e7314 100644
--- a/tex/context/base/typo-dir.lua
+++ b/tex/context/base/typo-dir.lua
@@ -165,7 +165,12 @@ function commands.getbidimode(specification)
context(tomode(specification)) -- hash at tex end
end
-function directions.process(namespace,attribute,head) -- nodes not nuts
+local enabled = false
+
+local starttiming = statistics.starttiming
+local stoptiming = statistics.stoptiming
+
+function directions.process(namespace,attribute,head) -- for the moment nodes and not nuts
if not head.next then
return head, false
end
@@ -178,15 +183,16 @@ function directions.process(namespace,attribute,head) -- nodes not nuts
if not handler then
return head, false
end
- return handler(namespace,attribute,head)
+ starttiming(directions)
+ local head, done = handler(namespace,attribute,head)
+ stoptiming(directions)
+ return head, done
end
-- function directions.enable()
-- tasks.enableaction("processors","directions.handler")
-- end
-local enabled = false
-
function directions.set(n) -- todo: names and numbers
if not enabled then
if trace_textdirections then