[luatex] Getting a glue node subtype on lua side

Christophe Jorssen jorssen.leraincy at free.fr
Mon May 23 11:59:55 CEST 2011


2011/5/23 Paul Isambert <zappathustra at free.fr>:
>
> There is no such function, but you can do it yourself:
>
[snip]
>
> Of course you have to check development regularly to make sure glue subtypes
> don't change (for instance, I think there might be a
> glue-from-space-character subtype someday).
>

Ok. Thank you.

Sorry to ask, but is there a reason why it is not implemented? From my
(newbie) point of vue, there is no difference between hard coded node
types (for which node.id is provided) and hard coded node subtypes?
So, what about a node.subtypeid?

local GLUE = node.id('glue')
local XLEADERS = node.subtypeid('glue','xleaders')
local points = node.new(GLUE, XLEADERS)

Thanks and sorry again if I missed something.

Best regards

-- 
Christophe


More information about the luatex mailing list