# # # hpgl2nf.gpl # GPL format definition file for Hewlett Packard plotters or laser printers # using the HPGL/2 protocol (omitting the EMME/2 standard plot frame) # (c) INRO Consultants Inc., Montreal, Canada, 1988-1994 # # 940127 HS: hardware generated graphtext characters added (option g) # 960530 HS: modified to omit standard plot frame. # # ******** This version needs GPL version 2.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 12 5 0 0 16384 12480 g - - .0061 # # plotter initialization string (activate \033%0B for PCL5 devices): \033&/1O\033%0B\ DF;\ # Pen colors are initialized according the standard EMTOOL color indices: # index color red green blue # 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 0 100 0 # 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 NP12;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,0,4,0;PC10,0,8,4;PC11,0,4,8;PC12,4,0,8;\ # 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;\ #start page string (full plot) #SC0,16384,0,12480,1;SP1;LT;PU;PA0,0;\n #start page string (do not plot standard EMME/2 frame) SC0,14400,800,11600,1;IW0,800,14400,11600;SP1;LT;PU;PA0,0;\n #end page string PG; #move string PU;PA%d,%d;\n #draw string PD;PA%d,%d;\n #bell string #change pen strings: 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;SR1.05,2.1;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 DI%.3f,%.3f;SR%.2f,%.2f;SL%.3f;LB%s\03\n