[tlbuild] Compatibility with ConTeXt was broken in asy 2.33

Mojca Miklavec mojca.miklavec.lists at gmail.com
Tue May 19 08:36:18 CEST 2015


Dear John,

On Mon, May 18, 2015 at 10:06 PM, John Bowman wrote:
> Hi Mojca,
>
> The change to support rendered 3D context images is easy. In adding support
> for eps2write,
> I didn't worry about supporting 3D context labels since context doesn't
> support vector 3D graphics anyway (it doesn't support embedded PRC content).

ConTeXt supports PRC by now (or at least I think it does), but we
won't have time to add support for it in time for TL 2015 anyway, so
true, no need to worry about true 3D.

> But as I believe you are pointing out, some context users may be happy just
> to have a rendered preview image.

Actually this is all that is needed for printed materials.

In all honesty I could have certainly used another engine, but I'm
more comfortable and familiar doing the font setup in ConTeXt.

> The patch below (snv r5715) tells asy to
> treat context just like xe (these are special cases because they do not
> provide dvi output). I tested this with the context from TL 2014 and it
> seems to work as desired.

Yes, it works better now, but some things still break. I will send the
source code and some logs off-list.

In short:

[context runs succesfully]
system          | total runtime: 1.508 seconds
gs -q -dNOCACHE -dNOPAUSE -dBATCH -dSAFER -sDEVICE=pdfwrite
-sOutputFile=cylinder__.pdf cylinder_.pdf
gs -q -dNOCACHE -dNOPAUSE -dBATCH -dSAFER -sDEVICE=eps2write
-sOutputFile=cylinder__.ps cylinder__.pdf
gs -q -dBATCH -P -dSAFER -sDEVICE=eps2write -sOutputFile=/dev/null cylinder_.ps
M 0.00146484 -0.000244141L -35.6001 -0.000244141L ...
[really looooooong list of coordinates in a single line]
... -17.0898 148.609 -14.0703 150.828 -13.1211 151.703cM -17.0898 148.609
/opt/local/share/asymptote/plain_Label.asy: 670.23: reading array of
length 1 with out-of-bounds index 1

Mojca


More information about the tlbuild mailing list