[system] / trunk / webwork-modperl / bin / gif2eps Repository:
ViewVC logotype

View of /trunk/webwork-modperl/bin/gif2eps

Parent Directory Parent Directory | Revision Log Revision Log


Revision 562 - (download) (annotate)
Fri Sep 27 23:53:42 2002 UTC (10 years, 7 months ago) by sh002i
File size: 787 byte(s)
- created macros/IO.pl, which is loaded with no opmask by PG.pm. It is a copy
  of WeBWorK::PG::IO.pm, with some changes to make it work as a macro package.
  The translator no longer shares IO.pm's functions with the safe compartment.
  This is a BAD THING, and should be reconsidered when the Translator is
  revised.
- Changed many (but not all) checks for HTML or HTML_tth modes to match /^HTML/
  in the macros.
- changed &header to &head in Problem.pm
- Added problem environment variables for gif2eps and png2eps and modified
  &dangerousMacros::alias to use them
- fixed MOST of the harmless warnings in the system. there's still the "Use
  of uninitialized value in null operation" warning in template(), tho.

Still to come:

- make images in PDFs work
- fix TTH mode character encodings on mac (maybe)
- have logout button invalidate key
- Pretty die messages (from outside of the translator)
- Feedback - need nice modular way of sending email
- Options - email address and password

    1 #!/bin/sh
    2 
    3 # This script wraps system-dependant calls to several netpbm utilities.
    4 # In order to use this script, set the NETPBM variable below to the
    5 # directory which contains giftopnm, ppmtopgm, and pnmtops.
    6 
    7 NETPBM=/usr/local/bin
    8 
    9 # If you wish to set the paths to each utility separately, i.e. if they
   10 # are in different locations, do so below:
   11 
   12 GIFTOPNM=$NETPBM/giftopnm;
   13 PPMTOPGM=$NETPBM/ppmtopgm;
   14 PNMTOPS=$NETPBM/pnmtops;
   15 
   16 # There should be no need for customization beyond this point.
   17 
   18 umask 022
   19 cat $1 | $GIFTOPNM | $PPMTOPGM | $PNMTOPS -noturn 2>/dev/null > $2
   20 
   21 # CODER NOTE:
   22 # We used to use `pnmdepth 1' instead of ppmtopgm as it creates a
   23 # monochrome image (1 bit) rather than a greyscale image (8 bits).
   24 # However, this was causing improper display of some sort in PDFs.

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9