I've noticed that character "0" is not printed in a tree this is wrong because in tex fonts
0 slot usually has a symbol. The fix could be:
function tree.format_field(head, field)
local out = ''
-- if not head[field] or head[field] == 0 then
if not head[field] or (head[field] == 0 and field ~= "char") then
return ''
end
2)
And now luatex nodes can have properties (fontspec uses them). Could you implement a properties printing?
If it is a table it could be printed inline. Something like:
local t = node.getproperty(head)
if t then
local out = tpl.branches(level, 'list') .. '--'
tpl.print(out.. "Properties:" .. tprint_inline(t))
end
Attributes are key/value number pairs they could be printed as inline list too. And attribute 0 could be skipped
because it is in every node by default. it could look like: ATTR: key=val, ....
1)
I've noticed that character "0" is not printed in a tree this is wrong because in tex fonts 0 slot usually has a symbol. The fix could be:
2)
And now luatex nodes can have properties (fontspec uses them). Could you implement a properties printing? If it is a table it could be printed inline. Something like:
3)
Attributes are key/value number pairs they could be printed as inline list too. And attribute 0 could be skipped because it is in every node by default. it could look like: ATTR: key=val, ....