From ba81502d685bdba367e2a8f0bdff0f8ecc0cf7f6 Mon Sep 17 00:00:00 2001 From: Hans Hagen Date: Sat, 13 Apr 2019 18:19:01 +0200 Subject: 2019-04-13 17:09:00 --- tex/generic/context/luatex/luatex-basics-nod.lua | 31 ++++-------------------- 1 file changed, 5 insertions(+), 26 deletions(-) (limited to 'tex/generic/context/luatex/luatex-basics-nod.lua') diff --git a/tex/generic/context/luatex/luatex-basics-nod.lua b/tex/generic/context/luatex/luatex-basics-nod.lua index 9e035efa6..2b996829e 100644 --- a/tex/generic/context/luatex/luatex-basics-nod.lua +++ b/tex/generic/context/luatex/luatex-basics-nod.lua @@ -146,7 +146,8 @@ nodes.handlers.unprotectglyphs = node.unprotect_glyphs -- beware: nodes! -- we can go nuts (e.g. experimental); this split permits us us keep code -- used elsewhere stable but at the same time play around in context --- much of this will go away +-- much of this will go away .. it's part of the context interface and not +-- officially in luatex-*.lua local direct = node.direct local nuts = { } @@ -186,7 +187,7 @@ nuts.setboth = direct.setboth nuts.setchar = direct.setchar nuts.setcomponents = direct.setcomponents ----.setdepth = direct.setdepth -nuts.setdir = direct.setdir +----.setdir = direct.setdir nuts.setdirection = direct.setdirection nuts.setdisc = direct.setdisc nuts.setfield = setfield @@ -203,11 +204,9 @@ nuts.setsplit = direct.setsplit nuts.setsubtype = direct.setsubtype nuts.setwidth = direct.setwidth -nuts.getglyphdata = direct.getattr -nuts.setglyphdata = direct.setattr +nuts.getglyphdata = nuts.getattr +nuts.setglyphdata = nuts.setattr -nuts.is_char = direct.is_char -nuts.is_glyph = direct.is_glyph nuts.ischar = direct.is_char nuts.isglyph = direct.is_glyph @@ -233,26 +232,6 @@ nuts.traverse_char = direct.traverse_char nuts.traverse_glyph = direct.traverse_glyph nuts.traverse_id = direct.traverse_id --- for now - -if not nuts.getdirection then - - local getdir = direct.getdir - - function nuts.getdirection(n) - local d = getdir(n) - if d == "TLT" then return 0 - elseif d == "TRT" then return 1 - elseif d == "+TLT" then return 0, false - elseif d == "+TRT" then return 1, false - elseif d == "-TLT" then return 0, true - elseif d == "-TRT" then return 1, true - else return 0 - end - end - -end - -- properties as used in the (new) injector: local propertydata = direct.get_properties_table() -- cgit v1.2.3