How does lua callback work?
Dear List, I'm trying to intervene whenever context encounters a character that it cannot render in the current font. I guess this should have something to do with lua callbacks (pls correct me if I'm wrong), but the document http://www.pragma-ade.nl/general/manuals/cld-mkiv.pdf does not seem to elaborate on this. Does anyone know how the aforementioned task can be done, or how lua callbacks work in terms of the meaning of the concerned events and parameters? Thanks! Best, Sylvain
On 11/4/2020 6:14 PM, Sylvain Hubert wrote:
Dear List,
I'm trying to intervene whenever context encounters a character that it cannot render in the current font. I guess this should have something to do with lua callbacks (pls correct me if I'm wrong), but the document http://www.pragma-ade.nl/general/manuals/cld-mkiv.pdf does not seem to elaborate on this.
Does anyone know how the aforementioned task can be done, or how lua callbacks work in terms of the meaning of the concerned events and parameters? no callback
\checkcharactersinfont will report missing chars ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
On Wed, 4 Nov 2020 at 19:25, Hans Hagen
no callback
\checkcharactersinfont
will report missing chars
Thanks, but this command doesn't seem to add any information on top of the missing characters that context already reported without the command. My motivation was to write a module that suggests fallback fonts to the user, ideally at the moment of encountering a missing character, but at the end of processing is still acceptable.
participants (2)
-
Hans Hagen
-
Sylvain Hubert