diff options
author | Marius <mariausol@gmail.com> | 2012-10-19 01:20:13 +0300 |
---|---|---|
committer | Marius <mariausol@gmail.com> | 2012-10-19 01:20:13 +0300 |
commit | 69d2352af4b60929b37fc49f3bdb263977016244 (patch) | |
tree | db5eb11398e345dfa23b4c4500fb93575d2afb7c /tex/context/base/trac-ctx.lua | |
parent | c18f7cbe51449a611ea1819fedd9a4ff18529b7d (diff) | |
download | context-69d2352af4b60929b37fc49f3bdb263977016244.tar.gz |
stable 2012.05.30 11:26
Diffstat (limited to 'tex/context/base/trac-ctx.lua')
-rw-r--r-- | tex/context/base/trac-ctx.lua | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/tex/context/base/trac-ctx.lua b/tex/context/base/trac-ctx.lua deleted file mode 100644 index 813443816..000000000 --- a/tex/context/base/trac-ctx.lua +++ /dev/null @@ -1,36 +0,0 @@ -if not modules then modules = { } end modules ['trac-ctx'] = { - version = 1.001, - comment = "companion to trac-ctx.mkiv", - author = "Hans Hagen, PRAGMA-ADE, Hasselt NL", - copyright = "PRAGMA ADE / ConTeXt Development Team", - license = "see context related readme files" -} - -local commands, context = commands, context - -tex.trackers = tex.trackers or { } - -local textrackers = tex.trackers -local register = trackers.register - -storage.register("tex/trackers",textrackers,"tex.trackers") - -local function doit(tag,v) - local tt = textrackers[tag] - if tt then - context.unprotect() - context(v and tt[1] or tt[2]) - context.protect() - end -end - -function commands.initializetextrackers() - for tag, commands in next, textrackers do - register(tag, function(v) doit(tag,v) end) -- todo: v,tag in caller - end -end - -function commands.installtextracker(tag,enable,disable) - textrackers[tag] = { enable, disable } - register(tag, function(v) doit(tag,v) end) -- todo: v,tag in caller -end |