[Dev-luatex] Recalculating tail of the list in ligaturing callback

Hans Hagen j.hagen at xs4all.nl
Wed Nov 14 15:26:43 CET 2018

On 11/14/2018 2:42 PM, Marcel Kr├╝ger wrote:

> Now `run_lua_ligkern_callback` always returns the tail parameter without change,
> so I am pretty sure `tail` is never `null`.

not true ... the callback can be any function and there doesn't have to 
be a tail returned .... if you want to recalculate, just make sure you 
return only head

   function(...) return (node.ligaturing(...)) end

so no fundamental changes will happen (if only because something that 
works better for you might fail or have side effects (functional or 
performance) for others)


                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl

More information about the dev-luatex mailing list