[luatex] Detecting script
Javier Bezos
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.
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 <
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.
>
>
>
> Best,
>
> Arthur
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/luatex/attachments/20160616/28c47627/attachment-0001.html>
More information about the luatex
mailing list