[luatex] Detecting script
listas at tex-tipografia.com
Thu Jun 16 11:43:32 CEST 2016
> Could you describe your use case a bit more? I suppose it involves
> operations you can’t do at the node level, so the suggestion to use
> pre_linebreak_filter doesn’t work.
if char is cyrillic and previouschar is arabic:
I'm thinking mainly in short chunks of texts, like a proper noun
inside an Arabic o Devanagari text.
I think pre_linebreak_filte is too late and process_input_buffer
is too soon, but I may be wrong. Or perhaps the best solution is
not based on a callback at all.
On Thu, Jun 16, 2016 at 10:01 AM, Arthur Reutenauer <
arthur.reutenauer at normalesup.org> wrote:
> > Which is the best way to detect a change of script and inject some
> > (more or less) arbitrary code? At first I thought token_filter could be
> > a possibility, but it will be gone and I presume there are other options.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the luatex