> 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.
For example:
if char is cyrillic and previouschar is arabic:
\fontspec{SomeCyrillicFont}
end
And also:
http://wiki.luatex.org/index.php/Token_filter
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.
Javier
On Thu, Jun 16, 2016 at 10:01 AM, Arthur Reutenauer <
[email protected]> 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.
>
>
>
> Best,
>
> Arthur
>