Re: [NTG-context] How does lua callback work?

2020-11-04 Thread Sylvain Hubert
On Wed, 4 Nov 2020 at 19:25, Hans Hagen  wrote:

> 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.
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] How does lua callback work?

2020-11-04 Thread Hans Hagen

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 
 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
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___