Skip to content

alias ProcessInputBufferCallback


(alias) ProcessInputBufferCallback = fun(buffer: string) -> string?

Modify the encoding of the input buffer.

This callback allows you to change the contents of the line input buffer just before LuaTeX actually starts looking at it.

If you return nil, LuaTeX will pretend like your callback never happened. You can gain a small amount of processing time from that. This callback does not replace any internal code.

😱 Types incomplete or incorrect? 🙏 Please contribute!