# HPGLGEN.GPL 4.4 # (c) INRO Consultants Inc., Montreal, Canada, 1996-1999 # # Generic HGPL/2 format file for: # - Hewlett Packard DesignJet plotters (e.g. 650C model); # - Laser printers supporting the HPGL/2 protocol under PCL5e. # - Selective erase / rectangle fill command added to support background # coloring of node boxes # - Explicit support for color index 0 (background) was added # - Elements are not buffered but processed in the same order as they # appear in the plot file in order to allow consistent "overpainting" # # This file is set for the DesignJet 650C. For the InkJet, DeskJet and Laser # printers, edit the file, according to the instructions given in the comment # lines. # # ******** This version needs GPL version 3.4 or later! *************** # # DOS, UNIX and VAX: output device is standard output # this can be changed to proper device name, for example # com1 (DOS), /dev/lp (UNIX), plotter (VAX) # COLORS PATTERNS XSTART YSTART XMAX YMAX FLAGS OUTDEVICE MESSAGEDEV GTEXTFAC 13 5 0 0 16384 12480 gveb0 - - .0061 # # plotter initialization string: # default string: \033E\033%-1B;IN;BP3,0;RO180; # # Under PCL5e, in order to get A3 output, uncomment the following line: #\033&l27A\ # # Under PCL5e, the laser printer must be set to HP-GL/2 mode, # the graphic must also be rotated by 90 degrees. Uncomment # the following line instead of the "\033E\033%-1B;IN;BP3,0;RO180;" line: #\033%0BDF;RO90;IP; # # Start page string # Under PCL5e, in order to get A3 output, use the following line: #\033&l27A\ # # Under PCL5e, uncomment the following line to set the laser printer in # HP-GL/2 mode: #\033%0B\ # # Pen colors are initialized according to the standard EMTOOL color indices: # index color red green blue # 0 White 100 100 100 # 1 Black 0 0 0 # 2 Red 100 0 0 # 3 Green 0 100 0 # 4 Blue 0 0 100 # 5 Cyan 0 100 100 # 6 Magenta 100 0 100 # 7 Yellow 100 100 0 # 8 Orange 100 50 0 # 9 Olive 0 50 0 # 10 Dark green 0 100 50 # 11 Marine 0 50 100 # 12 Violet 50 0 100 # The following two lines explicitly define all pen colors: NP13;CR0,8,0,8,0,8;PC1,0,0,0;PC2,8,0,0;PC3,0,8,0;PC4,0,0,8;PC5,0,8,8;\ PC6,8,0,8;PC7,8,8,0;PC8,8,4,0;PC9,2,6,2;PC10,0,8,4;PC11,0,4,8;PC12,4,0,8;\ PC13,8,8,8;TR0;\n\ # # The following two lines explicitly initialize all pen widths to 0.2: PW0.2,1;PW0.2,2;PW0.2,3;PW0.2,4;PW0.2,5;PW0.2,6;\ PW0.2,7;PW0.2,8;PW0.2,9;PW0.2,10;PW0.2,11;PW0.2,12;PW0.2,13;\n\ # # Default start page string: SC0,16384,0,12480,1;SP1;LT;PU;PA0,0;\n # End page string # For plotter (such as the HP DesignJet 650C) using paper roll, use the # following default end page string: PG;RP0;\n # # For PCL5 printers, use the following line instead of the "PG;RP0;\n" # line: #PG;\033%0A\014\n # #move string PU;PA%d,%d;\n #draw string PD;PA%d,%d;\n #bell string #change pen strings: SP13; SP1; SP2; SP3; SP4; SP5; SP6; SP7; SP8; SP9; SP10; SP11; SP12; #change line pattern strings: LT; LT1,.1; LT4,.2; LT3,.2; LT3,.3; #text strings DR;SR.90,1.9;SL;LB%s\03\n DR;SR.9,1.8;SL;LB%s\03\n DR;SR0.6,1.2;SL;LB%s\03\n DR;SR0.522,1.044;SL;LB%s\03\n #graphtext string DI%.3f,%.3f;SR%.2f,%.2f;SL%.3f;LB%s\03\n #rectangle fill FT1;FT %d0,0;RR %f,%f;\n