diff options
author | Norbert Preining <preining@logic.at> | 2013-05-27 01:27:54 +0000 |
---|---|---|
committer | Norbert Preining <preining@logic.at> | 2013-05-27 01:27:54 +0000 |
commit | 482b8f1300719b9a7e3cfecd1bcf745229f7a77c (patch) | |
tree | 9571c3e8ec3abbd175695095313c3a03cd766943 /Master/texmf-dist/tex/luatex/luaotfload/luaotfload-basics-nod.lua | |
parent | 04a64779a0d27806141d9b0f6363b27807fba240 (diff) |
luaotfload update 5/27
git-svn-id: svn://tug.org/texlive/trunk@30701 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/luatex/luaotfload/luaotfload-basics-nod.lua')
-rw-r--r-- | Master/texmf-dist/tex/luatex/luaotfload/luaotfload-basics-nod.lua | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/luatex/luaotfload/luaotfload-basics-nod.lua b/Master/texmf-dist/tex/luatex/luaotfload/luaotfload-basics-nod.lua index 151d98a8f31..5ab9df7f94b 100644 --- a/Master/texmf-dist/tex/luatex/luaotfload/luaotfload-basics-nod.lua +++ b/Master/texmf-dist/tex/luatex/luaotfload/luaotfload-basics-nod.lua @@ -28,12 +28,12 @@ if tex.attribute[0] ~= 0 then end -attributes = { } +attributes = attributes or { } attributes.unsetvalue = -0x7FFFFFFF local numbers, last = { }, 127 -function attributes.private(name) +attributes.private = attributes.private or function(name) local number = numbers[name] if not number then if last < 255 then @@ -63,6 +63,9 @@ nodes.glyphcodes = glyphcodes local free_node = node.free local remove_node = node.remove local new_node = node.new +local traverse_id = node.traverse_id + +local math_code = nodecodes.math nodes.handlers.protectglyphs = node.protect_glyphs nodes.handlers.unprotectglyphs = node.unprotect_glyphs @@ -93,3 +96,9 @@ function nodes.pool.kern(k) n.kern = k return n end + +function nodes.endofmath(n) + for n in traverse_id(math_code,n.next) do + return n + end +end |