[luatex] multiple callbacks

Arthur Reutenauer arthur.reutenauer at normalesup.org
Sun Jan 4 17:07:14 CET 2009


> Keep in mind that not all callbacks have the same i/o characteristics.

  I was aware of that, but did not know the details of each callback.
I've been playing mostly with define_font.

> For example, 'process_input_buffer' has:
>
>   function(<string> buffer)
>     return <string> adjusted_buffer
>   end

  Therefore, the responsibility of calling the appropriate interface
could maybe be left to the macro writer who calls the callback, not the
author of the macro package?

> Btw, callback.add() could just return false when it detects a
> conflict with an already existing function, and true otherwise.
> Then the caller could decide how to handle the error.

  Sure, that would also be a possibility.

	Arthur


More information about the luatex mailing list