[luatex] lua script on the run

Philipp Stephani st_philipp at yahoo.de
Thu Jan 6 23:41:56 CET 2011

Am 06.01.2011 um 23:25 schrieb Luis Rivera:

> 1. If I were to store the macro in a style sheet (texperanto.sty), I'd
> probably remove the call to luaotfload, right?

And add lots of other non-functional code whose sole purpose is to make the file robust and format-independent. See luaotfload.sty or most Heiko packages for good examples (I think these are mostly auto-generated).

> This call is only
> necessary to make the sample run right. In that case the sample file
> would simply be
> \input texperanto.sty
> \input luaotfload.sty
> \font\rm={name:DejaVu Sans:}\relax
> \rm
> ^c ^g ^h ^j ^s ^u $b^c$
> \bye
> And this code takes care of the case where the substitution is global;
> i.e. when we do not call a macro \texperanto.
> 2. That still leaves aside the case where the call for the macro
> \texperanto makes all changes local to the group.

You could define a macro pair \starttexperanto/\stoptexperanto that enable/disable the callback.

More information about the luatex mailing list