diff options
author | Hans Hagen <pragma@wxs.nl> | 2010-08-20 00:00:00 +0200 |
---|---|---|
committer | Hans Hagen <pragma@wxs.nl> | 2010-08-20 00:00:00 +0200 |
commit | bbc8970958af29626335568414a4278d852e086f (patch) | |
tree | cc349c9c7902716090f1e587be04e8cc4546c67b /tex/context/base/strc-tag.lua | |
parent | 174663b0081dd76f91c45fd705262a262a7b1f49 (diff) | |
download | context-bbc8970958af29626335568414a4278d852e086f.tar.gz |
beta 2010.08.20 00:00
Diffstat (limited to 'tex/context/base/strc-tag.lua')
-rw-r--r-- | tex/context/base/strc-tag.lua | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/tex/context/base/strc-tag.lua b/tex/context/base/strc-tag.lua index 981a336b9..2df387e73 100644 --- a/tex/context/base/strc-tag.lua +++ b/tex/context/base/strc-tag.lua @@ -32,19 +32,18 @@ local tags = structures.tags tags.taglist = taglist -- can best be hidden function tags.start(tag,label,detail) ---~ labels[label or tag] = tag labels[tag] = label ~= "" and label or tag if detail and detail ~= "" then tag = tag .. ":" .. detail end if not enabled then - codeinjections.enabletags(tags,labels) + codeinjections.enabletags(taglist,labels) enabled = true end local n = (ids[tag] or 0) + 1 ids[tag] = n chain[#chain+1] = tag .. "-" .. n -- insert(chain,tag .. ":" .. n) - local t = #tags + 1 + local t = #taglist + 1 stack[#stack+1] = t -- insert(stack,t) taglist[t] = { unpack(chain) } -- we can add key values for alt and actualtext if needed texattribute[a_tagged] = t @@ -76,7 +75,7 @@ end statistics.register("structure elements", function() if enabled then - return format("%s element chains identified",#tags) + return format("%s element chains identified",#taglist) else return nil end @@ -84,7 +83,7 @@ end) directives.register("backend.addtags", function(v) if not enabled then - codeinjections.enabletags(tags,labels) + codeinjections.enabletags(taglist,labels) enabled = true end end) |