<div dir="ltr">Hi Joseph<div><br></div><div>Thanks for taking your time to look at this. I can see now that what I need to fix but still I would say that LuaTeX breaks TeX's backward compatibility.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, May 15, 2016 at 6:02 PM, Joseph Wright <span dir="ltr"><<a href="mailto:joseph.wright@morningstar2.co.uk" target="_blank">joseph.wright@morningstar2.co.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On 15/05/2016 08:37, Vafa Khalighi wrote:<br>
> Hi<br>
><br>
> I have been a lollipop user (<a href="http://ctan.org/pkg/lollipop" rel="noreferrer" target="_blank">http://ctan.org/pkg/lollipop</a>) since 15 years<br>
> ago and its developer from April 2014. For the past 15 years, I have only<br>
> been using Knuth's TeX engine since that gives me all I want. If you try to<br>
> build the lollipop format for Knuth's TeX by:<br>
><br>
> tex -ini   -jobname=lollipop -progname=lollipop lollipop.ini<br>
><br>
><br>
> and process the following minimal example with lollipop format:<br>
><br>
><br>
> \Start<br>
><br>
> Let's say $x$ is a variable<br>
><br>
> \Stop<br>
><br>
> You see no problem in the output. However, if you build the format by<br>
> using luatex v0.95.0 by<br>
><br>
><br>
> luatex -ini   -jobname=lollipop -progname=lollipop lollipop.ini<br>
><br>
><br>
> and process the same file, then the x in the inline math mode<br>
> disappears. Should not luatex at least behave like Knuth's TeX engine?<br>
> Does anyone know what is wrong here?<br>
><br>
> The content of my lollipop.ini is<br>
><br>
> \scrollmode<br>
> \input lollipop<br>
> \dump<br>
> \endinput<br>
><br>
><br>
> Vafa<br>
><br>
<br>
</div></div>There've been some changes in the internals of handling \Umathcode,<br>
which at least in LaTeX terms requires some updates to parts of the<br>
codebase. What I notice here is that the \Umathcode for 'x' is certainly<br>
wrong, and doing<br>
<br>
% Set up extra primitives<br>
\ifx\directlua\undefined\else<br>
  \directlua{tex.enableprimitives("",tex.extraprimitives())}%<br>
\fi<br>
% Direct PDF output for convenience<br>
\ifx\pdfouput\undefined<br>
  \outputmode=1 %<br>
\else<br>
  \pdfoutput=1 %<br>
\fi<br>
<br>
\Start<br>
<br>
\Umathcodenum`x=31457400 %<br>
<br>
%\showtokens\expandafter{\the\Umathcode`\x }%<br>
<span class="">Let's say $x$ is a variable<br>
<br>
\Stop<br>
<br>
</span>works.<br>
<span class="HOEnZb"><font color="#888888"><br>
Joseph<br>
</font></span></blockquote></div><br></div>