diff options
Diffstat (limited to 'tex/context/base/lxml-ent.lua')
-rw-r--r-- | tex/context/base/lxml-ent.lua | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/tex/context/base/lxml-ent.lua b/tex/context/base/lxml-ent.lua index 5b24d9d68..f525d42d2 100644 --- a/tex/context/base/lxml-ent.lua +++ b/tex/context/base/lxml-ent.lua @@ -68,6 +68,22 @@ function xml.resolvedentity(str) end end -entities.amp = function() tex.write("&") end -entities.lt = function() tex.write("<") end -entities.gt = function() tex.write(">") end +--~ entities.amp = function() tex.write("&") end +--~ entities.lt = function() tex.write("<") end +--~ entities.gt = function() tex.write(">") end + +if characters and characters.entities then + + function characters.registerentities(forcecopy) + if forcecopy then + for name, value in next, characters.entities do + if not entities[name] then + entities[name] = value + end + end + else + table.setmetatableindex(xml.entities,characters.entities) + end + end + +end |