Debian Codegraph @

CHANGES

raw
1 Version ifhp-3.5.20 - Tue Oct 5 08:09:18 PDT 2004
2
3
4 Version ifhp-3.5.19 - Thu Sep 30 16:16:28 PDT 2004
5
6 Grrr... changed the default 'Inputfile' value to 'STDIN'
7 so it would print nicely, but this value is also used as
8 a parameter to the file program. Grrr... added another
9 test to the regression tests. This is getting silly.
10 Patrick Powell
11
12
13 Version ifhp-3.5.18 - Thu Jul 22 10:19:09 PDT 2004
14
15 More fixes/improvements to LED display support.
16 (Patch from: Hermann Lauer <hermann.lauer _AT_ IWR.Uni-Heidelberg.De>)
17 Opening the 'file' name and not /dev/fd/0. This cause problem
18 when running with LPRng and a -p format.
19 (Reported by: Justus J. Addiss <jjaddis _AT_ mmm.com>
20 Changed email names in various lists, etc. from <jo@host> to <jo _AT_ host>.
21 Modified some of the /dev/fd/0 device entries in ifhp.conf to be
22 '-' so that older versions of GhostScript do not have problems
23
24 Version ifhp-3.5.17 - Tue Feb 3 17:25:42 PST 2004
25
26 GCC extensions are unloved by some ANSI compilers.
27 (Fix and Patches Courtesy: Jim Trocki <trockij _AT_ transmeta.com>)
28
29 Patch for ifhp which separates generation of jobnames
30 from generation of display names. I see no reason why
31 displaynames shouldn't contain for example ':'
32 (Handy for displaying times...)
33 (Patch from: Hermann Lauer <hermann.lauer _AT_ IWR.Uni-Heidelberg.De>)
34
35 Added:
36 Phaser 7700 (with amendments to to SNMP monitoring)
37 (Courtesy of: Stuart Marshall <stuart _AT_ igpp.ucllnl.org>)
38
39 Version ifhp-3.5.16 - Fri Jan 2 07:28:39 PST 2004
40
41 The file conversion table for the 'DEFAULT'
42 printer had a2ps producing PCL output. This should have
43 been PostScript output.
44
45 Version ifhp-3.5.15 - Wed Dec 17 16:48:50 PST 2003
46
47 ifhp.conf file was missing default ps_converter entry.
48
49 Typeo in command argument parsing fixed.
50
51
52 Version ifhp-3.5.14 - Tue Dec 2 15:43:20 PST 2003
53
54 If a printcap entry is provided as the PRINTCAP_ENTRY environment
55 variable, it is used to initialize the IFHP configuration options.
56 It turns out that the only option in conflict is the IFHP 'ps'
57 (postscript) option and the LPD ps (printer status file) option.
58 Only the 'lp' and options longer than two characters are used.
59
60 You still need to use 'ifhp=...' for specifying options page
61 control or other options that are order sensitive. You can put
62 all of the other IFHP options that normally are in the ifhp.conf
63 entry into the printcap file.
64
65 The order of processing of options is:
66 a) printcap - config extracted
67 b) printcap - ifhp=... from printcap processed
68 b) command line -T options extracted
69 c) value of 'config' and 'model' found from current set of options
70 d) ifhp.conf read for model information
71 e) printcap (options > 2 chars long), ifhp=... and -T options reprocessed
72
73 The page and formatting options must still be specified in the
74 :ifhp entry for proper processing.
75
76 OLD:
77 lp:...:ifhp=model=hp5si,status@,letter
78 OLD:
79 lp:...:model=hp5si:status@:ifhp=letter
80
81
82 Added a fixup so that a PJL value of '1' matches 'on' and
83 '0' matches 'off'.
84
85 Discovered that the Fix_option_str value was being discarded
86 rather than used when looking up options of the form: xx=\%s{key}
87 Also, expansions of the form name = [ value_\%s{id} ] were not
88 being handled correctly.
89
90 Added the baseline code for using ifhp options found in PPD files.
91
92 Added support for Sharp AR-507 and other printers
93
94 Version ifhp-3.5.13 - Mon Nov 17 08:40:15 PST 2003
95
96 The ifhp-3.5.12 distributions that were put up on various web
97 sites were incomplete. Rather than try find and update them
98 this version is simply a repackaging of the old version.
99
100
101 Version ifhp-3.5.12 - Fri Nov 14 13:54:02 PST 2003
102
103 changed (char **) casts to (void *) casts
104
105 ** SEE README.SNMP for details **
106 Added snmp_printer_status to get printer status via SNMP. Based
107 on original check_printer_status script by John Perkins
108 <john _AT_ cs.wisc.edu>. Tested with several printers. Added README.SNMP
109 to the top level README files. This can be used to help in
110 reporting page counts for HP4100i printers, among others.
111
112 WARNING: if you plan to use SNMP monitoring, then use the APPSOCKET
113 option as well. This will cause connections to the printer to close
114 and the SNMP agent will then indicate that the printer is 'idle'. If
115 the connection is open, then several test printers reported their
116 status as 'busy' rather than 'idle'.
117
118 # if you want to use SNMP monitoring then use the snmp_printer_status
119 # program. This program will report the status of a printer
120 # by polling it using SNMP. Status will be read from both the
121 # back channel (i.e. - connection to printer) and from the SNMP
122 # monitoring program. The 'snmp_dev' device is determinded by the
123 # ifhp program; it depends on the appsocket and other options
124
125 snmp_monitor@
126 snmp_program=@FILTER_DIR@/snmp_printer_status -h "\%s{snmp_dev}" \
127 -m "\%s{snmp_model}" -f "\%s{snmp_program_conf}"
128 snmp_program_conf=@FILTER_DIR@/snmp_printer_status.conf
129
130 # the snmp_dev is a 'pseudo-variable'. If it is set
131 # explictily by -Tsnmp_dev=IPADDR, else a printcap
132 # :ifhp=...,snmp_dev=IPADDR, option, and finally the
133 # printcap :lp=IPADDR%port value is used. The first one
134 # found sets snmp_dev to IPADDR.
135
136 # The snmp_printer_status.conf file has entries to specify the
137 # SNMP Object Identifiers (OIDs) for variuos printers
138 # The [model default] entry specifies a standard set of Printer MIB
139 # OIDs to for status.
140 # See the sample snmp_printer_status.conf file or the snmp_printer_status
141 # man page for details.
142
143 snmp_model=default
144
145 # when we get status, we look for the following words in the
146 # status to indicate that the printer is ready and/or idle.
147 # Spaces in the status are replaced by underscores if necessary
148
149 snmp_sync_status=ready power_save_mode
150 snmp_end_status=ready idle
151
152 # There are some totally brain dead printers that will NOT report
153 # status correctly until a timeout period after the last close or
154 # job sent. These are evil and ugly, but we love them anyways.
155 # Delay snmp_wait_after_close seconds when you are using Appsocket
156 #
157 snmp_wait_after_close=1
158
159 # to use SNMP for sync purposes, set:
160 # sync=snmp
161 # to use SNMP for pagecount purposes, set:
162 # pagecount=snmp
163 # to use SNMP for waitend purposes, set:
164 # waitend=snmp
165
166 The snmp_printer_status program assumes that the device has some basic
167 Printer-MIB functionality. If it does not, then you cannot obtain
168 status reliably.
169
170 Added the 'close_connection' option that closes appsocket connections
171 after a transfer. Apparently needed for some printers that do not
172 recognize an end of job until they get a closed connection.
173
174 In order to handle broken PJL status reporting from some printers, added
175 the status_ignore and status_translate options. From the ifhp.conf file:
176 ## Status information is converted into strings of the form
177 ## key=statusvalue.
178 ## The following keys are assumed to be valuable:
179 ## status - current device status
180 ## error - device error
181 ## warn - device error
182 ## pagecount - device pagecount
183 ## Other status will be shown in the log file but not used,
184 ## and only when it changes.
185 ## Ignore status reported with the following keys.
186 ## These match the first characters of the keys. You can
187 ## use _ to stand for blanks. Match is done using globmatch
188 ## status_ignore= markerlifecount prt*stuff
189 ##
190 ##
191 ## Under some very bizzare circumstances such as broken PJL
192 ## implementations, you may need to translate the status keys from
193 ## the vendor supplied to the ones needed above.
194 ## Use status_translate to do the translation. The entries have the
195 ## oldvalue=newvalue
196 ## These match the first characters of the keys. You can
197 ## use _ to stand for blanks. Match is done using globmatch
198 ## status_translate= id=hostid *status=status
199 ##
200
201
202 Added foomatic support:
203
204 lp:
205 :ifhp=foomatic
206 :ppd=/usr/share.../ppdfile
207 OR
208 lp:
209 :ifhp=foomatic,ppd=/usr/share/.../ppdfile
210 This will use the foomatic-rip program to process PostScript files.
211 This is preliminary support and will be extended in later releases.
212
213 Updated the ifhp.conf file for HP4100:
214 [ hp4100 hp4200 hp4300 ]
215 tc=hp4000_pcl
216 pjl_waitend_byjobname
217 (Thanks to: qiang lee <shijialist _AT_ yahoo.ca>)
218
219 Added the ability to specify the PJL SET variable values.
220 MANUALFEED=ENUMERATED;OFF,ON
221 ORIENTATION=PORTRAIT!ENUMERATED;PORTRAIT,LANDSCAPE
222
223
224 Version ifhp-3.6.0 - Fri Sep 5 10:36:39 PDT 2003
225 Fixed up the 'ifhpXXXX' temp file problem and added HPGL2 support.
226 (Thanks to Sam Lown <samuel.lown _AT_ cern.ch>)
227
228 There is now a 'send_job_rw_timeout' option that sets a maximum
229 non-responding/non-accepting data time for a printer. This allows
230 you to set a timeout for the maximum time that you expect a normal
231 job to take and gives you a way to try to manage printers that
232 will lock up with an hard error when fed a bad PostScript, PCL file,
233 network overload, or SNMP packet.
234
235 However, it also will cause printers which, when they are off line or
236 or when they have an out of paper condition, etc., perhaps to be
237 identified as a bad printer. It is a compromise and should only
238 be used for this particuar situation.
239
240 Fixed configure so that it now handles 'enable-OPTION'
241 and 'disable-OPTION' correctly.
242
243 Added the 'pjl_waitend_byjobname' patch. Briefly, this patch
244 causes IFHP not to send a dummy job and to wait for the end of
245 the original job using the PJL JOB facility. This may not work
246 for some printers that do job spooling, and will send the end
247 of job before the job is finished. It may be useful on other
248 printers where this is not a problem.
249 (Clever idea by: "Raymond M. Reskusich" <reskusic _AT_ uiuc.edu>)
250
251
252 Added some more agressive 64 bit file system support as suggested.
253 (Neat suggestion by: Ben Woodard <woodard _AT_ redhat.com>)
254
255 HP DesignJet 800ps support by
256 Lars Kellogg-Stedman <lars _AT_ deas.harvard.edu>
257
258
259 Version ifhp-3.5.10 - Fri Jul 12 16:21:49 PDT 2002
260 The top level install (make install) did not install
261 the utilities correctly on systems that did not have a
262 BSD install.
263 (Reported first by: Jason Keltz <jas _AT_ cs.yorku.ca>)
264
265 Pdf2gs_converter should be pdf2ps_converter in ifhp.conf.in
266 file.
267
268 The code for += did not handle tc= inclusions correctly.
269 (Side effect of this reported by: Jason Keltz <jas _AT_ cs.yorku.ca>)
270
271 Updated some PostScript definitions for some printers.
272
273 configure now uses AC_MSG_WARN. The check for /dev/fd/xx
274 now issues warning that PDF conversion may not work for
275 the default PDF to PostScript conversion.
276
277 The \%s{inputfile} option expands to:
278 command line -e value (compatible with LPRng passing file
279 name as the value of the -e option)
280 OR /dev/fd/0 if -e value not defined
281 OR - if /dev/fd facility is not available.
282 This solves a problem with PDF to PostScript conversion, where
283 the PDF conversion was done using GhostScript and GhostScript
284 needed to perform a file seek operation, and the '-' (stdinput)
285 specifier was deemed to be 'unseekable'. Sigh... So we have
286 this fix in ifhp.
287
288 Updated the CREATE_CONFIGURE and STANDARD_configuration scripts.
289 Using the automake, autoconf facilities.
290
291 Version ifhp-3.5.9 - Sat Jun 22 14:11:15 PDT 2002
292 Fixed up tc parsing so it handles tc= [ xx ] by not expanding
293 the xx entries (and tc=[xx], etc. as well).
294
295 The configure tests for detecting the version of ghostscript
296 were incorrect. This really screwed up conversions.
297
298 Installing the UTILS in FILTER_DIR/UTILS. This makes them
299 available for use.
300
301 Added a README.TESTING file. This contains notes on how to use
302 the sendhp.sh script for testing.
303
304 Missing initialization for 'pagecount_prog' in main();
305 Fixed up problem with ifhp error message printing.
306 (Found and patched by: Thierry Besancon <Thierry.Besancon _AT_ paris4.sorbonne.fr>)
307
308 Added '-dPARANOIDSAFER' to ghostscript flags and made the security
309 check cause an abort. The ghostscript problems should be fixed
310 by now.
311
312 Added Canon imageRUNNER 550/600 ifhp.conf entry. This printer is
313 REALLY unusual. May extend the printcap entry in the future.
314
315 Couple of minor fixes to ifhp.conf
316 (Patches by: Steven J. Birt <sbirt _AT_ sedona.ch.intel.com>)
317
318 Version ifhp-3.5.8 - Mon Apr 1 17:14:06 PST 2002
319
320 New 'Appsocket' support and configuration
321 lp:
322 :lp=host%port
323 :ifhp=model=xxx,appsocket
324 :filter=/.../ifhp
325 #:of=/.../ifhp
326
327 You do not need to have /dev/null now, you can have LPD
328 open the connection, and then IFHP will simply use the
329 connection information. This greatly simplifies things.
330 Note that you MUST use ifhp 3.5.8 or later for this to work.
331
332 The 'Read_status' code has been savagely attacked,
333 once again, and the varous insane combinations of
334 devices that have read return 0 or -1 when there is
335 no data has been worked at again.
336 Also, the code for parsing return status has been
337 looked at and the odd case of PostScript printers that
338 return a 'print' value WITHOUT a CR/LF has been attempted
339 to be solved... I hope this is the last time we go around
340 the rose bush on this one.
341
342 Also, the Xerox/Phaser 5400 has been added. This device
343 has the obnoxious habit of returning a JOB ID whose key (ID)
344 conflicts with the INFO ID key (ID). So we ignore any
345 ID keys/value pairs unless they are returned by the 'PJL INFO'
346 status.
347
348 hp4l entry modified, Using 'laserjet', the printed area is shifted
349 to the right on a 'portrait letter' piece of paper. Using 'ljet4',
350 it prints centered. I.e., it looks better.
351 (From: Luca Filipozzi <lfilipoz _AT_ debian.org>)
352
353 ps_eoj, ps_eoj_at_start, ps_eoj_at_end now work correctly
354
355 Once again the 'Appsocket' stuff rears its ugly head.
356 Added a 'shutdown(1,SHUT_RW)' to FORCE the &*()()*& connection
357 to the printer to be clobbered. Grrrr.. Also, added a check
358 for the special case when appsocket is specified and you
359 are using the OF filter (banner printing).
360
361 STATUS HELPERS
362 sync=|/path_to_program
363 pagecount=|/path_to_program
364 waitend=|/path_to_program
365
366 The sync, pagecount, and waitend functions can be implemented by
367 running a 'status helper' program. These programs are run with:
368 STDIN = printing device
369 STDOUT = STDERR = status
370
371 Information written to STDOUT/STDERR should have the format: key=value
372 as for PJL status information. The same processing is done for this
373 information as for the PJL USTATUS information, so you can return
374 an error code (CODE=xxxx) value that will be treated as a PJL USTATUS
375 error.
376
377 The following are 'special' keys:
378 KEY VALUE
379 sync 1 (or nonzero) - sync is done
380 waitend 1 (or nonzero) - waitend is done
381 pagecount nnn - pagecounter value
382
383 Note: you can use a single program to do all 3 operations,
384 in which case simply write 3 lines with sync, waitend, and pageount
385 values, i.e:
386 sync=1
387 pagecount=205667
388 waitend=1
389
390 Alternatively, if the sync,waitend, or pagecount
391 program exits with 0 status, then success is assumed,
392 otherwise IFHP will exit with an error status.
393 Exit code:
394 JSUCC - 0 - success
395 JFAIL - 1 - fail with retry later
396 JABORT - any other code
397
398 Added special case parsing for PostScript printers
399 that do not put NL (\n) at the end of error messages.
400 Now handles %%[ status: xxx ]%%%%[ stuff: xxx ]%%
401 correctly as
402 %%[ status: xxx ]%%
403 %%[ stuff: xxx ]%%
404 (Pointed out by a Netatalk user:
405 Rob Joyce <robjoyce _AT_ ee.princeton.edu)
406
407 I have added some fine grain control to pagecount_poll
408 operations:
409 The page count will be sampled 'pagecount_poll' times (0 or 1 is once)
410 until it is stable, at pagecount_interval seconds.
411 The pagecount_poll is for desperation only
412 - default is pagecount_poll
413 - pagecount_poll_start specifies number of polls at start
414 - pagecount_poll_end specifies number of polls at end
415 You can specify a non-zero pagecount timeout that will limit
416 the amount of time that you try to get pagecounts
417 This is dangerous if you are trying to get status by polling
418 However, if your printer goes off line, then you may have
419 similar problems.
420 # pagecount_poll=5 default
421 # pagecount_poll_end=5 number of polls at start
422 # pagecount_poll_start=1 number of polls at end
423 # pagecount_interval=1 interval to poll
424 # pagecount_timeout=0 timeout for pagecount
425
426 Added a new device: ps_appletalk
427 This handles the case where you talk to a PostScript
428 printer via the netatlk 'pap' routine. The connected printer
429 seems to not handle ^D or ^T, so you have to not put them there.
430 It also seems that the printers may/will get pagecount and status
431 information BUT they do not correctly indicate end of job.
432 In this case you need to do pagecounting via polling:
433 lp:ifhp=model=ps,ps_eoj@,ps_ctrl_t@,pagecount_poll_start=1,pagecount_poll_end=5
434
435 Version ifhp-3.5.7 - Tue Mar 5 20:46:29 PST 2002
436
437 Lots of typos in the HOWTO fixed.
438 (Mistakes pointed out and suggested changes by:
439 Hans Peter Verne <h.p.verne _AT_ usit.uio.no>)
440
441 Fixed up STRIP in configure.in so that it does not collide
442 with autoconf STRIP
443
444 Added a '--with-pagesize' option to allow you to specify default
445 page size. Currently only selects default size with PCL.
446
447 Added a '--with-fontdir' to specify the font directories.
448 The default directories are now:
449 default: FONT_DIR=${libexecdir}/fonts OR
450 /usr/libexec/fonts/
451 pcl_fontdir = ${FONT_DIR}/pcl
452 ps_fontdir = ${FONT_DIR}/ps
453 pjl_fontdir = ${FONT_DIR}/pjl
454
455 Note: you can always add these to the END of ifhp.conf file:
456 [default]
457 ps_fontdir=/...
458 pcl_fontdir=/...
459 pjl_fontdir=/...
460
461 Discovered a stupid typeo that somehow crept in via the joys of
462 cut and paste. Now the xx += stuff works again. Grrrr....
463 (Nudged into looking at the right place by:
464 "Steven J. Birt" <sbirt _AT_ sedona.ch.intel.com> )
465 Note: this also solves the core dump problem reported by
466 Christoph Beyer <christoph.beyer _AT_ desy.de>
467
468 Found a possible core dump problem.
469 Added safestrlen() to the paranoid string stuff.
470 Fixed up a slew of casts so that gcc -W stops nattering.
471
472 Changed GhostScript driver from ljet2 to ljet2p in ifhp.conf.
473
474 Version ifhp-3.5.6 - Sat Feb 23 07:36:20 PST 2002
475
476 display@ option disables/enables display of console message
477 display_size=nnn sets size of display
478 - lp:ifhp=display@ or ifhp -Tdisplay@
479 - lp:ifhp=display_size=20 of ifhp -Tdisplay_size=20
480 (Suggested by: Nick Bruton <Nick.Bruton _AT_ bristol.ac.uk)
481
482 HOWTO correction: 'sduplex' is alias for 'duplexshort'
483 (Correction by: Hans-Werner Paulsen <hans _AT_ MPA-Garching.MPG.DE>)
484
485 Version ifhp-3.5.5 - Fri Feb 22 16:47:59 PST 2002
486
487 Lexmark 4039 should be:
488 ps_sync=
489 serverdict begin 0 exitserver
490 statusdict begin true setenginesync end
491 ps_async=
492 serverdict begin 0 exitserver
493 statusdict begin false setenginesync end
494 (Reported by: Johan Bengtsson <elijah _AT_ dd.chalmers.se>)
495
496 On the alpha, cc insists that (the line of the beast):
497 > cc: Error: ../../src/perlobj.c, line 666:
498 In this statement, "p->info.array.value" and "len" cannot be added. (noadd)
499 > memmove(p->info.array.value+len, p->info.array.value, olen+1 );
500 > --------^
501 > As far as I can tell, p->info.array.value is a void*, so adding an int to
502 > it is not allowed. I suggest you explicitly cast it to (char *), like in the
503 > previous line, *((char *)(p->info.array.value)+olen) = 0;
504 > This is also the case in lines 615, 713, 813, and 837.
505 Fixed. I wonder why GCC -warn did not catch this?
506 (Reported by: Hans Peter Verne <h.p.verne _AT_ usit.uio.no>)
507
508 HP8100 'ps_tabloid' selection should really be
509 ps_ledger.
510 (Patch from: Steven J. Birt <sbirt _AT_ sedona.ch.intel.com>)
511
512 Replaced PDF2PS with the GhostScript conversion stuff.
513 (Idea from: Thies Meincke <rz4a016 _AT_ uni-hamburg.de>)
514
515
516 Version ifhp-3.5.4 - Fri Feb 8 19:23:05 PST 2002
517
518 Use the new OBJ library and debug options:
519 debug=
520 0-6 - displays details about job handling.
521 bigger the number, more detail
522 database, database+1 - database+4 - ifhp.conf parsing
523 REALLY verbose
524 utils, utils+1 - utils+4 - OBJ library, REALLY verbose
525
526 Fixed up PostScript printer messages when the printer
527 detects an error. This problem appears when a bad PostScript
528 job is sent to the printer and the printer returns status
529 information. Some of the fields are 'unusual' for some
530 vendors. Rather than just display the 'error' information,
531 I now put out the whole PostScript status message.
532
533 The 'gs_converter' values needed '|cat >&3'.
534 (From the mystery poster: [email protected])
535
536 GhostScript developers have added a -dPARANOIDSAFER flag
537 to solve some security issues. Added this to the gs_converter
538 definitions.
539
540 The 'pagesize' option has been merged into the papersize
541 facility. Now you can select the papersize from PCL and
542 PostScript using the same facility. This is, as they say,
543 a one-size-fits-all approach. You must modify the ifhp.conf
544 file now if you want to add more paper sizes/changes.
545 This is kinda reasonable...
546
547 The method used was to add a translation table
548 (pcl_papersize_index for PCL), and to use the
549 %d{key,lookuptable} facility. This does a lookup on the
550 value for 'key' and then translates it using it as a key
551 into the lookuptable. The lookuptable has to be a value
552 which hash the format: k=value k=value and this is then
553 split into a hash and used for the lookup.
554
555
556 Version ifhp-3.5.3 - Tue Jan 22 16:17:59 PST 2002
557
558 changed a lot of strxxx to safestrxxx to avoid problems with
559 strxxx coredumps when passed NULL strings.
560
561 Missing check to see if output is to a file - if so, then
562 we set status@
563 (Courtesy: Jim Trocki <trockij _AT_ transmeta.com>)
564
565 Version ifhp-3.5.2 - Fri Dec 21 11:08:36 PST 2001
566
567 New parallel port birectional IO support.
568 This has been tested on RedHat 7.2 linux (Kernel 2.4.7-10),
569 FreeBSD 4.4-Release. It is REALLY stupid, but it seems to
570 work. If you turn the printer on and offline then you might
571 get an IO error. Note that the printer must be connected and
572 detected by the kernel for bidirectional IO to work, otherwise
573 the IEEE nibble mode will not be enabled. I wish there was a
574 way to force this to be rescanned at open(), but it does not
575 appear to be easily done. Of course, if you turn your printer
576 on, then it may or may not work...
577
578 New USB port birectional IO support.
579 This has been tested on RedHat 7.2 linux (Kernel 2.4.7-10),
580 FreeBSD 4.4-Release. The parallel port code seems to also
581 handle USB ports as well. Amazing...
582
583 I have also put in some friendly 'hints' why you may not be
584 getting status. This will help the folks who have problems.
585 I have also update the ifhp man page to reflect this.
586
587 Added @PJL RESET to the PJL setup commands.
588
589 Note: Should I also add a PJL INITIALIZE as well? This will
590 control the sticky fingers on the control panel. But
591 if this is the case then I suggest that the admins use
592 a special job and lock the control panel. See the PJL refence
593 manual for Password and DEFAULT stuff.
594
595 Job cancellation now handle gracefully... but you still have
596 to send the entire job to the printer... This is a bit of a
597 pain, but it seems to be the right thing to do.
598
599 Update gs invocation, using clever trick from the foomatic folks:
600 Grant Taylor (www.linuxprinting.org).
601 gs ... -sOutputFile=|cat >&3 3>&1 1>&2
602 This causes the error messages and other things to be sent to STDERR.
603 Ummm... This may fail, so make sure that /bin/cat is fixed up.
604
605 Version ifhp-3.5.1 - Mon Dec 17 20:17:53 PST 2001
606
607 The ifhp=option,option... was being ignored. It is
608 now not ignored. The processing is:
609 printcap ifhp=option1,option2
610 command line -Toption3,option4 -Zoption5,option6
611
612 As the options are processed, they are put into a list:
613
614 option order: option1,option2,option3,option4,option5,option6
615
616 If they have form: option=value, the values are set as
617 the list is constructed. Next, they are scanned for effect,
618 i.e. - simplex, duplex, etc. and those which cause output
619 have output generated.
620
621 (Pointed out by: Akop Pogosian <akopps _AT_ CSUA.Berkeley.EDU>)
622
623
624 Version ifhp-3.5.0 - Tue Dec 11 17:19:24 PST 2001
625
626 Fixed up configure, make files, DISTRIBUTIONS, stuff.
627
628 sh STANDARD_configuration now install man pages in /usr/share/man
629 if it is available.
630
631 Updated man pages, clarified default set of options.
632
633 gs_hplj4 printer entry now accepts PJL as all of the associated
634 printers accept PJL.
635
636 Version ifhp-3.4.9 - Wed Nov 28 10:10:25 PST 2001
637
638 Added 'pjl_done_msg' to ifhp.conf:
639 ## Set console message when job is done
640 ## Set this to empty string if you do not want a ready message
641 ## at end of job
642 pjl_done_msg = Done: \%s{n} \%s{J}:\%s{P}
643
644 Freeing memory already freed.
645 (Reported by: [email protected])
646
647 Version ifhp-3.4.8 - Thu Oct 18 14:07:52 PDT 2001
648
649 Modified configure messages for clarity.
650
651 The PJL JOB START stuff was really messed up - missing buffer[0] = 0
652 caused junk message to be sent to the printer (sometimes).
653 (Found, reported with a gleeful cackle, and patch sent by:
654 Jason Keltz <jas _AT_ cs.yorku.ca>)
655
656 The PJL 'STARTPAGE' and 'ENDPAGE' options need quotes around them.
657 Now you can do 'lpr -Zstartpage=1,endpage=2' and it will work.
658
659 Version 3.4.7 Tue Oct 16 13:37:17 PDT 2001
660
661 Added pdf2ps conversion support in ifhp.conf
662
663 Version 3.4.6 Fri Sep 14 12:45:11 PDT 2001
664
665 Corrections and format errors in IFHP-HOWTO corrected.
666 Thanks to Rick Cochran <rcc2 _AT_ cornell.edu>
667 (Patch by: Rick Cochran <rcc2 _AT_ cornell.edu>)
668
669 ifhp support for 'inet_ntop' used mystrncpy()
670 (Patch supplied by: Dejan Ilic <svedja _AT_ lysator.liu.se>)
671
672 Updates to the ifhp.conf file for HP 4050, LN15, LN16, LN17 printers.
673 (Update by: Helmut Kreiser, <H.Kreiser _AT_ gsi.de>)
674
675 Added SCO 5.5 patches:
676 From: Paul Freeman <prf _AT_ eml.com.au>
677 SCO doesn't define MAXPATHLEN in the 'normal' include files
678 (it is in arpa/ftp.h). Instead they use PATHSIZE (in sys/param.h).
679 SCO doesn't define the S_ISSOCK POSIX macro.
680 My investigations reveal the mode of a socket is 0020000
681 (same as a character special). I have defined the S_ISSOCK macro
682 This results in a duplicate test in lpd_jobs.c at lines
683 2407-2409 but this is harmless.
684
685 Added SCO 5.5 patches:
686 From: Paul Freeman <prf _AT_ eml.com.au>
687 SCO doesn't define MAXPATHLEN in the 'normal' include files
688 (it is in arpa/ftp.h). Instead they use PATHSIZE (in sys/param.h).
689 SCO doesn't define the S_ISSOCK POSIX macro.
690 My investigations reveal the mode of a socket is 0020000
691 (same as a character special). I have defined the S_ISSOCK macro
692 This results in a duplicate test in lpd_jobs.c at lines
693 2407-2409 but this is harmless.
694
695 Version 3.4.5 Mon Aug 6 12:59:27 PDT 2001
696 The pjl_ready_msg string was not being used for PJL JOB
697 commands. Thus, the console message was not correct.
698 (Noticed by: Jason L Tibbitts III <tibbs _AT_ math.uh.edu>)
699
700 Much nicer console message support by:
701 Hermann Lauer <Hermann.Lauer _AT_ iwr.uni-heidelberg.de>
702
703 The following change/update/modification was inspired by
704 a set of patches from
705 "Daniel E. Singer" <des _AT_ cs.duke.edu>
706 who had some REALLY nice ideas.
707
708 Added a 'no converter' and 'conversion error' to the
709 file_output_match:
710 file_output_match = [
711 ...
712 * msg no_converter
713 ]
714 The '* msg no_converter' is appended to the
715 end of all of the 'non-empty' file_output_match
716 entries.
717
718 The 'no_converter' is used to lookup the message; if
719 postscript enabled then ps_no_converter value, else if
720 pcl enabled then pcl_no_converter value, else
721 no_converter
722
723 Here are the default values:
724
725 ps_no_converter = %!PS-Adobe-3.0
726 /Courier
727 findfont 10 scalefont setfont
728 72 500 moveto
729 (No conversion available for type '\%s{file_output}') show
730 showpage
731
732 no_converter = No conversion available for type '\%s{file_output}'
733
734 Similarly, if the conversion fails, we use 'conversion_error'
735 (we also define some some handy strings as well):
736 ps_conversion_error = %!PS-Adobe-3.0
737 /Courier
738 findfont 10 scalefont setfont
739 72 500 moveto
740 (Conversion failed for type '\%s{file_output}') show
741 72 480 moveto
742 (Using '\%s{pgm}') show
743 72 460 moveto
744 (Error: '\%s{msg}') show
745 showpage
746
747 conversion_error = Conversion failed for type '\%s{file_output}'
748 Using '\%s{pgm}'
749 Error: '\%s{msg}'
750
751 Version 3.4.4 Sun Dec 24 17:52:16 PST 2000
752
753 Added ALL the user options to the ifhp.conf.in file so that
754 you can use them. You now have all the PostScript, PCL, and
755 PJL options available for use. Of course if your printer does
756 not support this facility, nothing will happen.
757
758 Pagecounter polling now works as advertised, sort of, most of the
759 time, (I hope). You can specify a 'pagecount_poll' value and
760 it will poll the printer for a 'non-changing' pagecounter value
761 the specified number of times (default=1).
762
763 Fixed up the ifhp.conf entries for HP Laserjet III aka LJ4
764 # PRINTER % - HP LaserJet III (PCL and PostScript Interpreter)
765 [ hpiiisi hp3si ljet3 lj3 ]
766 This now assumes a PostScript interpreter on the printer
767 # PRINTER % - HP LaserJet III (PCL, PostScript via GhostScript)
768 [ hpiiisi.gs hp3si.gs ljet3.gs lj3.gs ]
769 This now assumes you use GhostScript
770
771 Added a section in the README for Solaris compilation.
772
773 The dreaded GCC 2.95 check for character values as indexes
774 got me again.
775 (Reported by: Lots and lots of people, including
776 Jonas Olsson <lexicon _AT_ lysator.liu.se>)
777
778 Added a 'pcl_term' and 'ps_term' option to allow PCL and PostScript
779 strings to be send immediately after the job file and BEFORE the
780 PCL EOJ or PostScript EOJ.
781 (Inspired by: David E. Cross <crossd _AT_ cs.rpi.edu>)
782
783 HPUX compilation without GCC had a gratuitious CFLAGS=-Aa. I removed the flags.
784 (Reported by: Ryan Novosielski <novosirj _AT_ umdnj.edu>)
785
786 Version 3.4.3 Thu Nov 30 09:28:33 PST 2000
787
788 There is a total bizzarity of operation that seems happen
789 with various printers. If the printer goes 'offline' or
790 fails to respond for a long time, then the code tries to
791 send command sequences that will force the printer
792 to respond or retry the last operation. These happen during:
793 SYNC sync_interval = 20 seconds default
794 PAGECOUNT pagecount_interval = 20 seconds default
795 WAITEND waitend_interval = 300 seconds default
796 I have 'robustified' the code beyond all sensible levels...
797 lets see if this works.
798
799 Device Information for the 'appsocket' protocol is now obtained
800 from the PRINTCAP_ENTRY environment variable. This allows you
801 to have a simple standard printer configuration. IFHP-HOWTO
802 updated as well.
803
804 I have added a VERY odd formatting capability for options:
805 value=ThisString
806 %s{value} -> ThisString
807 %U{value} -> THISSTRING
808 %M{value} -> Thisstring
809 %L{value} -> thisstring
810
811 Ah, the joys of various programs that want 'UPPERCASE'
812 'Leading case' or 'lowercase' for option values.
813 This now allows you to have
814 lpr -Zpaper=legal
815 -> Zlegal
816 -> a2ps -M %M{paper}
817 -> a2ps -M Legal
818 which is truly a hack of the worst kind. However, the
819 alternative is to support a modified version of GhostScript
820 (yes... it is fussy as well), mpage, a2ps, etc etc etc
821
822
823 GhostScript now gets paper sizes passed to it if you use
824 the standard 'letter legal ...' OR paper=letter OR
825 papersize=XXX
826
827 This is managed by a new configuration entry:
828 papersize= a1 a2 ... letter legal
829 - all the sizes that GhostScript can handle
830 papersize_default= letter - default value.
831
832 The '\%s{papersize}' is a BUILT IN that handles this
833 by searching the -Z and -T options for the last entry
834 in the papersize list and using this as the size value.
835
836 And of course, GhostScript conversion now has a
837 -PAPERSIZE=\%M{papersize} entry.
838
839
840 Version 3.4.2 Mon Oct 16 09:29:53 PDT 2000
841
842 unsetenv does not exist on some systems, and I better
843 check all the executables.
844 (Spotted by: Christian Haul <haul _AT_ dvs1.informatik.tu-darmstadt.de>)
845 The 'shutdown_app_socket' option is now made the default. This will
846 cause ifhp to do shutdown(1,1) and then read from the printer
847 until EOF. This solves the mysterious 'RST' packets that have
848 terminated connections and caused the printer to abort printing.
849 (Astute observeration by: Gerald Damian <gdamian _AT_ ford.com>)
850 ifhp was exiting when it got an 'out of paper' message. A bit
851 too extreme, this one.
852 (Reported by: Scott Schwartz <schwartz _AT_ bio.cse.psu.edu>)
853
854 Version 3.4.1 Sat Oct 14 13:37:40 PDT 2000
855
856 Updated Internationalization
857
858 Fixed up some errors in the ifhp.conf comments.
859 (Spotted by the eagle eyes of: Pekka Savola <pekkas _AT_ netcore.fi>)
860
861 Added a 'forceprocessing' flag as suggested by Brendon Hack.
862 (Patch and suggestion by: Brendan Hack <bendy _AT_ bendys.com>)
863
864 PostScript, CTRL-D and CTRL-T support
865 There are many printers which do not like/allow the CTRL-D
866 (Serial port 'end of job' indication) and/or the CTRL-T
867 (Serial port 'request status' indication) over network or
868 parallel port connections. This is yet another attempt to
869 handle this in a simple manner:
870
871 ps_eoj (default TRUE) - use ^D
872 ps_eoj_at_start (default TRUE) - use ^D at start of job
873 ps_eoj_at_end (default TRUE) - use ^D at end of job
874
875 ps_ctrl_t (default TRUE) - use ^T to solicit status
876 end_status=busy:idle use these keywords in the status
877 indication solicited by CTRL-T or when there is an error
878 to determine that the job is done.
879
880 If your printer cannot handle ^D at all, set: ps_eoj@
881 If your printer cannot handle ^D at job start,
882 but requires it at job end, set: ps_eoj_at_start@
883 If your printer cannot handle ^D at job end,
884 but requires it at job start, set: ps_eoj_at_end@
885 (I don't think this is possible, but it is included
886 for completeness).
887
888 If your printer cannot handle CTRL-T in the input stream
889 or cannot return status when solicited, set: ps_ctrl_t@
890
891 Version 3.3.22 - Sun Aug 20 11:24:02 PDT 2000
892 The 'read from parallel port' code caused status@
893 to be ignored. Just a tad aggressive on this, I was.
894 (Reported by: Godfrey <godfrey _AT_ hattaway-associates.com>)
895
896 Version 3.3.21 - Fri Aug 11 12:49:40 PDT 2000
897 After a deep look into parallel port IO and bidirectionality,
898 I have come to the conclusion that it is possible to handle
899 this, at the cost of a high polling rate at the process level.
900
901 To this end, the Read_write_timeout() code has been rewritten,
902 and now does polling. This actually works BETTER than the
903 original version in my tests.
904
905 First, the device must be opened read/write. This is done
906 by LPRng when you set the :rw flag -
907 lp:
908 :rw:lp=/dev/tty0
909
910 Next, if the device is a character device (S_ISCHR(statb.st_mode)
911 is true AND not a tty (isatty(fd) returns 0) then ifhp will perform
912 IO by doing a write followed by a read(). On Linux systems
913 the read is done in blocking mode; on non-Linux systems it is
914 done in nonblocking mode. It is expected that the read will
915 either terminate with a 0 value (nothing to read), -1 and
916 errno set to 'EWOULDBLOCK' or 'ENOAVAIL' or an appropriate
917 error code indicating no status, or N where N is the number
918 of bytes read. If this code is run on a non-linux system
919 which has implemented bidirectional IO and this does not work,
920 I would be interested in hearing about this. Note that on
921 these systems the 'nonblocking' and 'blocking' calls might need
922 to be removed. Please try this and tell me the results and I
923 will update the ifhp filter.
924
925 I have added a small flag for the convenience of people who have
926 some very strange accounting requirements. The 'wait_for_banner'
927 flag causes the OF filter mode to wait for banner printing
928 to be completed before suspending. This will allow the accounting
929 facility to correctly assign pages to banners, jobs, and so
930 forth.
931
932 Version 3.3.20 - Fri Aug 11 08:03:39 PDT 2000
933 Fixed up error message for 'file_output_match' parsing so the
934 original line is printed.
935 You can now handle key += [ ] correctly.
936 More tracing statements added to allow you to trace what option
937 value is being used where.
938 Expanded option values and interpolated escapes. This allows
939 things like: ps_cardstock = [ media=Card\040Stock ]
940 This will now expand correctly and be interpolated as 'Card Stock'.
941 (Problem discovered by: Lars Kellogg-Stedman <lars _AT_ larsshack.org>)
942 You can try to do job nesting using things like:
943 :ifhp=model=hp,pjl_job@,of_options=pjl_job
944 This requires that you also use 'PJL ECHO' for end of job detection.
945
946 Version 3.3.19 - Sat Jul 15 17:08:42 PDT 2000
947 Fixed the configure error message about the file utility so that
948 it referenced the ftp://ftp.astron.com/pub/file/ site.
949 (Note by: Raymond Lam <R.Lam _AT_ qmw.ac.uk>)
950 Do write with timeout if the output device
951 is not readable. Also if the device is readable, then it
952 must not be a file, block device, or character device and not
953 a tty. Forced blocking mode on file descriptors before
954 calling select. This appears to solve the problem with 'select' failing
955 on various devices.
956 Statistics were bogusly computed, progress_k did not work
957 correctly.
958 (Patch by: Tom Fitzgerald <tfitz _AT_ MIT.EDU>)
959 Tried to speed up output when an OF filter is being used by
960 not having the OF filter confirm that the banner was output, but
961 simply proceed with no checks. This, of course, results in a
962 bogus page count by the IF filter. But it seems to speed things
963 up quite a bit. This also now behaves like the older versions
964 of ifhp that did not check for end of job when stopping of
965 filters. C'est dommage!
966
967 Version 3.3.18 Sat Jul 8 12:35:16 PDT 2000
968 gs_unidriver entry had \%s{gs_device}.upp instead of
969 \%s{gs_device}
970 Found by: Mark Steph <mark.steph _AT_ ericsson.com>
971 Added ps_eoj_at_start@ to HP 8550 printer entry,
972 which does not like ^D at start of PostScript jobs.
973 (Discovered and reported by: Micheler Klaus <Klaus.Micheler _AT_ infineon.com>)
974 Update ifhp.conf with phaser360, phaser740, phaser550
975 Need different PostScript than the Phaser 350 and 550
976 (Supplied by: Michael J. Carter <mcarter _AT_ lanl.gov>)
977 Modified the Is_readable() to use fcntl() to get the RD,RW,WR
978 status of the file descriptor.
979 Added options:
980 pjl_ready_msg = \%s{n} \%s{J}:\%s{P}
981 pjl_display_size = 20
982 The 'ready_msg' is expanded and displayed on the printer
983 console display. The display has at most pjl_display_size
984 characters.
985 (Patch supplied by: John R Lane <lanejohn _AT_ cse.msu.edu>)
986
987 Version 3.3.17 Thu Jun 22 07:49:35 PDT 2000
988 The ifhp.conf file references the GhostScript uniprint driver
989 configuration file 'stc1520.upp' or 'stc1520'. This was taken
990 from the GhostScript documentation. In reality, this is the
991 'stc1520h.upp' configuration file. Corrected in the ifhp.conf
992 file and email sent to the GhostScript support group.
993 (Reported by: Gerald Damian <gdamian _AT_ ford.com>)
994 The accounting information written to the accounting file did
995 not include user and printer name. The 'accounting_info' option
996 now allows you to specify the additional command line options you
997 want added to the line written to the accounting file.
998 (Reported by: Jonathan Knight <jonathan _AT_ cs.keele.ac.uk>)
999 The accounting script did not have any options passed to it.
1000 You now get the same options as with the 'accounting_info' added
1001 above.
1002 (Patch supplied by: Ian MacPhedran <Ian_MacPhedran _AT_ young.usask.ca>)
1003
1004 Version 3.3.16 Mon Jun 19 09:38:40 PDT 2000
1005 If the status file is not open and an error message
1006 needs to be put out, it is now put out on STDERR.
1007 All fatal messages are also put out on STDERR as well, so
1008 you can see the information in the printer log file.
1009 This solves the problem of the 'silently vanishing filter'.
1010 The DISTRIBUTIONS/FreeBSD Makefile updated.
1011
1012 Version 3.3.15 Fri Jun 2 18:01:36 PDT 2000
1013 Updated configuration file entries so that they
1014 match reality a bit better.
1015 Fixed up problems with using GhostScript and options
1016 If the model information is not found then an error is
1017 reported.
1018 Updated status reporting so it was not as verbose.
1019 (Patch by: Ian MacPhedran <Ian_MacPhedran _AT_ young.usask.ca>)
1020
1021 Version 3.3.14 Fri Jun 2 18:01:36 PDT 2000
1022 configure now checks to see that the file utility handles the
1023 file - option correctly.
1024 The ifhp.conf file now lists the HP8000 as a 'laserjet'
1025 (Spotted by: David Kerr Livingstone <davidl _AT_ cn.ca>)
1026 The test for pagecounting did not handle 'no status' correctly.
1027 Update the IFHP-HOWTO to use DocBook format.
1028
1029 Version 3.3.13 Wed May 24 09:45:32 PDT 2000
1030
1031 added of_options option, which are a set of options
1032 that are used if the filter is in OF mode. This allows:
1033
1034 :ifhp=pagecount@,sync@,waitend@,of_options=pagecount sync waitend
1035
1036 So you can fling jobs at the printer as fast as possible and have
1037 the of filter do the dirty work of getting pagecounter values.
1038
1039 I have modified the behavior of ifhp when it is running in OF mode.
1040 Previously, when running as an OF filter it would operate in
1041 'passthrough' only mode and not detect the type of file it was
1042 printing. This would cause problems as usually the banner was
1043 the file it was printing and various 'setups' needed to be done
1044 to print the banner correctly. Now when it runs in OF mode it
1045 reads the input into a file, carefully looking for the '\033\001'
1046 sequence, and when it finds it, prints the file using the normal
1047 printing functions, and then suspends itself. This greatly
1048 improves the robustness of banner printing, etc., as the whole
1049 9 yards^H^H^H24 meters of the ifhp filter processing is applied
1050 to the file.
1051
1052 As far as I can tell, this appears to break no existing applications,
1053 programs, processing, etc., and now allows 'whacko' banner
1054 pages to be printed. Sigh...
1055
1056 The console now displays the userid even when ifhp is getting
1057 the pagecount stuff.
1058
1059 Edited the IFHP-HOWTO and update the section on pagecounts.
1060
1061 Added an lseek() in a couple of critical places to rewind the
1062 input.
1063 (Noticed by: Niklas Edmundsson <nikke _AT_ ing.umu.se>)
1064
1065 Version 3.3.12 Mon May 22 15:14:11 PDT 2000
1066
1067 The 3.3.12 distribution was screwed up - the old Makefile
1068 rather than the new one was used... oh the joys of RCS version
1069 control.
1070
1071 Added a 'pagecount_start' and 'pagecount_end' flag to allow you
1072 to skip pagecounts at job start or end.
1073
1074 Discovered the 'no_ps_eoj' and 'no_pcl_eoj' flags were conflicting
1075 with other stuff, and changed them to 'pcl_eoj_at_start' and
1076 'ps_eoj_at_start'. Names are now compatible with rest of options.
1077 By the way, these flags look really strange... I wonder what
1078 horribly strange printer inpired them? Sigh... got to flag
1079 changes with printers but then some manufacturers would get a bit
1080 annoyed. "Its not a defect, it's a feature!" Sigh.
1081
1082 Version 3.3.11 Sat May 20 09:37:02 PDT 2000
1083
1084 Fixed up a couple of missing 'ps_user_opts' entries
1085
1086 Added a tc=entry1,entry2,... facility to allow you to include
1087 entries. WARNING: this is a literal include facility, so the
1088 placement of the tc=... is critical.
1089
1090 Model configuration selection:
1091 The ifhp.conf information is first scanned for the 'default'
1092 model information, and then for model specific information.
1093 This allows you to add new 'default' values to the end of
1094 the ifhp.conf file and have them override the supplied
1095 ifhp.conf file.
1096 For example:
1097 #ifhp.conf - default
1098 forceconvesion@
1099 ... more default values
1100 [ hp3* ]
1101 .... values specific to hp3*
1102
1103 #--- end of the supplied stuff
1104 # user supplies this
1105 [ default ]
1106 # overrides default forceconversion
1107 forceconversion
1108 [ hp3* ]
1109 # overrides hp3* values
1110
1111 Makefile: install -s on some system does now work with
1112 with script files, so Makefile changed to accomodate this.
1113
1114 You can now use key += value to append to an option value.
1115 For example:
1116 key = [ this that ]
1117 key += [ the other ]
1118 -> [ this that the other ]
1119 key = value
1120 key += newvalue
1121 -> value newvalue
1122 key +=
1123 on a line
1124 -> value newvalue
1125 on a line
1126
1127 You want to you can now add stuff to an existing entry.
1128 This makes things like the following possible:
1129 [ xx* ]
1130 key = [ basic ]
1131 [ xx1 ]
1132 key += [ morefor1 ]
1133 [ xx2 ]
1134 key += [ morefor2 ]
1135
1136 The 'a2ps', 'enscript', and similar programs may exit with bogus
1137 error codes if they need to wrap lines, change fonts, etc.
1138 The use of a 'wrapper' script is documented in the ifhp.conf
1139 file and the HOWTO.
1140
1141 The -Zstartpage=xxx and -Zendpage=xxx options were not implemented
1142 and documented correctly.
1143 (Patch by: Ingo Jauer <ij _AT_ math.uni-bremen.de>)
1144
1145 Makefile.in did not have $(SRC)/ifhp.conf.template
1146 (Noted by: Bill Kamp <wdkamps _AT_ srpnet.com>)
1147 Makefile did not remove some files created during configure
1148 (Patch by: George Lindholm <George.Lindholm _AT_ ubc.ca>)
1149 Fixed a problem with SIGCHLD handler - now sets the SIG_DFL
1150 Modified the 'Do_waitend' code to better handle appsocket and
1151 other printers that return strange error status.
1152 Modified the 'End_ctrl_t' option so that end_ctrl_t@ suppresses
1153 the use of CTRL_T to obtain status information.
1154 The Process_OF code did not reset the nonblocking mode of the
1155 output descriptor after restarting. This could be a problem
1156 for devices that do not return status on time.
1157 The amount and size of files printed is now a double, making
1158 the progress when printing 2GByte files correctly reported.
1159 Amazing, the size of files that people print...
1160 There was a very strange behavior of list variables that caused
1161 a memory leak. If you had:
1162 xx=testxx
1163 pjl_yy=testyy
1164 pjl_nn=[ v\%s{xx}=value v\%s{yy}=value ]
1165 then the variable would be set to:
1166 v\%s{xx} -> vtestxx (look up xx first, then pjl_xx)
1167 v\%s{yy} -> vtestyy (look up yy first, then pjl_yy)
1168 so you get the effect of:
1169 pjl_nn=[ vtestxx=value vtestyy=value ]
1170 This behavior has been modified to restrict the expansion to
1171 keys appearing in a list ( [ ... ]).
1172 I don't have the faintest idea why this was in the code, and
1173 it appears to be a development coprolite.
1174 Read_write_timeout() code has been Turkey Proofed. Now
1175 will exit with nasty message when called with inconsistent
1176 parameters.
1177 The Process_OF code was modified in order to make it more readable.
1178 A more rigorous check for option appsocket and a missing dev=
1179 option was put in. A malformed printcap file prompted this check.
1180 Bad coding with the 'banner' stuff once more revisted. Arrgghh...
1181 history and compatiblity is ugly. The problem here is trying
1182 to be compatible with older releases of LPRng.
1183 -- we should have LPRng generate banners
1184 -- need to generate banners based on printer type
1185 -- thus ifhp needs a 'banner generation' mode
1186 bp=/..../ifhp -Tbanner_only
1187 bp=/..../banner -> symlink to ifhp
1188 Added a 'set nonblocking' calls at the appropriate places
1189 to make sure that write will be done correctly.
1190 Did not terminate argv[] array with 0, caused execve problems. Also
1191 fixed up '/bin/sh -c' passing of converters
1192 The ARGV, ZOPTS, and TOPTS were not being passed to converters correctly.
1193 (Discovered by: Johan Claesson <Johan.Claesson _AT_ uab.ericsson.se>)
1194 When using a converter, ZOPTS and TOPTS have been replaced by
1195 \%s{Z} and \%{T}, and you need to use \%s{ARGV}. Duh!
1196
1197
1198 The lookup code for parameters, etc., was using 'strcasecmp' rather than
1199 'strcmp'. This had the effect of folding options with names such as
1200 A4 and a4 to the same entry. The code has been modified so that
1201 we lowercase the -Z and -T stuff, and lowercase strings where they
1202 are used to initialize a lookup table. I wonder where my mind was at
1203 when I decided to make name lookup case insensitive. Never again!
1204 Bad BAD idea. This is OK for user interface options, but HORRIBLE
1205 for internal lookups.
1206 (Original discrepancy noted by: Willi Burmeister <wib _AT_ cs.uni-kiel.de>)
1207 For some very odd reason I was adding the ARGV arguments to the
1208 accounting information. This caused problems when a -T argument was
1209 passed as the first -T argument was the elapsed time.
1210 The \%s{name} lookup was not looking in the -Zopts for values.
1211 Moved the 'ps_sync' and 'ps_asynch' entries in the ifhp.conf.template
1212 to the defaults area so that other models can use them.
1213 The close_on_exec() code failed on systems where the number of
1214 file descriptors returned by getdtablesize(0 was bogus. Used the
1215 Get_max_fd() code. Oh, for a 'max open fd' call...
1216
1217 Removed banner printing ENTIRELY. Banner printing support is
1218 now done by LPRng. Should have done this LONG ago. Breaking
1219 point reached when 'ld' string was used and this broke banner
1220 printing. Grrr...
1221
1222 Fix up the format conversion program specification so that you can use
1223 \%s{name} parameters in the program list:
1224
1225 file_output_match = [
1226 *pcl* pcl \%s{pcl_converter}
1227 *ps* ps \%s{ps_converter}
1228 *postscript* ps \%s{ps_converter}
1229 *pjl* pjl \%s{pjl_converter}
1230 ]
1231
1232 device=epson
1233 resolution=-r240x72
1234 ps_converter= [ /usr/contrib/bin/gs -dSAFER -dBATCH -q -sDEVICE=\%s{device}
1235 \%s{resolution} -sOutputFile=- -
1236 ]
1237
1238 Added a 'ghostscript' device as well:
1239
1240 # PRINTER gs_support - Printer with GhostScript conversion
1241 [ ghostscript ]
1242 pcl@
1243 pjl@
1244 ps
1245 text
1246
1247 # device=epsonc
1248 # resolution=-r240x72
1249 ps_converter= [ /usr/contrib/bin/gs -dSAFER -dBATCH -q -sDEVICE=\%s{device}
1250 \%s{resolution} -sOutputFile=- -
1251 ]
1252 text_converter= [ /usr/contrib/bin/a2ps -q -B -1 -M Letter --borders=no -o-
1253 | \%s{ps_converter}
1254 ]
1255
1256 file_output_match = [
1257 *postscript* raw \%s{ps_converter}
1258 # if your printer has PCL, use:
1259 *text* raw \%s{text_converter}
1260 ]
1261 This allows you to use a printcap with:
1262
1263 lp:
1264 :lp=xxxx
1265 :ifhp=model=ghostscript,device=epsonc,resolution=-r240x72
1266 :if=/usr/local/libexec/filters/ifhp
1267
1268 Makefile.in did not have default for UPDATE, and used $(SRC) - should
1269 have been ${SRC}.
1270 (Fix by: Willi Burmeister <wib _AT_ cs.uni-kiel.de>)
1271
1272 Removed the 'UPDATE'
1273
1274 Added DISTRIBUTIONS directory with testscripts for installation
1275 and package generation for various systems.
1276
1277 Added the ability to send 'alerts' to operators or whatever
1278 based on filter activity.
1279
1280 ## PJL USTATUS information will include a lot of
1281 ## codes that are just not interesting, such as 'printer on line',
1282 ## or 'power up'. You can suppress reporting status for these codes
1283 ## by putting their code numbers in this list
1284
1285 pjl_quiet_codes=[
1286 10001
1287 40000
1288 ]
1289
1290 ## Special error messages
1291 ## One per line
1292 ## The idea is that you may get an error code, but you
1293 ## it is not 'standard'. You can add additional codes here
1294 ## or override the default strings in the ifhp source.
1295 ##
1296 pjl_error_codes=[
1297 10006=Toner Low
1298 ]
1299
1300 ## Inform operator if this error number occurs
1301 pjl_alert_codes=[
1302 15* 40* 41* 42* 44*
1303 ]
1304
1305 # use this program to write error to operator
1306 # error will be read from STDIN. You can play games with
1307 # mail or whatever you want here.
1308 # for example:
1309 pjl_alert_handler=/usr/local/libexec/filter/alert_handler
1310
1311 The pjl_alert_handler program will read the error message on
1312 STDIN and is responsible for forwarding to the appropriate
1313 destination.
1314
1315 Fixed up program forking and handling and put it in one spot.
1316 This was just a programming/debugging change.
1317
1318 Went through the Appsocket code and ripped it out. Fixed up the
1319 logical flow of things so that if you set the appsocket code you
1320 can use pagecount with 'ps' and have it work. There is a
1321 workaround for the 'end of job' detection - if we have status
1322 enabled then we do the full 'idle detection' thing. This will
1323 now cause us to exit correctly when we have Appsocket and get
1324 an EOF on the read.
1325
1326 You can now have a 'filter' in the file_output_match table:
1327 file_output_match = [
1328 *postscript* ps \%s{ps_converter}
1329 *pcl* pcl \%s{pcl_converter}
1330 *pjl* pjl \%s{pjl_converter}
1331 *printer*job*language* pjl
1332 *text* pcl \%s{text_converter}
1333 *gzip_compressed* filter \%s{gzip_decompress}
1334 ]
1335 This will cause the indicated program to be used to decompress
1336 or recompress or whatever the input file. This can be done add
1337 nauseum... The mind boggles on what you can do with this.
1338 Courtesy of the a2ps and psfilter folks, who did a neat job...
1339
1340 When Kyocera-FS1750 wakes up, it sends NULL PostScript status.
1341 This screws up or used to screw up 'waitend' operations.
1342 (Information and patch from: Sebastian Wahl <wahl _AT_ id-pro.de>)
1343
1344 Version 3.3.10 Sun Oct 24 16:05:55 PDT 1999
1345
1346 Updated 3.3.9 Change information with missing stuff.
1347
1348 When using appsocket protocol, the of filter was not opening the
1349 status file correctly and was sending junk to the printer.
1350 (Spotted by: John McCash <johnmc _AT_ rsch.comm.mot.com>)
1351
1352 HP5SiMx (hp5simx) and similar printers with paper tray selection
1353 You should be aware that some HP and other manufacturers
1354 have a 'paper size' selection which OVERRIDES the normal tray
1355 selection. If you are printing PostScript, then by default
1356 the paper size is 'letter' and you will get paper fed from the
1357 tray with 'letter' paper in it. If you have a4 or some other
1358 size you may get interesting results. You should experiment with
1359 the various selection commands to determine if you need to have
1360 upper/lower or letter/ledger (a4/ledger) selection. Very nasty,
1361 this.
1362 (Experimental results by: John McCash <johnmc _AT_ rsch.comm.mot.com>)
1363
1364 The -c (binary) flag was not setting any values and
1365 the RAW file type was not being handled correctly.
1366 (Reported by: Pavel Lisy <pali _AT_ tmapy.cz>)
1367
1368 The 'file_output_match' value may now have the form '<pathname';
1369 the specified pathname will be opened and the contents used
1370 as the value of the match information.
1371
1372 If the conversion filter specification contains the '|', '<', or
1373 '>' meta characters separated by single spaces, then the filter
1374 is invoked using '/bin/sh -c "filter" This change allows us to
1375 put a pipe or other item in the filter specification. Needless
1376 to say, it also opens gaping security holes as well, so the
1377 system adminstrator is warned to be careful.
1378
1379 Example: (Note: lines have been broken for convenience -
1380 all conversion filter specification must be on a single line):
1381
1382 file_output_match = [
1383 # invoked via execve
1384 *postscript* raw \
1385 gs -sDEVICE=epson \
1386 -sOutputFile=- -sPAPERSIZE=letter -q -
1387 # invoked via /bin/sh -c
1388 *text* raw \
1389 /usr/local/bin/a2ps -q -B -1 -M Letter --borders=no -o- | \
1390 gs -sDEVICE=epson \
1391 -sOutputFile=- -sPAPERSIZE=letter -q -
1392 ]
1393
1394 OR
1395 file_output_match = </usr/local/etc/ifhp.match
1396
1397 and /usr/local/etc/ifhp.match contains:
1398
1399 # invoked vi execve
1400 *postscript* raw \
1401 gs -sDEVICE=epson \
1402 -sOutputFile=- -sPAPERSIZE=letter -q -
1403 # invoked via /bin/sh -c
1404 *text* raw \
1405 /usr/local/bin/a2ps -q -B -1 -M Letter --borders=no -o- | \
1406 gs -sDEVICE=epson \
1407 -sOutputFile=- -sPAPERSIZE=letter -q -
1408
1409 Set SO_KEEPALIVE on sockets in order to try to handle defective TCP/IP
1410 implementations that do not handle connection RST correctly.
1411
1412 Version 3.3.9 Tue Sep 14 11:59:14 PDT 1999
1413
1414 ---- Missing information from the Change Log
1415 *** WARNING: configure strikes again
1416 ***
1417 *** ifhp.conf default location now
1418 *** /usr/local/etc/ifhp.conf
1419 *** ifhp default location now
1420 *** /usr/local/libexec/filters/ifhp.conf
1421 ***
1422
1423 Why? Because when trying to port this to XxxxBSD, BSDI, Solaris,
1424 SunOS, HPUX, DGUX, etc etc etc I have run into so many inconsistencies
1425 that I have just given up.
1426
1427 You might as well assume that the following is true for a default install.
1428
1429 Updated configuration to be a little more consistent with other packages
1430 default installation directories:
1431 ${prefix} is usually /usr/local
1432 ${libexecdir} is usually ${prefix}/libexec (/usr/local/libexec)
1433 ${sysconfdir} is usually ${prefix}/etc (/usr/local/etc)
1434 ${mandir} is usually ${prefix}/man (/usr/local/man)
1435
1436 We install the executables in:
1437 ${libexecdir}/filters/ifhp
1438 ${sysconfdir}/ifhp.conf
1439 ${mandir}/ man pages
1440
1441 Suppose you wanted to put them in /usr/libexec/filters, and /etc:
1442 configure --prefix=/usr --sysconfdir=/etc
1443
1444 ---
1445
1446
1447 Updated 'banner printing checking'
1448 There was a strange OF mode interaction between banner printing,
1449 leaders, and flushing buffers. This is a pain, but here it is:
1450
1451 a) if you want to have LPRng or the print spooler generate the banner,
1452 then you MUST:
1453
1454 1. in ifhp.conf set banner@
1455 DO NOT examine input string for a 'generate banner line'
1456 Note that banner@ is the default.
1457 2. You can now generate a leader line (ld=\f\n)
1458 3. You can now generate banners using the :bp=/banner/printing/program/path
1459
1460 THIS IS THE ASSUMED DEFAULT CONFIGURATION FOR LPRng and IFHP
1461
1462 b) if you want to use ifhp for banner generation you MUST:
1463 1. in ifhp.conf set banner or banner=(ps|pcl|text) - i.e.-
1464 examine input string for a 'generate banner line'
1465 Note that banner@ is the default
1466 2. in printcap set :sh@:sb - i.e. - turn 'suppress header OFF' and
1467 'short_banner' on. Note that :sh@:sb is the default
1468 3. DO NOT GENERATE A LEADER STRING :ld= (default)
1469 4. DO NOT HAVE A BANNER PRINTER PROGRAM :bp= (default)
1470
1471 c) You can use ifhp to act as a banner printing program by using:
1472
1473 :bp=/.../ifhp -Tbanner_only (uses first available type)
1474 :bp=/.../ifhp -Tbanner_only=(ps|pcl|text) (uses specified type)
1475
1476 Also, /..../banner is a symbolic link to /.../ifhp, so you can use
1477 :bp=/.../banner (uses first avaiable type)
1478 :bp=/.../banner -Tbanner_only=(ps|pcl|text) (uses specified type)
1479
1480 Note that the effect of invoking ifhp with the name 'banner'
1481 is effectively the same as invoking it with the 'banner_only' flag.
1482 In fact, it IS the same :-)
1483
1484 Added 'no_udp_monitor' for the Appsocket protcol. This prevents
1485 ifhp from using the UDP status port to determine if the print
1486 job is done. This solves a problem with some Appsocket interface
1487 printers which do not respond correctly to the '\n\r' query for
1488 status. You need to specify 'sync=ps' for these printers.
1489 i.e.: -Tappsocket,sync=ps,no_udp_monitor,dev=xx.xx.xx.xx%35
1490
1491 File type (language) detection and file conversion
1492 Unified the file type detection and conversion, at the apparent cost
1493 of a bit of complexity.
1494
1495 forceconversion - forces file(1) utility to be used
1496 forceconversion@ - ifhp detects only PJL, PCL, PostScript,
1497 text and unknown
1498
1499 # set to the default if you want
1500 default_language=unknown
1501 file_output_match = [
1502 *postscript* ps
1503 *pcl* pcl
1504 *pjl* pjl
1505 # if you need to convert to PostScript
1506 *text* ps /usr/local/bin/a2ps -q -B -1 -M Letter --borders=no -o-
1507 # if you can handle text, then simply change the type to pcl
1508 *text* pcl
1509 # match for '* gif *'
1510 *%20gif%20* pcl /usr/local/bin/gif2pcl --autosize -x2400 -y3300 -d300 -o-
1511 # give up if you can't tell
1512 * unknown
1513 # pass through if you can't tell
1514 * raw
1515 ]
1516
1517 # if the file type is TEXT and no converter, then use the
1518 # text_converter and set the output to the text_converter_output value.
1519
1520 text_converter=/usr/local/bin/a2ps -q -B -1 -M Letter --borders=no -o-
1521 text_converter_output=ps
1522
1523
1524 Note 1: you can have spaces in patterns by using %20 (URL escape)
1525 Note 2: if you do not have a converter, then this simply changes
1526 the type.
1527 Note 3: you can have ZOPTS, TOPTS, or ARGV as an option, which is
1528 replaced by -Zzopts, -Ttopts, or the entire argument list for the filter.
1529 You can also use \%{name} to get the name option value.
1530
1531 Banner printer alias (./banner -Tbanner=xxx) now accepts banner type
1532 on command line.
1533
1534 Removed 'pclbanner' from distribution - really should be in LPRng
1535
1536 Version 3.3.8 Thu Aug 26 20:32:18 PDT 1999
1537 If there is a config file (ifhp.conf) missing or unreadable,
1538 we termiante with an error. This will help with the problem
1539 of missing or unreadable configuration files.
1540
1541 Note: I considered also adding a test for the ps, pjl, flags
1542 actually present in the file, but I thougth this was overkill.
1543
1544 Version 3.3.7 Thu Aug 26 20:32:18 PDT 1999
1545 Configure was not installing things in the right places. We now have:
1546 --with-configfile=path ifhp.conf explicit locations
1547 --with-admindir=DIR directory to install ifhp.conf, default:
1548 \${prefix}/etc
1549 --with-filterdir=DIR where to install ifhp executables, default:
1550 \${prefix}/lib/filters,
1551
1552 a. if you specify configfile, then admindir is not used
1553 b. if you specify admindir, then you get .../etc/ifhp.conf,./ifhp.conf as files
1554
1555 defaults: prefix = /usr/local
1556 configfile would be /usr/local/etc/ifhp.conf
1557 filter directory would be /usr/local/lib/filters
1558
1559 If you set prefix=/usr, you get
1560 configfile would be /usr/etc/ifhp.conf, which is
1561 probably not what you want
1562
1563 If you set prefix=/usr, admindir=/etc
1564 configfile would be /etc/ifhp.conf
1565 filter directory would be /usr/lib/filters
1566
1567 Version 3.3.6 Fri Aug 20 16:14:27 PDT 1999
1568 Again, the Appsocket protocol causes problems. The Do_waitend
1569 code had to be redone.
1570 Added some more printer configurations.
1571 The end of the ifhp.conf file now has the line #### XXX END XXX #####
1572 This allows you to append your local stuff to the end of the standard
1573 ifhp.conf file.
1574
1575 The [default] entry is used to provide overrides for default values.
1576 This should appear as your FIRST user addition if you use it at all.
1577 For example:
1578 ..... distributed ifhp.conf file
1579 #### XXX END XXX ####
1580 [ default ]
1581 xx@
1582 [ myprinter]
1583 xx
1584
1585 Version 3.3.5 Tue Aug 3 15:22:51 PDT 1999
1586 Re-arranged the file type detection code so that if you set
1587 forceconvert it will be handled more effectively.
1588 When you recognize a PostScript job, will remove EXTRA ^D's at
1589 the beginning of a job. This appears to be caused by some PostScript
1590 drivers gratuitously adding a ^D, and then the spooling program
1591 adding another. Up to 3 of these have been observed in practice.
1592 If you have a conversion of the type:
1593 pattern language {i.e. - two entries}
1594 only the language is chosen. This allows you to do:
1595 *postscript* ps
1596 *pcl* pcl
1597 *text* ps a2ps .....
1598
1599 Some HP5m's have a horrible problem with reporting True End of Job
1600 to get pagecount. To fix this a bit, the following method is used.
1601 1. you need to set waitend=ps, i.e. - use PostScript to get the
1602 end of job.
1603 2. Two additional options have been defined: end_ctrl_t=busy:idle
1604 and waitend_ctrl_t_interval=2
1605 When the end_ctrl_t is defined, then a CTRL-T is sent at the
1606 job end to force (ha ha ha... sigh... only if this was true)
1607 a ^T type of status message to be sent back from the printer.
1608 This status message has the form %%[ status: busy ]%% when then printer
1609 is not printing, although %%[ status: idle ]%% has also been observed.
1610 If the status matches one of the values in the end_ctrl_t list,
1611 then we assume that the printer is done with the job and we can
1612 get the pagecount. However (sigh), we need to prod the printer
1613 periodically to send this status. The waitend_ctrl_t_interval
1614 sets how often we do this. However (sigh sigh), if we send the CTRL-T
1615 BEFORE the job ends, then they actually get stacked up in the
1616 input buffer queue, we can overflow the input buffer queue, and
1617 BAD THINGS happen. So, we also send a small PostScript job that
1618 will send a message of the form '%%[ echo: done ]%%', and only
1619 when we get this message do we send the CTRL-T, confident (or
1620 fairly confident) that the CTRL-T's will get processed.
1621 Testing this was truly an anal irritation experience.
1622 Sprinkled holy water on some places where a free() was being done but
1623 there was not test for a null value...
1624
1625
1626 Version 3.3.4 Tue Aug 3 15:22:51 PDT 1999
1627 Added a funny little option to handle options such as staple=on and have
1628 some code produced based on the 'on' value.
1629 # the %s{key} inserts the value of key
1630 ps_staple=[ staple_%s{staple} ]
1631 ps_staple_off=currentpagedevice /Staple known
1632 { << /Staple 0 /StapleDetails << /Type 6 /StapleMode 0 >>
1633 >> setpagedevice } if
1634 ps_staple_front=<< /Staple 1 /StapleDetails << /Type 6 /StapleMode 0 >>
1635 >> setpagedevice
1636 ps_staple_rear=<< /Staple 1 /StapleDetails << /Type 6 /StapleMode 1 >>
1637 >> setpagedevice
1638 ps_staple_both=<< /Staple 1 /StapleDetails << /Type 6 /StapleMode 2 >>
1639 >> setpagedevice
1640 (Patches and idea by: Garrett D'Amore <garrett _AT_ yavin.org>)
1641
1642 Modified ifhp.conf reading code to be more robust and efficient.
1643 Added a 'reopen_on_job' option to force appsocket to reopen connection
1644 to printer if there is a long delay sending job to printer.
1645 (Inspired by comments from: Isaac Hollander <hollande _AT_ ms.com>)
1646 configure now takes
1647 --with-admindir=DIR where to install ifhp.conf, default: /etc
1648 --with-filterdir=DIR where to install ifhp and other executables
1649 Added FreeBSD ports template to distribution for tracking purposes.
1650
1651 Version 3.3.3 Fri Jun 11 11:44:23 PDT 1999
1652 ifhp.conf -
1653 added lexmark4039 entry, to do synchronizcation.
1654 accounting information - quotes added around options
1655
1656 Version 3.3.2 Mon Jun 7 15:52:55 PDT 1999
1657 File descriptor 3 was closed when forking accounting
1658 program.
1659 (Reported and fix by: Jesper Dangaard Brouer <hawk _AT_ diku.dk>)
1660 Fixed up minor problems with PostScript banner generation.
1661 (Reported by: Reinhard Zierke <zierke _AT_ informatik.uni-hamburg.de>)
1662 Added a 'forceconversion' flag to force the file utility and
1663 the conversion utilities to be used.
1664
1665 Version 3.3.1
1666 BASELINE DISTRIBUTION
1667
1668 Version 3.2.10
1669 QMS printer support updated to try and handle appsocket a bit better.
1670 You now need a 'qms' flag to identify the printer as a qms printer.
1671 (Patches and suggestions by: Johan Claesson <Johan.Claesson _AT_ uab.ericsson.se>)
1672
1673 Version 3.2.9
1674 Removed '"' from ifhp.conf file that really messed things up.
1675
1676 Version 3.2.8
1677 Enabled PCL copies=nnn code
1678 (Missing operation reported by: Gerard Kok <kokg _AT_ geo.vu.nl>)
1679 Fixed pcl_linesperpage=...F instead of E
1680 (Reported by: Gerard Kok <kokg _AT_ geo.vu.nl>)
1681 When you are using the TEXT to XXX translation facility,
1682 the .... ZOPTS .... will get replaced with .... -Zzoptions ....
1683 and .... TOPTS .... will get replaced with .... -Ttoptions ....
1684
1685 Updated ifhp.conf file, added comments, moved HP5SiMx PostScript
1686 to the HP5SiMx section.
1687
1688 Modified the Pjl_console code to not be 'sticky'. This was painful.
1689 (Suggested by: Olav Kolbu <olav.kolbu _AT_ usit.uio.no>)
1690
1691 After extensive hand to hand combat with QMS printers,
1692 discovered that they apparently do NOT return status or PostScript
1693 output in a reliable manner. Added/modified [qms1725] entry
1694 to reflect this. Use appsocket protocol, but WITHOUT status
1695 capability. Also note that port 35 seems to be used by default,
1696 although this can be configured via the TCP/IP telnet interface.
1697 (Your milage may vary).
1698
1699 Version 3.2.7
1700 Rearranged code in Read_write_timeout() so that a read of status is
1701 attempted BEFORE exiting on a write error.
1702
1703 added pclbanner to the distribution
1704
1705 IFHP recognizes the PJL 'reset' sequence and treats it as a
1706 'raw' or unprocessed job. This allows you to send PJL jobs to the printer
1707 and not have them interpreted as PCL.
1708
1709 Version 3.2.6
1710 Added a console message for Lexmark and HP Printers that
1711 will be 'sticky' and stay visible after the job has been
1712 printed.
1713 (Provided by: Jason L Tibbitts III <tibbs _AT_ uh.edu>)
1714
1715 Fixed up 'progress' so that it prints Kbytes correctly... sigh.
1716
1717
1718 Version 3.2.5
1719 changed the a2ps options in ifhp.conf:
1720 -q -B -1 -M Letter --borders=no -o-
1721 (Suggested by: Jeff Gostin <jgostin _AT_ best.com>)
1722
1723 Version 3.2.5
1724 Cleaned up documentation, made sure the various
1725 configuration and installation defaults were consistent.
1726 Ummm... and also removed a core dump from the distribution.
1727 Sigh...
1728
1729 Version 3.2.4
1730 Cleaned up Makefile.in so that running configure in another directory
1731 will be possible. That is,
1732 cd ifhp...
1733 where=`pwd`
1734 mkdir ...
1735 cd ...
1736 sh $where/configure
1737 will now work correctly, and you can do a make install in $where
1738
1739 Added README.utilities and updated ifhp.conf file so that it has URL
1740 and ftp sites for file, enscript and a2ps tools.
1741
1742 The phaser support did not work with OF and IF filters.
1743 More 'shutdowns' and clean up added.
1744
1745 Sync and waitend made separate operations.
1746 You can now skip 'syncing' at the start, but you
1747 can force 'waitend'. This is side effect of phaser
1748 operation. You need to read status back from the printer until it closes
1749 the reverse connnection. If you have appsocket with waitend,
1750 you will read status back until the job finishes. If you do
1751 appsocket with waitend@, you will get no status information for job.
1752 This is not good, but gives you very fast throughput.
1753
1754 Version 3.2.3
1755 Updated Makefile.in so that when you do $(path)/configure for
1756 building in a separate directory, the right files are found.
1757
1758 Version 3.2.2
1759 Added support for Tektronixs Phaser Printers - using the appsocket protocol
1760
1761 Version 3.2.1
1762
1763 Most of the code seems pretty stable, so we start a new major release.
1764 There are mostly minor changes in the code for this release.
1765
1766 Added 'PseudoMagicFilter Support' and got text to PS conversion
1767 working correctly.
1768
1769 #
1770 # text conversion control
1771 #
1772 # control text to whatever conversion
1773 #
1774 # if you cannot find type, then try this file utility
1775 #
1776 # if the type is text and not supported on your system, do a conversion
1777 # Method 1 - set 'default_language' as text, and run
1778 # the program through a text to known converter
1779 #
1780 default_language=text
1781 text_converter=/usr/local/bin/a2ps -q -B -o-
1782 # output of the converter is pcl, ps, or raw
1783 text_converter_output=ps
1784
1785 #
1786 # Method 2 -
1787 # Use the file util and match the output
1788 # file reports format information
1789 # glob text_output_format text_converter
1790 # - you do a glob match against pattern and use the converter
1791 #
1792 default_language=unknown
1793 file_util_path=/usr/bin/file -
1794 file_output_match = [
1795 *text* ps /usr/local/bin/a2ps -q -B -o-
1796 ]
1797 # you need a temp file location
1798 tempfile=/var/tmp/ifhp
1799
1800 Added a horrible horrible kludge that allows multiple fonts to be
1801 loaded. You need to use:
1802 ifhp -Zfont=this,font=that,...
1803 which gets translated into font=this,that and the font handling code
1804 then works OK.
1805
1806 Added a QMS1725 entry that just might work.
1807 Fixed up a couple of minor PostScript quirks.
1808 Added PJL support for duplex.
1809
1810 Version 3.1.20
1811 Documentation. More Documentation. More ...
1812 Sigh...
1813
1814 Version 3.1.19
1815 Made status messages less verbose.
1816 'trace_on_stderr' is now just 'trace' ... Sigh...
1817
1818 Version 3.1.17
1819 Changed CRLF back to not effective... Sigh.
1820
1821 Version 3.1.16
1822 Fixed a problem with testing short files for file type.
1823 (Noted by: Mike Whitson <mwhitson _AT_ MIT.EDU>)
1824
1825 Added ledger paper types. HP printers are very odd...
1826 (John McCash thinks so too)
1827
1828 Made CRLF the default in ifhp.conf
1829
1830 Version 3.1.15
1831 Not distributed
1832
1833 Version 3.1.14
1834
1835 ifhp.conf:
1836 pcl_pagesize \033&l#A - set page size
1837 Thu Feb 4 16:52:58 PST 1999
1838 remove_control=xyz...
1839 if PostScript AND you have a ^x, ^y, ^z, etc., remove it.
1840 Suggested use: remove_control=CT removes CTRL-C, CTRL-T
1841 (Suggested by Mike Whitson <mwhitson _AT_ MIT.EDU>)
1842
1843 Version 3.1.6 - 3.1.13
1844 Lots and lots and lots of changes in ifhp.conf, etc, etc.
1845 Stable version approaching.
1846
1847 Version 3.1.5
1848 Experiments with various printers showed that the ifhp.conf
1849 file needed modification.
1850
1851 Added a 'banner_only' mode for banner printing only.
1852
1853
1854 Version 3.1.4
1855 Sun Dec 27 18:22:44 PST 1998
1856 Total rewrite of the ifhp software using a clean room
1857 approach.
1858 Patrick Powell [email protected]
1859
1860 $Id: CHANGES,v 1.126 2004/10/05 15:50:10 papowell Exp papowell $