How does lua callback work?
![](https://secure.gravatar.com/avatar/67d9f9f4ba171c7673178ba08015b98c.jpg?s=120&d=mm&r=g)
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
![](https://secure.gravatar.com/avatar/46562c7d27388490d62e8d7a5bc960dd.jpg?s=120&d=mm&r=g)
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 -----------------------------------------------------------------
![](https://secure.gravatar.com/avatar/67d9f9f4ba171c7673178ba08015b98c.jpg?s=120&d=mm&r=g)
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