home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 13 / 13.iso / p / p120 / 3.ddi / DEF / PSCRIPT.DEF < prev    next >
Encoding:
Text File  |  1991-07-22  |  4.5 KB  |  109 lines

  1. BEGIN DDIF
  2. ------------------------------------------------------------------------
  3. -- DEVICE INFORMATION FILE  FOR POSTSCRIPT OUTPUT DEVICES             --
  4. -------------------------------------------------------------------------
  5. ------------------------------------------------------------------------
  6. -- ******** Attention all programmers: you must document any ******** --
  7. -- ******** and all changes you make to this file at the top! ******* --
  8. ------------------------------------------------------------------------
  9.  
  10. -- COMMUNICATIONS PARAMETERS
  11. --   +-- commications port number  0        = use default file name below
  12. --   |                   1 to  4  = SERIAL ports COM1 to COM4 
  13. --   |                  -1 to -3  = PARALLEL ports LPT1 to LPT3
  14. --   |                  -4 to -6  = PARALLEL ports LPT1 to LPT3
  15. --   |                              (using direct, hardware I/O)
  16. --   |     SERIAL PORT PARAMETERS (default = 9600 baud, none, 1 stop, 8 data)
  17. --   |   +------------------------------------------- BAUD RATE   
  18. --   |   |  +------------------------------ PARITY     0 =  9600              
  19. --   |   |  |  +---------------- STOP BITS   0 = NONE  1 =   300           
  20. --   |   |  |  |  +-- DATA BITS   0 = 1         1 = EVEN  2 =  1200           
  21. --   |   |  |  |  |    0 = 8      1 = 1         2 = ODD   3 =  2400           
  22. --   |   |  |  |  |    7 = 7      2 = 2                4 =  4800           
  23. --   |   |  |  |  |    8 = 8                   5 =  9600           
  24. --   |   |  |  |  |                           6 = 19200           
  25. --   |   |  |  |  |                           7 = 38400           
  26. --   |   |  |  |  |                           8 = 57600
  27. --   v   v  v  v  v
  28. 101  2
  29.  
  30. -- DEFAULT FILE NAME  to use if communication port is '0' (above)
  31. -- and file name or port number is not given at plot time
  32. 19 PD_PLOT.EPS
  33.  
  34. --  +--+----------- Smallest, largest pen numbers
  35. --  |  |  +-------- Do pen changing optimization  { good for plotters, }
  36. --  |  |  | +------ Do pen movement optimization  { bad for printers!  }
  37. --  |  |  | |  +-- lineto buffer size (output a stroke after
  38. --  |  |  | |  |                       this many lineto's in a row)  
  39. --  V  V  V V  V
  40. 102 1  16 0 0 20
  41. --    The lineto buffer count (line 102) is used so that you may specify
  42. --    how many vectors in a single stroke can be output. This helps prevent
  43. --    overflowing printer's vector buffer, which cuases postscript devices 
  44. --    to abort plots.
  45.  
  46. -- Line font definitions in ASCII strings
  47. 2       '1 1             '           ;--font 1
  48. 3       '2 2             '           ;--font 2
  49. 4       '3 3             '           ;--font 3
  50. 5       '4 4             '           ;--font 4
  51. 6       '5 5             '           ;--font 5
  52. 7       '6 6             '           ;--font 6
  53. 8       '3 6 9 12 15 18  '           ;--font 7
  54. -- The line fonts are in the defined UNITS PER INCH - see lines 10 and 103. 
  55. -- The first number is the initial pen down, then pen up, then pen down, etc... 
  56. -- MAXIMUM LENGTH IS SIXTEEN CHARACTERS!!
  57.  
  58. -- 
  59. --  +-+- Swap x/y axis for each paper size (0 = no, 1 = yes)
  60. --  V V
  61. 105 1 0
  62. 1  'A AY '  --'SIZE' words (must have space at end)
  63.  
  64. --Plot size in UNITS PER INCH
  65. --   xmin ymin    xmax  ymax
  66. 201    75   113    3225  2465   -- ANSI Engineering A @ 300 ppi
  67. 202   113    75    2465  3225   -- ANSI Engineering AY @ 300 ppi
  68.  
  69. --  Defined plotter units per inch are:
  70. --    +---X & Y plotter units per inch
  71. --    V  
  72. 103  300
  73. 10  '300   '
  74. --    Both line 103 and line 10 should say the same thing!!
  75. --    one number is the ASCII number used to scale the postscript
  76. --    device, and the other is the number passed back into GCD to
  77. --    set up the appropriate numbers for plotting.
  78.  
  79. -- PREDEFINED COMMAND STRINGS
  80. -- format for these must be as follows:
  81. --    +-- string name, up to eight characters, ending with a space
  82. --    |      +-- plotter commands up to 55 characters.  Any characters
  83. --    |      |   allowable, control codes must be formatted in '#n#'-style
  84. --    |      |   notation.  This data will be sent verbatim to the plotter
  85. --    |      |   so any base conversion or bias must already be incorporated
  86. --    v         v
  87. -- 'NAME     plotter command data'
  88.  
  89. 20 'RESET    #4#'
  90. --21 'OFFLINE  '
  91. 22 'FEED     SHOWPAGE#13#'
  92. --23 ''
  93. --24 ''
  94. --25
  95. --26
  96. --27 
  97. --28
  98.  
  99. -- PREFIX AND SUFFIX STRINGS:
  100. -- data must be in quotes (single or double) names are case sensitive
  101. -- EXAMPLE:  'RESET "some plotter data" DUPLEX'
  102. -- NAME(s) of Predefined string(s) or data to send BEFORE PLOT
  103. --29  ''
  104. -- NAME(s) of Predefined string(s) or data to send AFTER PLOT
  105. --30  ''
  106.  
  107. END DDIF
  108. END
  109.