<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Mar 20, 2019 at 10:19 PM Akira Kakuto <<a href="mailto:kakuto@w32tex.org">kakuto@w32tex.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">> ! Inconsistent equation (off by 2.77794).<br>
> <to be read again> <br>
> ;<br>
> l.230 mm*bpppix_=2.83464;<br>
> pt*bpppix_=0.99626;<br>
> ? <br>
<br>
Confirmed.<br>
<br>
The command mfplain seems to work:<br>
<br></blockquote><div><br></div><div>yes , but we can keep the same mp source as in mplib :</div><div>so</div><div>$> mpost --ini <a href="http://test.mp">test.mp</a></div><div><div><br></div><div># cat <a href="http://test.mp">test.mp</a></div><div>input mfplain;mode:=localfont;input cmr10.mf;</div></div><div><br></div><div><br></div><div>and </div><div><br></div><div># luatex test.tex</div><div><br></div><div><div># cat test.tex </div><div>\directlua{</div><div>local find_file</div><div>do</div><div> local kpse = kpse.new('lualatex', 'mpost')</div><div> find_file = function(name, mode, type)</div><div> return mode == 'w' and name or kpse:find_file(name, type) or (type == 'mp' and kpse:find_file(name, 'mf'))</div><div> end</div><div>end</div><div>local mp = mplib.new{</div><div> job_name = 'cmr10',</div><div> find_file = find_file,</div><div> math_mode = 'scaled',</div><div>}</div><div>local result = mp:execute'input mfplain;mode:=localfont;input cmr10.mf;'</div><div>print(result.term)</div><div>}</div><div>\bye</div></div><div><br></div><div>must give the same result.</div><div><br></div><div>I have made a fix that uses calloc instead of malloc, because I have found </div><div>that some nodes can use uninitialized memory. </div><div><br></div><div><br></div><div><br></div></div>-- <br><div dir="ltr" class="gmail_signature">luigi<br></div></div></div></div>