<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On 19 January 2016 at 15:22, Hans Hagen <span dir="ltr"><<a href="mailto:pragma@wxs.nl" target="_blank">pragma@wxs.nl</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="">On 1/19/2016 4:10 PM, David Carlisle wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Hans wrote<br>
 > unless of course you want to have worse output than possible (tex<br>
itself is rather accurate)<br>
<br>
Well not really:-)<br>
<br>
I was just trying to chase down where the warning was coming from (as it<br>
isn't mentioned in the manual)<br>
and if we're going to ask texlive/miktex to change the default setting<br>
for pdftex whether there is any documentation<br>
of the minimal advisable level, rather than just documenting it as a<br>
change to track changes in luatex.<br>
<br>
But in luatex, if there is a minimal value, I think it would be more<br>
natural if pdf.setdecimaldigits(3) warned<br>
(and set to 4) rather than the lua table value being set to 3 with no<br>
</blockquote>
<br></span>
in that case we set it to 3 and there is no need for a warning (not our responsibility then that users want 3 to start with; less work too)<span class=""><br></span></blockquote><div><br><br></div><div>But luatex 0.88 does give a warning???<br><br><br><br>$ luatex<br>This is LuaTeX, Version beta-0.88.0 (TeX Live 2016/dev) <br> restricted system commands enabled.<br>**\directlua{pdf.setdecimaldigits(3)}<br><br>*x<br><br>*\bye<br><br>warning  (pdf backend): forcing decimal digits to 4<br>^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<br>[1{/usr/local/texlive/2015/texmf-var/fonts/map/pdftex/updmap/pdftex.map}]<br>(see the transcript file for additional information)<</usr/local/texlive/2015/t<br>exmf-dist/fonts/type1/public/amsfonts/cm/cmr10.pfb><br>Output written on texput.pdf (1 page, 8475 bytes).<br>Transcript written on texput.log.<br><br><br><br>  <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="">
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
warning but then getting a warning from the backend<br>
later (that is, it would seem more natural to me as a user: if that<br>
violates an internal split between backend and main code,<br>
I'll just have to re-align my expectations:-)<br>
</blockquote>
<br></span>
ha, you might also need to re-align you expectation that the the luatex backend is the same as the pdftex backend which is only partially true (we started out with the pdf backend but that's about it)<div class=""><div class="h5"><br>
<br></div></div></blockquote><div><br><br></div><div>I think you misunderstood me, sorry I'll try again. <br><br></div><div>Forgetting all about pdftex, <br><br>I meant that my expectation was that if I do<br><br></div><div>pdf.setdecimaldigits(2)<br><br></div><div>and get no warning and <br><br></div><div>pdf.getdecimaldigits()<br><br>returns 2 then<br><br></div><div>2 decimal digits would be used, but actually what happens (as far as I can see) <br></div><div>is that the backend (later) gives a warning and sets the effective value to 4<br></div><div>even though the lua value stays at 2.<br></div><div><br><br></div><div>If it isn't safe to set the value below 4 that's fine, I take your word for it,<br>but why isn't the warning on the setter?<br><br></div><div>My reference to the backend was a guess at a possible answer that the setdecimaldigits<br></div><div>could in theory be used with other backends and 2 might be acceptable so the warning <br></div><div>belongs in the pdf back end as it is now.<br><br></div><div>That would also be fine if that's  case.<br><br></div><div>But since none of this is in the manual at all, I'm having to guess....<br></div><div><br><br></div><div><br> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class=""><div class="h5">
Hans<br>
</div></div></blockquote></div><br></div><div class="gmail_extra">David<br><br></div></div>