<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On 8 May 2017 at 23:51, Akira Kakuto <span dir="ltr"><<a href="mailto:kakuto@fuk.kindai.ac.jp" target="_blank">kakuto@fuk.kindai.ac.jp</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear David,<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
The xdvipdfmx sources (pdfdraw.c) have<br></span>
... ...<br>
</blockquote>
<br>
I'm not familiar with pdfdraw.c, thus I have replaced a<br>
small number 1.e-8 by OUR_EPSILON (=2.5e-16) in pdfdraw.c,<br>
hoping that it does not break the author's intention (r44252).<span class=""><br></span></blockquote><div><br></div><div><br></div><div>Thanks! I was going to say that the least invasive change would be just to change that -8.</div><div><br></div><div>If the scale factor is calculated (as it in in the latex graphics packages) by fixed point</div><div>"dimen" arithmetic then the smallest positive x and y scale will be1sp = 2e-5 so the <br></div><div>smallest determinant is 4e-10  so any determinant less than that is a bit suspect</div><div>but  the 1e-8 test was really a problem giving errors on (almost:-) reasonable matrices.<br></div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Even if the transform really is non-invertible for example<br>
<br>
\scalebox{0}{oops}<br>
</blockquote>
<br></span>
Apparently this may not be solved by r44252.<br></blockquote><div> </div><div>Yes that  is probably best left if you are not familiar with the code (or possibly best left anyway).</div><div><br></div><div>Of course 0 really is not invertible so if you let the determinant=0 case go through you'd need</div><div>to check that you don't get division by zero error in the driver code later. It is anyway easy to catch this</div><div>case of exactly zero in the tex macros and give a warning before it gets to the dvi driver.<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Best,<br>
Akira<br>
<br>
</blockquote></div></div><div class="gmail_extra"><br></div><div class="gmail_extra">Thanks again<br></div><div class="gmail_extra"><br></div><div class="gmail_extra">David<br></div></div>