[luatex] inserting user-defined whatsit node
Stephan Hennig
sh-list at posteo.net
Tue Nov 18 18:01:01 CET 2014
Am 17.11.2014 um 18:19 schrieb Stephan Hennig:
> It breaks, however, if a user-defined whatsit node is inserted instead
> of a copy of a glyph node. Error message is
>
> ! Unidentified user defined whatsit.
>
> The LuaTeX manual has this about user-defined whatsits:
>
> The LuaTeX engine will simply step over such whatsits without
> ever looking at the contents.
>
> Why does the example break?
Typing 'H' at the error prompt reveals that the error occurs when the
node is (finally) deleted:
> ? H
> The type of the value in a user defined whatsit node should be one
> of 'a' (attribute list), 'd' (number), 'n' (node list), 's' (string),
> or 't' (tokenlist). Yours has an unknown type, and therefore I don't
> know how to free the node's value. A memory leak may result.
The solution is to initialize the whatsit's node 'type' field.
Best regards,
Stephan Hennig
More information about the luatex
mailing list