On 5/16/2018 7:38 AM, Henri Menke wrote:
I just thought of another thing.
Could you expose _all_ the subtypes of _all_ the different node types similar to node.id? (currently this is only enabled for whatsits) As of now I always have to go to texnodes.w, find the array and count to find out which number a subtype has. It would be much easier if we could
luatex 1.10 will have that (as it take s bit of effort to enter al the data which i'm doing as part of some other cleanups) anyway, you can do: local n = node.new("noad") n.subtype = node.subtypes("noad").bin print(n) local n = node.new("noad") n.subtype = node.subtypes("noad").rel print(n) there was never a need to look into a 'w' file, also because sometimes subtypes get added we provided this list
node.new("noad", "bin")
instead of
node.new("noad", 4)
and I would also like to see
node.subtype("noad", "bin") -- return 4
node.subtypes("noad").bin returns a number Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------