[NTG-context] metafun not working

Mojca Miklavec mojca.miklavec.lists at gmail.com
Thu Jul 7 14:38:11 CEST 2005


I got the following answer from the author of pstoedit:

 > Concerning your crash. I think this is related to the -ssp option -
 > isn't it? Does the crash still happen without -ssp? Anyway - you could
 > compile the source code yourself, e.g. under cygwin and simply apply
 > the following patch.
 >
 > --- drvbase.cpp.orig    2005-06-23 09:52:08.000000000 +1000
 > +++ drvbase.cpp 2005-06-23 09:53:10.000000000 +1000
 > @@ -843,7 +843,7 @@
 >                         if (verbose)
 >                                 errf << "dumping subpath from " << 
starti << " to " << end << endl;
 >                         outputPath->subpathoffset = starti;
 > -                       outputPath->numberOfElementsInPath = end - start;
 > +                       outputPath->numberOfElementsInPath = end -
 > + starti;
 >                         show_path();            // from start to end
 >                 }
 >                 starti = end;
 >
 > Best Regards
 >
 > Wolfgang

In [MikTeX]/scripts/context/perl/makempy.pl I removed -ssp [simulate 
subpaths] from the following two routines:

sub make_mp_pictures_ps
   { process ("metapost file") ;
     run ($tmpfile, "$pstoedit", "-ssp -dt -f mpost $posfile $tmpfile") }

sub make_mp_pictures_pdf
   { process ("metapost file") ;
     run ($tmpfile, "$pstoedit", "-ssp -dt -f mpost $pdffile $tmpfile") }

pstoedit now doesn't crash any more, but 'P' or 'O' for example don't 
have "holes" any more. I'll try to reinstall my cygwin or to compile the 
source of pstoedit on Linux later. If I understood correctly than this 
patch should solve the problem and -ssp should work again.

Besides that, pstoedit will move to sourceforge, so it will hopefully 
soon be possible to download it more easily than it is now :)

Mojca


More information about the ntg-context mailing list