Home » Personal collection » Acorn ADFS disks » Greaseweazled » adfs_RiscOs_Apps_2.adf » !PrinterLJ/Library
!PrinterLJ/Library
This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.
Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.
Tape/disk: | Home » Personal collection » Acorn ADFS disks » Greaseweazled » adfs_RiscOs_Apps_2.adf |
Filename: | !PrinterLJ/Library |
Read OK: | ✔ |
File size: | 3336 bytes |
Load address: | FFFFFB41 |
Exec address: | C75A0555 |
Duplicates
There is 1 duplicate copy of this file in the archive:
- Personal collection » Acorn ADFS disks » Archimedes » RiscOs_Apps_2.ADF » !PrinterLJ/Library
- Personal collection » Acorn ADFS disks » Greaseweazled » adfs_RiscOs_Apps_2.adf » !PrinterLJ/Library
File contents
10REM >Library V.1.12 for Laser Jet printer driver 20REM Purpose: printer-specific parts of the printer application 30REM Authors: AThompson,NReeves,DSeal, NRaine 40: 50DEFPROCPrinter_initialise 60LOCAL P% 70IF VersionNumber$ <> "1.12" THEN PROCmoan("Incompatible !RunImage and Library") 80PrinterClass$="PrinterLJ" 90FullPrinterClass$="Laser Jet" 100OutputType%=&FF4 110PrData_expected% = 1 120REM define printer class dependent fields in printer data area 130 manual_feed_field% = FNp_field(4) 140 auto_feed_field% = FNp_field(4) 150 printer_data_size% = FNp_field(0) 160REM define class dependent icons in main window 170main_feed% = 2 180main_auto% = 3 190main_manual% = 4 200main_portrait% = 6 210main_landscape% = 7 220main_title% = 8 230main_mono% = 9 240printer_data_list% = 0:P%=0 250PROCPrinter_read_config_file 260REM now convert to circular list 270P%!list_pointer_field%=printer_data_list% 280ENDPROC 290: 300DEFPROCPrinter_set_initial_state 310LOCAL D% 320REM set default state 330D%=printer_data_list% 340WHILE D%!list_pointer_field%<>printer_data_list% AND D%!printer_number_field%<>printer_config% 350 D%=D%!list_pointer_field% 360ENDWHILE 370IF D%!printer_number_field%=printer_config% THEN printer_data_list%=D% 380PROCPrinter_set_description 390PROCPrinter_set_module_data 400ENDPROC 410: 420DEFPROCPrinter_CloseFiles 430ENDPROC 440: 450DEFPROCPrinter_terminate 460ENDPROC 470: 480DEFPROCPrinter_load_templates 490PROCset_icon_state(main%, main_portrait%, (1-format_new%) << 21, 1<<21) 500PROCset_icon_state(main%, main_landscape%, format_new% << 21, 1<<21) 510PROCset_icon_state(main%, main_title%, title_new% << 21, 1<<21) 520PROCset_icon_state(main%, main_mono%, mono_new% << 21, 1<<21) 530ENDPROC 540: 550DEFFNPrinter_process_event(action%, E%) 560LOCAL res% 570res%=FALSE 580CASE action% OF 590 WHEN 17,18: 600 CASE E%!16 OF 610 WHEN &502: 620 IF E%!32 = main% AND E%!36 >= -1 THEN PROChelpreply("Printer setup.|MClick SELECT or ADJUST to alter the settings.",E%!8,E%!4):res% = TRUE 630 ENDCASE 640 WHEN 6 650 IF E%!12=main% THEN 660 CASE TRUE OF 670 WHEN (E%!8 AND %101)<>0: 680 CASE E%!16 OF 690 WHEN main_description%: 700 IF E%!8 AND 1 THEN 710 res% = printer_data_list% 720 REPEAT printer_data_list% = printer_data_list%!list_pointer_field% 730 UNTIL printer_data_list%!list_pointer_field% = res% 740 ELSE 750 printer_data_list% = printer_data_list%!list_pointer_field% 760 ENDIF 770 PROCPrinter_set_description 780 PROCPrinter_set_module_data 790 printer_new% = printer_data_list%!printer_number_field% 800 res%=TRUE 810 WHEN main_auto% 820 feed_new%=0 830 PROCPrinter_set_feed 840 WHEN main_manual% 850 feed_new%=1 860 PROCPrinter_set_feed 870 WHEN main_portrait% 880 PROCset_icon_state(main%, main_portrait%, 1<<21, 1<<21) 890 format_new%=0 900 WHEN main_landscape% 910 PROCset_icon_state(main%, main_landscape%, 1<<21, 1<<21) 920 format_new%=1 930 WHEN main_title% 940 !q%=main% 950 q%!4=main_title% 960 SYS "Wimp_GetIconState",,q% 970 title_new% = (q%!24 >> 21) AND 1 980 WHEN main_mono% 990 !q%=main% 1000 q%!4=main_mono% 1010 SYS "Wimp_GetIconState",,q% 1020 mono_new% = (q%!24 >> 21) AND 1 1030 SYS "PDriver_SetPrinter", mono_new% 1040 ENDCASE 1050 ENDCASE 1060 ENDIF 1070ENDCASE 1080=res% 1090: 1100DEFPROCPrinter_read_config_file 1110LOCAL H%,ptr% 1120DIM defaults% printer_data_size% 1130printer_data% = defaults% 1140H%=OPENIN"<PDriver$dir>.PrData" 1150IF H%=0 ERROR 100,"Can't read printer data file" 1160REPEAT 1170 ptr% = PTR#H% 1180 PROCPrinter_process_line(H%) 1190UNTIL EOF#H% 1200CLOSE#H% 1210ENDPROC 1220: 1230DEFPROCPrinter_process_line(H%) 1240LOCAL I%,J%,tag$ 1250$buf%=GET$#H% 1260I%=0 1270WHILE FNtagchar(buf%?I%): I% += 1:ENDWHILE 1280IF buf%?I% = ASC":" THEN 1290 REM got a tag 1300 tag$=FNlowercase(LEFT$($buf%,I%)) 1310 I% += 1 1320 WHILE buf%?I%=ASC" ": I% += 1:ENDWHILE 1330 CASE tag$ OF 1340 WHEN "version" 1350 PrData_version% = FNread 1360 WHEN "printer_name" 1370 REM build a name 1380 DIM description% LEN$buf% -I% +1 1390 $description% = RIGHT$($buf%,LEN$buf%-I%) 1400 REM now add a block to our list of printer data blocks 1410 DIM printer_data% printer_data_size% 1420 FOR I%=0 TO printer_data_size%-4 STEP 4 1430 printer_data%!I% = defaults%!I% 1440 NEXT 1450 printer_data%!description_field% = description% 1460 IF P%=0 THEN 1470 printer_data_list% = printer_data% 1480 ELSE 1490 P%!list_pointer_field% = printer_data% 1500 ENDIF 1510 P% = printer_data% 1520 WHEN "pxres","pyres","features","pxres_halftone","pyres_halftone","printer_number" 1530 REM note that all tags are the same as their respective field names 1540 printer_data%!EVAL(tag$+"_field%") = FNread 1550 WHEN "page_width","page_height","page_bottom","page_top","page_left","page_right" 1560 page_desc%(page_number%,EVAL(tag$+"_field%")) = FNread 1570 page_ptrs%(page_number%,EVAL(tag$+"_field%")) = ptr%+I% 1580 WHEN "page_number" 1590 page_number% = FNread 1600 WHEN "server","page_name","file","manual_feed","auto_feed","page_selection" 1610 REM read a string 1620 J% = I% 1630 WHILE buf%?J%>=ASC" " AND buf%?J%<>ASC";" 1640 J% += 1 1650 ENDWHILE 1660 REM from I% to J% is the string 1670 CASE tag$ OF 1680 WHEN "server" 1690 server_ptr% = ptr% + I% 1700 server_config$ = MID$($buf%, I%+1, J%-I%) 1710 WHEN "file" 1720 file_ptr% = ptr% + I% 1730 file_config$ = MID$($buf%, I%+1, J%-I%) 1740 $file_name%=file_config$ 1750 SYS "XOS_CLI","set PrinterType$5 "+file_config$ 1760 WHEN "page_name" 1770 page_names$(page_number%)=MID$($buf%, I%+1, J%-I%) 1780 page_ptrs%(page_number%,page_name_field%) = ptr%+I% 1790 WHEN "page_selection" 1800 page_selection$(page_number%)=MID$($buf%, I%+1, J%-I%) 1810 OTHERWISE 1820 DIM description% J%-I%+1 1830 $description% = MID$($buf%, I%+1, J%-I%) 1840 printer_data%!EVAL(tag$+"_field%") = description% 1850 ENDCASE 1860 WHEN "start_page_number" 1870 page_number_config% = FNread 1880 page_number_ptr% = ptr% + I% 1890 WHEN "printer" 1900 printer_config% = FNread 1910 printer_new% = printer_config% 1920 printer_ptr% = ptr% + I% 1930 WHEN "location" 1940 location_config% = FNread 1950 location_ptr% = ptr% + I% 1960 WHEN "baud" 1970 baud_config% = FNread 1980 baud_ptr% = ptr% + I% 1990 WHEN "data" 2000 data_config% = FNread 2010 data_ptr% = ptr% + I% 2020 WHEN "xon" 2030 XON_config% = FNread 2040 XON_new% = XON_config% 2050 XON_ptr% = ptr% + I% 2060 WHEN "feed" 2070 feed_config% = FNread 2080 feed_new% = feed_config% 2090 feed_ptr% = ptr% + I% 2100 WHEN "format" 2110 format_config% = FNread 2120 format_new% = format_config% 2130 format_ptr% = ptr% + I% 2140 WHEN "title" 2150 title_config% = FNread 2160 title_new% = title_config% 2170 title_ptr% = ptr% + I% 2180 WHEN "mono" 2190 mono_config% = FNread 2200 mono_new% = mono_config% 2210 mono_ptr% = ptr% + I% 2220 ENDCASE 2230ENDIF 2240ENDPROC 2250: 2260DEFFNread=FNread_integer_expression(RIGHT$($buf%,LEN$buf%-I%)) 2270: 2280DEFFNread_integer_expression(S$) 2290LOCAL R%, T%, E$, P% 2300E$="" 2310REM get rid of any comment 2320WHILE LEFT$(S$,1) <> ";" AND LENS$ <> 0 2330 E$ += LEFT$(S$,1) 2340 S$ = RIGHT$(S$,LENS$-1) 2350ENDWHILE 2360SYS"XOS_EvaluateExpression",E$,buf%,256 TO ,T%,R%;P% 2370IF T% <> 0 OR (P% AND 1) ERROR 100, "Integer value needed for "+tag$ 2380=R% 2390: 2400DEFFNtagchar(C%) 2410IF (C% >= ASC"A" AND C% <= ASC"Z") THEN =TRUE 2420IF (C% >= ASC"a" AND C% <= ASC"z") THEN =TRUE 2430= (C% >= ASC"0" AND C% <= ASC"9") OR C% = ASC"_" 2440: 2450DEFPROCPrinter_set_module_data 2460LOCAL A%,B%,C%,D%,E%,F% 2470A%=defaults%!pxres_field% 2480B%=defaults%!pyres_field% 2490C%=defaults%!features_field% 2500D%=defaults%!pxres_halftone_field% 2510E%=defaults%!pyres_halftone_field% 2520F%=defaults%!printer_number_field% 2530SYS "PDriver_SetInfo",,A%,B%,C%,,D%,E%,F% 2540msg%!0=20 2550msg%!12=0 2560msg%!16=Message_SetPrinter% 2570SYS "Wimp_SendMessage", 18, msg%, 0 2580SYS "PDriver_SetPrinter", mono_new% 2590PROCPrinter_set_feed 2600ENDPROC 2610: 2620DEF PROCPrinter_change_page_size 2630PROCPrinter_set_LJextra 2640ENDPROC 2650: 2660DEF PROCPrinter_set_LJextra 2670IF feed_new%=1 THEN 2680 OSCLI("Set PDriver$LJextra """+$(defaults%!manual_feed_field%)+"""") 2690ELSE 2700 OSCLI("Set PDriver$LJextra """+$(defaults%!auto_feed_field%)+"""") 2710ENDIF 2720OSCLI("Set PDriver$LJextra <PDriver$LJextra>"+page_selection$(page_number%)) 2730ENDPROC 2740: 2750DEF PROCPrinter_set_feed 2760PROCset_icon_state(main%, main_auto%, (1-feed_new%) << 21, 1<<21) 2770PROCset_icon_state(main%, main_manual%, feed_new% << 21, 1<<21) 2780PROCPrinter_set_LJextra 2790ENDPROC 2800: 2810DEFPROCPrinter_set_description 2820LOCAL S%, S$ 2830FOR S% = 0 TO printer_data_size%-4 STEP 4 2840defaults%!S% = printer_data_list%!S% 2850NEXT 2860PROCPrinter_set_icon(main_description%,$(defaults%!description_field%)) 2870S% = 1<<23 OR 1<<7 2880IF LEN($(printer_data_list%!manual_feed_field%)) = 0 AND LEN($(printer_data_list%!auto_feed_field%))=0 THEN 2890 PROCset_icon_state(main%,main_feed%,S%,S%) 2900 PROCset_icon_state(main%,main_auto%,S%,S%) 2910 PROCset_icon_state(main%,main_manual%,S%,S%) 2920ELSE 2930 PROCset_icon_state(main%,main_feed%,0,S%) 2940 PROCset_icon_state(main%,main_auto%,0,S%) 2950 PROCset_icon_state(main%,main_manual%,0,S%) 2960ENDIF 2970SYS "XOS_CLI","SET Printer$"+" """+$(defaults%!description_field%)+"""" 2980ENDPROC 2990: 3000DEFPROCPrinter_set_icon(I%,S$) 3010LOCAL S% 3020S%=FNiconaddr(main%,I%) 3030$S% = S$ 3040PROCzero_terminate(S%) 3050PROCset_icon_state(main%,I%,0,0): REM force redraw 3060ENDPROC 3070: 3080DEF PROCPrinter_AmendConfig 3090IF feed_config% <> feed_new% THEN 3100 PTR#out_file%=feed_ptr% 3110 BPUT#out_file%,STR$feed_new%; 3120 feed_config% = feed_new% 3130ENDIF 3140IF format_config% <> format_new% THEN 3150 PTR#out_file%=format_ptr% 3160 BPUT#out_file%,STR$format_new%; 3170 format_config% = format_new% 3180ENDIF 3190IF title_config% <> title_new% THEN 3200 PTR#out_file%=title_ptr% 3210 BPUT#out_file%,STR$title_new%; 3220 title_config% = title_new% 3230ENDIF 3240IF mono_config% <> mono_new% THEN 3250 PTR#out_file%=mono_ptr% 3260 BPUT#out_file%,STR$mono_new%; 3270 mono_config% = mono_new% 3280ENDIF 3290ENDPROC 3300: 3310DEF PROCPrinter_Ignore 3320ENDPROC 3330: 3340DEF PROCPrinter_XonXoff(flag%) 3350IF flag% THEN 3360 *fx 2,2 3370ELSE 3380 *fx 2,0 3390ENDIF 3400ENDPROC 3410: 3420DEF PROCPrinter_Location(loc%) 3430REM The current printer location setting doesn't affect this printer driver 3440ENDPROC 3450: 3460DEF PROCPrinter_Header 3470LOCAL D%,A$,edge%,pl%,pr%,pb%,pt%,ph% 3480format_print%=format_new% 3490title_print%=title_new% 3500`ext%=EXT#in_file% 3510IF Ftype%=OutputType% THEN ENDPROC 3520PROCEscOn 3530PROCEsc("E") 3540SYS "XOS_ReadVarVal","PDriver$LJextra",buf%,bufsz%,0,3 TO ,,D%;pl% 3550IF (pl% AND 1)=0 THEN FOR I%=0TOD%-1:BPUT#out_file%,buf%?I%:NEXT 3560PROCEsc("&l26a") 3570BPUT#out_file%,STR$format_print%+"o"; 3580pl%=page_desc%(page_number%,page_left_field%) 3590pr%=page_desc%(page_number%,page_right_field%) 3600pb%=page_desc%(page_number%,page_bottom_field%) 3610pt%=page_desc%(page_number%,page_top_field%) 3620ph%=page_desc%(page_number%,page_height_field%) 3630IF format_print%=0 THEN 3640 `yt%=0:WHILE `yt%*72000 DIV 6 < (ph%-pt%):`yt%+=1:ENDWHILE 3650 pt%=ph%-`yt%*72000 DIV 6 3660 `xc%=(pr%-pl%)*10 DIV 72000 3670 `yc%=(pt%-pb%)*6 DIV 72000 3680 BPUT#out_file%,"6d0e"+STR$`yc%+"F"; 3690 PROCEsc("(0N") 3700 PROCEsc("(s0p10h12v0s0b3T") 3710ELSE 3720 `yt%=0:WHILE `yt%*72000 DIV 8 < pl%:`yt%+=1:ENDWHILE 3730 pl%=`yt%*72000 DIV 8 3740 `xc%=((pt%-pb%)*16.66 DIV 72000 - 1) DIV 2 3750 `yc%=(pr%-pl%)*8 DIV 72000 3760 BPUT#out_file%,"8d0e"+STR$`yc%+"F"; 3770 PROCEsc("(0N") 3780 PROCEsc("(s0p16.66h8.5v0s0b0T") 3790ENDIF 3800PROCEsc(")0N") 3810PROCEsc(")s0p10h12v0s3b3T") 3820BPUT#out_file%,15 3830IF title_print% `yt%+=2 3840`page%=0 3850`column%=3 3860`y%=`yt% 3870?error_blk%=3:SYS "OS_Word",14,error_blk% 3880SYS "OS_ConvertStandardDateAndTime",error_blk%,error_blk%+5,250 3890`time$=FNrtoz(error_blk%+5) 3900D%=`xc%+15 3910IF bufsz%<D% DIM buf% D%:bufsz%=D% 3920`text%=buf% 3930$`text%="" 3940PROCEscOff 3950ENDPROC 3960: 3970DEF PROCPrinter_Footer 3980PROCEscOn 3990PROCEsc("E") 4000PROCEscOff 4010ENDPROC 4020: 4030DEF FNPrinter_Send(len%) 4040PROCEscOn 4050LOCAL L%,flag% 4060flag%=FALSE 4070IF Ftype%=OutputType% THEN 4080 L%=`ext% - PTR#in_file% 4090 flag%=(len%>=L%) 4100 IF flag% THEN 4110 SYS "OS_GBPB", 4, in_file%, buf%, L% 4120 SYS "OS_GBPB", 2, out_file%, buf%, L% 4130 ELSE 4140 SYS "OS_GBPB", 4, in_file%, buf%, len% 4150 SYS "OS_GBPB", 2, out_file%, buf%, len% 4160 ENDIF 4170ELSE 4180 L%=LEN$(`text%) 4190 IF L%=0 flag%=FNLine:L%=LEN$(`text%):IF flag% len%=0 4200 IF len%<L% L%=len% 4210 SYS "OS_GBPB", 2, out_file%, `text%, L% TO ,,`text% 4220ENDIF 4230PROCEscOff 4240=flag% 4250: 4260DEF FNhex(B%) 4270IF B%<10 THEN =ASC"0"+B% ELSE =ASC"A"-10+B% 4280: 4290DEF FNLine 4300LOCAL C%,P% 4310`text%=buf% 4320CASE TRUE OF 4330 WHEN `column%<2: 4340 `x%=-1 4350 IF NOT EOF#in_file% THEN 4360 REPEAT 4370 C%=BGET#in_file% 4380 `x%+=1 4390 UNTIL C%<>32 OR `x%=`xc% OR EOF#in_file% 4400 PTR#in_file%=PTR#in_file%-1 4410 ENDIF 4420 $`text%=CHR$(27)+"&a"+STR$(`x%+`column%*(`xc%+1))+"c"+STR$`y%+"R" 4430 `text%+=LEN$`text% 4440 P%=`text% 4450 IF NOT EOF#in_file% THEN 4460 REPEAT 4470 C%=BGET#in_file% 4480 IF C%>=32 AND C%<>127 THEN 4490 ?`text%=C%:`text%+=1:`x%+=1 4500 ELSE 4510 IF C%<>10 AND C%<>12 THEN 4520 ?`text%=27:$(`text%+1)="(s3B<" 4530 `text%?6=FNhex(C%>>4):`text%?7=FNhex(C% AND 15) 4540 $(`text%+8)=">"+CHR$27+"(s0B" 4550 `text%+=14:`x%+=4 4560 ENDIF 4570 ENDIF 4580 UNTIL C%=10 OR C%=12 OR `x%>=`xc% OR EOF#in_file% 4590 ENDIF 4600 IF P%=`text% THEN $buf%="":REM send nothing for blank lines 4610 ?`text%=13 4620 `text%=buf% 4630 `y%+=1 4640 IF `y%>=`yc% `y%=`yt%:`column%+=1 4650 IF EOF#in_file% OR (format_print%=0 AND `column%=1) OR C%=12 THEN `y%=`yt%:`column%=2 4660 WHEN `column%=2: 4670 $`text%=CHR$12 4680 `column%=3 4690 IF EOF#in_file% `column%=4 4700 WHEN `column%=3: 4710 `page%+=1 4720 $`text%=FNtitle 4730 `column%=0 4740 WHEN `column%=4: 4750 flag%=TRUE 4760ENDCASE 4770= flag% 4780: 4790DEF FNtitle 4800LOCAL name$ 4810IF filenam$="<Printer$Scrap>" OR filenam$="Printer$Temp" THEN name$=save_name$ ELSE name$=filenam$ 4820IF title_print% THEN 4830 =CHR$(27)+"&a0c"+STR$(`yt%-2)+"R"+CHR$(14)+"Page "+STR$`page%+" File "+name$+" Date "+`time$+CHR$(15) 4840ELSE 4850 = "" 4860ENDIF 4870: 4880DEF PROCEsc(A$) 4890BPUT#out_file%,CHR$(27)+A$; 4900ENDPROC 4910>*FX 229,1
2� >Library V.1.12 for Laser Jet printer driver @� Purpose: printer-specific parts of the printer application .� Authors: AThompson,NReeves,DSeal, NRaine (: 2��Printer_initialise <� P% FL� VersionNumber$ <> "1.12" � �moan("Incompatible !RunImage and Library") PPrinterClass$="PrinterLJ" Z!FullPrinterClass$="Laser Jet" dOutputType%=&FF4 nPrData_expected% = 1 x@� define printer class dependent fields in printer data area �' manual_feed_field% = �p_field(4) �' auto_feed_field% = �p_field(4) �' printer_data_size% = �p_field(0) �1� define class dependent icons in main window �main_feed% = 2 �main_auto% = 3 �main_manual% = 4 �main_portrait% = 6 �main_landscape% = 7 �main_title% = 8 �main_mono% = 9 �printer_data_list% = 0:P%=0 ��Printer_read_config_file "� now convert to circular list -P%!list_pointer_field%=printer_data_list% � ": ,��Printer_set_initial_state 6� D% @� set default state JD%=printer_data_list% T]ȕ D%!list_pointer_field%<>printer_data_list% � D%!printer_number_field%<>printer_config% ^ D%=D%!list_pointer_field% h� rF� D%!printer_number_field%=printer_config% � printer_data_list%=D% |�Printer_set_description ��Printer_set_module_data �� �: ���Printer_CloseFiles �� �: ���Printer_terminate �� �: ���Printer_load_templates �H�set_icon_state(main%, main_portrait%, (1-format_new%) << 21, 1<<21) �E�set_icon_state(main%, main_landscape%, format_new% << 21, 1<<21) �@�set_icon_state(main%, main_title%, title_new% << 21, 1<<21) >�set_icon_state(main%, main_mono%, mono_new% << 21, 1<<21) � : &(ݤPrinter_process_event(action%, E%) 0 � res% : res%=� DȎ action% � N � 17,18: X Ȏ E%!16 � b � &502: l� � E%!32 = main% � E%!36 >= -1 � �helpreply("Printer setup.|MClick SELECT or ADJUST to alter the settings.",E%!8,E%!4):res% = � v � � � 6 � � E%!12=main% � � Ȏ � � � � (E%!8 � %101)<>0: � Ȏ E%!16 � � � main_description%: � � E%!8 � 1 � �% res% = printer_data_list% �I � printer_data_list% = printer_data_list%!list_pointer_field% �; � printer_data_list%!list_pointer_field% = res% � � �G printer_data_list% = printer_data_list%!list_pointer_field% � � # �Printer_set_description # �Printer_set_module_data B printer_new% = printer_data_list%!printer_number_field% res%=� * � main_auto% 4 feed_new%=0 > �Printer_set_feed H � main_manual% R feed_new%=1 \ �Printer_set_feed f � main_portrait% p? �set_icon_state(main%, main_portrait%, 1<<21, 1<<21) z format_new%=0 � � main_landscape% �@ �set_icon_state(main%, main_landscape%, 1<<21, 1<<21) � format_new%=1 � � main_title% � !q%=main% � q%!4=main_title% �% ș "Wimp_GetIconState",,q% �) title_new% = (q%!24 >> 21) � 1 � � main_mono% � !q%=main% � q%!4=main_mono% �% ș "Wimp_GetIconState",,q% �( mono_new% = (q%!24 >> 21) � 1 - ș "PDriver_SetPrinter", mono_new% � � $ � .� 8 =res% B: L��Printer_read_config_file V � H%,ptr% `"� defaults% printer_data_size% jprinter_data% = defaults% tH%=�"<PDriver$dir>.PrData" ~/� H%=0 � 100,"Can't read printer data file" �� � ptr% = �#H% � �Printer_process_line(H%) � � �#H% ��#H% �� �: ���Printer_process_line(H%) �� I%,J%,tag$ �$buf%=�#H% �I%=0 �#ȕ �tagchar(buf%?I%): I% += 1:� � buf%?I% = �":" � � got a tag tag$=�lowercase(�$buf%,I%)) I% += 1 ( ȕ buf%?I%=�" ": I% += 1:� 2 Ȏ tag$ � < � "version" F PrData_version% = �read P � "printer_name" Z � build a name d# � description% �$buf% -I% +1 n( $description% = �$buf%,�$buf%-I%) x; � now add a block to our list of printer data blocks �) � printer_data% printer_data_size% �( � I%=0 � printer_data_size%-4 � 4 �' printer_data%!I% = defaults%!I% � � �6 printer_data%!description_field% = description% � � P%=0 � �* printer_data_list% = printer_data% � � �. P%!list_pointer_field% = printer_data% � � � P% = printer_data% �U � "pxres","pyres","features","pxres_halftone","pyres_halftone","printer_number" �H � note that all tags are the same as their respective field names 0 printer_data%!�(tag$+"_field%") = �read T � "page_width","page_height","page_bottom","page_top","page_left","page_right" ; page_desc%(page_number%,�(tag$+"_field%")) = �read "= page_ptrs%(page_number%,�(tag$+"_field%")) = ptr%+I% , � "page_number" 6 page_number% = �read @N � "server","page_name","file","manual_feed","auto_feed","page_selection" J � read a string T J% = I% ^' ȕ buf%?J%>=�" " � buf%?J%<>�";" h J% += 1 r � |$ � from I% to J% is the string � Ȏ tag$ � � � "server" � server_ptr% = ptr% + I% �- server_config$ = �$buf%, I%+1, J%-I%) � � "file" � file_ptr% = ptr% + I% �+ file_config$ = �$buf%, I%+1, J%-I%) � $file_name%=file_config$ �6 ș "XOS_CLI","set PrinterType$5 "+file_config$ � � "page_name" �6 page_names$(page_number%)=�$buf%, I%+1, J%-I%) �; page_ptrs%(page_number%,page_name_field%) = ptr%+I% � � "page_selection" : page_selection$(page_number%)=�$buf%, I%+1, J%-I%) � description% J%-I%+1 &, $description% = �$buf%, I%+1, J%-I%) 06 printer_data%!�(tag$+"_field%") = description% : � D � "start_page_number" N" page_number_config% = �read X# page_number_ptr% = ptr% + I% b � "printer" l printer_config% = �read v% printer_new% = printer_config% � printer_ptr% = ptr% + I% � � "location" � location_config% = �read � location_ptr% = ptr% + I% � � "baud" � baud_config% = �read � baud_ptr% = ptr% + I% � � "data" � data_config% = �read � data_ptr% = ptr% + I% � � "xon" � XON_config% = �read � XON_new% = XON_config% XON_ptr% = ptr% + I% � "feed" feed_config% = �read feed_new% = feed_config% * feed_ptr% = ptr% + I% 4 � "format" > format_config% = �read H# format_new% = format_config% R format_ptr% = ptr% + I% \ � "title" f title_config% = �read p! title_new% = title_config% z title_ptr% = ptr% + I% � � "mono" � mono_config% = �read � mono_new% = mono_config% � mono_ptr% = ptr% + I% � � �� �� �: �6ݤread=�read_integer_expression(�$buf%,�$buf%-I%)) �: �!ݤread_integer_expression(S$) �� R%, T%, E$, P% � E$="" � get rid of any comment ȕ �S$,1) <> ";" � �S$ <> 0 E$ += �S$,1) $ S$ = �S$,�S$-1) .� 86ș"XOS_EvaluateExpression",E$,buf%,256 � ,T%,R%;P% B@� T% <> 0 � (P% � 1) � 100, "Integer value needed for "+tag$ L=R% V: `ݤtagchar(C%) j$� (C% >= �"A" � C% <= �"Z") � =� t$� (C% >= �"a" � C% <= �"z") � =� ~,= (C% >= �"0" � C% <= �"9") � C% = �"_" �: ���Printer_set_module_data �� A%,B%,C%,D%,E%,F% �A%=defaults%!pxres_field% �B%=defaults%!pyres_field% � C%=defaults%!features_field% �&D%=defaults%!pxres_halftone_field% �&E%=defaults%!pyres_halftone_field% �&F%=defaults%!printer_number_field% �,ș "PDriver_SetInfo",,A%,B%,C%,,D%,E%,F% � msg%!0=20 � msg%!12=0 msg%!16=Message_SetPrinter% &ș "Wimp_SendMessage", 18, msg%, 0 &ș "PDriver_SetPrinter", mono_new% �Printer_set_feed (� 2: <� �Printer_change_page_size F�Printer_set_LJextra P� Z: d� �Printer_set_LJextra n� feed_new%=1 � xE �("Set PDriver$LJextra """+$(defaults%!manual_feed_field%)+"""") �� �C �("Set PDriver$LJextra """+$(defaults%!auto_feed_field%)+"""") �� �L�("Set PDriver$LJextra <PDriver$LJextra>"+page_selection$(page_number%)) �� �: �� �Printer_set_feed �B�set_icon_state(main%, main_auto%, (1-feed_new%) << 21, 1<<21) �@�set_icon_state(main%, main_manual%, feed_new% << 21, 1<<21) ��Printer_set_LJextra �� �: ���Printer_set_description � S%, S$ '� S% = 0 � printer_data_size%-4 � 4 (defaults%!S% = printer_data_list%!S% "� ,H�Printer_set_icon(main_description%,$(defaults%!description_field%)) 6S% = 1<<23 � 1<<7 @e� �($(printer_data_list%!manual_feed_field%)) = 0 � �($(printer_data_list%!auto_feed_field%))=0 � J, �set_icon_state(main%,main_feed%,S%,S%) T, �set_icon_state(main%,main_auto%,S%,S%) ^. �set_icon_state(main%,main_manual%,S%,S%) h� r+ �set_icon_state(main%,main_feed%,0,S%) |+ �set_icon_state(main%,main_auto%,0,S%) �- �set_icon_state(main%,main_manual%,0,S%) �� �Jș "XOS_CLI","SET Printer$"+" """+$(defaults%!description_field%)+"""" �� �: ���Printer_set_icon(I%,S$) �� S% �S%=�iconaddr(main%,I%) �$S% = S$ ��zero_terminate(S%) �1�set_icon_state(main%,I%,0,0): � force redraw �� �: � �Printer_AmendConfig !� feed_config% <> feed_new% � �#out_file%=feed_ptr% & �#out_file%,�feed_new%; 0 feed_config% = feed_new% :� D%� format_config% <> format_new% � N �#out_file%=format_ptr% X �#out_file%,�format_new%; b! format_config% = format_new% l� v#� title_config% <> title_new% � � �#out_file%=title_ptr% � �#out_file%,�title_new%; � title_config% = title_new% �� �!� mono_config% <> mono_new% � � �#out_file%=mono_ptr% � �#out_file%,�mono_new%; � mono_config% = mono_new% �� �� �: �� �Printer_Ignore �� : � �Printer_XonXoff(flag%) � flag% � *fx 2,2 *� 4 *fx 2,0 >� H� R: \� �Printer_Location(loc%) fM� The current printer location setting doesn't affect this printer driver p� z: �� �Printer_Header �%� D%,A$,edge%,pl%,pr%,pb%,pt%,ph% �format_print%=format_new% �title_print%=title_new% �`ext%=�#in_file% �� Ftype%=OutputType% � � � �EscOn � �Esc("E") �Dș "XOS_ReadVarVal","PDriver$LJextra",buf%,bufsz%,0,3 � ,,D%;pl% �5� (pl% � 1)=0 � � I%=0�D%-1:�#out_file%,buf%?I%:� ��Esc("&l26a") �#�#out_file%,�format_print%+"o"; �1pl%=page_desc%(page_number%,page_left_field%) 2pr%=page_desc%(page_number%,page_right_field%) 3pb%=page_desc%(page_number%,page_bottom_field%) 0pt%=page_desc%(page_number%,page_top_field%) $3ph%=page_desc%(page_number%,page_height_field%) .� format_print%=0 � 83 `yt%=0:ȕ `yt%*72000 � 6 < (ph%-pt%):`yt%+=1:� B pt%=ph%-`yt%*72000 � 6 L `xc%=(pr%-pl%)*10 � 72000 V `yc%=(pt%-pb%)*6 � 72000 `" �#out_file%,"6d0e"+�`yc%+"F"; j �Esc("(0N") t �Esc("(s0p10h12v0s0b3T") ~� �- `yt%=0:ȕ `yt%*72000 � 8 < pl%:`yt%+=1:� � pl%=`yt%*72000 � 8 �+ `xc%=((pt%-pb%)*16.66 � 72000 - 1) � 2 � `yc%=(pr%-pl%)*8 � 72000 �" �#out_file%,"8d0e"+�`yc%+"F"; � �Esc("(0N") �! �Esc("(s0p16.66h8.5v0s0b0T") �� ��Esc(")0N") ��Esc(")s0p10h12v0s3b3T") ��#out_file%,15 �� title_print% `yt%+=2 `page%=0 `column%=3 `y%=`yt% ,?error_blk%=3:ș "OS_Word",14,error_blk% (Bș "OS_ConvertStandardDateAndTime",error_blk%,error_blk%+5,250 2`time$=�rtoz(error_blk%+5) <D%=`xc%+15 F#� bufsz%<D% � buf% D%:bufsz%=D% P`text%=buf% Z$`text%="" d�EscOff n� x: �� �Printer_Footer � �EscOn � �Esc("E") ��EscOff �� �: �� �Printer_Send(len%) � �EscOn �� L%,flag% �flag%=� �� Ftype%=OutputType% � � L%=`ext% - �#in_file% � flag%=(len%>=L%) � flag% � ) ș "OS_GBPB", 4, in_file%, buf%, L% * ș "OS_GBPB", 2, out_file%, buf%, L% " � ,+ ș "OS_GBPB", 4, in_file%, buf%, len% 6, ș "OS_GBPB", 2, out_file%, buf%, len% @ � J� T L%=�$(`text%) ^4 � L%=0 flag%=�Line:L%=�$(`text%):� flag% len%=0 h � len%<L% L%=len% r6 ș "OS_GBPB", 2, out_file%, `text%, L% � ,,`text% |� ��EscOff � =flag% �: �� �hex(B%) �$� B%<10 � =�"0"+B% � =�"A"-10+B% �: �� �Line �� C%,P% �`text%=buf% � Ȏ � � � � `column%<2: � `x%=-1 � � � �#in_file% � � C%=�#in_file% `x%+=1 &' � C%<>32 � `x%=`xc% � �#in_file% 0 �#in_file%=�#in_file%-1 : � D> $`text%=�(27)+"&a"+�(`x%+`column%*(`xc%+1))+"c"+�`y%+"R" N `text%+=�$`text% X P%=`text% b � � �#in_file% � l � v C%=�#in_file% � � C%>=32 � C%<>127 � �$ ?`text%=C%:`text%+=1:`x%+=1 � � � � C%<>10 � C%<>12 � �( ?`text%=27:$(`text%+1)="(s3B<" �5 `text%?6=�hex(C%>>4):`text%?7=�hex(C% � 15) �$ $(`text%+8)=">"+�27+"(s0B" � `text%+=14:`x%+=4 � � � � �/ � C%=10 � C%=12 � `x%>=`xc% � �#in_file% � � �; � P%=`text% � $buf%="":� send nothing for blank lines ?`text%=13 `text%=buf% `y%+=1 & � `y%>=`yc% `y%=`yt%:`column%+=1 *Q � �#in_file% � (format_print%=0 � `column%=1) � C%=12 � `y%=`yt%:`column%=2 4 � `column%=2: > $`text%=�12 H `column%=3 R � �#in_file% `column%=4 \ � `column%=3: f `page%+=1 p $`text%=�title z `column%=0 � � `column%=4: � flag%=� �� �= flag% �: �� �title �� name$ �^� filenam$="<Printer$Scrap>" � filenam$="Printer$Temp" � name$=save_name$ � name$=filenam$ �� title_print% � �_ =�(27)+"&a0c"+�(`yt%-2)+"R"+�(14)+"Page "+�`page%+" File "+name$+" Date "+`time$+�(15) �� � = "" �� : � �Esc(A$) �#out_file%,�(27)+A$; $� .>*FX 229,1 �
00000000 0d 00 0a 32 f4 20 3e 4c 69 62 72 61 72 79 20 56 |...2. >Library V| 00000010 2e 31 2e 31 32 20 66 6f 72 20 4c 61 73 65 72 20 |.1.12 for Laser | 00000020 4a 65 74 20 70 72 69 6e 74 65 72 20 64 72 69 76 |Jet printer driv| 00000030 65 72 0d 00 14 40 f4 20 50 75 72 70 6f 73 65 3a |er...@. Purpose:| 00000040 20 70 72 69 6e 74 65 72 2d 73 70 65 63 69 66 69 | printer-specifi| 00000050 63 20 70 61 72 74 73 20 6f 66 20 74 68 65 20 70 |c parts of the p| 00000060 72 69 6e 74 65 72 20 61 70 70 6c 69 63 61 74 69 |rinter applicati| 00000070 6f 6e 0d 00 1e 2e f4 20 41 75 74 68 6f 72 73 3a |on..... Authors:| 00000080 20 41 54 68 6f 6d 70 73 6f 6e 2c 4e 52 65 65 76 | AThompson,NReev| 00000090 65 73 2c 44 53 65 61 6c 2c 20 4e 52 61 69 6e 65 |es,DSeal, NRaine| 000000a0 0d 00 28 05 3a 0d 00 32 18 dd f2 50 72 69 6e 74 |..(.:..2...Print| 000000b0 65 72 5f 69 6e 69 74 69 61 6c 69 73 65 0d 00 3c |er_initialise..<| 000000c0 08 ea 20 50 25 0d 00 46 4c e7 20 56 65 72 73 69 |.. P%..FL. Versi| 000000d0 6f 6e 4e 75 6d 62 65 72 24 20 3c 3e 20 22 31 2e |onNumber$ <> "1.| 000000e0 31 32 22 20 8c 20 f2 6d 6f 61 6e 28 22 49 6e 63 |12" . .moan("Inc| 000000f0 6f 6d 70 61 74 69 62 6c 65 20 21 52 75 6e 49 6d |ompatible !RunIm| 00000100 61 67 65 20 61 6e 64 20 4c 69 62 72 61 72 79 22 |age and Library"| 00000110 29 0d 00 50 1d 50 72 69 6e 74 65 72 43 6c 61 73 |)..P.PrinterClas| 00000120 73 24 3d 22 50 72 69 6e 74 65 72 4c 4a 22 0d 00 |s$="PrinterLJ"..| 00000130 5a 21 46 75 6c 6c 50 72 69 6e 74 65 72 43 6c 61 |Z!FullPrinterCla| 00000140 73 73 24 3d 22 4c 61 73 65 72 20 4a 65 74 22 0d |ss$="Laser Jet".| 00000150 00 64 14 4f 75 74 70 75 74 54 79 70 65 25 3d 26 |.d.OutputType%=&| 00000160 46 46 34 0d 00 6e 18 50 72 44 61 74 61 5f 65 78 |FF4..n.PrData_ex| 00000170 70 65 63 74 65 64 25 20 3d 20 31 0d 00 78 40 f4 |pected% = 1..x@.| 00000180 20 64 65 66 69 6e 65 20 70 72 69 6e 74 65 72 20 | define printer | 00000190 63 6c 61 73 73 20 64 65 70 65 6e 64 65 6e 74 20 |class dependent | 000001a0 66 69 65 6c 64 73 20 69 6e 20 70 72 69 6e 74 65 |fields in printe| 000001b0 72 20 64 61 74 61 20 61 72 65 61 0d 00 82 27 20 |r data area...' | 000001c0 20 20 6d 61 6e 75 61 6c 5f 66 65 65 64 5f 66 69 | manual_feed_fi| 000001d0 65 6c 64 25 20 3d 20 a4 70 5f 66 69 65 6c 64 28 |eld% = .p_field(| 000001e0 34 29 0d 00 8c 27 20 20 20 20 20 61 75 74 6f 5f |4)...' auto_| 000001f0 66 65 65 64 5f 66 69 65 6c 64 25 20 3d 20 a4 70 |feed_field% = .p| 00000200 5f 66 69 65 6c 64 28 34 29 0d 00 96 27 20 20 20 |_field(4)...' | 00000210 70 72 69 6e 74 65 72 5f 64 61 74 61 5f 73 69 7a |printer_data_siz| 00000220 65 25 20 3d 20 a4 70 5f 66 69 65 6c 64 28 30 29 |e% = .p_field(0)| 00000230 0d 00 a0 31 f4 20 64 65 66 69 6e 65 20 63 6c 61 |...1. define cla| 00000240 73 73 20 64 65 70 65 6e 64 65 6e 74 20 69 63 6f |ss dependent ico| 00000250 6e 73 20 69 6e 20 6d 61 69 6e 20 77 69 6e 64 6f |ns in main windo| 00000260 77 0d 00 aa 12 6d 61 69 6e 5f 66 65 65 64 25 20 |w....main_feed% | 00000270 3d 20 32 0d 00 b4 12 6d 61 69 6e 5f 61 75 74 6f |= 2....main_auto| 00000280 25 20 3d 20 33 0d 00 be 14 6d 61 69 6e 5f 6d 61 |% = 3....main_ma| 00000290 6e 75 61 6c 25 20 3d 20 34 0d 00 c8 16 6d 61 69 |nual% = 4....mai| 000002a0 6e 5f 70 6f 72 74 72 61 69 74 25 20 3d 20 36 0d |n_portrait% = 6.| 000002b0 00 d2 17 6d 61 69 6e 5f 6c 61 6e 64 73 63 61 70 |...main_landscap| 000002c0 65 25 20 3d 20 37 0d 00 dc 13 6d 61 69 6e 5f 74 |e% = 7....main_t| 000002d0 69 74 6c 65 25 20 3d 20 38 0d 00 e6 12 6d 61 69 |itle% = 8....mai| 000002e0 6e 5f 6d 6f 6e 6f 25 20 3d 20 39 0d 00 f0 1f 70 |n_mono% = 9....p| 000002f0 72 69 6e 74 65 72 5f 64 61 74 61 5f 6c 69 73 74 |rinter_data_list| 00000300 25 20 3d 20 30 3a 50 25 3d 30 0d 00 fa 1d f2 50 |% = 0:P%=0.....P| 00000310 72 69 6e 74 65 72 5f 72 65 61 64 5f 63 6f 6e 66 |rinter_read_conf| 00000320 69 67 5f 66 69 6c 65 0d 01 04 22 f4 20 6e 6f 77 |ig_file...". now| 00000330 20 63 6f 6e 76 65 72 74 20 74 6f 20 63 69 72 63 | convert to circ| 00000340 75 6c 61 72 20 6c 69 73 74 0d 01 0e 2d 50 25 21 |ular list...-P%!| 00000350 6c 69 73 74 5f 70 6f 69 6e 74 65 72 5f 66 69 65 |list_pointer_fie| 00000360 6c 64 25 3d 70 72 69 6e 74 65 72 5f 64 61 74 61 |ld%=printer_data| 00000370 5f 6c 69 73 74 25 0d 01 18 05 e1 0d 01 22 05 3a |_list%.......".:| 00000380 0d 01 2c 1f dd f2 50 72 69 6e 74 65 72 5f 73 65 |..,...Printer_se| 00000390 74 5f 69 6e 69 74 69 61 6c 5f 73 74 61 74 65 0d |t_initial_state.| 000003a0 01 36 08 ea 20 44 25 0d 01 40 17 f4 20 73 65 74 |.6.. D%..@.. set| 000003b0 20 64 65 66 61 75 6c 74 20 73 74 61 74 65 0d 01 | default state..| 000003c0 4a 19 44 25 3d 70 72 69 6e 74 65 72 5f 64 61 74 |J.D%=printer_dat| 000003d0 61 5f 6c 69 73 74 25 0d 01 54 5d c8 95 20 44 25 |a_list%..T].. D%| 000003e0 21 6c 69 73 74 5f 70 6f 69 6e 74 65 72 5f 66 69 |!list_pointer_fi| 000003f0 65 6c 64 25 3c 3e 70 72 69 6e 74 65 72 5f 64 61 |eld%<>printer_da| 00000400 74 61 5f 6c 69 73 74 25 20 80 20 44 25 21 70 72 |ta_list% . D%!pr| 00000410 69 6e 74 65 72 5f 6e 75 6d 62 65 72 5f 66 69 65 |inter_number_fie| 00000420 6c 64 25 3c 3e 70 72 69 6e 74 65 72 5f 63 6f 6e |ld%<>printer_con| 00000430 66 69 67 25 0d 01 5e 1e 20 44 25 3d 44 25 21 6c |fig%..^. D%=D%!l| 00000440 69 73 74 5f 70 6f 69 6e 74 65 72 5f 66 69 65 6c |ist_pointer_fiel| 00000450 64 25 0d 01 68 05 ce 0d 01 72 46 e7 20 44 25 21 |d%..h....rF. D%!| 00000460 70 72 69 6e 74 65 72 5f 6e 75 6d 62 65 72 5f 66 |printer_number_f| 00000470 69 65 6c 64 25 3d 70 72 69 6e 74 65 72 5f 63 6f |ield%=printer_co| 00000480 6e 66 69 67 25 20 8c 20 70 72 69 6e 74 65 72 5f |nfig% . printer_| 00000490 64 61 74 61 5f 6c 69 73 74 25 3d 44 25 0d 01 7c |data_list%=D%..|| 000004a0 1c f2 50 72 69 6e 74 65 72 5f 73 65 74 5f 64 65 |..Printer_set_de| 000004b0 73 63 72 69 70 74 69 6f 6e 0d 01 86 1c f2 50 72 |scription.....Pr| 000004c0 69 6e 74 65 72 5f 73 65 74 5f 6d 6f 64 75 6c 65 |inter_set_module| 000004d0 5f 64 61 74 61 0d 01 90 05 e1 0d 01 9a 05 3a 0d |_data.........:.| 000004e0 01 a4 18 dd f2 50 72 69 6e 74 65 72 5f 43 6c 6f |.....Printer_Clo| 000004f0 73 65 46 69 6c 65 73 0d 01 ae 05 e1 0d 01 b8 05 |seFiles.........| 00000500 3a 0d 01 c2 17 dd f2 50 72 69 6e 74 65 72 5f 74 |:......Printer_t| 00000510 65 72 6d 69 6e 61 74 65 0d 01 cc 05 e1 0d 01 d6 |erminate........| 00000520 05 3a 0d 01 e0 1c dd f2 50 72 69 6e 74 65 72 5f |.:......Printer_| 00000530 6c 6f 61 64 5f 74 65 6d 70 6c 61 74 65 73 0d 01 |load_templates..| 00000540 ea 48 f2 73 65 74 5f 69 63 6f 6e 5f 73 74 61 74 |.H.set_icon_stat| 00000550 65 28 6d 61 69 6e 25 2c 20 6d 61 69 6e 5f 70 6f |e(main%, main_po| 00000560 72 74 72 61 69 74 25 2c 20 28 31 2d 66 6f 72 6d |rtrait%, (1-form| 00000570 61 74 5f 6e 65 77 25 29 20 3c 3c 20 32 31 2c 20 |at_new%) << 21, | 00000580 31 3c 3c 32 31 29 0d 01 f4 45 f2 73 65 74 5f 69 |1<<21)...E.set_i| 00000590 63 6f 6e 5f 73 74 61 74 65 28 6d 61 69 6e 25 2c |con_state(main%,| 000005a0 20 6d 61 69 6e 5f 6c 61 6e 64 73 63 61 70 65 25 | main_landscape%| 000005b0 2c 20 66 6f 72 6d 61 74 5f 6e 65 77 25 20 3c 3c |, format_new% <<| 000005c0 20 32 31 2c 20 31 3c 3c 32 31 29 0d 01 fe 40 f2 | 21, 1<<21)...@.| 000005d0 73 65 74 5f 69 63 6f 6e 5f 73 74 61 74 65 28 6d |set_icon_state(m| 000005e0 61 69 6e 25 2c 20 6d 61 69 6e 5f 74 69 74 6c 65 |ain%, main_title| 000005f0 25 2c 20 74 69 74 6c 65 5f 6e 65 77 25 20 3c 3c |%, title_new% <<| 00000600 20 32 31 2c 20 31 3c 3c 32 31 29 0d 02 08 3e f2 | 21, 1<<21)...>.| 00000610 73 65 74 5f 69 63 6f 6e 5f 73 74 61 74 65 28 6d |set_icon_state(m| 00000620 61 69 6e 25 2c 20 6d 61 69 6e 5f 6d 6f 6e 6f 25 |ain%, main_mono%| 00000630 2c 20 6d 6f 6e 6f 5f 6e 65 77 25 20 3c 3c 20 32 |, mono_new% << 2| 00000640 31 2c 20 31 3c 3c 32 31 29 0d 02 12 05 e1 0d 02 |1, 1<<21).......| 00000650 1c 05 3a 0d 02 26 28 dd a4 50 72 69 6e 74 65 72 |..:..&(..Printer| 00000660 5f 70 72 6f 63 65 73 73 5f 65 76 65 6e 74 28 61 |_process_event(a| 00000670 63 74 69 6f 6e 25 2c 20 45 25 29 0d 02 30 0a ea |ction%, E%)..0..| 00000680 20 72 65 73 25 0d 02 3a 0a 72 65 73 25 3d a3 0d | res%..:.res%=..| 00000690 02 44 10 c8 8e 20 61 63 74 69 6f 6e 25 20 ca 0d |.D... action% ..| 000006a0 02 4e 0d 20 c9 20 31 37 2c 31 38 3a 0d 02 58 10 |.N. . 17,18:..X.| 000006b0 20 20 c8 8e 20 45 25 21 31 36 20 ca 0d 02 62 0e | .. E%!16 ...b.| 000006c0 20 20 20 c9 20 26 35 30 32 3a 0d 02 6c 86 20 20 | . &502:..l. | 000006d0 20 20 e7 20 45 25 21 33 32 20 3d 20 6d 61 69 6e | . E%!32 = main| 000006e0 25 20 80 20 45 25 21 33 36 20 3e 3d 20 2d 31 20 |% . E%!36 >= -1 | 000006f0 8c 20 f2 68 65 6c 70 72 65 70 6c 79 28 22 50 72 |. .helpreply("Pr| 00000700 69 6e 74 65 72 20 73 65 74 75 70 2e 7c 4d 43 6c |inter setup.|MCl| 00000710 69 63 6b 20 53 45 4c 45 43 54 20 6f 72 20 41 44 |ick SELECT or AD| 00000720 4a 55 53 54 20 74 6f 20 61 6c 74 65 72 20 74 68 |JUST to alter th| 00000730 65 20 73 65 74 74 69 6e 67 73 2e 22 2c 45 25 21 |e settings.",E%!| 00000740 38 2c 45 25 21 34 29 3a 72 65 73 25 20 3d 20 b9 |8,E%!4):res% = .| 00000750 0d 02 76 07 20 20 cb 0d 02 80 08 20 c9 20 36 0d |..v. ..... . 6.| 00000760 02 8a 15 20 20 e7 20 45 25 21 31 32 3d 6d 61 69 |... . E%!12=mai| 00000770 6e 25 20 8c 0d 02 94 0d 20 20 20 c8 8e 20 b9 20 |n% ..... .. . | 00000780 ca 0d 02 9e 1b 20 20 20 20 c9 20 28 45 25 21 38 |..... . (E%!8| 00000790 20 80 20 25 31 30 31 29 3c 3e 30 3a 0d 02 a8 13 | . %101)<>0:....| 000007a0 20 20 20 20 20 c8 8e 20 45 25 21 31 36 20 ca 0d | .. E%!16 ..| 000007b0 02 b2 1e 20 20 20 20 20 20 c9 20 6d 61 69 6e 5f |... . main_| 000007c0 64 65 73 63 72 69 70 74 69 6f 6e 25 3a 0d 02 bc |description%:...| 000007d0 17 20 20 20 20 20 20 20 e7 20 45 25 21 38 20 80 |. . E%!8 .| 000007e0 20 31 20 8c 0d 02 c6 25 20 20 20 20 20 20 20 20 | 1 ....% | 000007f0 72 65 73 25 20 3d 20 70 72 69 6e 74 65 72 5f 64 |res% = printer_d| 00000800 61 74 61 5f 6c 69 73 74 25 0d 02 d0 49 20 20 20 |ata_list%...I | 00000810 20 20 20 20 20 f5 20 70 72 69 6e 74 65 72 5f 64 | . printer_d| 00000820 61 74 61 5f 6c 69 73 74 25 20 3d 20 70 72 69 6e |ata_list% = prin| 00000830 74 65 72 5f 64 61 74 61 5f 6c 69 73 74 25 21 6c |ter_data_list%!l| 00000840 69 73 74 5f 70 6f 69 6e 74 65 72 5f 66 69 65 6c |ist_pointer_fiel| 00000850 64 25 0d 02 da 3b 20 20 20 20 20 20 20 20 fd 20 |d%...; . | 00000860 70 72 69 6e 74 65 72 5f 64 61 74 61 5f 6c 69 73 |printer_data_lis| 00000870 74 25 21 6c 69 73 74 5f 70 6f 69 6e 74 65 72 5f |t%!list_pointer_| 00000880 66 69 65 6c 64 25 20 3d 20 72 65 73 25 0d 02 e4 |field% = res%...| 00000890 0c 20 20 20 20 20 20 20 cc 0d 02 ee 47 20 20 20 |. ....G | 000008a0 20 20 20 20 20 70 72 69 6e 74 65 72 5f 64 61 74 | printer_dat| 000008b0 61 5f 6c 69 73 74 25 20 3d 20 70 72 69 6e 74 65 |a_list% = printe| 000008c0 72 5f 64 61 74 61 5f 6c 69 73 74 25 21 6c 69 73 |r_data_list%!lis| 000008d0 74 5f 70 6f 69 6e 74 65 72 5f 66 69 65 6c 64 25 |t_pointer_field%| 000008e0 0d 02 f8 0c 20 20 20 20 20 20 20 cd 0d 03 02 23 |.... ....#| 000008f0 20 20 20 20 20 20 20 f2 50 72 69 6e 74 65 72 5f | .Printer_| 00000900 73 65 74 5f 64 65 73 63 72 69 70 74 69 6f 6e 0d |set_description.| 00000910 03 0c 23 20 20 20 20 20 20 20 f2 50 72 69 6e 74 |..# .Print| 00000920 65 72 5f 73 65 74 5f 6d 6f 64 75 6c 65 5f 64 61 |er_set_module_da| 00000930 74 61 0d 03 16 42 20 20 20 20 20 20 20 70 72 69 |ta...B pri| 00000940 6e 74 65 72 5f 6e 65 77 25 20 3d 20 70 72 69 6e |nter_new% = prin| 00000950 74 65 72 5f 64 61 74 61 5f 6c 69 73 74 25 21 70 |ter_data_list%!p| 00000960 72 69 6e 74 65 72 5f 6e 75 6d 62 65 72 5f 66 69 |rinter_number_fi| 00000970 65 6c 64 25 0d 03 20 11 20 20 20 20 20 20 20 72 |eld%.. . r| 00000980 65 73 25 3d b9 0d 03 2a 16 20 20 20 20 20 20 c9 |es%=...*. .| 00000990 20 6d 61 69 6e 5f 61 75 74 6f 25 0d 03 34 16 20 | main_auto%..4. | 000009a0 20 20 20 20 20 20 66 65 65 64 5f 6e 65 77 25 3d | feed_new%=| 000009b0 30 0d 03 3e 1c 20 20 20 20 20 20 20 f2 50 72 69 |0..>. .Pri| 000009c0 6e 74 65 72 5f 73 65 74 5f 66 65 65 64 0d 03 48 |nter_set_feed..H| 000009d0 18 20 20 20 20 20 20 c9 20 6d 61 69 6e 5f 6d 61 |. . main_ma| 000009e0 6e 75 61 6c 25 0d 03 52 16 20 20 20 20 20 20 20 |nual%..R. | 000009f0 66 65 65 64 5f 6e 65 77 25 3d 31 0d 03 5c 1c 20 |feed_new%=1..\. | 00000a00 20 20 20 20 20 20 f2 50 72 69 6e 74 65 72 5f 73 | .Printer_s| 00000a10 65 74 5f 66 65 65 64 0d 03 66 1a 20 20 20 20 20 |et_feed..f. | 00000a20 20 c9 20 6d 61 69 6e 5f 70 6f 72 74 72 61 69 74 | . main_portrait| 00000a30 25 0d 03 70 3f 20 20 20 20 20 20 20 f2 73 65 74 |%..p? .set| 00000a40 5f 69 63 6f 6e 5f 73 74 61 74 65 28 6d 61 69 6e |_icon_state(main| 00000a50 25 2c 20 6d 61 69 6e 5f 70 6f 72 74 72 61 69 74 |%, main_portrait| 00000a60 25 2c 20 31 3c 3c 32 31 2c 20 31 3c 3c 32 31 29 |%, 1<<21, 1<<21)| 00000a70 0d 03 7a 18 20 20 20 20 20 20 20 66 6f 72 6d 61 |..z. forma| 00000a80 74 5f 6e 65 77 25 3d 30 0d 03 84 1b 20 20 20 20 |t_new%=0.... | 00000a90 20 20 c9 20 6d 61 69 6e 5f 6c 61 6e 64 73 63 61 | . main_landsca| 00000aa0 70 65 25 0d 03 8e 40 20 20 20 20 20 20 20 f2 73 |pe%...@ .s| 00000ab0 65 74 5f 69 63 6f 6e 5f 73 74 61 74 65 28 6d 61 |et_icon_state(ma| 00000ac0 69 6e 25 2c 20 6d 61 69 6e 5f 6c 61 6e 64 73 63 |in%, main_landsc| 00000ad0 61 70 65 25 2c 20 31 3c 3c 32 31 2c 20 31 3c 3c |ape%, 1<<21, 1<<| 00000ae0 32 31 29 0d 03 98 18 20 20 20 20 20 20 20 66 6f |21).... fo| 00000af0 72 6d 61 74 5f 6e 65 77 25 3d 31 0d 03 a2 17 20 |rmat_new%=1.... | 00000b00 20 20 20 20 20 c9 20 6d 61 69 6e 5f 74 69 74 6c | . main_titl| 00000b10 65 25 0d 03 ac 14 20 20 20 20 20 20 20 21 71 25 |e%.... !q%| 00000b20 3d 6d 61 69 6e 25 0d 03 b6 1b 20 20 20 20 20 20 |=main%.... | 00000b30 20 71 25 21 34 3d 6d 61 69 6e 5f 74 69 74 6c 65 | q%!4=main_title| 00000b40 25 0d 03 c0 25 20 20 20 20 20 20 20 c8 99 20 22 |%...% .. "| 00000b50 57 69 6d 70 5f 47 65 74 49 63 6f 6e 53 74 61 74 |Wimp_GetIconStat| 00000b60 65 22 2c 2c 71 25 0d 03 ca 29 20 20 20 20 20 20 |e",,q%...) | 00000b70 20 74 69 74 6c 65 5f 6e 65 77 25 20 3d 20 28 71 | title_new% = (q| 00000b80 25 21 32 34 20 3e 3e 20 32 31 29 20 80 20 31 0d |%!24 >> 21) . 1.| 00000b90 03 d4 16 20 20 20 20 20 20 c9 20 6d 61 69 6e 5f |... . main_| 00000ba0 6d 6f 6e 6f 25 0d 03 de 14 20 20 20 20 20 20 20 |mono%.... | 00000bb0 21 71 25 3d 6d 61 69 6e 25 0d 03 e8 1a 20 20 20 |!q%=main%.... | 00000bc0 20 20 20 20 71 25 21 34 3d 6d 61 69 6e 5f 6d 6f | q%!4=main_mo| 00000bd0 6e 6f 25 0d 03 f2 25 20 20 20 20 20 20 20 c8 99 |no%...% ..| 00000be0 20 22 57 69 6d 70 5f 47 65 74 49 63 6f 6e 53 74 | "Wimp_GetIconSt| 00000bf0 61 74 65 22 2c 2c 71 25 0d 03 fc 28 20 20 20 20 |ate",,q%...( | 00000c00 20 20 20 6d 6f 6e 6f 5f 6e 65 77 25 20 3d 20 28 | mono_new% = (| 00000c10 71 25 21 32 34 20 3e 3e 20 32 31 29 20 80 20 31 |q%!24 >> 21) . 1| 00000c20 0d 04 06 2d 20 20 20 20 20 20 20 c8 99 20 22 50 |...- .. "P| 00000c30 44 72 69 76 65 72 5f 53 65 74 50 72 69 6e 74 65 |Driver_SetPrinte| 00000c40 72 22 2c 20 6d 6f 6e 6f 5f 6e 65 77 25 0d 04 10 |r", mono_new%...| 00000c50 0a 20 20 20 20 20 cb 0d 04 1a 08 20 20 20 cb 0d |. ..... ..| 00000c60 04 24 07 20 20 cd 0d 04 2e 05 cb 0d 04 38 09 3d |.$. ........8.=| 00000c70 72 65 73 25 0d 04 42 05 3a 0d 04 4c 1e dd f2 50 |res%..B.:..L...P| 00000c80 72 69 6e 74 65 72 5f 72 65 61 64 5f 63 6f 6e 66 |rinter_read_conf| 00000c90 69 67 5f 66 69 6c 65 0d 04 56 0d ea 20 48 25 2c |ig_file..V.. H%,| 00000ca0 70 74 72 25 0d 04 60 22 de 20 64 65 66 61 75 6c |ptr%..`". defaul| 00000cb0 74 73 25 20 70 72 69 6e 74 65 72 5f 64 61 74 61 |ts% printer_data| 00000cc0 5f 73 69 7a 65 25 0d 04 6a 1d 70 72 69 6e 74 65 |_size%..j.printe| 00000cd0 72 5f 64 61 74 61 25 20 3d 20 64 65 66 61 75 6c |r_data% = defaul| 00000ce0 74 73 25 0d 04 74 1e 48 25 3d 8e 22 3c 50 44 72 |ts%..t.H%=."<PDr| 00000cf0 69 76 65 72 24 64 69 72 3e 2e 50 72 44 61 74 61 |iver$dir>.PrData| 00000d00 22 0d 04 7e 2f e7 20 48 25 3d 30 20 85 20 31 30 |"..~/. H%=0 . 10| 00000d10 30 2c 22 43 61 6e 27 74 20 72 65 61 64 20 70 72 |0,"Can't read pr| 00000d20 69 6e 74 65 72 20 64 61 74 61 20 66 69 6c 65 22 |inter data file"| 00000d30 0d 04 88 05 f5 0d 04 92 10 20 70 74 72 25 20 3d |......... ptr% =| 00000d40 20 8f 23 48 25 0d 04 9c 1e 20 f2 50 72 69 6e 74 | .#H%.... .Print| 00000d50 65 72 5f 70 72 6f 63 65 73 73 5f 6c 69 6e 65 28 |er_process_line(| 00000d60 48 25 29 0d 04 a6 0a fd 20 c5 23 48 25 0d 04 b0 |H%)..... .#H%...| 00000d70 08 d9 23 48 25 0d 04 ba 05 e1 0d 04 c4 05 3a 0d |..#H%.........:.| 00000d80 04 ce 1e dd f2 50 72 69 6e 74 65 72 5f 70 72 6f |.....Printer_pro| 00000d90 63 65 73 73 5f 6c 69 6e 65 28 48 25 29 0d 04 d8 |cess_line(H%)...| 00000da0 10 ea 20 49 25 2c 4a 25 2c 74 61 67 24 0d 04 e2 |.. I%,J%,tag$...| 00000db0 0e 24 62 75 66 25 3d be 23 48 25 0d 04 ec 08 49 |.$buf%=.#H%....I| 00000dc0 25 3d 30 0d 04 f6 23 c8 95 20 a4 74 61 67 63 68 |%=0...#.. .tagch| 00000dd0 61 72 28 62 75 66 25 3f 49 25 29 3a 20 49 25 20 |ar(buf%?I%): I% | 00000de0 2b 3d 20 31 3a ce 0d 05 00 16 e7 20 62 75 66 25 |+= 1:...... buf%| 00000df0 3f 49 25 20 3d 20 97 22 3a 22 20 8c 0d 05 0a 10 |?I% = .":" .....| 00000e00 20 f4 20 67 6f 74 20 61 20 74 61 67 0d 05 14 20 | . got a tag... | 00000e10 20 74 61 67 24 3d a4 6c 6f 77 65 72 63 61 73 65 | tag$=.lowercase| 00000e20 28 c0 24 62 75 66 25 2c 49 25 29 29 0d 05 1e 0c |(.$buf%,I%))....| 00000e30 20 49 25 20 2b 3d 20 31 0d 05 28 1f 20 c8 95 20 | I% += 1..(. .. | 00000e40 62 75 66 25 3f 49 25 3d 97 22 20 22 3a 20 49 25 |buf%?I%=." ": I%| 00000e50 20 2b 3d 20 31 3a ce 0d 05 32 0e 20 c8 8e 20 74 | += 1:...2. .. t| 00000e60 61 67 24 20 ca 0d 05 3c 11 20 20 c9 20 22 76 65 |ag$ ...<. . "ve| 00000e70 72 73 69 6f 6e 22 0d 05 46 1e 20 20 20 50 72 44 |rsion"..F. PrD| 00000e80 61 74 61 5f 76 65 72 73 69 6f 6e 25 20 3d 20 a4 |ata_version% = .| 00000e90 72 65 61 64 0d 05 50 16 20 20 c9 20 22 70 72 69 |read..P. . "pri| 00000ea0 6e 74 65 72 5f 6e 61 6d 65 22 0d 05 5a 15 20 20 |nter_name"..Z. | 00000eb0 20 f4 20 62 75 69 6c 64 20 61 20 6e 61 6d 65 0d | . build a name.| 00000ec0 05 64 23 20 20 20 de 20 64 65 73 63 72 69 70 74 |.d# . descript| 00000ed0 69 6f 6e 25 20 a9 24 62 75 66 25 20 2d 49 25 20 |ion% .$buf% -I% | 00000ee0 2b 31 0d 05 6e 28 20 20 20 24 64 65 73 63 72 69 |+1..n( $descri| 00000ef0 70 74 69 6f 6e 25 20 3d 20 c2 24 62 75 66 25 2c |ption% = .$buf%,| 00000f00 a9 24 62 75 66 25 2d 49 25 29 0d 05 78 3b 20 20 |.$buf%-I%)..x; | 00000f10 20 f4 20 6e 6f 77 20 61 64 64 20 61 20 62 6c 6f | . now add a blo| 00000f20 63 6b 20 74 6f 20 6f 75 72 20 6c 69 73 74 20 6f |ck to our list o| 00000f30 66 20 70 72 69 6e 74 65 72 20 64 61 74 61 20 62 |f printer data b| 00000f40 6c 6f 63 6b 73 0d 05 82 29 20 20 20 de 20 70 72 |locks...) . pr| 00000f50 69 6e 74 65 72 5f 64 61 74 61 25 20 70 72 69 6e |inter_data% prin| 00000f60 74 65 72 5f 64 61 74 61 5f 73 69 7a 65 25 0d 05 |ter_data_size%..| 00000f70 8c 28 20 20 20 e3 20 49 25 3d 30 20 b8 20 70 72 |.( . I%=0 . pr| 00000f80 69 6e 74 65 72 5f 64 61 74 61 5f 73 69 7a 65 25 |inter_data_size%| 00000f90 2d 34 20 88 20 34 0d 05 96 27 20 20 20 20 70 72 |-4 . 4...' pr| 00000fa0 69 6e 74 65 72 5f 64 61 74 61 25 21 49 25 20 3d |inter_data%!I% =| 00000fb0 20 64 65 66 61 75 6c 74 73 25 21 49 25 0d 05 a0 | defaults%!I%...| 00000fc0 08 20 20 20 ed 0d 05 aa 36 20 20 20 70 72 69 6e |. ....6 prin| 00000fd0 74 65 72 5f 64 61 74 61 25 21 64 65 73 63 72 69 |ter_data%!descri| 00000fe0 70 74 69 6f 6e 5f 66 69 65 6c 64 25 20 3d 20 64 |ption_field% = d| 00000ff0 65 73 63 72 69 70 74 69 6f 6e 25 0d 05 b4 0f 20 |escription%.... | 00001000 20 20 e7 20 50 25 3d 30 20 8c 0d 05 be 2a 20 20 | . P%=0 ....* | 00001010 20 20 70 72 69 6e 74 65 72 5f 64 61 74 61 5f 6c | printer_data_l| 00001020 69 73 74 25 20 3d 20 70 72 69 6e 74 65 72 5f 64 |ist% = printer_d| 00001030 61 74 61 25 0d 05 c8 08 20 20 20 cc 0d 05 d2 2e |ata%.... .....| 00001040 20 20 20 20 50 25 21 6c 69 73 74 5f 70 6f 69 6e | P%!list_poin| 00001050 74 65 72 5f 66 69 65 6c 64 25 20 3d 20 70 72 69 |ter_field% = pri| 00001060 6e 74 65 72 5f 64 61 74 61 25 0d 05 dc 08 20 20 |nter_data%.... | 00001070 20 cd 0d 05 e6 19 20 20 20 50 25 20 3d 20 70 72 | ..... P% = pr| 00001080 69 6e 74 65 72 5f 64 61 74 61 25 0d 05 f0 55 20 |inter_data%...U | 00001090 20 c9 20 22 70 78 72 65 73 22 2c 22 70 79 72 65 | . "pxres","pyre| 000010a0 73 22 2c 22 66 65 61 74 75 72 65 73 22 2c 22 70 |s","features","p| 000010b0 78 72 65 73 5f 68 61 6c 66 74 6f 6e 65 22 2c 22 |xres_halftone","| 000010c0 70 79 72 65 73 5f 68 61 6c 66 74 6f 6e 65 22 2c |pyres_halftone",| 000010d0 22 70 72 69 6e 74 65 72 5f 6e 75 6d 62 65 72 22 |"printer_number"| 000010e0 0d 05 fa 48 20 20 20 f4 20 6e 6f 74 65 20 74 68 |...H . note th| 000010f0 61 74 20 61 6c 6c 20 74 61 67 73 20 61 72 65 20 |at all tags are | 00001100 74 68 65 20 73 61 6d 65 20 61 73 20 74 68 65 69 |the same as thei| 00001110 72 20 72 65 73 70 65 63 74 69 76 65 20 66 69 65 |r respective fie| 00001120 6c 64 20 6e 61 6d 65 73 0d 06 04 30 20 20 20 20 |ld names...0 | 00001130 20 70 72 69 6e 74 65 72 5f 64 61 74 61 25 21 a0 | printer_data%!.| 00001140 28 74 61 67 24 2b 22 5f 66 69 65 6c 64 25 22 29 |(tag$+"_field%")| 00001150 20 3d 20 a4 72 65 61 64 0d 06 0e 54 20 20 c9 20 | = .read...T . | 00001160 22 70 61 67 65 5f 77 69 64 74 68 22 2c 22 70 61 |"page_width","pa| 00001170 67 65 5f 68 65 69 67 68 74 22 2c 22 70 61 67 65 |ge_height","page| 00001180 5f 62 6f 74 74 6f 6d 22 2c 22 70 61 67 65 5f 74 |_bottom","page_t| 00001190 6f 70 22 2c 22 70 61 67 65 5f 6c 65 66 74 22 2c |op","page_left",| 000011a0 22 70 61 67 65 5f 72 69 67 68 74 22 0d 06 18 3b |"page_right"...;| 000011b0 20 20 20 20 20 70 61 67 65 5f 64 65 73 63 25 28 | page_desc%(| 000011c0 70 61 67 65 5f 6e 75 6d 62 65 72 25 2c a0 28 74 |page_number%,.(t| 000011d0 61 67 24 2b 22 5f 66 69 65 6c 64 25 22 29 29 20 |ag$+"_field%")) | 000011e0 3d 20 a4 72 65 61 64 0d 06 22 3d 20 20 20 20 20 |= .read.."= | 000011f0 70 61 67 65 5f 70 74 72 73 25 28 70 61 67 65 5f |page_ptrs%(page_| 00001200 6e 75 6d 62 65 72 25 2c a0 28 74 61 67 24 2b 22 |number%,.(tag$+"| 00001210 5f 66 69 65 6c 64 25 22 29 29 20 3d 20 70 74 72 |_field%")) = ptr| 00001220 25 2b 49 25 0d 06 2c 15 20 20 c9 20 22 70 61 67 |%+I%..,. . "pag| 00001230 65 5f 6e 75 6d 62 65 72 22 0d 06 36 1d 20 20 20 |e_number"..6. | 00001240 20 20 70 61 67 65 5f 6e 75 6d 62 65 72 25 20 3d | page_number% =| 00001250 20 a4 72 65 61 64 0d 06 40 4e 20 20 c9 20 22 73 | .read..@N . "s| 00001260 65 72 76 65 72 22 2c 22 70 61 67 65 5f 6e 61 6d |erver","page_nam| 00001270 65 22 2c 22 66 69 6c 65 22 2c 22 6d 61 6e 75 61 |e","file","manua| 00001280 6c 5f 66 65 65 64 22 2c 22 61 75 74 6f 5f 66 65 |l_feed","auto_fe| 00001290 65 64 22 2c 22 70 61 67 65 5f 73 65 6c 65 63 74 |ed","page_select| 000012a0 69 6f 6e 22 0d 06 4a 16 20 20 20 f4 20 72 65 61 |ion"..J. . rea| 000012b0 64 20 61 20 73 74 72 69 6e 67 0d 06 54 0e 20 20 |d a string..T. | 000012c0 20 4a 25 20 3d 20 49 25 0d 06 5e 27 20 20 20 c8 | J% = I%..^' .| 000012d0 95 20 62 75 66 25 3f 4a 25 3e 3d 97 22 20 22 20 |. buf%?J%>=." " | 000012e0 80 20 62 75 66 25 3f 4a 25 3c 3e 97 22 3b 22 0d |. buf%?J%<>.";".| 000012f0 06 68 0f 20 20 20 20 4a 25 20 2b 3d 20 31 0d 06 |.h. J% += 1..| 00001300 72 08 20 20 20 ce 0d 06 7c 24 20 20 20 f4 20 66 |r. ...|$ . f| 00001310 72 6f 6d 20 49 25 20 74 6f 20 4a 25 20 69 73 20 |rom I% to J% is | 00001320 74 68 65 20 73 74 72 69 6e 67 0d 06 86 10 20 20 |the string.... | 00001330 20 c8 8e 20 74 61 67 24 20 ca 0d 06 90 11 20 20 | .. tag$ ..... | 00001340 20 c9 20 22 73 65 72 76 65 72 22 0d 06 9a 1f 20 | . "server".... | 00001350 20 20 20 73 65 72 76 65 72 5f 70 74 72 25 20 3d | server_ptr% =| 00001360 20 70 74 72 25 20 2b 20 49 25 0d 06 a4 2d 20 20 | ptr% + I%...- | 00001370 20 20 73 65 72 76 65 72 5f 63 6f 6e 66 69 67 24 | server_config$| 00001380 20 3d 20 c1 24 62 75 66 25 2c 20 49 25 2b 31 2c | = .$buf%, I%+1,| 00001390 20 4a 25 2d 49 25 29 0d 06 ae 0f 20 20 20 c9 20 | J%-I%).... . | 000013a0 22 66 69 6c 65 22 0d 06 b8 1d 20 20 20 20 66 69 |"file".... fi| 000013b0 6c 65 5f 70 74 72 25 20 3d 20 70 74 72 25 20 2b |le_ptr% = ptr% +| 000013c0 20 49 25 0d 06 c2 2b 20 20 20 20 66 69 6c 65 5f | I%...+ file_| 000013d0 63 6f 6e 66 69 67 24 20 3d 20 c1 24 62 75 66 25 |config$ = .$buf%| 000013e0 2c 20 49 25 2b 31 2c 20 4a 25 2d 49 25 29 0d 06 |, I%+1, J%-I%)..| 000013f0 cc 20 20 20 20 20 24 66 69 6c 65 5f 6e 61 6d 65 |. $file_name| 00001400 25 3d 66 69 6c 65 5f 63 6f 6e 66 69 67 24 0d 06 |%=file_config$..| 00001410 d6 36 20 20 20 20 c8 99 20 22 58 4f 53 5f 43 4c |.6 .. "XOS_CL| 00001420 49 22 2c 22 73 65 74 20 50 72 69 6e 74 65 72 54 |I","set PrinterT| 00001430 79 70 65 24 35 20 22 2b 66 69 6c 65 5f 63 6f 6e |ype$5 "+file_con| 00001440 66 69 67 24 0d 06 e0 14 20 20 20 c9 20 22 70 61 |fig$.... . "pa| 00001450 67 65 5f 6e 61 6d 65 22 0d 06 ea 36 20 20 20 20 |ge_name"...6 | 00001460 70 61 67 65 5f 6e 61 6d 65 73 24 28 70 61 67 65 |page_names$(page| 00001470 5f 6e 75 6d 62 65 72 25 29 3d c1 24 62 75 66 25 |_number%)=.$buf%| 00001480 2c 20 49 25 2b 31 2c 20 4a 25 2d 49 25 29 0d 06 |, I%+1, J%-I%)..| 00001490 f4 3b 20 20 20 20 70 61 67 65 5f 70 74 72 73 25 |.; page_ptrs%| 000014a0 28 70 61 67 65 5f 6e 75 6d 62 65 72 25 2c 70 61 |(page_number%,pa| 000014b0 67 65 5f 6e 61 6d 65 5f 66 69 65 6c 64 25 29 20 |ge_name_field%) | 000014c0 3d 20 70 74 72 25 2b 49 25 0d 06 fe 19 20 20 20 |= ptr%+I%.... | 000014d0 c9 20 22 70 61 67 65 5f 73 65 6c 65 63 74 69 6f |. "page_selectio| 000014e0 6e 22 0d 07 08 3a 20 20 20 20 70 61 67 65 5f 73 |n"...: page_s| 000014f0 65 6c 65 63 74 69 6f 6e 24 28 70 61 67 65 5f 6e |election$(page_n| 00001500 75 6d 62 65 72 25 29 3d c1 24 62 75 66 25 2c 20 |umber%)=.$buf%, | 00001510 49 25 2b 31 2c 20 4a 25 2d 49 25 29 0d 07 12 08 |I%+1, J%-I%)....| 00001520 20 20 20 7f 0d 07 1c 1e 20 20 20 20 de 20 64 65 | ..... . de| 00001530 73 63 72 69 70 74 69 6f 6e 25 20 4a 25 2d 49 25 |scription% J%-I%| 00001540 2b 31 0d 07 26 2c 20 20 20 20 24 64 65 73 63 72 |+1..&, $descr| 00001550 69 70 74 69 6f 6e 25 20 3d 20 c1 24 62 75 66 25 |iption% = .$buf%| 00001560 2c 20 49 25 2b 31 2c 20 4a 25 2d 49 25 29 0d 07 |, I%+1, J%-I%)..| 00001570 30 36 20 20 20 20 70 72 69 6e 74 65 72 5f 64 61 |06 printer_da| 00001580 74 61 25 21 a0 28 74 61 67 24 2b 22 5f 66 69 65 |ta%!.(tag$+"_fie| 00001590 6c 64 25 22 29 20 3d 20 64 65 73 63 72 69 70 74 |ld%") = descript| 000015a0 69 6f 6e 25 0d 07 3a 08 20 20 20 cb 0d 07 44 1b |ion%..:. ...D.| 000015b0 20 20 c9 20 22 73 74 61 72 74 5f 70 61 67 65 5f | . "start_page_| 000015c0 6e 75 6d 62 65 72 22 0d 07 4e 22 20 20 20 70 61 |number"..N" pa| 000015d0 67 65 5f 6e 75 6d 62 65 72 5f 63 6f 6e 66 69 67 |ge_number_config| 000015e0 25 20 3d 20 a4 72 65 61 64 0d 07 58 23 20 20 20 |% = .read..X# | 000015f0 70 61 67 65 5f 6e 75 6d 62 65 72 5f 70 74 72 25 |page_number_ptr%| 00001600 20 3d 20 70 74 72 25 20 2b 20 49 25 0d 07 62 11 | = ptr% + I%..b.| 00001610 20 20 c9 20 22 70 72 69 6e 74 65 72 22 0d 07 6c | . "printer"..l| 00001620 1e 20 20 20 70 72 69 6e 74 65 72 5f 63 6f 6e 66 |. printer_conf| 00001630 69 67 25 20 3d 20 a4 72 65 61 64 0d 07 76 25 20 |ig% = .read..v% | 00001640 20 20 70 72 69 6e 74 65 72 5f 6e 65 77 25 20 3d | printer_new% =| 00001650 20 70 72 69 6e 74 65 72 5f 63 6f 6e 66 69 67 25 | printer_config%| 00001660 0d 07 80 1f 20 20 20 70 72 69 6e 74 65 72 5f 70 |.... printer_p| 00001670 74 72 25 20 3d 20 70 74 72 25 20 2b 20 49 25 0d |tr% = ptr% + I%.| 00001680 07 8a 12 20 20 c9 20 22 6c 6f 63 61 74 69 6f 6e |... . "location| 00001690 22 0d 07 94 1f 20 20 20 6c 6f 63 61 74 69 6f 6e |".... location| 000016a0 5f 63 6f 6e 66 69 67 25 20 3d 20 a4 72 65 61 64 |_config% = .read| 000016b0 0d 07 9e 20 20 20 20 6c 6f 63 61 74 69 6f 6e 5f |... location_| 000016c0 70 74 72 25 20 3d 20 70 74 72 25 20 2b 20 49 25 |ptr% = ptr% + I%| 000016d0 0d 07 a8 0e 20 20 c9 20 22 62 61 75 64 22 0d 07 |.... . "baud"..| 000016e0 b2 1b 20 20 20 62 61 75 64 5f 63 6f 6e 66 69 67 |.. baud_config| 000016f0 25 20 3d 20 a4 72 65 61 64 0d 07 bc 1c 20 20 20 |% = .read.... | 00001700 62 61 75 64 5f 70 74 72 25 20 3d 20 70 74 72 25 |baud_ptr% = ptr%| 00001710 20 2b 20 49 25 0d 07 c6 0e 20 20 c9 20 22 64 61 | + I%.... . "da| 00001720 74 61 22 0d 07 d0 1b 20 20 20 64 61 74 61 5f 63 |ta".... data_c| 00001730 6f 6e 66 69 67 25 20 3d 20 a4 72 65 61 64 0d 07 |onfig% = .read..| 00001740 da 1c 20 20 20 64 61 74 61 5f 70 74 72 25 20 3d |.. data_ptr% =| 00001750 20 70 74 72 25 20 2b 20 49 25 0d 07 e4 0d 20 20 | ptr% + I%.... | 00001760 c9 20 22 78 6f 6e 22 0d 07 ee 1a 20 20 20 58 4f |. "xon".... XO| 00001770 4e 5f 63 6f 6e 66 69 67 25 20 3d 20 a4 72 65 61 |N_config% = .rea| 00001780 64 0d 07 f8 1d 20 20 20 58 4f 4e 5f 6e 65 77 25 |d.... XON_new%| 00001790 20 3d 20 58 4f 4e 5f 63 6f 6e 66 69 67 25 0d 08 | = XON_config%..| 000017a0 02 1b 20 20 20 58 4f 4e 5f 70 74 72 25 20 3d 20 |.. XON_ptr% = | 000017b0 70 74 72 25 20 2b 20 49 25 0d 08 0c 0e 20 20 c9 |ptr% + I%.... .| 000017c0 20 22 66 65 65 64 22 0d 08 16 1b 20 20 20 66 65 | "feed".... fe| 000017d0 65 64 5f 63 6f 6e 66 69 67 25 20 3d 20 a4 72 65 |ed_config% = .re| 000017e0 61 64 0d 08 20 1f 20 20 20 66 65 65 64 5f 6e 65 |ad.. . feed_ne| 000017f0 77 25 20 3d 20 66 65 65 64 5f 63 6f 6e 66 69 67 |w% = feed_config| 00001800 25 0d 08 2a 1c 20 20 20 66 65 65 64 5f 70 74 72 |%..*. feed_ptr| 00001810 25 20 3d 20 70 74 72 25 20 2b 20 49 25 0d 08 34 |% = ptr% + I%..4| 00001820 10 20 20 c9 20 22 66 6f 72 6d 61 74 22 0d 08 3e |. . "format"..>| 00001830 1d 20 20 20 66 6f 72 6d 61 74 5f 63 6f 6e 66 69 |. format_confi| 00001840 67 25 20 3d 20 a4 72 65 61 64 0d 08 48 23 20 20 |g% = .read..H# | 00001850 20 66 6f 72 6d 61 74 5f 6e 65 77 25 20 3d 20 66 | format_new% = f| 00001860 6f 72 6d 61 74 5f 63 6f 6e 66 69 67 25 0d 08 52 |ormat_config%..R| 00001870 1e 20 20 20 66 6f 72 6d 61 74 5f 70 74 72 25 20 |. format_ptr% | 00001880 3d 20 70 74 72 25 20 2b 20 49 25 0d 08 5c 0f 20 |= ptr% + I%..\. | 00001890 20 c9 20 22 74 69 74 6c 65 22 0d 08 66 1c 20 20 | . "title"..f. | 000018a0 20 74 69 74 6c 65 5f 63 6f 6e 66 69 67 25 20 3d | title_config% =| 000018b0 20 a4 72 65 61 64 0d 08 70 21 20 20 20 74 69 74 | .read..p! tit| 000018c0 6c 65 5f 6e 65 77 25 20 3d 20 74 69 74 6c 65 5f |le_new% = title_| 000018d0 63 6f 6e 66 69 67 25 0d 08 7a 1d 20 20 20 74 69 |config%..z. ti| 000018e0 74 6c 65 5f 70 74 72 25 20 3d 20 70 74 72 25 20 |tle_ptr% = ptr% | 000018f0 2b 20 49 25 0d 08 84 0e 20 20 c9 20 22 6d 6f 6e |+ I%.... . "mon| 00001900 6f 22 0d 08 8e 1b 20 20 20 6d 6f 6e 6f 5f 63 6f |o".... mono_co| 00001910 6e 66 69 67 25 20 3d 20 a4 72 65 61 64 0d 08 98 |nfig% = .read...| 00001920 1f 20 20 20 6d 6f 6e 6f 5f 6e 65 77 25 20 3d 20 |. mono_new% = | 00001930 6d 6f 6e 6f 5f 63 6f 6e 66 69 67 25 0d 08 a2 1c |mono_config%....| 00001940 20 20 20 6d 6f 6e 6f 5f 70 74 72 25 20 3d 20 70 | mono_ptr% = p| 00001950 74 72 25 20 2b 20 49 25 0d 08 ac 06 20 cb 0d 08 |tr% + I%.... ...| 00001960 b6 05 cd 0d 08 c0 05 e1 0d 08 ca 05 3a 0d 08 d4 |............:...| 00001970 36 dd a4 72 65 61 64 3d a4 72 65 61 64 5f 69 6e |6..read=.read_in| 00001980 74 65 67 65 72 5f 65 78 70 72 65 73 73 69 6f 6e |teger_expression| 00001990 28 c2 24 62 75 66 25 2c a9 24 62 75 66 25 2d 49 |(.$buf%,.$buf%-I| 000019a0 25 29 29 0d 08 de 05 3a 0d 08 e8 21 dd a4 72 65 |%))....:...!..re| 000019b0 61 64 5f 69 6e 74 65 67 65 72 5f 65 78 70 72 65 |ad_integer_expre| 000019c0 73 73 69 6f 6e 28 53 24 29 0d 08 f2 14 ea 20 52 |ssion(S$)..... R| 000019d0 25 2c 20 54 25 2c 20 45 24 2c 20 50 25 0d 08 fc |%, T%, E$, P%...| 000019e0 09 45 24 3d 22 22 0d 09 06 1c f4 20 67 65 74 20 |.E$=""..... get | 000019f0 72 69 64 20 6f 66 20 61 6e 79 20 63 6f 6d 6d 65 |rid of any comme| 00001a00 6e 74 0d 09 10 1f c8 95 20 c0 53 24 2c 31 29 20 |nt...... .S$,1) | 00001a10 3c 3e 20 22 3b 22 20 80 20 a9 53 24 20 3c 3e 20 |<> ";" . .S$ <> | 00001a20 30 0d 09 1a 11 20 45 24 20 2b 3d 20 c0 53 24 2c |0.... E$ += .S$,| 00001a30 31 29 0d 09 24 14 20 53 24 20 3d 20 c2 53 24 2c |1)..$. S$ = .S$,| 00001a40 a9 53 24 2d 31 29 0d 09 2e 05 ce 0d 09 38 36 c8 |.S$-1).......86.| 00001a50 99 22 58 4f 53 5f 45 76 61 6c 75 61 74 65 45 78 |."XOS_EvaluateEx| 00001a60 70 72 65 73 73 69 6f 6e 22 2c 45 24 2c 62 75 66 |pression",E$,buf| 00001a70 25 2c 32 35 36 20 b8 20 2c 54 25 2c 52 25 3b 50 |%,256 . ,T%,R%;P| 00001a80 25 0d 09 42 40 e7 20 54 25 20 3c 3e 20 30 20 84 |%..B@. T% <> 0 .| 00001a90 20 28 50 25 20 80 20 31 29 20 85 20 31 30 30 2c | (P% . 1) . 100,| 00001aa0 20 22 49 6e 74 65 67 65 72 20 76 61 6c 75 65 20 | "Integer value | 00001ab0 6e 65 65 64 65 64 20 66 6f 72 20 22 2b 74 61 67 |needed for "+tag| 00001ac0 24 0d 09 4c 07 3d 52 25 0d 09 56 05 3a 0d 09 60 |$..L.=R%..V.:..`| 00001ad0 11 dd a4 74 61 67 63 68 61 72 28 43 25 29 0d 09 |...tagchar(C%)..| 00001ae0 6a 24 e7 20 28 43 25 20 3e 3d 20 97 22 41 22 20 |j$. (C% >= ."A" | 00001af0 80 20 43 25 20 3c 3d 20 97 22 5a 22 29 20 8c 20 |. C% <= ."Z") . | 00001b00 3d b9 0d 09 74 24 e7 20 28 43 25 20 3e 3d 20 97 |=...t$. (C% >= .| 00001b10 22 61 22 20 80 20 43 25 20 3c 3d 20 97 22 7a 22 |"a" . C% <= ."z"| 00001b20 29 20 8c 20 3d b9 0d 09 7e 2c 3d 20 20 28 43 25 |) . =...~,= (C%| 00001b30 20 3e 3d 20 97 22 30 22 20 80 20 43 25 20 3c 3d | >= ."0" . C% <=| 00001b40 20 97 22 39 22 29 20 84 20 43 25 20 3d 20 97 22 | ."9") . C% = ."| 00001b50 5f 22 0d 09 88 05 3a 0d 09 92 1d dd f2 50 72 69 |_"....:......Pri| 00001b60 6e 74 65 72 5f 73 65 74 5f 6d 6f 64 75 6c 65 5f |nter_set_module_| 00001b70 64 61 74 61 0d 09 9c 17 ea 20 41 25 2c 42 25 2c |data..... A%,B%,| 00001b80 43 25 2c 44 25 2c 45 25 2c 46 25 0d 09 a6 1d 41 |C%,D%,E%,F%....A| 00001b90 25 3d 64 65 66 61 75 6c 74 73 25 21 70 78 72 65 |%=defaults%!pxre| 00001ba0 73 5f 66 69 65 6c 64 25 0d 09 b0 1d 42 25 3d 64 |s_field%....B%=d| 00001bb0 65 66 61 75 6c 74 73 25 21 70 79 72 65 73 5f 66 |efaults%!pyres_f| 00001bc0 69 65 6c 64 25 0d 09 ba 20 43 25 3d 64 65 66 61 |ield%... C%=defa| 00001bd0 75 6c 74 73 25 21 66 65 61 74 75 72 65 73 5f 66 |ults%!features_f| 00001be0 69 65 6c 64 25 0d 09 c4 26 44 25 3d 64 65 66 61 |ield%...&D%=defa| 00001bf0 75 6c 74 73 25 21 70 78 72 65 73 5f 68 61 6c 66 |ults%!pxres_half| 00001c00 74 6f 6e 65 5f 66 69 65 6c 64 25 0d 09 ce 26 45 |tone_field%...&E| 00001c10 25 3d 64 65 66 61 75 6c 74 73 25 21 70 79 72 65 |%=defaults%!pyre| 00001c20 73 5f 68 61 6c 66 74 6f 6e 65 5f 66 69 65 6c 64 |s_halftone_field| 00001c30 25 0d 09 d8 26 46 25 3d 64 65 66 61 75 6c 74 73 |%...&F%=defaults| 00001c40 25 21 70 72 69 6e 74 65 72 5f 6e 75 6d 62 65 72 |%!printer_number| 00001c50 5f 66 69 65 6c 64 25 0d 09 e2 2c c8 99 20 22 50 |_field%...,.. "P| 00001c60 44 72 69 76 65 72 5f 53 65 74 49 6e 66 6f 22 2c |Driver_SetInfo",| 00001c70 2c 41 25 2c 42 25 2c 43 25 2c 2c 44 25 2c 45 25 |,A%,B%,C%,,D%,E%| 00001c80 2c 46 25 0d 09 ec 0d 6d 73 67 25 21 30 3d 32 30 |,F%....msg%!0=20| 00001c90 0d 09 f6 0d 6d 73 67 25 21 31 32 3d 30 0d 0a 00 |....msg%!12=0...| 00001ca0 1f 6d 73 67 25 21 31 36 3d 4d 65 73 73 61 67 65 |.msg%!16=Message| 00001cb0 5f 53 65 74 50 72 69 6e 74 65 72 25 0d 0a 0a 26 |_SetPrinter%...&| 00001cc0 c8 99 20 22 57 69 6d 70 5f 53 65 6e 64 4d 65 73 |.. "Wimp_SendMes| 00001cd0 73 61 67 65 22 2c 20 31 38 2c 20 6d 73 67 25 2c |sage", 18, msg%,| 00001ce0 20 30 0d 0a 14 26 c8 99 20 22 50 44 72 69 76 65 | 0...&.. "PDrive| 00001cf0 72 5f 53 65 74 50 72 69 6e 74 65 72 22 2c 20 6d |r_SetPrinter", m| 00001d00 6f 6e 6f 5f 6e 65 77 25 0d 0a 1e 15 f2 50 72 69 |ono_new%.....Pri| 00001d10 6e 74 65 72 5f 73 65 74 5f 66 65 65 64 0d 0a 28 |nter_set_feed..(| 00001d20 05 e1 0d 0a 32 05 3a 0d 0a 3c 1f dd 20 f2 50 72 |....2.:..<.. .Pr| 00001d30 69 6e 74 65 72 5f 63 68 61 6e 67 65 5f 70 61 67 |inter_change_pag| 00001d40 65 5f 73 69 7a 65 0d 0a 46 18 f2 50 72 69 6e 74 |e_size..F..Print| 00001d50 65 72 5f 73 65 74 5f 4c 4a 65 78 74 72 61 0d 0a |er_set_LJextra..| 00001d60 50 05 e1 0d 0a 5a 05 3a 0d 0a 64 1a dd 20 f2 50 |P....Z.:..d.. .P| 00001d70 72 69 6e 74 65 72 5f 73 65 74 5f 4c 4a 65 78 74 |rinter_set_LJext| 00001d80 72 61 0d 0a 6e 13 e7 20 66 65 65 64 5f 6e 65 77 |ra..n.. feed_new| 00001d90 25 3d 31 20 8c 0d 0a 78 45 20 ff 28 22 53 65 74 |%=1 ...xE .("Set| 00001da0 20 50 44 72 69 76 65 72 24 4c 4a 65 78 74 72 61 | PDriver$LJextra| 00001db0 20 22 22 22 2b 24 28 64 65 66 61 75 6c 74 73 25 | """+$(defaults%| 00001dc0 21 6d 61 6e 75 61 6c 5f 66 65 65 64 5f 66 69 65 |!manual_feed_fie| 00001dd0 6c 64 25 29 2b 22 22 22 22 29 0d 0a 82 05 cc 0d |ld%)+"""")......| 00001de0 0a 8c 43 20 ff 28 22 53 65 74 20 50 44 72 69 76 |..C .("Set PDriv| 00001df0 65 72 24 4c 4a 65 78 74 72 61 20 22 22 22 2b 24 |er$LJextra """+$| 00001e00 28 64 65 66 61 75 6c 74 73 25 21 61 75 74 6f 5f |(defaults%!auto_| 00001e10 66 65 65 64 5f 66 69 65 6c 64 25 29 2b 22 22 22 |feed_field%)+"""| 00001e20 22 29 0d 0a 96 05 cd 0d 0a a0 4c ff 28 22 53 65 |")........L.("Se| 00001e30 74 20 50 44 72 69 76 65 72 24 4c 4a 65 78 74 72 |t PDriver$LJextr| 00001e40 61 20 3c 50 44 72 69 76 65 72 24 4c 4a 65 78 74 |a <PDriver$LJext| 00001e50 72 61 3e 22 2b 70 61 67 65 5f 73 65 6c 65 63 74 |ra>"+page_select| 00001e60 69 6f 6e 24 28 70 61 67 65 5f 6e 75 6d 62 65 72 |ion$(page_number| 00001e70 25 29 29 0d 0a aa 05 e1 0d 0a b4 05 3a 0d 0a be |%)).........:...| 00001e80 17 dd 20 f2 50 72 69 6e 74 65 72 5f 73 65 74 5f |.. .Printer_set_| 00001e90 66 65 65 64 0d 0a c8 42 f2 73 65 74 5f 69 63 6f |feed...B.set_ico| 00001ea0 6e 5f 73 74 61 74 65 28 6d 61 69 6e 25 2c 20 6d |n_state(main%, m| 00001eb0 61 69 6e 5f 61 75 74 6f 25 2c 20 28 31 2d 66 65 |ain_auto%, (1-fe| 00001ec0 65 64 5f 6e 65 77 25 29 20 3c 3c 20 32 31 2c 20 |ed_new%) << 21, | 00001ed0 31 3c 3c 32 31 29 0d 0a d2 40 f2 73 65 74 5f 69 |1<<21)...@.set_i| 00001ee0 63 6f 6e 5f 73 74 61 74 65 28 6d 61 69 6e 25 2c |con_state(main%,| 00001ef0 20 6d 61 69 6e 5f 6d 61 6e 75 61 6c 25 2c 20 66 | main_manual%, f| 00001f00 65 65 64 5f 6e 65 77 25 20 3c 3c 20 32 31 2c 20 |eed_new% << 21, | 00001f10 31 3c 3c 32 31 29 0d 0a dc 18 f2 50 72 69 6e 74 |1<<21).....Print| 00001f20 65 72 5f 73 65 74 5f 4c 4a 65 78 74 72 61 0d 0a |er_set_LJextra..| 00001f30 e6 05 e1 0d 0a f0 05 3a 0d 0a fa 1d dd f2 50 72 |.......:......Pr| 00001f40 69 6e 74 65 72 5f 73 65 74 5f 64 65 73 63 72 69 |inter_set_descri| 00001f50 70 74 69 6f 6e 0d 0b 04 0c ea 20 53 25 2c 20 53 |ption..... S%, S| 00001f60 24 0d 0b 0e 27 e3 20 53 25 20 3d 20 30 20 b8 20 |$...'. S% = 0 . | 00001f70 70 72 69 6e 74 65 72 5f 64 61 74 61 5f 73 69 7a |printer_data_siz| 00001f80 65 25 2d 34 20 88 20 34 0d 0b 18 28 64 65 66 61 |e%-4 . 4...(defa| 00001f90 75 6c 74 73 25 21 53 25 20 3d 20 70 72 69 6e 74 |ults%!S% = print| 00001fa0 65 72 5f 64 61 74 61 5f 6c 69 73 74 25 21 53 25 |er_data_list%!S%| 00001fb0 0d 0b 22 05 ed 0d 0b 2c 48 f2 50 72 69 6e 74 65 |.."....,H.Printe| 00001fc0 72 5f 73 65 74 5f 69 63 6f 6e 28 6d 61 69 6e 5f |r_set_icon(main_| 00001fd0 64 65 73 63 72 69 70 74 69 6f 6e 25 2c 24 28 64 |description%,$(d| 00001fe0 65 66 61 75 6c 74 73 25 21 64 65 73 63 72 69 70 |efaults%!descrip| 00001ff0 74 69 6f 6e 5f 66 69 65 6c 64 25 29 29 0d 0b 36 |tion_field%))..6| 00002000 15 53 25 20 3d 20 31 3c 3c 32 33 20 84 20 31 3c |.S% = 1<<23 . 1<| 00002010 3c 37 0d 0b 40 65 e7 20 a9 28 24 28 70 72 69 6e |<7..@e. .($(prin| 00002020 74 65 72 5f 64 61 74 61 5f 6c 69 73 74 25 21 6d |ter_data_list%!m| 00002030 61 6e 75 61 6c 5f 66 65 65 64 5f 66 69 65 6c 64 |anual_feed_field| 00002040 25 29 29 20 3d 20 30 20 80 20 a9 28 24 28 70 72 |%)) = 0 . .($(pr| 00002050 69 6e 74 65 72 5f 64 61 74 61 5f 6c 69 73 74 25 |inter_data_list%| 00002060 21 61 75 74 6f 5f 66 65 65 64 5f 66 69 65 6c 64 |!auto_feed_field| 00002070 25 29 29 3d 30 20 8c 0d 0b 4a 2c 20 f2 73 65 74 |%))=0 ...J, .set| 00002080 5f 69 63 6f 6e 5f 73 74 61 74 65 28 6d 61 69 6e |_icon_state(main| 00002090 25 2c 6d 61 69 6e 5f 66 65 65 64 25 2c 53 25 2c |%,main_feed%,S%,| 000020a0 53 25 29 0d 0b 54 2c 20 f2 73 65 74 5f 69 63 6f |S%)..T, .set_ico| 000020b0 6e 5f 73 74 61 74 65 28 6d 61 69 6e 25 2c 6d 61 |n_state(main%,ma| 000020c0 69 6e 5f 61 75 74 6f 25 2c 53 25 2c 53 25 29 0d |in_auto%,S%,S%).| 000020d0 0b 5e 2e 20 f2 73 65 74 5f 69 63 6f 6e 5f 73 74 |.^. .set_icon_st| 000020e0 61 74 65 28 6d 61 69 6e 25 2c 6d 61 69 6e 5f 6d |ate(main%,main_m| 000020f0 61 6e 75 61 6c 25 2c 53 25 2c 53 25 29 0d 0b 68 |anual%,S%,S%)..h| 00002100 05 cc 0d 0b 72 2b 20 f2 73 65 74 5f 69 63 6f 6e |....r+ .set_icon| 00002110 5f 73 74 61 74 65 28 6d 61 69 6e 25 2c 6d 61 69 |_state(main%,mai| 00002120 6e 5f 66 65 65 64 25 2c 30 2c 53 25 29 0d 0b 7c |n_feed%,0,S%)..|| 00002130 2b 20 f2 73 65 74 5f 69 63 6f 6e 5f 73 74 61 74 |+ .set_icon_stat| 00002140 65 28 6d 61 69 6e 25 2c 6d 61 69 6e 5f 61 75 74 |e(main%,main_aut| 00002150 6f 25 2c 30 2c 53 25 29 0d 0b 86 2d 20 f2 73 65 |o%,0,S%)...- .se| 00002160 74 5f 69 63 6f 6e 5f 73 74 61 74 65 28 6d 61 69 |t_icon_state(mai| 00002170 6e 25 2c 6d 61 69 6e 5f 6d 61 6e 75 61 6c 25 2c |n%,main_manual%,| 00002180 30 2c 53 25 29 0d 0b 90 05 cd 0d 0b 9a 4a c8 99 |0,S%)........J..| 00002190 20 22 58 4f 53 5f 43 4c 49 22 2c 22 53 45 54 20 | "XOS_CLI","SET | 000021a0 50 72 69 6e 74 65 72 24 22 2b 22 20 22 22 22 2b |Printer$"+" """+| 000021b0 24 28 64 65 66 61 75 6c 74 73 25 21 64 65 73 63 |$(defaults%!desc| 000021c0 72 69 70 74 69 6f 6e 5f 66 69 65 6c 64 25 29 2b |ription_field%)+| 000021d0 22 22 22 22 0d 0b a4 05 e1 0d 0b ae 05 3a 0d 0b |"""".........:..| 000021e0 b8 1d dd f2 50 72 69 6e 74 65 72 5f 73 65 74 5f |....Printer_set_| 000021f0 69 63 6f 6e 28 49 25 2c 53 24 29 0d 0b c2 08 ea |icon(I%,S$).....| 00002200 20 53 25 0d 0b cc 1a 53 25 3d a4 69 63 6f 6e 61 | S%....S%=.icona| 00002210 64 64 72 28 6d 61 69 6e 25 2c 49 25 29 0d 0b d6 |ddr(main%,I%)...| 00002220 0c 24 53 25 20 3d 20 53 24 0d 0b e0 17 f2 7a 65 |.$S% = S$.....ze| 00002230 72 6f 5f 74 65 72 6d 69 6e 61 74 65 28 53 25 29 |ro_terminate(S%)| 00002240 0d 0b ea 31 f2 73 65 74 5f 69 63 6f 6e 5f 73 74 |...1.set_icon_st| 00002250 61 74 65 28 6d 61 69 6e 25 2c 49 25 2c 30 2c 30 |ate(main%,I%,0,0| 00002260 29 3a 20 f4 20 66 6f 72 63 65 20 72 65 64 72 61 |): . force redra| 00002270 77 0d 0b f4 05 e1 0d 0b fe 05 3a 0d 0c 08 1a dd |w.........:.....| 00002280 20 f2 50 72 69 6e 74 65 72 5f 41 6d 65 6e 64 43 | .Printer_AmendC| 00002290 6f 6e 66 69 67 0d 0c 12 21 e7 20 66 65 65 64 5f |onfig...!. feed_| 000022a0 63 6f 6e 66 69 67 25 20 3c 3e 20 66 65 65 64 5f |config% <> feed_| 000022b0 6e 65 77 25 20 8c 0d 0c 1c 1a 20 cf 23 6f 75 74 |new% ..... .#out| 000022c0 5f 66 69 6c 65 25 3d 66 65 65 64 5f 70 74 72 25 |_file%=feed_ptr%| 000022d0 0d 0c 26 1c 20 d5 23 6f 75 74 5f 66 69 6c 65 25 |..&. .#out_file%| 000022e0 2c c3 66 65 65 64 5f 6e 65 77 25 3b 0d 0c 30 1d |,.feed_new%;..0.| 000022f0 20 66 65 65 64 5f 63 6f 6e 66 69 67 25 20 3d 20 | feed_config% = | 00002300 66 65 65 64 5f 6e 65 77 25 0d 0c 3a 05 cd 0d 0c |feed_new%..:....| 00002310 44 25 e7 20 66 6f 72 6d 61 74 5f 63 6f 6e 66 69 |D%. format_confi| 00002320 67 25 20 3c 3e 20 66 6f 72 6d 61 74 5f 6e 65 77 |g% <> format_new| 00002330 25 20 8c 0d 0c 4e 1c 20 cf 23 6f 75 74 5f 66 69 |% ...N. .#out_fi| 00002340 6c 65 25 3d 66 6f 72 6d 61 74 5f 70 74 72 25 0d |le%=format_ptr%.| 00002350 0c 58 1e 20 d5 23 6f 75 74 5f 66 69 6c 65 25 2c |.X. .#out_file%,| 00002360 c3 66 6f 72 6d 61 74 5f 6e 65 77 25 3b 0d 0c 62 |.format_new%;..b| 00002370 21 20 66 6f 72 6d 61 74 5f 63 6f 6e 66 69 67 25 |! format_config%| 00002380 20 3d 20 66 6f 72 6d 61 74 5f 6e 65 77 25 0d 0c | = format_new%..| 00002390 6c 05 cd 0d 0c 76 23 e7 20 74 69 74 6c 65 5f 63 |l....v#. title_c| 000023a0 6f 6e 66 69 67 25 20 3c 3e 20 74 69 74 6c 65 5f |onfig% <> title_| 000023b0 6e 65 77 25 20 8c 0d 0c 80 1b 20 cf 23 6f 75 74 |new% ..... .#out| 000023c0 5f 66 69 6c 65 25 3d 74 69 74 6c 65 5f 70 74 72 |_file%=title_ptr| 000023d0 25 0d 0c 8a 1d 20 d5 23 6f 75 74 5f 66 69 6c 65 |%.... .#out_file| 000023e0 25 2c c3 74 69 74 6c 65 5f 6e 65 77 25 3b 0d 0c |%,.title_new%;..| 000023f0 94 1f 20 74 69 74 6c 65 5f 63 6f 6e 66 69 67 25 |.. title_config%| 00002400 20 3d 20 74 69 74 6c 65 5f 6e 65 77 25 0d 0c 9e | = title_new%...| 00002410 05 cd 0d 0c a8 21 e7 20 6d 6f 6e 6f 5f 63 6f 6e |.....!. mono_con| 00002420 66 69 67 25 20 3c 3e 20 6d 6f 6e 6f 5f 6e 65 77 |fig% <> mono_new| 00002430 25 20 8c 0d 0c b2 1a 20 cf 23 6f 75 74 5f 66 69 |% ..... .#out_fi| 00002440 6c 65 25 3d 6d 6f 6e 6f 5f 70 74 72 25 0d 0c bc |le%=mono_ptr%...| 00002450 1c 20 d5 23 6f 75 74 5f 66 69 6c 65 25 2c c3 6d |. .#out_file%,.m| 00002460 6f 6e 6f 5f 6e 65 77 25 3b 0d 0c c6 1d 20 6d 6f |ono_new%;.... mo| 00002470 6e 6f 5f 63 6f 6e 66 69 67 25 20 3d 20 6d 6f 6e |no_config% = mon| 00002480 6f 5f 6e 65 77 25 0d 0c d0 05 cd 0d 0c da 05 e1 |o_new%..........| 00002490 0d 0c e4 05 3a 0d 0c ee 15 dd 20 f2 50 72 69 6e |....:..... .Prin| 000024a0 74 65 72 5f 49 67 6e 6f 72 65 0d 0c f8 05 e1 0d |ter_Ignore......| 000024b0 0d 02 05 3a 0d 0d 0c 1d dd 20 f2 50 72 69 6e 74 |...:..... .Print| 000024c0 65 72 5f 58 6f 6e 58 6f 66 66 28 66 6c 61 67 25 |er_XonXoff(flag%| 000024d0 29 0d 0d 16 0d e7 20 66 6c 61 67 25 20 8c 0d 0d |)..... flag% ...| 000024e0 20 0c 20 2a 66 78 20 32 2c 32 0d 0d 2a 05 cc 0d | . *fx 2,2..*...| 000024f0 0d 34 0c 20 2a 66 78 20 32 2c 30 0d 0d 3e 05 cd |.4. *fx 2,0..>..| 00002500 0d 0d 48 05 e1 0d 0d 52 05 3a 0d 0d 5c 1d dd 20 |..H....R.:..\.. | 00002510 f2 50 72 69 6e 74 65 72 5f 4c 6f 63 61 74 69 6f |.Printer_Locatio| 00002520 6e 28 6c 6f 63 25 29 0d 0d 66 4d f4 20 54 68 65 |n(loc%)..fM. The| 00002530 20 63 75 72 72 65 6e 74 20 70 72 69 6e 74 65 72 | current printer| 00002540 20 6c 6f 63 61 74 69 6f 6e 20 73 65 74 74 69 6e | location settin| 00002550 67 20 64 6f 65 73 6e 27 74 20 61 66 66 65 63 74 |g doesn't affect| 00002560 20 74 68 69 73 20 70 72 69 6e 74 65 72 20 64 72 | this printer dr| 00002570 69 76 65 72 0d 0d 70 05 e1 0d 0d 7a 05 3a 0d 0d |iver..p....z.:..| 00002580 84 15 dd 20 f2 50 72 69 6e 74 65 72 5f 48 65 61 |... .Printer_Hea| 00002590 64 65 72 0d 0d 8e 25 ea 20 44 25 2c 41 24 2c 65 |der...%. D%,A$,e| 000025a0 64 67 65 25 2c 70 6c 25 2c 70 72 25 2c 70 62 25 |dge%,pl%,pr%,pb%| 000025b0 2c 70 74 25 2c 70 68 25 0d 0d 98 1d 66 6f 72 6d |,pt%,ph%....form| 000025c0 61 74 5f 70 72 69 6e 74 25 3d 66 6f 72 6d 61 74 |at_print%=format| 000025d0 5f 6e 65 77 25 0d 0d a2 1b 74 69 74 6c 65 5f 70 |_new%....title_p| 000025e0 72 69 6e 74 25 3d 74 69 74 6c 65 5f 6e 65 77 25 |rint%=title_new%| 000025f0 0d 0d ac 14 60 65 78 74 25 3d a2 23 69 6e 5f 66 |....`ext%=.#in_f| 00002600 69 6c 65 25 0d 0d b6 1c e7 20 46 74 79 70 65 25 |ile%..... Ftype%| 00002610 3d 4f 75 74 70 75 74 54 79 70 65 25 20 8c 20 e1 |=OutputType% . .| 00002620 0d 0d c0 0a f2 45 73 63 4f 6e 0d 0d ca 0d f2 45 |.....EscOn.....E| 00002630 73 63 28 22 45 22 29 0d 0d d4 44 c8 99 20 22 58 |sc("E")...D.. "X| 00002640 4f 53 5f 52 65 61 64 56 61 72 56 61 6c 22 2c 22 |OS_ReadVarVal","| 00002650 50 44 72 69 76 65 72 24 4c 4a 65 78 74 72 61 22 |PDriver$LJextra"| 00002660 2c 62 75 66 25 2c 62 75 66 73 7a 25 2c 30 2c 33 |,buf%,bufsz%,0,3| 00002670 20 b8 20 2c 2c 44 25 3b 70 6c 25 0d 0d de 35 e7 | . ,,D%;pl%...5.| 00002680 20 28 70 6c 25 20 80 20 31 29 3d 30 20 8c 20 e3 | (pl% . 1)=0 . .| 00002690 20 49 25 3d 30 b8 44 25 2d 31 3a d5 23 6f 75 74 | I%=0.D%-1:.#out| 000026a0 5f 66 69 6c 65 25 2c 62 75 66 25 3f 49 25 3a ed |_file%,buf%?I%:.| 000026b0 0d 0d e8 11 f2 45 73 63 28 22 26 6c 32 36 61 22 |.....Esc("&l26a"| 000026c0 29 0d 0d f2 23 d5 23 6f 75 74 5f 66 69 6c 65 25 |)...#.#out_file%| 000026d0 2c c3 66 6f 72 6d 61 74 5f 70 72 69 6e 74 25 2b |,.format_print%+| 000026e0 22 6f 22 3b 0d 0d fc 31 70 6c 25 3d 70 61 67 65 |"o";...1pl%=page| 000026f0 5f 64 65 73 63 25 28 70 61 67 65 5f 6e 75 6d 62 |_desc%(page_numb| 00002700 65 72 25 2c 70 61 67 65 5f 6c 65 66 74 5f 66 69 |er%,page_left_fi| 00002710 65 6c 64 25 29 0d 0e 06 32 70 72 25 3d 70 61 67 |eld%)...2pr%=pag| 00002720 65 5f 64 65 73 63 25 28 70 61 67 65 5f 6e 75 6d |e_desc%(page_num| 00002730 62 65 72 25 2c 70 61 67 65 5f 72 69 67 68 74 5f |ber%,page_right_| 00002740 66 69 65 6c 64 25 29 0d 0e 10 33 70 62 25 3d 70 |field%)...3pb%=p| 00002750 61 67 65 5f 64 65 73 63 25 28 70 61 67 65 5f 6e |age_desc%(page_n| 00002760 75 6d 62 65 72 25 2c 70 61 67 65 5f 62 6f 74 74 |umber%,page_bott| 00002770 6f 6d 5f 66 69 65 6c 64 25 29 0d 0e 1a 30 70 74 |om_field%)...0pt| 00002780 25 3d 70 61 67 65 5f 64 65 73 63 25 28 70 61 67 |%=page_desc%(pag| 00002790 65 5f 6e 75 6d 62 65 72 25 2c 70 61 67 65 5f 74 |e_number%,page_t| 000027a0 6f 70 5f 66 69 65 6c 64 25 29 0d 0e 24 33 70 68 |op_field%)..$3ph| 000027b0 25 3d 70 61 67 65 5f 64 65 73 63 25 28 70 61 67 |%=page_desc%(pag| 000027c0 65 5f 6e 75 6d 62 65 72 25 2c 70 61 67 65 5f 68 |e_number%,page_h| 000027d0 65 69 67 68 74 5f 66 69 65 6c 64 25 29 0d 0e 2e |eight_field%)...| 000027e0 17 e7 20 66 6f 72 6d 61 74 5f 70 72 69 6e 74 25 |.. format_print%| 000027f0 3d 30 20 8c 0d 0e 38 33 20 60 79 74 25 3d 30 3a |=0 ...83 `yt%=0:| 00002800 c8 95 20 60 79 74 25 2a 37 32 30 30 30 20 81 20 |.. `yt%*72000 . | 00002810 36 20 3c 20 28 70 68 25 2d 70 74 25 29 3a 60 79 |6 < (ph%-pt%):`y| 00002820 74 25 2b 3d 31 3a ce 0d 0e 42 1b 20 70 74 25 3d |t%+=1:...B. pt%=| 00002830 70 68 25 2d 60 79 74 25 2a 37 32 30 30 30 20 81 |ph%-`yt%*72000 .| 00002840 20 36 0d 0e 4c 1e 20 60 78 63 25 3d 28 70 72 25 | 6..L. `xc%=(pr%| 00002850 2d 70 6c 25 29 2a 31 30 20 81 20 37 32 30 30 30 |-pl%)*10 . 72000| 00002860 0d 0e 56 1d 20 60 79 63 25 3d 28 70 74 25 2d 70 |..V. `yc%=(pt%-p| 00002870 62 25 29 2a 36 20 81 20 37 32 30 30 30 0d 0e 60 |b%)*6 . 72000..`| 00002880 22 20 d5 23 6f 75 74 5f 66 69 6c 65 25 2c 22 36 |" .#out_file%,"6| 00002890 64 30 65 22 2b c3 60 79 63 25 2b 22 46 22 3b 0d |d0e"+.`yc%+"F";.| 000028a0 0e 6a 10 20 f2 45 73 63 28 22 28 30 4e 22 29 0d |.j. .Esc("(0N").| 000028b0 0e 74 1d 20 f2 45 73 63 28 22 28 73 30 70 31 30 |.t. .Esc("(s0p10| 000028c0 68 31 32 76 30 73 30 62 33 54 22 29 0d 0e 7e 05 |h12v0s0b3T")..~.| 000028d0 cc 0d 0e 88 2d 20 60 79 74 25 3d 30 3a c8 95 20 |....- `yt%=0:.. | 000028e0 60 79 74 25 2a 37 32 30 30 30 20 81 20 38 20 3c |`yt%*72000 . 8 <| 000028f0 20 70 6c 25 3a 60 79 74 25 2b 3d 31 3a ce 0d 0e | pl%:`yt%+=1:...| 00002900 92 17 20 70 6c 25 3d 60 79 74 25 2a 37 32 30 30 |.. pl%=`yt%*7200| 00002910 30 20 81 20 38 0d 0e 9c 2b 20 60 78 63 25 3d 28 |0 . 8...+ `xc%=(| 00002920 28 70 74 25 2d 70 62 25 29 2a 31 36 2e 36 36 20 |(pt%-pb%)*16.66 | 00002930 81 20 37 32 30 30 30 20 2d 20 31 29 20 81 20 32 |. 72000 - 1) . 2| 00002940 0d 0e a6 1d 20 60 79 63 25 3d 28 70 72 25 2d 70 |.... `yc%=(pr%-p| 00002950 6c 25 29 2a 38 20 81 20 37 32 30 30 30 0d 0e b0 |l%)*8 . 72000...| 00002960 22 20 d5 23 6f 75 74 5f 66 69 6c 65 25 2c 22 38 |" .#out_file%,"8| 00002970 64 30 65 22 2b c3 60 79 63 25 2b 22 46 22 3b 0d |d0e"+.`yc%+"F";.| 00002980 0e ba 10 20 f2 45 73 63 28 22 28 30 4e 22 29 0d |... .Esc("(0N").| 00002990 0e c4 21 20 f2 45 73 63 28 22 28 73 30 70 31 36 |..! .Esc("(s0p16| 000029a0 2e 36 36 68 38 2e 35 76 30 73 30 62 30 54 22 29 |.66h8.5v0s0b0T")| 000029b0 0d 0e ce 05 cd 0d 0e d8 0f f2 45 73 63 28 22 29 |..........Esc(")| 000029c0 30 4e 22 29 0d 0e e2 1c f2 45 73 63 28 22 29 73 |0N").....Esc(")s| 000029d0 30 70 31 30 68 31 32 76 30 73 33 62 33 54 22 29 |0p10h12v0s3b3T")| 000029e0 0d 0e ec 12 d5 23 6f 75 74 5f 66 69 6c 65 25 2c |.....#out_file%,| 000029f0 31 35 0d 0e f6 1a e7 20 74 69 74 6c 65 5f 70 72 |15..... title_pr| 00002a00 69 6e 74 25 20 60 79 74 25 2b 3d 32 0d 0f 00 0c |int% `yt%+=2....| 00002a10 60 70 61 67 65 25 3d 30 0d 0f 0a 0e 60 63 6f 6c |`page%=0....`col| 00002a20 75 6d 6e 25 3d 33 0d 0f 14 0c 60 79 25 3d 60 79 |umn%=3....`y%=`y| 00002a30 74 25 0d 0f 1e 2c 3f 65 72 72 6f 72 5f 62 6c 6b |t%...,?error_blk| 00002a40 25 3d 33 3a c8 99 20 22 4f 53 5f 57 6f 72 64 22 |%=3:.. "OS_Word"| 00002a50 2c 31 34 2c 65 72 72 6f 72 5f 62 6c 6b 25 0d 0f |,14,error_blk%..| 00002a60 28 42 c8 99 20 22 4f 53 5f 43 6f 6e 76 65 72 74 |(B.. "OS_Convert| 00002a70 53 74 61 6e 64 61 72 64 44 61 74 65 41 6e 64 54 |StandardDateAndT| 00002a80 69 6d 65 22 2c 65 72 72 6f 72 5f 62 6c 6b 25 2c |ime",error_blk%,| 00002a90 65 72 72 6f 72 5f 62 6c 6b 25 2b 35 2c 32 35 30 |error_blk%+5,250| 00002aa0 0d 0f 32 1e 60 74 69 6d 65 24 3d a4 72 74 6f 7a |..2.`time$=.rtoz| 00002ab0 28 65 72 72 6f 72 5f 62 6c 6b 25 2b 35 29 0d 0f |(error_blk%+5)..| 00002ac0 3c 0e 44 25 3d 60 78 63 25 2b 31 35 0d 0f 46 23 |<.D%=`xc%+15..F#| 00002ad0 e7 20 62 75 66 73 7a 25 3c 44 25 20 de 20 62 75 |. bufsz%<D% . bu| 00002ae0 66 25 20 44 25 3a 62 75 66 73 7a 25 3d 44 25 0d |f% D%:bufsz%=D%.| 00002af0 0f 50 0f 60 74 65 78 74 25 3d 62 75 66 25 0d 0f |.P.`text%=buf%..| 00002b00 5a 0e 24 60 74 65 78 74 25 3d 22 22 0d 0f 64 0b |Z.$`text%=""..d.| 00002b10 f2 45 73 63 4f 66 66 0d 0f 6e 05 e1 0d 0f 78 05 |.EscOff..n....x.| 00002b20 3a 0d 0f 82 15 dd 20 f2 50 72 69 6e 74 65 72 5f |:..... .Printer_| 00002b30 46 6f 6f 74 65 72 0d 0f 8c 0a f2 45 73 63 4f 6e |Footer.....EscOn| 00002b40 0d 0f 96 0d f2 45 73 63 28 22 45 22 29 0d 0f a0 |.....Esc("E")...| 00002b50 0b f2 45 73 63 4f 66 66 0d 0f aa 05 e1 0d 0f b4 |..EscOff........| 00002b60 05 3a 0d 0f be 19 dd 20 a4 50 72 69 6e 74 65 72 |.:..... .Printer| 00002b70 5f 53 65 6e 64 28 6c 65 6e 25 29 0d 0f c8 0a f2 |_Send(len%).....| 00002b80 45 73 63 4f 6e 0d 0f d2 0e ea 20 4c 25 2c 66 6c |EscOn..... L%,fl| 00002b90 61 67 25 0d 0f dc 0b 66 6c 61 67 25 3d a3 0d 0f |ag%....flag%=...| 00002ba0 e6 1a e7 20 46 74 79 70 65 25 3d 4f 75 74 70 75 |... Ftype%=Outpu| 00002bb0 74 54 79 70 65 25 20 8c 0d 0f f0 1a 20 4c 25 3d |tType% ..... L%=| 00002bc0 60 65 78 74 25 20 2d 20 8f 23 69 6e 5f 66 69 6c |`ext% - .#in_fil| 00002bd0 65 25 0d 0f fa 15 20 66 6c 61 67 25 3d 28 6c 65 |e%.... flag%=(le| 00002be0 6e 25 3e 3d 4c 25 29 0d 10 04 0e 20 e7 20 66 6c |n%>=L%).... . fl| 00002bf0 61 67 25 20 8c 0d 10 0e 29 20 20 c8 99 20 22 4f |ag% ....) .. "O| 00002c00 53 5f 47 42 50 42 22 2c 20 34 2c 20 69 6e 5f 66 |S_GBPB", 4, in_f| 00002c10 69 6c 65 25 2c 20 62 75 66 25 2c 20 4c 25 0d 10 |ile%, buf%, L%..| 00002c20 18 2a 20 20 c8 99 20 22 4f 53 5f 47 42 50 42 22 |.* .. "OS_GBPB"| 00002c30 2c 20 32 2c 20 6f 75 74 5f 66 69 6c 65 25 2c 20 |, 2, out_file%, | 00002c40 62 75 66 25 2c 20 4c 25 0d 10 22 06 20 cc 0d 10 |buf%, L%..". ...| 00002c50 2c 2b 20 20 c8 99 20 22 4f 53 5f 47 42 50 42 22 |,+ .. "OS_GBPB"| 00002c60 2c 20 34 2c 20 69 6e 5f 66 69 6c 65 25 2c 20 62 |, 4, in_file%, b| 00002c70 75 66 25 2c 20 6c 65 6e 25 0d 10 36 2c 20 20 c8 |uf%, len%..6, .| 00002c80 99 20 22 4f 53 5f 47 42 50 42 22 2c 20 32 2c 20 |. "OS_GBPB", 2, | 00002c90 6f 75 74 5f 66 69 6c 65 25 2c 20 62 75 66 25 2c |out_file%, buf%,| 00002ca0 20 6c 65 6e 25 0d 10 40 06 20 cd 0d 10 4a 05 cc | len%..@. ...J..| 00002cb0 0d 10 54 12 20 4c 25 3d a9 24 28 60 74 65 78 74 |..T. L%=.$(`text| 00002cc0 25 29 0d 10 5e 34 20 e7 20 4c 25 3d 30 20 66 6c |%)..^4 . L%=0 fl| 00002cd0 61 67 25 3d a4 4c 69 6e 65 3a 4c 25 3d a9 24 28 |ag%=.Line:L%=.$(| 00002ce0 60 74 65 78 74 25 29 3a e7 20 66 6c 61 67 25 20 |`text%):. flag% | 00002cf0 6c 65 6e 25 3d 30 0d 10 68 16 20 e7 20 6c 65 6e |len%=0..h. . len| 00002d00 25 3c 4c 25 20 4c 25 3d 6c 65 6e 25 0d 10 72 36 |%<L% L%=len%..r6| 00002d10 20 c8 99 20 22 4f 53 5f 47 42 50 42 22 2c 20 32 | .. "OS_GBPB", 2| 00002d20 2c 20 6f 75 74 5f 66 69 6c 65 25 2c 20 60 74 65 |, out_file%, `te| 00002d30 78 74 25 2c 20 4c 25 20 b8 20 2c 2c 60 74 65 78 |xt%, L% . ,,`tex| 00002d40 74 25 0d 10 7c 05 cd 0d 10 86 0b f2 45 73 63 4f |t%..|.......EscO| 00002d50 66 66 0d 10 90 0a 3d 66 6c 61 67 25 0d 10 9a 05 |ff....=flag%....| 00002d60 3a 0d 10 a4 0e dd 20 a4 68 65 78 28 42 25 29 0d |:..... .hex(B%).| 00002d70 10 ae 24 e7 20 42 25 3c 31 30 20 8c 20 3d 97 22 |..$. B%<10 . =."| 00002d80 30 22 2b 42 25 20 8b 20 3d 97 22 41 22 2d 31 30 |0"+B% . =."A"-10| 00002d90 2b 42 25 0d 10 b8 05 3a 0d 10 c2 0b dd 20 a4 4c |+B%....:..... .L| 00002da0 69 6e 65 0d 10 cc 0b ea 20 43 25 2c 50 25 0d 10 |ine..... C%,P%..| 00002db0 d6 0f 60 74 65 78 74 25 3d 62 75 66 25 0d 10 e0 |..`text%=buf%...| 00002dc0 0a c8 8e 20 b9 20 ca 0d 10 ea 12 20 c9 20 60 63 |... . ..... . `c| 00002dd0 6f 6c 75 6d 6e 25 3c 32 3a 0d 10 f4 0c 20 20 60 |olumn%<2:.... `| 00002de0 78 25 3d 2d 31 0d 10 fe 16 20 20 e7 20 ac 20 c5 |x%=-1.... . . .| 00002df0 23 69 6e 5f 66 69 6c 65 25 20 8c 0d 11 08 08 20 |#in_file% ..... | 00002e00 20 20 f5 0d 11 12 15 20 20 20 20 43 25 3d 9a 23 | ..... C%=.#| 00002e10 69 6e 5f 66 69 6c 65 25 0d 11 1c 0e 20 20 20 20 |in_file%.... | 00002e20 60 78 25 2b 3d 31 0d 11 26 27 20 20 20 fd 20 43 |`x%+=1..&' . C| 00002e30 25 3c 3e 33 32 20 84 20 60 78 25 3d 60 78 63 25 |%<>32 . `x%=`xc%| 00002e40 20 84 20 c5 23 69 6e 5f 66 69 6c 65 25 0d 11 30 | . .#in_file%..0| 00002e50 1e 20 20 20 cf 23 69 6e 5f 66 69 6c 65 25 3d 8f |. .#in_file%=.| 00002e60 23 69 6e 5f 66 69 6c 65 25 2d 31 0d 11 3a 07 20 |#in_file%-1..:. | 00002e70 20 cd 0d 11 44 3e 20 20 24 60 74 65 78 74 25 3d | ...D> $`text%=| 00002e80 bd 28 32 37 29 2b 22 26 61 22 2b c3 28 60 78 25 |.(27)+"&a"+.(`x%| 00002e90 2b 60 63 6f 6c 75 6d 6e 25 2a 28 60 78 63 25 2b |+`column%*(`xc%+| 00002ea0 31 29 29 2b 22 63 22 2b c3 60 79 25 2b 22 52 22 |1))+"c"+.`y%+"R"| 00002eb0 0d 11 4e 16 20 20 60 74 65 78 74 25 2b 3d a9 24 |..N. `text%+=.$| 00002ec0 60 74 65 78 74 25 0d 11 58 0f 20 20 50 25 3d 60 |`text%..X. P%=`| 00002ed0 74 65 78 74 25 0d 11 62 16 20 20 e7 20 ac 20 c5 |text%..b. . . .| 00002ee0 23 69 6e 5f 66 69 6c 65 25 20 8c 0d 11 6c 08 20 |#in_file% ...l. | 00002ef0 20 20 f5 0d 11 76 15 20 20 20 20 43 25 3d 9a 23 | ...v. C%=.#| 00002f00 69 6e 5f 66 69 6c 65 25 0d 11 80 1c 20 20 20 20 |in_file%.... | 00002f10 e7 20 43 25 3e 3d 33 32 20 80 20 43 25 3c 3e 31 |. C%>=32 . C%<>1| 00002f20 32 37 20 8c 0d 11 8a 24 20 20 20 20 20 3f 60 74 |27 ....$ ?`t| 00002f30 65 78 74 25 3d 43 25 3a 60 74 65 78 74 25 2b 3d |ext%=C%:`text%+=| 00002f40 31 3a 60 78 25 2b 3d 31 0d 11 94 09 20 20 20 20 |1:`x%+=1.... | 00002f50 cc 0d 11 9e 1c 20 20 20 20 20 e7 20 43 25 3c 3e |..... . C%<>| 00002f60 31 30 20 80 20 43 25 3c 3e 31 32 20 8c 0d 11 a8 |10 . C%<>12 ....| 00002f70 28 20 20 20 20 20 20 3f 60 74 65 78 74 25 3d 32 |( ?`text%=2| 00002f80 37 3a 24 28 60 74 65 78 74 25 2b 31 29 3d 22 28 |7:$(`text%+1)="(| 00002f90 73 33 42 3c 22 0d 11 b2 35 20 20 20 20 20 20 60 |s3B<"...5 `| 00002fa0 74 65 78 74 25 3f 36 3d a4 68 65 78 28 43 25 3e |text%?6=.hex(C%>| 00002fb0 3e 34 29 3a 60 74 65 78 74 25 3f 37 3d a4 68 65 |>4):`text%?7=.he| 00002fc0 78 28 43 25 20 80 20 31 35 29 0d 11 bc 24 20 20 |x(C% . 15)...$ | 00002fd0 20 20 20 20 24 28 60 74 65 78 74 25 2b 38 29 3d | $(`text%+8)=| 00002fe0 22 3e 22 2b bd 32 37 2b 22 28 73 30 42 22 0d 11 |">"+.27+"(s0B"..| 00002ff0 c6 1b 20 20 20 20 20 20 60 74 65 78 74 25 2b 3d |.. `text%+=| 00003000 31 34 3a 60 78 25 2b 3d 34 0d 11 d0 0a 20 20 20 |14:`x%+=4.... | 00003010 20 20 cd 0d 11 da 09 20 20 20 20 cd 0d 11 e4 2f | ..... ..../| 00003020 20 20 20 fd 20 43 25 3d 31 30 20 84 20 43 25 3d | . C%=10 . C%=| 00003030 31 32 20 84 20 60 78 25 3e 3d 60 78 63 25 20 84 |12 . `x%>=`xc% .| 00003040 20 c5 23 69 6e 5f 66 69 6c 65 25 0d 11 ee 07 20 | .#in_file%.... | 00003050 20 cd 0d 11 f8 3b 20 20 e7 20 50 25 3d 60 74 65 | ....; . P%=`te| 00003060 78 74 25 20 8c 20 24 62 75 66 25 3d 22 22 3a f4 |xt% . $buf%="":.| 00003070 20 73 65 6e 64 20 6e 6f 74 68 69 6e 67 20 66 6f | send nothing fo| 00003080 72 20 62 6c 61 6e 6b 20 6c 69 6e 65 73 0d 12 02 |r blank lines...| 00003090 10 20 20 3f 60 74 65 78 74 25 3d 31 33 0d 12 0c |. ?`text%=13...| 000030a0 11 20 20 60 74 65 78 74 25 3d 62 75 66 25 0d 12 |. `text%=buf%..| 000030b0 16 0c 20 20 60 79 25 2b 3d 31 0d 12 20 26 20 20 |.. `y%+=1.. & | 000030c0 e7 20 60 79 25 3e 3d 60 79 63 25 20 60 79 25 3d |. `y%>=`yc% `y%=| 000030d0 60 79 74 25 3a 60 63 6f 6c 75 6d 6e 25 2b 3d 31 |`yt%:`column%+=1| 000030e0 0d 12 2a 51 20 20 e7 20 c5 23 69 6e 5f 66 69 6c |..*Q . .#in_fil| 000030f0 65 25 20 84 20 28 66 6f 72 6d 61 74 5f 70 72 69 |e% . (format_pri| 00003100 6e 74 25 3d 30 20 80 20 60 63 6f 6c 75 6d 6e 25 |nt%=0 . `column%| 00003110 3d 31 29 20 84 20 43 25 3d 31 32 20 8c 20 60 79 |=1) . C%=12 . `y| 00003120 25 3d 60 79 74 25 3a 60 63 6f 6c 75 6d 6e 25 3d |%=`yt%:`column%=| 00003130 32 0d 12 34 12 20 c9 20 60 63 6f 6c 75 6d 6e 25 |2..4. . `column%| 00003140 3d 32 3a 0d 12 3e 11 20 20 24 60 74 65 78 74 25 |=2:..>. $`text%| 00003150 3d bd 31 32 0d 12 48 10 20 20 60 63 6f 6c 75 6d |=.12..H. `colum| 00003160 6e 25 3d 33 0d 12 52 1d 20 20 e7 20 c5 23 69 6e |n%=3..R. . .#in| 00003170 5f 66 69 6c 65 25 20 60 63 6f 6c 75 6d 6e 25 3d |_file% `column%=| 00003180 34 0d 12 5c 12 20 c9 20 60 63 6f 6c 75 6d 6e 25 |4..\. . `column%| 00003190 3d 33 3a 0d 12 66 0f 20 20 60 70 61 67 65 25 2b |=3:..f. `page%+| 000031a0 3d 31 0d 12 70 14 20 20 24 60 74 65 78 74 25 3d |=1..p. $`text%=| 000031b0 a4 74 69 74 6c 65 0d 12 7a 10 20 20 60 63 6f 6c |.title..z. `col| 000031c0 75 6d 6e 25 3d 30 0d 12 84 12 20 c9 20 60 63 6f |umn%=0.... . `co| 000031d0 6c 75 6d 6e 25 3d 34 3a 0d 12 8e 0d 20 20 66 6c |lumn%=4:.... fl| 000031e0 61 67 25 3d b9 0d 12 98 05 cb 0d 12 a2 0b 3d 20 |ag%=..........= | 000031f0 66 6c 61 67 25 0d 12 ac 05 3a 0d 12 b6 0c dd 20 |flag%....:..... | 00003200 a4 74 69 74 6c 65 0d 12 c0 0b ea 20 6e 61 6d 65 |.title..... name| 00003210 24 0d 12 ca 5e e7 20 66 69 6c 65 6e 61 6d 24 3d |$...^. filenam$=| 00003220 22 3c 50 72 69 6e 74 65 72 24 53 63 72 61 70 3e |"<Printer$Scrap>| 00003230 22 20 84 20 66 69 6c 65 6e 61 6d 24 3d 22 50 72 |" . filenam$="Pr| 00003240 69 6e 74 65 72 24 54 65 6d 70 22 20 8c 20 6e 61 |inter$Temp" . na| 00003250 6d 65 24 3d 73 61 76 65 5f 6e 61 6d 65 24 20 8b |me$=save_name$ .| 00003260 20 6e 61 6d 65 24 3d 66 69 6c 65 6e 61 6d 24 0d | name$=filenam$.| 00003270 12 d4 14 e7 20 74 69 74 6c 65 5f 70 72 69 6e 74 |.... title_print| 00003280 25 20 8c 0d 12 de 5f 20 3d bd 28 32 37 29 2b 22 |% ...._ =.(27)+"| 00003290 26 61 30 63 22 2b c3 28 60 79 74 25 2d 32 29 2b |&a0c"+.(`yt%-2)+| 000032a0 22 52 22 2b bd 28 31 34 29 2b 22 50 61 67 65 20 |"R"+.(14)+"Page | 000032b0 22 2b c3 60 70 61 67 65 25 2b 22 20 20 20 46 69 |"+.`page%+" Fi| 000032c0 6c 65 20 22 2b 6e 61 6d 65 24 2b 22 20 20 20 44 |le "+name$+" D| 000032d0 61 74 65 20 22 2b 60 74 69 6d 65 24 2b bd 28 31 |ate "+`time$+.(1| 000032e0 35 29 0d 12 e8 05 cc 0d 12 f2 09 20 3d 20 22 22 |5)......... = ""| 000032f0 0d 12 fc 05 cd 0d 13 06 05 3a 0d 13 10 0e dd 20 |.........:..... | 00003300 f2 45 73 63 28 41 24 29 0d 13 1a 19 d5 23 6f 75 |.Esc(A$).....#ou| 00003310 74 5f 66 69 6c 65 25 2c bd 28 32 37 29 2b 41 24 |t_file%,.(27)+A$| 00003320 3b 0d 13 24 05 e1 0d 13 2e 0e 3e 2a 46 58 20 32 |;..$......>*FX 2| 00003330 32 39 2c 31 0d ff |29,1..| 00003336