home *** CD-ROM | disk | FTP | other *** search
/ The Pier Shareware 6 / The_Pier_Shareware_Number_6_(The_Pier_Exchange)_(1995).iso / 036 / printgl.zip / HPGL.DOC < prev    next >
Text File  |  1994-10-04  |  30KB  |  675 lines

  1.  
  2.  
  3.  
  4.                      PrintGL 1.52 HP-GL, HP-GL/2, and ADI Commands
  5.  
  6.                       (c) Copyright Ravitz Software Inc. 1990,1994
  7.  
  8.  
  9.          Ravitz Software Inc.                              BBS/FAX 606-268-0577
  10.          P.O. Box 25068
  11.          Lexington, KY  40524-5068
  12.          USA                                  Compuserve Cary Ravitz [70431,32]
  13.  
  14.  
  15.          ------------------------------ Contents ------------------------------
  16.  
  17.          Introduction ....................................................... 2
  18.          HP-GL Commands                                                       2
  19.          HP-GL Character Sets .............................................. 10
  20.          HP-GL/2 Commands                                                    12
  21.          ADI Commands ...................................................... 15
  22.  
  23.                                                                             p-2
  24.          Introduction ---------------------------------------------------------
  25.  
  26.            This   document  is   a   description   of   the  subset   of  HP-GL
  27.            (Hewlett-Packard  Graphics  Language), HP-GL/2,  and  ADI  (Autodesk
  28.            Device  Interface) that is supported by  PrintGL.  If you  are using
  29.            PrintGL to work with commercial  graphics software,  then  you  will
  30.            probably not need this manual.  If you are writing graphics software
  31.            you  will  find  here  the information  needed  to  make your output
  32.            compatible with PrintGL.
  33.  
  34.          HP-GL Commands -------------------------------------------------------
  35.  
  36.            PrintGL's HP-GL specification is taken from the  programming manuals
  37.            for the HP 7475A, ColorPro (7440/17440), and 7550A.  The 7550 manual
  38.            is  the  best reference for HP-GL - HP  manual 07550-90001.  PrintGL
  39.            supports  the 7475, and 7440/17440 command sets except for character
  40.            set 8 (Katakana), digitize commands, output commands, the error mask
  41.            command, and some device control  commands.  Supported commands  are
  42.            listed below.  Commands that are not applicable to printing, such as
  43.            pen velocity, are  considered supported  but are completely ignored.
  44.            Commands that are not supported are flagged and then ignored.
  45.  
  46.            In addition, PG,  AF, ES, LO, the enhanced IW command, character set
  47.            5, and proportional spaced fonts, from the 7550, are supported.  And
  48.            forty pens are allowed instead of eight.
  49.  
  50.            In reading a plotfile, PrintGL ignores carriage returns, line feeds,
  51.            and nulls  except where  they may be valid characters (LB,  SM,  DT,
  52.            esc.), and ASCII EOF (026) is interpreted as an end of file mark.
  53.  
  54.            AA x_center , y_center , arc_angle [, chord_angle]
  55.  
  56.              Arc absolute - AA moves  the pen through  an arc,  starting at the
  57.              current position, with the pen in the current up/down state.
  58.  
  59.            AF
  60.  
  61.              Advance full page -  AF  starts  a new plot.  PrintGL starts every
  62.              page with the pen up at 0,0.
  63.  
  64.            AP
  65.  
  66.              Automatic pen pickup - IGNORED
  67.  
  68.            AR x_center_delta , y_center_delta , arc_angle [, chord_angle]
  69.  
  70.              Arc  relative  - AR moves the pen through an arc, starting at  the
  71.              current position, with the pen in the current up/down state.
  72.  
  73.            AS
  74.  
  75.              Acceleration select - IGNORED                                     
  76.  
  77.                                                                             p-3
  78.            CA character_set
  79.  
  80.              Designate alternate character set - See HP-GL Character Sets for a
  81.              list of character sets.
  82.  
  83.            CI radius [, chord_angle]
  84.  
  85.              Circle - CI draws a circle centered at the  current position.  The
  86.              current up/down state and position are unchanged by a CI command.
  87.  
  88.            CP [spaces , lines]
  89.  
  90.              Character plot  - CP moves the pen by character spaces (+ is along
  91.              the text)  and lines  (+ is up), using  the current up/down state.
  92.              Using no parameters is the same as a carriage return/line feed.
  93.  
  94.            CS character_set
  95.  
  96.              Designate standard character set - See HP-GL Character Sets for  a
  97.              list of character sets.
  98.  
  99.            CV
  100.  
  101.              Curved line generator - IGNORED
  102.  
  103.            DF
  104.  
  105.              Default values -  This  sets  default  values  for  the  following
  106.              commands: CA, CS,  DR, DT, ES, FT, IW, LO, LT, PA, PT, SC, SM, SL,
  107.              SR, SS, TL.
  108.  
  109.            DI [run , rise]
  110.  
  111.              Absolute  character direction - DI sets the baseline direction for
  112.              labels. The default is 1,0.
  113.  
  114.            DR [run , rise]
  115.  
  116.              Relative character direction - DR sets the  baseline direction for
  117.              labels. Run and rise are a percentage of P2X-P1X and P2Y-P1Y.  The
  118.              default is 1,0.
  119.  
  120.            DTt
  121.  
  122.              Define label terminator - The label terminator ends an LB command.
  123.              The default is ASCII 003.
  124.  
  125.            EA x_opposite_corner , y_opposite_corner
  126.  
  127.              Edge  rectangle  absolute  - EA draws a rectangle  defined by  the
  128.              current position and the parameters.  The pen position and up/down
  129.              state are unchanged.
  130.  
  131.            EC
  132.  
  133.              Enable cutter - IGNORED                                           
  134.  
  135.                                                                             p-4
  136.            EP
  137.  
  138.              Edge polygon - EP draws the current polygon edge.  Any pen up/down
  139.              used in creating the polygon is respected in drawing the edge.
  140.  
  141.            ER x_opposite_corner_delta , y_opposite_corner_delta
  142.  
  143.              Edge  rectangle relative  -  ER  draws  a rectangle  with  corners
  144.              defined by  the current position  and the command parameters.  The
  145.              current pen position and up/down state are unchanged.
  146.  
  147.            ES [ space [, line]]
  148.  
  149.              Extra space  - ES adds to the  space between characters and lines.
  150.              The  units  are in  character  cells  (1.5*width,  2*height).  The
  151.              allowed range is -1 to 1. -.3333 causes characters to touch.
  152.  
  153.            EW radius , start_angle , sweep_angle [, chord_angle]
  154.  
  155.              Edge  wedge - EW draws a wedge centered  at the  current position.
  156.              The current pen position and up/down state are unchanged.
  157.  
  158.            FP
  159.  
  160.              Fill polygon - FP fills the current polygon.  Pen up/down commands
  161.              used in creating the polygon are ignored.
  162.  
  163.              There is a limit of 2000 fill line segments per polygon.
  164.  
  165.            FS
  166.  
  167.              Force select - IGNORED
  168.  
  169.            FT [type [, spacing [, angle]]]
  170.  
  171.              Fill type - These are the fill types.  Type 2 is identical to type
  172.              1 for PrintGL.
  173.  
  174.                1  solid lines spaced at half the pen thickness (see PT command)
  175.                2  unidirectional solid lines spaced at half the pen thickness
  176.                3  lines at the specified spacing
  177.                4  cross hatched lines at the specified spacing
  178.                5  type ignored
  179.  
  180.              A spacing  parameter  of 0 sets  the  spacing  to 1%  of the P1-P2
  181.              diagonal. Spacing is in x axis units (this is only relevant if the
  182.              axes have different scaling).  PrintGL supports any  integer angle
  183.              for fill. Cross hatched lines are at angle + 90.
  184.  
  185.            IN
  186.  
  187.              Initialize                                                        
  188.  
  189.                                                                             p-5
  190.            IP [p1x , p1y [, p2x , p2y]]
  191.  
  192.              Sets scaling points P1 and P2 - IP sets the scaling points (P1 and
  193.              P2) in plotter units.  P1  and P2 are used by several commands  to
  194.              help with size independent plots.
  195.  
  196.            IW [x_lower_left , y_lower_left , x_upper_right , y_upper_right]
  197.  
  198.              Input window - IW sets a clipping window in plotter units. With no
  199.              parameters, the clipping window is turned off.
  200.  
  201.              If  PrintGL's  /YE switch is  set and user  scaling  is on then IW
  202.              parameters are in user units.  In this case the window is rescaled
  203.              with an IP command, but any SC command locks the current window.
  204.  
  205.            LB..text..terminator
  206.  
  207.              Label - Labels use the current character set, based on CA, CS, SA,
  208.              and SS commands. See HP-GL Character Sets for font specifics.
  209.  
  210.            LO [ position_number ]
  211.  
  212.              Label origin -  LO  sets  the  label  origins,  shown  below.  For
  213.              positions 4..9  and  14..19  the  label buffer is  limited  to 150
  214.              characters. The default is 1.
  215.  
  216.              13                     16                      19
  217.                 3......  .......  ...6...  .......  ......9
  218.                 .     .  .     .  .     .  .     .  .     .
  219.              12 2     .  .     .  .  5  .  .     .  .     8 18
  220.                 .     .  .     .  .     .  .     .  .     .
  221.                 1......  .......  ...4...  .......  ......7
  222.              11                     14                      17
  223.  
  224.            LT [pattern_number [, pattern_length]]
  225.  
  226.              Line  type  - PrintGL's line type patterns are close  to, but  not
  227.              identical  to HP's.  Pattern  length is a  percentage of the P1-P2
  228.              diagonal with a default of 4%  and a minimum of 4 dots for types 1
  229.              and 2 and 16 dots for other types.  Negative (adaptive) line types
  230.              from the HP 7550 are supported.
  231.  
  232.              no parameter  solid            1  .               .
  233.                                             2  ________        ________
  234.              0             dots at          3  ____________    ____________
  235.                            endpoints        4  ____________  . ____________  .
  236.                            only             5  __________  __  __________  __
  237.                                             6  ______  __  __  ______  __  __
  238.                                             7  __________  . . __________  . .
  239.                                             8  ______  . __  . ______  . __  .
  240.  
  241.            PA [x , y] [, x , y] ...
  242.  
  243.              Plot absolute - PA sets absolute mode and optionally moves the pen
  244.              in the current up/down state.                                     
  245.  
  246.                                                                             p-6
  247.            PD [x , y] [, x , y] ...
  248.  
  249.              Pen down - PD sets the pen  down and optionally moves it with  the
  250.              current absolute/relative mode.
  251.  
  252.            PG [i]
  253.  
  254.              New page - PG starts a new plot. The parameter is ignored. PrintGL
  255.              starts every page with the pen up at 0,0.
  256.  
  257.            PM i
  258.  
  259.              Polygon mode - PM  0 starts polygon mode.  The current position is
  260.              the first point in the polygon.
  261.  
  262.              PM 1 starts  a new  subpolygon.  The  position after the next  pen
  263.              movement is the first point in the subpolygon.  The first pen move
  264.              of a subpolygon is done with the pen up, regardless of the current
  265.              up/down status.
  266.  
  267.              PM 2 ends polygon mode.
  268.  
  269.              PM  1 and PM 2 close  the current subpolygon with  the current pen
  270.              up/down state. If used without first starting polygon mode (PM 0),
  271.              PrintGL adds an implied PM 0 before processing the PM 1 or PM 2.
  272.  
  273.              The following  commands are accepted in polygon  mode: PM, PA, PR,
  274.              PU, PD,  AA,  AR,  CI  (circles  are  automatically  prefixed  and
  275.              suffixed by PM 1), and IN.
  276.  
  277.              The polygon buffer is limited to 1000 data points.
  278.  
  279.            PR [x_delta , y_delta] [, x_delta , y_delta] ...
  280.  
  281.              Plot relative - PR sets relative mode and optionally moves the pen
  282.              in the current up/down state.
  283.  
  284.            PS
  285.  
  286.              Paper size - IGNORED
  287.  
  288.              PrintGL ignores PS. The paper size must be set with the /L option.
  289.  
  290.            PT [thickness]
  291.  
  292.              Pen  thickness - PT specifies twice the line spacing used in solid
  293.              fills and may be from 0 to 5.0 mm.  It is reset to .3 mm with each
  294.              SP command.
  295.  
  296.            PU [x,y] [,x,y] ...
  297.  
  298.              Pen  up  - PU  raises  the pen and optionally  moves  it with  the
  299.              current absolute/relative mode.                                   
  300.  
  301.                                                                             p-7
  302.            RA x_opposite_corner , y_opposite_corner
  303.  
  304.              Shade  rectangle  absolute  -  RA  fills  a rectangle with corners
  305.              defined  by the current position and the  command parameters.  The
  306.              current  pen  position  and  up/down  state  are  unchanged.   The
  307.              rectangle edge is not drawn.
  308.  
  309.            RO [angle]
  310.  
  311.              Rotate coordinate  system - RO or RO0  sets up a normal coordinate
  312.              system.  RO90, the only other allowed value, sets up a system that
  313.              is rotated 90 degrees.  The type of rotation depends on  the paper
  314.              size.  This command  does  not change the scaling points, so an IP
  315.              command is useful after an RO.
  316.  
  317.              The HP 7475 specifies two different meanings for RO90 depending on
  318.              the  paper  size (A/A4 or B/A3).  PrintGL  decides  which  type of
  319.              rotation to do based on the sum of  the  print  window  width  and
  320.              height.  If this sum  is  greater than 24 inches  then large paper
  321.              rotation is used. Otherwise, small paper rotation is used.
  322.  
  323.              Small paper rotation:              Large paper rotation:
  324.  
  325.              RO 0             RO 90             RO 0             RO 90
  326.  
  327.                y --------    0,0 -------- y     0,0 -------- y    y --------
  328.                 |        |      |        |         |        |      |        |
  329.                 |        |      |        |         |        |      |        |
  330.              0,0 -------- x    x --------          |        |      |        |
  331.                                                    |        |      |        |
  332.                                                    |        |      |        |
  333.                                                    |        |      |        |
  334.                                                   x --------    0,0 -------- x
  335.  
  336.            RR x_opposite_corner_delta , y_opposite_corner_delta
  337.  
  338.              Shade  rectangle  relative -  RR fills  a rectangle  with  corners
  339.              defined by  the current position and the  command parameters.  The
  340.              current  pen  position  and  up/down  state  are  unchanged.   The
  341.              rectangle edge is not drawn.
  342.  
  343.            SA
  344.  
  345.              Select alternate  character  set  -  SA  specifies  the  alternate
  346.              character set as current.  The alternate character set  is  chosen
  347.              with CA.
  348.  
  349.            SC [xmin , xmax , ymin , ymax]  or  SC xmin,xrto,ymin,yrto,2
  350.  
  351.              Scaling - SC sets user units. The units are defined by user values
  352.              for  P1 (xmin,ymin)  and P2 (xmax,ymax)  or P1 and  the  ratio  of
  353.              plotter to user units.  Using no parameters turns scaling off, and
  354.              subsequent drawing is done in plotter units (1/1016 inch).        
  355.  
  356.                                                                             p-8
  357.            SI [width , height]
  358.  
  359.              Character size absolute - SI sets the capital letter box width and
  360.              height in centimeters.  Letter  spacing  is 1.5 *  width  and line
  361.              spacing  is 2 * height.  Using no parameters with B or A3 paper is
  362.              the same as  SI.285,.375  and  any  other  paper is  the  same  as
  363.              SI.187,.269.
  364.  
  365.            SL [tan_angle]
  366.  
  367.              Character slant - SL sets  the character  slant.  The parameter is
  368.              interpreted as the tangent  of  the angle from vertical.  Using no
  369.              parameter sets the slant to 0 degrees.
  370.  
  371.            SM[c]
  372.  
  373.              Symbol mode  -  SM sets symbol mode, which centers the symbol mode
  374.              character  at  any plotted point.  Any character from ASCII 033 to
  375.              127 except ";" sets symbol mode.  Any other character turns symbol
  376.              mode off.
  377.  
  378.            SP pen_number
  379.  
  380.              Select pen - SP selects a pen.  Using 0 or no parameter stores the
  381.              pen  without selecting a new pen.  This is usually done at the end
  382.              of a plot. PrintGL ignores any drawing with pen 0.
  383.  
  384.            SR [width , height]
  385.  
  386.              Character size relative - SR sets the capital letter box width and
  387.              height as a percentage of  P2X-P1X and P2Y-P1Y.  Letter spacing is
  388.              1.5 * width and line spacing is 2 * height. Using no parameters is
  389.              the same as SR.75,1.5.
  390.  
  391.            SS
  392.  
  393.              Select  standard  character  set  -  SS   specifies  the  standard
  394.              character  set as  current.  The standard character set  is chosen
  395.              with CS.
  396.  
  397.            TL [positive_length [, negative length]]
  398.  
  399.              Tick length -  TL  sets the  tick lengths used by XT and  YT.  The
  400.              parameters are lengths above  and  below the current position as a
  401.              percentage of P2Y-P1Y for x-axis ticks and a percentage of P2X-P1X
  402.              for y-axis ticks.
  403.  
  404.            UC [[pen_control ,] x_delta , y_delta] ...
  405.  
  406.              User character - UC specifies a  user defined character.  The  pen
  407.              control number is 99 for pen down or -99 for pen up. Pen movements
  408.              are relative, with x_delta in units of 1/4 the character width and
  409.              y_delta in units of 1/8 the character height.
  410.  
  411.            VA
  412.  
  413.              Adaptive velocity - IGNORED                                       
  414.  
  415.                                                                             p-9
  416.            VN
  417.  
  418.              Normal velocity - IGNORED
  419.  
  420.            VS
  421.  
  422.              Pen velocity - IGNORED
  423.  
  424.            WG radius , start_angle , sweep_angle [, chord_angle]
  425.  
  426.              Shade  wedge - WG fills a  wedge centered at the current position.
  427.              The current  pen  position and up/down  state are  unchanged.  The
  428.              wedge edge is not drawn.
  429.  
  430.            XT
  431.  
  432.              X-axis tick - XT draws a  vertical line, with  length specified by
  433.              the  TL  command, at the current  position.  The  pen position and
  434.              up/down state are unchanged.
  435.  
  436.            YT
  437.  
  438.              Y-axis tick - YT draws a horizontal line, with length specified by
  439.              the TL  command, at  the  current position.  The  pen position and
  440.              up/down state are unchanged.
  441.  
  442.            esc.(
  443.            esc.Y
  444.  
  445.              Plotter on  - Esc.( and esc.Y turn the plotter  on.  This is  only
  446.              relevant with the /YY option.
  447.  
  448.            esc.)
  449.            esc.Z
  450.  
  451.              Plotter off - Esc.)  and esc.Z turn the plotter off. They are only
  452.              effective with the /YY option. The plotter on and off commands let
  453.              you  include comments or data to pass through to another device in
  454.              the plotfile.  These are flagged as unsupported commands if /YD is
  455.              set, as an indication that you should set /YY.
  456.  
  457.            esc.@, esc.H, esc.I, esc.M, esc.N, esc.R
  458.  
  459.              RS-232 device control commands - IGNORED                          
  460.  
  461.                                                                            p-10
  462.          HP-GL Character Sets -------------------------------------------------
  463.  
  464.            PrintGL  supports all of the character sets that  are included  with
  465.            the HP 7475 and 7440/17440 except Katakana, and adds character set 5
  466.            and  the  proportional  spaced  fonts   from  the  7550.   PrintGL's
  467.            characters are similar to but not identical to HP's.
  468.  
  469.               0  ANSI ASCII
  470.               1  9825 character set
  471.               2  French/German
  472.               3  Scandinavian
  473.               4  Spanish/Latin American
  474.               5  Special Symbols (7550 extension)
  475.               6  JIS ASCII
  476.               7  Roman Extensions
  477.               8  Katakana - NOT SUPPORTED
  478.               9  ISO IRV
  479.              30  ISO Swedish
  480.              31  ISO Swedish For Names
  481.              32  ISO Norway Version 1
  482.              33  ISO German
  483.              34  ISO French
  484.              35  ISO United Kingdom
  485.              36  ISO Italian
  486.              37  ISO Spanish
  487.              38  ISO Portuguese
  488.              39  ISO Norway Version 2
  489.  
  490.            The character sets specify a font for codes 033..127. Codes 000..032
  491.            and 128..255 are independent of the character set and are all no ops
  492.            except these.
  493.  
  494.              003  default label terminator
  495.              008  backspace
  496.              009  half backspace
  497.              010  line feed
  498.              011  reverse line feed
  499.              013  carriage return
  500.              014  select alternate character set
  501.              015  select standard character set
  502.              032  space
  503.  
  504.            Each of  the  character sets  is available as a proportional font by
  505.            adding 10 to the set number.  The proportional  fonts  are kerned to
  506.            improve  appearance (the character spacing is adjusted to compensate
  507.            for  character shape).  Use the LO  command to simplify working with
  508.            proportional fonts. To improve the appearance of large text, use the
  509.            ES command to reduce the character spacing.
  510.  
  511.            Codes 65 to 81 in character set 5 are symbols designed to be used in
  512.            symbol mode (SM command) or as one character labels.  When used in a
  513.            label (LB command) these characters  are centered at the current pen
  514.            position and leave the pen position unchanged.                      
  515.  
  516.                                                                            p-11
  517.            The  HP-GL  characters cannot  be printed  with  the  standard ASCII
  518.            character  set.  The file HPGL.CHR is an HP-GL file that can be used
  519.            to print a  replacement  for this page, showing  the character sets.
  520.            Use  the command PRINTGL  HPGL.CHR  /M1  /AO0,0  with  a  /F  option
  521.            specific to your printer to do this.                                
  522.  
  523.                                                                            p-12
  524.          HP-GL/2 Commands -----------------------------------------------------
  525.  
  526.            PrintGL's HP-GL/2 commands include a subset of HP-GL/2 that lets you
  527.            take  advantage  of  HP-GL/2's  pen  control  and  data compression.
  528.            PrintGL's HP-GL/2 interpreter reads all of the HP-GL commands above,
  529.            except  as noted below.  PrintGL acts like  an  HP-GL/2 plotter, not
  530.            printer,  so  form feeds are done with the PG command  not the  form
  531.            feed character.
  532.  
  533.            The  LA command  is not supported  - all  lines are drawn with round
  534.            ends and round joints. And all clipping is done to the line center.
  535.  
  536.            When the  output format is  HP-GL  all of the  HP-GL/2 extended  pen
  537.            control commands are  ignored.  The PT command  is needed to  ensure
  538.            solid fills look good.
  539.  
  540.            AC [x , y]
  541.  
  542.              Anchor corner - AC  specifies the origin of  stroked fills.  It is
  543.              handled even with HP-GL/2 off.
  544.  
  545.            BP
  546.  
  547.              Begin plot - BP is interpreted as PG;IN;.  It is handled even with
  548.              HP-GL/2 off.
  549.  
  550.            CO "comment"
  551.  
  552.              Comment - This is handled even with HP-GL/2 off.
  553.  
  554.            CR [black_ref_red , green , blue , white_ref_red , green , blue]
  555.  
  556.              Color range - Sets the color ranges used by the PC command.
  557.  
  558.            FT [type [, spacing or shading [, angle]]]
  559.  
  560.              Fill type - When reading HP-GL/2, PrintGL accepts type 10 (shading
  561.              percentage is the additional parameter) and 11 (raster fill number
  562.              is the additional parameter).  Type 11 fills are converted to type
  563.              10 with the shade level taken from the RF command.
  564.  
  565.              For solid  and  shaded fill types, to guarantee  good results, you
  566.              must use the PW command to set the pen width  and  this width must
  567.              magnify to no  more than 24 dots in the final image.  If either of
  568.              these rules is broken, the fill may be striped rather than solid.
  569.  
  570.            IR [p1x , p1y [, p2x , p2y]]
  571.  
  572.              Set  scaling points relative - This is handled even if  HP-GL/2 is
  573.              turned off.
  574.  
  575.            LT [pattern_number [, pattern_length, [mode]]]
  576.  
  577.              Line type -  HP-GL/2 allows  the  additional parameter  to  select
  578.              relative (default) or  absolute pattern lengths.  This  is handled
  579.              even with HP-GL/2 off.                                            
  580.  
  581.                                                                            p-13
  582.            NP [number]
  583.  
  584.              Number  of  pens  -  Sets  the number of pens.  This is ignored by
  585.              PrintGL, which can handle up to 256 pens.
  586.  
  587.            PC [pen [, red , green , blue]]
  588.  
  589.              Pen color - Sets the pen color.
  590.  
  591.            PE
  592.  
  593.              Polyline encoded  - This  starts PE mode.  It is handled even with
  594.              HP-GL/2 off.
  595.  
  596.            PT [thickness]
  597.  
  598.              Pen  thickness  -  The  command is  not  part  of  HP-GL/2 and  is
  599.              generally ignored.  If the  output format is HP-GL  or if  you are
  600.              using /Y1 (HP-GL/2 without pen  control) then PT is interpreted as
  601.              it is in HP-GL.
  602.  
  603.            PW [width [, pen]]
  604.  
  605.              Pen width - Sets the  pen width.  After magnification, the maximum
  606.              width is 24 dots. PW is ignored if the output format is HP-GL.
  607.  
  608.            QL
  609.  
  610.              Quality level - IGNORED for HP-GL or HP-GL/2
  611.  
  612.            RF [index [,width, height, pen [.. pen]]
  613.  
  614.              Raster fill - RF is not fully implemented.  Instead it is read and
  615.              the  pattern is  converted to  a shade level.  Pen numbers and the
  616.              specific  pattern are ignored.  The shade level  is saved for  use
  617.              with fill type 11.
  618.  
  619.            RO [angle]
  620.  
  621.              Rotate coordinate system  -  When  reading HP-GL/2,  this  command
  622.              accepts 0, 90, 180, and 270 and always rotates counter-clockwise.
  623.  
  624.            SV [type [, option1 [, option2]]]
  625.  
  626.              Screened vectors - Sets the shade level used  to draw lines.  Only
  627.              modes 0 and 1 are supported.
  628.  
  629.            TR [mode]
  630.  
  631.              Transparency mode - Sets opaque or translucent mode.
  632.  
  633.            UL [index [,gap1, .., gapn]]
  634.  
  635.              User  line type - UL is not fully implemented.  Instead it is read
  636.              and the pattern is converted  to one  of PrintGL's eight  standard
  637.              line types. The gaps must be less that 256.                       
  638.  
  639.                                                                            p-14
  640.            WU [type]
  641.  
  642.              Width units - Sets the units used by the PW command.
  643.  
  644.            esc% .. A
  645.  
  646.              Enter PCL or RTL mode -  This command is treated  like esc.).  All
  647.              commands are ignored until the next esc% .. B.
  648.  
  649.            esc% .. B
  650.  
  651.              Enter  HP-GL/2 mode - This command  is treated like esc.(.  It  is
  652.              required before any commands are interpreted.
  653.  
  654.                                                                            p-15
  655.          ADI Commands ---------------------------------------------------------
  656.  
  657.            With the /YA option PrintGL can read Autodesk ADI 4.0 vector plotter
  658.            binary commands intermixed in the HP-GL. 1016 dpi coordinates or the
  659.            current HP-GL user coordinates are assumed. The table shows each ADI
  660.            command  and  the  equivalent  HP-GL  command   (as  interpreted  by
  661.            PrintGL).  In  the ADI code column, the  code  number  and  "b"s are
  662.            bytes,  and  "x" and  "y"  are words.  Eight line  types (other than
  663.            solid) are supported.
  664.  
  665.              ADI command     ADI code     equivalent HP-GL
  666.  
  667.              begin plot      1 b          ignored
  668.              end plot        2            PG;
  669.              move            3 x y        PUx,y;
  670.              draw            4 x y        PDx,y;
  671.              pen             5 b          SPb;
  672.              speed           6 b          ignored
  673.              line type       7 b          if b=0 then LT; else LTb,2;
  674.              raise pen       8            ignored
  675.              abort           9            ignored