home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 425.lha / fixps / fixps.doc < prev    next >
Encoding:
Text File  |  1990-09-30  |  2.0 KB  |  41 lines

  1.  
  2.      FIXPS, or fix post script, is designed to alter postscript files so
  3. that they work with POST1.1.  
  4.  
  5.      POST1.1 uses strict type checking for the postscript BIND function.  I
  6. found that every postscript file I had failed to run on POST for this
  7. reason.  Sometimes "BIND DEF" was used when just "DEF" was appropriate,
  8. and visa versa.  This was true for some PD PS files, as well as those
  9. generated by Pagestream 1.8.
  10.  
  11.      FIXPS 1.0 uses a very simple algorithm, and makes the assumption that
  12. "BIND DEF" is defined as "BDEF".  This seems to be common practice, and is
  13. true with pagestream.  If the following line appears in your post script
  14. file(s), then FIXPS should work for you:
  15.  
  16.  
  17.         /bdef {bind def} bind def
  18. Also, be sure that "BDEF" is actually used instead of "BIND DEF".
  19.  
  20.    When a right brace,"}", is found, and the next non-space character is
  21. a "D", FIXPS inserts a "B", presumably to change "DEF" to "BDEF" after a 
  22. procedure definition.
  23.  
  24.    When a "BD" is found, indicating "BDEF", and they are not the first non-
  25. space characters after a right brace, the "B" is dropped to change "BDEF" to
  26. "DEF".  An exception is made if the first non-space character preceding "BD"ef
  27. is a backslash, signaling the definition of "BDEF", as above.
  28.  
  29.      FIXPS is used from the shell or CLI.  The postscript file name follows 
  30. "FIXPS" on the command line.  The original file will remain intact, and the
  31. altered file will have "_FIX" appended to its name.
  32.  
  33.      I hope this program is of some help to you.  I didn't include the source
  34. because this is my first program in C.  Also, I did not do extensive testing, 
  35. but FIXPS seemed to do well with the few files I have.  Hopefully, now we can
  36. all appreciate the efforts of those who developed POST.
  37.  
  38.    Also included is a picture of the Simpsons, imported into Pagestream, then
  39. printed to a postscript file; and, the fixed version of the same file.
  40. Don't forget to set your default font for POST1.1 in the INIT.PS file.
  41. That is the only oher problem I had trying to run POST.