Imported Debian patch 1.12-13
Chad Walstrom
18 years ago
0 | <!-- Automagically generated by the ToDo program on Sun Dec 21 12:18:28 2003 --> | |
1 | <todo version="0.1.17"> | |
2 | <title> | |
3 | Debian pnm2ppa TODO List | |
4 | </title> | |
5 | <note priority="high" time="1072030589"> | |
6 | Add "### BEGIN DEBCONF ###" or some such tag as visual reaffirmation to the sysadmin that debconf edits the config file. | |
7 | </note> | |
8 | <note priority="low" time="1072030628"> | |
9 | Add a manpage for the update-magicfilter script | |
10 | </note> | |
11 | </todo> |
0 | 0 | pnm2ppa for Debian |
1 | 1 | ---------------------- |
2 | 2 | |
3 | Using the pnm2ppa filter, it's possible to use printer with the PPA protocol. | |
4 | PPA is a proprietary protocol by Hewlett Packard. Printers using PPA are | |
5 | normally Windows-only. pnm2ppa supports color now. | |
3 | This Debian package is a rewrite of the original pnm2ppa package using the | |
4 | Debian Build System (dbs) and debconf templates. The goal of this conversion | |
5 | was to bring pnm2ppa packages up to date with current Debian standards and to | |
6 | clean up the installation and upgrade process. This package provides the | |
7 | following: | |
6 | 8 | |
7 | The configuration files are in /etc/ppa/. The papersize is being autodetected | |
8 | since this version. | |
9 | o A reasonable default configuration file | |
10 | o Clean generation of magicfilter files | |
11 | o Basic debconf management of the pnm2ppa.conf file | |
9 | 12 | |
10 | This package is based on the pbm2ppa package. Thanks to Ionutz Borcoman | |
11 | <borco@borco-ei.eng.hokudai.ac.jp>. | |
13 | Debconf and Configuration | |
14 | ------------------------- | |
15 | Debconf asks whether or not you'ld like it to manage your /etc/pnm2ppa.conf | |
16 | file and whether or not you want magicfilters generated in the /etc/magicfilter | |
17 | directory. If you choose to do this manually, you will need to edit the | |
18 | /etc/pnm2ppa.conf file yourself. | |
12 | 19 | |
13 | -- Roland Bauerschmidt <roland@copyleft.de>, Thu, 30 Mar 2000 20:51:28 +0100 | |
20 | You MUST choose a printer model for pnm2ppa to work! | |
21 | ||
22 | Some models behave differently than others, so pnm2ppa will fail if you do not | |
23 | choose a model. | |
14 | 24 | |
15 | Starting with pnm2ppa-1.0, pbm2ppa is completely replaced by pnm2ppa. pnm2ppa | |
16 | will create symlinks for old filters, so your old printcap should work without | |
17 | changes. | |
25 | Magicfilter | |
26 | ----------- | |
27 | Magicfilter is a useful print filtering tool to help you manage your | |
28 | /etc/printcap with print servers such as lpd or lprng. If you are using | |
29 | cupsys, you will not need magicfilter. There is a template for these filters | |
30 | located in /usr/share/pnm2ppa/templates called pnm2ppa-magicfilter.in. The | |
31 | scriptlet /usr/share/pnm2ppa/update-magicfilter will take this template and | |
32 | generate four filters: color, color economy, black and white, and black and | |
33 | white economy. | |
18 | 34 | |
19 | -- Ionutz Borcoman <borco@borco-ei.eng.hokudai.ac.jp>, Fri, 11 Aug 2000 | |
35 | Additionally, symbolic links are created from the generated pnm2ppa magicfilter | |
36 | files to pbm2ppa filters (the deprecated predecessor to pnm2ppa). This is | |
37 | simply provided for backwards compatibility with an existing /etc/printcap you | |
38 | may be using. This feature may be removed in the future. | |
20 | 39 | |
21 | As of Nov 2000, I don't use a PPA printer anymore. I'll continue to maintain | |
22 | this package untill Roland can maintain it again, but I'll be unable to | |
23 | test it myself. | |
40 | Once the filters are installed, run magicfilterconfig to generate your | |
41 | /etc/printcap. | |
24 | 42 | |
25 | -- Ionutz Borcoman <borco@borco-ei.eng.hokudai.ac.jp>, Thu, 09 Nov 2000 | |
26 | ||
27 | If you're using magicfilter or apsfilter, run magicfilterconfig or | |
28 | apsfilterconfig and simply follow the instructions. | |
29 | ||
30 | -- Matej Vela <vela@debian.org> Tue, 17 Apr 2001 17:48:24 +0200 | |
31 |
0 | - Add "### BEGIN DEBCONF ###" or some such tag as visual reaffirmation to the sysadmin | |
1 | that debconf edits the config file. | |
2 | (added Sun Dec 21 12:16:29 2003, incomplete, priority high) | |
3 | ||
4 | - Add a manpage for the update-magicfilter script | |
5 | (added Sun Dec 21 12:17:08 2003, incomplete, priority low) | |
6 |
61 | 61 | This manual page was written by Chad C. Walstrom <chewie@debian.org>, |
62 | 62 | for the Debian GNU/Linux system (but may be used by others). |
63 | 63 | .SH SEE ALSO |
64 | .IR pnm2ppa (8), | |
64 | .IR pnm2ppa (1), | |
65 | 65 | .IR magicfilter (8), |
66 | 66 | .IR apsfilter (8) |
0 | pnm2ppa (1.12-13) unstable; urgency=low | |
1 | ||
2 | * debian/po/de.po: Added German debconf templated submitted by Erik Schanze | |
3 | <schanzi_usenet@gmx.de>. Closes: #280039 | |
4 | * debian/watch: Added to please the "watchers" | |
5 | * debian/share/update-magicfilter: Check for root permissions upon | |
6 | execution. Fixed file permissions to please lintian. | |
7 | * debian/pnm2ppa.install.in: Explicitly installed files in debian/share | |
8 | rather than using a wildcard (don't want to install any CVS or ARCH files) | |
9 | * debian/rules (clean): Removed BASH'ism in clean target. | |
10 | ||
11 | -- Chad Walstrom <chewie@debian.org> Fri, 12 Nov 2004 09:58:07 -0600 | |
12 | ||
13 | pnm2ppa (1.12-12) unstable; urgency=low | |
14 | ||
15 | * debian/*.doc-base.*: Missing "Files:" field in two of the three doc-base | |
16 | spec files. Closes: #235520 | |
17 | ||
18 | -- Chad Walstrom <chewie@debian.org> Sun, 29 Feb 2004 17:12:21 -0600 | |
19 | ||
20 | pnm2ppa (1.12-11) unstable; urgency=low | |
21 | ||
22 | * debian/po/da.po: Added Danish Debconf translation. Thank you, Claus | |
23 | Hindsgaul <claus_h@image.dk>. Closes: #234946 | |
24 | * debian/rules: Removed the '-n' option from dh_installdocs so that | |
25 | debhelper can automatically add the install-docs call to the postinst | |
26 | and prerm scripts. | |
27 | ||
28 | -- Chad Walstrom <chewie@debian.org> Fri, 27 Feb 2004 18:04:41 -0600 | |
29 | ||
30 | pnm2ppa (1.12-10) unstable; urgency=low | |
31 | ||
32 | * debian/config, debian/postinst: More cleanups of package scripts. This | |
33 | fixes the failure to install if the user chooses NOT to configure the | |
34 | package with debconf. Closes: #229674 | |
35 | ||
36 | -- Chad Walstrom <chewie@debian.org> Sun, 25 Jan 2004 21:42:14 -0600 | |
37 | ||
38 | pnm2ppa (1.12-9) unstable; urgency=low | |
39 | ||
40 | * The "What was I thinking?" release. | |
41 | * Cleanup in postinst; use update-magicfilter. Closes: #226341 | |
42 | * French translation cleanup. Thanks to Denis Barbier <barbier@linuxfr.org> | |
43 | Closes: #225900 | |
44 | ||
45 | -- Chad Walstrom <chewie@debian.org> Tue, 6 Jan 2004 10:13:12 -0600 | |
46 | ||
47 | pnm2ppa (1.12-8) unstable; urgency=low | |
48 | ||
49 | * Japanese translation updated. Closes: #224155 | |
50 | * Fixed small typo in pnm2ppa manpage that caused it to be installed in | |
51 | /usr/share/man/man23 | |
52 | * Miscellaneous cleanup: | |
53 | - Removed extra copies of pnm2ppa.conf | |
54 | - Updated debhelper compat level | |
55 | - Updated control and rules files | |
56 | - Updated templates & po files to reflect correct pathnames of files | |
57 | * Fixed typo in call to dh_fixperms for update-magicfilter. Closes: #225258 | |
58 | ||
59 | -- Chad Walstrom <chewie@debian.org> Sun, 28 Dec 2003 11:21:25 -0600 | |
60 | ||
61 | pnm2ppa (1.12-7) unstable; urgency=low | |
62 | ||
63 | * Added Japanese translation to debconf. Thanks to OHURA Makoto | |
64 | <ohura@debian.org>. Closes: #218189 | |
65 | * Removed the "note" template and moved the information to README.Debian. | |
66 | Although the "note" template may have be informational, it was not | |
67 | critical to package installation. | |
68 | ||
69 | -- Chad Walstrom <chewie@debian.org> Wed, 29 Oct 2003 10:54:33 -0600 | |
70 | ||
71 | pnm2ppa (1.12-6) unstable; urgency=low | |
72 | ||
73 | * Fixed "wrong assumption on char signedness". Closes: #177295 | |
74 | * Cleaned up the messy debconf config script. Moved the filesystem | |
75 | alterations to postinst (i.e. config file manipulation). | |
76 | * Added /etc/pnm2ppa.conf to config file list | |
77 | * Switched to to gettext-based debconf, and added the French translation. | |
78 | Thanks, Michel Grentzinger <mic.grentz@online.fr>! Closes: #209105, #211266 | |
79 | * Added doc-base file to register SGML, HTML, and TXT documents. | |
80 | ||
81 | -- Chad Walstrom <chewie@debian.org> Thu, 23 Oct 2003 00:15:03 -0500 | |
82 | ||
83 | pnm2ppa (1.12-5) unstable; urgency=low | |
84 | ||
85 | * Fixed a typo in the templates file. | |
86 | * "Fixed" failure in preconfigure with the execution of update-magicfilter. | |
87 | Closes: #170844. (I'm starting to think that the magicfilter files | |
88 | shouldn't even be in this package, or should be placed in the doc | |
89 | directory under examples. Feedback welcome.) | |
90 | * Edited the copyright file, added some more information about Upstream | |
91 | Authors, Homepage, and Download URL's. | |
92 | ||
93 | -- Chad Walstrom <chewie@debian.org> Fri, 6 Dec 2002 10:40:54 -0600 | |
94 | ||
95 | pnm2ppa (1.12-4) unstable; urgency=low | |
96 | ||
97 | * Updated the /usr/share/pnm2ppa/templates/pnm2ppa-filter file with the | |
98 | correct sed replacement string (@OPTIONS@). | |
99 | * Fixed the permissions of the installed /etc/pnm2ppa.conf file. | |
100 | ||
101 | -- Chad Walstrom <chewie@debian.org> Sun, 24 Nov 2002 20:23:46 -0600 | |
102 | ||
103 | pnm2ppa (1.12-3) unstable; urgency=high | |
104 | ||
105 | * ACK! Introduced a bug that effectively deleted /bin/tempfile in 1.12-2. | |
106 | * update-magicfilter was not set executable. | |
107 | * config script exited incorrectly, which caused an error when the user | |
108 | chose NOT to use debconf to configure the /etc/pnm2ppa.conf file. | |
109 | ||
110 | -- Chad Walstrom <chewie@debian.org> Sun, 24 Nov 2002 00:44:13 -0600 | |
111 | ||
112 | pnm2ppa (1.12-2) unstable; urgency=low | |
113 | ||
114 | * Fix auto-build bug regarding removal of generated control files | |
115 | pnm2ppa.{install,examples}. Closes: #170249 | |
116 | * Added 'rmdir' for /etc/magicfilter if the directory is empty. (Complying | |
117 | to policy to remove all configuration files on a 'purge'.) | |
118 | ||
119 | -- Chad Walstrom <chewie@debian.org> Fri, 22 Nov 2002 11:10:28 -0600 | |
120 | ||
121 | pnm2ppa (1.12-1) unstable; urgency=low | |
122 | ||
123 | * New upstream release. Re-fixes the old "hangs at last centimeter" bug. | |
124 | * Fix brain-dead config bug; tests for existance of template or config file | |
125 | before trying to execute sed and mv. Closes: #169728 | |
126 | * Using sed to generate pnm2ppa.{install,examples} from *.in files. Cleans | |
127 | up build process so that editing for new upstream packages requires only a | |
128 | change to TAR_DIR variable in debian/rules. | |
129 | * Added 'purge' directives in pnm2ppa.postrm to remove /etc/pnm2ppa.conf | |
130 | and /etc/magicfilter/p?m2ppa*-filter files. | |
131 | ||
132 | -- Chad Walstrom <chewie@debian.org> Thu, 21 Nov 2002 13:20:56 -0600 | |
133 | ||
134 | pnm2ppa (1.11-1) unstable; urgency=low | |
135 | ||
136 | * The "tape-monkey time-killer" release. | |
137 | * New upstream version. Fixes typos and improves performance. | |
138 | Closes: #156825, #150244 | |
139 | * If no /etc/pnm2ppa.conf file exists, one is copied from | |
140 | /usr/share/pnm2ppa/templates. Closes: #151325 | |
141 | * Added debconf support to customize the model number for /etc/pnm2ppa.conf | |
142 | and can generate the magicfilter files. Closes: #120603 | |
143 | * Magicfilter file creation was cleaned up to use sed over a template file | |
144 | in /usr/share/pnm2ppa/templates. Admin can elect to not generate the | |
145 | magicfilters in debconf or run it manually from | |
146 | /usr/share/pnm2ppa/update-magicfilter. | |
147 | * Added more upstream documentation to the /usr/share/doc/pnm2ppa directory. | |
148 | * Rewrote package files to use the Debian Build System (dbs). Added | |
149 | Build-Depends to reflect this change. | |
150 | ||
151 | -- Chad Walstrom <chewie@debian.org> Mon, 18 Nov 2002 11:32:51 -0600 | |
152 | ||
0 | 153 | pnm2ppa (1.04-4) unstable; urgency=low |
1 | 154 | |
2 | 155 | * Long overdue adopted package. Closes: #88234 |
7 | 160 | pnm2ppa (1.04-3) unstable; urgency=low |
8 | 161 | |
9 | 162 | * `Suggests: magicfilter | apsfilter' rather than `Depends: |
10 | magicfilter'. The postinst no longer calls magicfilterconfig. | |
163 | magicfilter'. | |
164 | * The postinst no longer calls magicfilterconfig. If you're using | |
165 | magicfilter or apsfilter, run magicfilterconfig or apsfilterconfig and | |
166 | simply follow the instructions. | |
11 | 167 | |
12 | 168 | -- Matej Vela <vela@debian.org> Tue, 17 Apr 2001 18:09:39 +0200 |
13 | 169 | |
32 | 188 | pnm2ppa (1.03-1) unstable; urgency=low |
33 | 189 | |
34 | 190 | * New upstream release. |
191 | * As of Nov 2000, I don't use a PPA printer anymore. I'll continue to | |
192 | maintain this package untill Roland can maintain it again, but I'll be | |
193 | unable to test it myself. | |
35 | 194 | |
36 | 195 | -- Ionutz Borcoman <borco@borco-ei.eng.hokudai.ac.jp> Thu, 9 Nov 2000 13:53:51 +0900 |
37 | 196 | |
40 | 199 | * New upstream release. |
41 | 200 | * New maintainer. |
42 | 201 | * Completly replaces pbm2ppa. |
202 | * pnm2ppa will create symlinks for old filters, so your old printcap should | |
203 | work without changes. | |
43 | 204 | |
44 | 205 | -- Ionutz Borcoman <borco@borco-ei.eng.hokudai.ac.jp> Fri, 11 Aug 2000 12:19:15 +0900 |
45 | 206 | |
66 | 227 | pnm2ppa (0.20000326-1) unstable; urgency=low |
67 | 228 | |
68 | 229 | * New upstream release |
230 | * The configuration files are in /etc/ppa/. The papersize is being | |
231 | autodetected since this version. | |
232 | * This package is based on the pbm2ppa package. Thanks to Ionutz Borcoman | |
233 | <borco@borco-ei.eng.hokudai.ac.jp>. | |
69 | 234 | |
70 | 235 | -- Roland Bauerschmidt <roland@copyleft.de> Wed, 29 Mar 2000 16:38:26 +0200 |
71 | 236 |
0 | 4 |
0 | #!/bin/sh | |
1 | # | |
2 | # Config script for pnm2ppa | |
3 | # | |
4 | # Only ask the questions here. Make the changes to the filesystem in the | |
5 | # postinst script. | |
6 | # | |
7 | set -e | |
8 | ||
9 | # Source debconf library. | |
10 | . /usr/share/debconf/confmodule | |
11 | ||
12 | # Let debconf manage the file? | |
13 | db_input medium pnm2ppa/use_debconf || true | |
14 | db_go | |
15 | ||
16 | # Get the value | |
17 | db_get pnm2ppa/use_debconf | |
18 | if [ "$RET" = "true" ] ; then | |
19 | # Ask which printer | |
20 | db_input medium pnm2ppa/printer_model || true | |
21 | db_go | |
22 | ||
23 | # Create magicfilter for printer model? | |
24 | db_input low pnm2ppa/create_magicfilter || true | |
25 | db_go | |
26 | fi | |
27 |
1 | 1 | Section: text |
2 | 2 | Priority: optional |
3 | 3 | Maintainer: Chad Walstrom <chewie@debian.org> |
4 | Standards-Version: 3.5.2 | |
5 | Build-Depends: debhelper (>= 3) | |
4 | Build-Depends: debhelper (>= 4), dbs (>= 0.9) | |
5 | Standards-Version: 3.6.1 | |
6 | 6 | |
7 | 7 | Package: pnm2ppa |
8 | 8 | Architecture: any |
9 | Depends: ${shlibs:Depends}, gs | |
9 | Depends: ${shlibs:Depends}, ${misc:Depends}, gs | |
10 | 10 | Suggests: magicfilter | apsfilter |
11 | Replaces: pbm2ppa | |
12 | Provides: pbm2ppa | |
13 | 11 | Conflicts: pbm2ppa |
14 | 12 | Description: PPM to PPA converter |
15 | 13 | Using pnm2ppa it's possible to run HP-GDI printers on Linux. These printers |
0 | This package was debianized by Roland Bauerschmidt <roland@copyleft.de> on | |
1 | Sat, 4 Mar 2000 20:51:28 +0100. | |
0 | This package was originally debianized by Roland Bauerschmidt | |
1 | <roland@copyleft.de> on Sat, 4 Mar 2000 20:51:28 +0100. | |
2 | 2 | |
3 | It was downloaded from http://sourceforge.net/projects/pnm2ppa/ | |
4 | ||
5 | Upstream Author(s): Tim Norman <tim@normsoft.com> | |
3 | Homepage: http://pnm2ppa.sourceforge.net/ | |
4 | Download: http://sourceforge.net/projects/showfiles.php?group_id=1322 | |
5 | Upstream Authors: A complete list of authors and their contributions can be | |
6 | found in /usr/share/doc/pnm2ppa/CREDITS. | |
6 | 7 | |
7 | 8 | Copyright: |
8 | 9 | |
9 | GPL (see /usr/share/common-licenses/GPL for details) | |
10 | This package is free software; you can redistribute it and/or modify | |
11 | it under the terms of the GNU General Public License as published by | |
12 | the Free Software Foundation; version 2 dated June, 1991. | |
13 | ||
14 | This package is distributed in the hope that it will be useful, | |
15 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
17 | GNU General Public License for more details. | |
18 | ||
19 | You should have received a copy of the GNU General Public License | |
20 | along with this package; if not, write to the Free Software | |
21 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA | |
22 | 02111-1307, USA. | |
23 | ||
24 | On Debian GNU/Linux systems, the complete text of the GNU General | |
25 | Public License can be found in `/usr/share/common-licenses/GPL'. | |
26 |
0 | #!/usr/sbin/magicfilter | |
1 | # | |
2 | # Magic filter setup file for HP printers 720, 820 and 1000 series. | |
3 | ||
4 | # pnm2ppa supports color and black/white printing. This file was | |
5 | # tested on a HP Deskjet 720C printer, but is supposed to work on | |
6 | # other printers using the HP PPA protocol, too. Supported pagesizes | |
7 | # are a4, letter and legal. The pagesize has to be set in /etc/papersize | |
8 | # and not in the configuration files in /etc/ppa/pnm2ppa.conf.hp*. | |
9 | ||
10 | # Adapted from dj500-filter, cpsonly600-filter and pbm2ppa-filter | |
11 | # by Roland Bauerschmidt <roland@copyleft.de>, 2000 | |
12 | ||
13 | # PostScript | |
14 | 0 %! fpipe /usr/bin/gs -q -dSAFER -dNOPAUSE -r600 -sDEVICE=ppmraw -sOutputFile=- - -c quit | |
15 | 0 \004%! fpipe /usr/bin/gs -q -dSAFER -dNOPAUSE -r600 -sDEVICE=ppmraw -sOutputFile=- - -c quit | |
16 | ||
17 | ||
18 | 0 %PDF fpipe /usr/bin/gs -q -dSAFER -dNOPAUSE -r600 -sDEVICE=ppmraw -sOutputFile=- $FILE -c quit | |
19 | ||
20 | ||
21 | # TeX DVI | |
22 | 0 \367\002 fpipe /usr/bin/dvips -D 600 -R -q -f | |
23 | ||
24 | # compress'd data | |
25 | 0 \037\235 pipe /bin/gzip -cdq | |
26 | ||
27 | # packed, gzipped, frozen and SCO LZH data | |
28 | 0 \037\036 pipe /bin/gzip -cdq | |
29 | 0 \037\213 pipe /bin/gzip -cdq | |
30 | 0 \037\236 pipe /bin/gzip -cdq | |
31 | 0 \037\240 pipe /bin/gzip -cdq | |
32 | ||
33 | # troff documents | |
34 | 0 .\?\?\040 fpipe `/usr/bin/grog -Tps $FILE` | |
35 | 0 .\\\" fpipe `/usr/bin/grog -Tps $FILE` | |
36 | 0 '\\\" fpipe `/usr/bin/grog -Tps $FILE` | |
37 | 0 '.\\\" fpipe `/usr/bin/grog -Tps $FILE` | |
38 | 0 \\\" fpipe `/usr/bin/grog -Tps $FILE` | |
39 | ||
40 | # ditroff | |
41 | 0 "x T ps" pipe /usr/bin/grops | |
42 | 0 "x T dvi" pipe /usr/bin/grodvi | |
43 | 0 "x T ascii" pipe /usr/bin/grotty | |
44 | 0 "x T latin1" pipe /usr/bin/grotty | |
45 | 0 "x T lj4" reject Cannot print LaserJet 4 ditroff files. | |
46 | ||
47 | # Portable bit-, grey- and pixmaps | |
48 | 0 P1\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null | |
49 | 0 P2\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null | |
50 | 0 P3\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null | |
51 | 0 P4\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null | |
52 | 0 P5\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null | |
53 | 0 P6\n filter /usr/bin/pnm2ppa --bw --eco -f /etc/ppa/pnm2ppa.conf.hp1000 -i - -o - | |
54 | ||
55 | # HP Printer Control Language (PCL) -- assume start with reset code | |
56 | 0 \033E\033 reject Cannot print PCL files on this printer. | |
57 | ||
58 | # HP Printer Job Language (PJL) | |
59 | 0 \033%-12345X reject Cannot print PJL files on this printer. | |
60 | 0 "@PJL " reject Cannot print PJL files on this printer. | |
61 | 0 @PJL\t reject Cannot print PJL files on this printer. | |
62 | 0 @PJL\r reject Cannot print PJL files on this printer. | |
63 | 0 @PJL\n reject Cannot print PJL files on this printer. | |
64 | ||
65 | # GIF files | |
66 | 0 GIF87a pipe /usr/bin/giftopnm 2>/dev/null | |
67 | 0 GIF89a pipe /usr/bin/giftopnm 2>/dev/null | |
68 | ||
69 | # JFIF (JPEG) files | |
70 | 0 \377\330\377\340\?\?JFIF\0 pipe /usr/bin/djpeg -pnm | |
71 | ||
72 | # TIFF files (the last two bytes of the "magic" is really a version number; | |
73 | # but the magic is really lame and as far as I have understood the version | |
74 | # number has never changed and never will, so we include it.) | |
75 | 0 MM\0\x2a fpipe /usr/bin/tiff2ps $FILE | |
76 | 0 II\x2a\0 fpipe /usr/bin/tiff2ps $FILE | |
77 | ||
78 | # BMP files (even lousier magic -- Microsoft strikes again!) | |
79 | 0 BM\?\?\?\?\?\?\?\?\?\?\?\?\x0c pipe \ | |
80 | /usr/bin/bmptoppm 2>/dev/null | |
81 | 0 BM\?\?\?\?\?\?\?\?\?\?\?\?\x40 pipe \ | |
82 | /usr/bin/bmptoppm 2>/dev/null | |
83 | 0 BM\?\?\?\?\?\?\?\?\?\?\?\?\x28 pipe \ | |
84 | /usr/bin/bmptoppm 2>/dev/null | |
85 | ||
86 | # Garbage delivered from Windows via Samba | |
87 | # (donated by Andree Leidenfrost <leidenfrost@dkrz.de>) | |
88 | # 300 \033\052\157 cat | |
89 | # later changed to | |
90 | # (Bug report #22866: magicfilter: Incorrect magic for Win95/Samba print jobs) | |
91 | 0 \000\000\000\000\000 cat | |
92 | ||
93 | # Sun rasterfiles | |
94 | 0 \x59\xa6\x6a\x95 pipe /usr/bin/rasttopnm 2>/dev/null | |
95 | ||
96 | # SGI Imagelib (IRIS RGB) files | |
97 | 0 \x1\xda pipe /usr/bin/sgitopnm 2>/dev/null | |
98 | 0 \xda\x1 pipe /usr/bin/sgitopnm 2>/dev/null | |
99 | ||
100 | # FIG files; reported by Steven P. Hill <sph@uscbu.ih.att.com> | |
101 | 0 #FIG pipe /usr/bin/X11/fig2dev -Lps -P -l dummy | |
102 | ||
103 | # | |
104 | # Standard rejects... things we don't want to print | |
105 | # | |
106 | ||
107 | # Various archive formats | |
108 | 257 ustar\0 reject Attempted to print a tar file. | |
109 | 257 "ustar \0" reject Attempted to print a tar file. | |
110 | 0 07070 reject Attempted to print a cpio file. | |
111 | 0 PK\3\4 reject Attempted to print a zip file. | |
112 | 20 \xdc\xa7\xc7\xfd reject Attempted to print a zoo file. | |
113 | ||
114 | # Binaries (Linux): reject with email message | |
115 | 0 \013\1d\0 reject Attempted to print a compiled binary. | |
116 | 0 \100\1d\0 reject Attempted to print a compiled binary. | |
117 | 0 \007\1d\0 reject Attempted to print a compiled binary. | |
118 | 0 \314\0d\0 reject Attempted to print a compiled binary. | |
119 | 0 \177ELF reject Attempted to print an ELF object. | |
120 | 0 \007\001\0 reject Attempted to print an object file. | |
121 | 216 \021\001\0\0 reject Attempted to print a core dump file. | |
122 | 0 !<arch> reject Attempted to print an archive. | |
123 | 0 =<ar> reject Attempted to print an archive. | |
124 | ||
125 | # Don't confuse this one with troff! | |
126 | 0 .snd reject Attempted to print Sun/NeXT audio data. | |
127 | ||
128 | # wacko troff magic | |
129 | 0 ''' fpipe `/usr/bin/grog -Tps $FILE` | |
130 | ||
131 | # wild guess: PCL control codes start with <ESC> | |
132 | 0 \033 reject Cannot print PCL files on this printer. | |
133 | ||
134 | # Default entry -- for normal (text) files. MUST BE LAST. | |
135 | # If you do not have djscript use the other default line or, better, install | |
136 | # it. MM | |
137 | # | |
138 | default pipe /usr/bin/enscript -B -p- |
0 | #!/usr/sbin/magicfilter | |
1 | # | |
2 | # Magic filter setup file for HP printers 720, 820 and 1000 series. | |
3 | ||
4 | # pnm2ppa supports color and black/white printing. This file was | |
5 | # tested on a HP Deskjet 720C printer, but is supposed to work on | |
6 | # other printers using the HP PPA protocol, too. Supported pagesizes | |
7 | # are a4, letter and legal. The pagesize has to be set in /etc/papersize | |
8 | # and not in the configuration files in /etc/ppa/pnm2ppa.conf.hp*. | |
9 | ||
10 | # Adapted from dj500-filter, cpsonly600-filter and pbm2ppa-filter | |
11 | # by Roland Bauerschmidt <roland@copyleft.de>, 2000 | |
12 | ||
13 | # PostScript | |
14 | 0 %! fpipe /usr/bin/gs -q -dSAFER -dNOPAUSE -r600 -sDEVICE=ppmraw -sOutputFile=- - -c quit | |
15 | 0 \004%! fpipe /usr/bin/gs -q -dSAFER -dNOPAUSE -r600 -sDEVICE=ppmraw -sOutputFile=- - -c quit | |
16 | ||
17 | ||
18 | 0 %PDF fpipe /usr/bin/gs -q -dSAFER -dNOPAUSE -r600 -sDEVICE=ppmraw -sOutputFile=- $FILE -c quit | |
19 | ||
20 | ||
21 | # TeX DVI | |
22 | 0 \367\002 fpipe /usr/bin/dvips -D 600 -R -q -f | |
23 | ||
24 | # compress'd data | |
25 | 0 \037\235 pipe /bin/gzip -cdq | |
26 | ||
27 | # packed, gzipped, frozen and SCO LZH data | |
28 | 0 \037\036 pipe /bin/gzip -cdq | |
29 | 0 \037\213 pipe /bin/gzip -cdq | |
30 | 0 \037\236 pipe /bin/gzip -cdq | |
31 | 0 \037\240 pipe /bin/gzip -cdq | |
32 | ||
33 | # troff documents | |
34 | 0 .\?\?\040 fpipe `/usr/bin/grog -Tps $FILE` | |
35 | 0 .\\\" fpipe `/usr/bin/grog -Tps $FILE` | |
36 | 0 '\\\" fpipe `/usr/bin/grog -Tps $FILE` | |
37 | 0 '.\\\" fpipe `/usr/bin/grog -Tps $FILE` | |
38 | 0 \\\" fpipe `/usr/bin/grog -Tps $FILE` | |
39 | ||
40 | # ditroff | |
41 | 0 "x T ps" pipe /usr/bin/grops | |
42 | 0 "x T dvi" pipe /usr/bin/grodvi | |
43 | 0 "x T ascii" pipe /usr/bin/grotty | |
44 | 0 "x T latin1" pipe /usr/bin/grotty | |
45 | 0 "x T lj4" reject Cannot print LaserJet 4 ditroff files. | |
46 | ||
47 | # Portable bit-, grey- and pixmaps | |
48 | 0 P1\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null | |
49 | 0 P2\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null | |
50 | 0 P3\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null | |
51 | 0 P4\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null | |
52 | 0 P5\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null | |
53 | 0 P6\n filter /usr/bin/pnm2ppa --bw -f /etc/ppa/pnm2ppa.conf.hp1000 -i - -o - | |
54 | ||
55 | # HP Printer Control Language (PCL) -- assume start with reset code | |
56 | 0 \033E\033 reject Cannot print PCL files on this printer. | |
57 | ||
58 | # HP Printer Job Language (PJL) | |
59 | 0 \033%-12345X reject Cannot print PJL files on this printer. | |
60 | 0 "@PJL " reject Cannot print PJL files on this printer. | |
61 | 0 @PJL\t reject Cannot print PJL files on this printer. | |
62 | 0 @PJL\r reject Cannot print PJL files on this printer. | |
63 | 0 @PJL\n reject Cannot print PJL files on this printer. | |
64 | ||
65 | # GIF files | |
66 | 0 GIF87a pipe /usr/bin/giftopnm 2>/dev/null | |
67 | 0 GIF89a pipe /usr/bin/giftopnm 2>/dev/null | |
68 | ||
69 | # JFIF (JPEG) files | |
70 | 0 \377\330\377\340\?\?JFIF\0 pipe /usr/bin/djpeg -pnm | |
71 | ||
72 | # TIFF files (the last two bytes of the "magic" is really a version number; | |
73 | # but the magic is really lame and as far as I have understood the version | |
74 | # number has never changed and never will, so we include it.) | |
75 | 0 MM\0\x2a fpipe /usr/bin/tiff2ps $FILE | |
76 | 0 II\x2a\0 fpipe /usr/bin/tiff2ps $FILE | |
77 | ||
78 | # BMP files (even lousier magic -- Microsoft strikes again!) | |
79 | 0 BM\?\?\?\?\?\?\?\?\?\?\?\?\x0c pipe \ | |
80 | /usr/bin/bmptoppm 2>/dev/null | |
81 | 0 BM\?\?\?\?\?\?\?\?\?\?\?\?\x40 pipe \ | |
82 | /usr/bin/bmptoppm 2>/dev/null | |
83 | 0 BM\?\?\?\?\?\?\?\?\?\?\?\?\x28 pipe \ | |
84 | /usr/bin/bmptoppm 2>/dev/null | |
85 | ||
86 | # Garbage delivered from Windows via Samba | |
87 | # (donated by Andree Leidenfrost <leidenfrost@dkrz.de>) | |
88 | # 300 \033\052\157 cat | |
89 | # later changed to | |
90 | # (Bug report #22866: magicfilter: Incorrect magic for Win95/Samba print jobs) | |
91 | 0 \000\000\000\000\000 cat | |
92 | ||
93 | # Sun rasterfiles | |
94 | 0 \x59\xa6\x6a\x95 pipe /usr/bin/rasttopnm 2>/dev/null | |
95 | ||
96 | # SGI Imagelib (IRIS RGB) files | |
97 | 0 \x1\xda pipe /usr/bin/sgitopnm 2>/dev/null | |
98 | 0 \xda\x1 pipe /usr/bin/sgitopnm 2>/dev/null | |
99 | ||
100 | # FIG files; reported by Steven P. Hill <sph@uscbu.ih.att.com> | |
101 | 0 #FIG pipe /usr/bin/X11/fig2dev -Lps -P -l dummy | |
102 | ||
103 | # | |
104 | # Standard rejects... things we don't want to print | |
105 | # | |
106 | ||
107 | # Various archive formats | |
108 | 257 ustar\0 reject Attempted to print a tar file. | |
109 | 257 "ustar \0" reject Attempted to print a tar file. | |
110 | 0 07070 reject Attempted to print a cpio file. | |
111 | 0 PK\3\4 reject Attempted to print a zip file. | |
112 | 20 \xdc\xa7\xc7\xfd reject Attempted to print a zoo file. | |
113 | ||
114 | # Binaries (Linux): reject with email message | |
115 | 0 \013\1d\0 reject Attempted to print a compiled binary. | |
116 | 0 \100\1d\0 reject Attempted to print a compiled binary. | |
117 | 0 \007\1d\0 reject Attempted to print a compiled binary. | |
118 | 0 \314\0d\0 reject Attempted to print a compiled binary. | |
119 | 0 \177ELF reject Attempted to print an ELF object. | |
120 | 0 \007\001\0 reject Attempted to print an object file. | |
121 | 216 \021\001\0\0 reject Attempted to print a core dump file. | |
122 | 0 !<arch> reject Attempted to print an archive. | |
123 | 0 =<ar> reject Attempted to print an archive. | |
124 | ||
125 | # Don't confuse this one with troff! | |
126 | 0 .snd reject Attempted to print Sun/NeXT audio data. | |
127 | ||
128 | # wacko troff magic | |
129 | 0 ''' fpipe `/usr/bin/grog -Tps $FILE` | |
130 | ||
131 | # wild guess: PCL control codes start with <ESC> | |
132 | 0 \033 reject Cannot print PCL files on this printer. | |
133 | ||
134 | # Default entry -- for normal (text) files. MUST BE LAST. | |
135 | # If you do not have djscript use the other default line or, better, install | |
136 | # it. MM | |
137 | # | |
138 | default pipe /usr/bin/enscript -B -p- |
0 | #!/usr/sbin/magicfilter | |
1 | # | |
2 | # Magic filter setup file for HP printers 720, 820 and 1000 series. | |
3 | ||
4 | # pnm2ppa supports color and black/white printing. This file was | |
5 | # tested on a HP Deskjet 720C printer, but is supposed to work on | |
6 | # other printers using the HP PPA protocol, too. Supported pagesizes | |
7 | # are a4, letter and legal. The pagesize has to be set in /etc/papersize | |
8 | # and not in the configuration files in /etc/ppa/pnm2ppa.conf.hp*. | |
9 | ||
10 | # Adapted from dj500-filter, cpsonly600-filter and pbm2ppa-filter | |
11 | # by Roland Bauerschmidt <roland@copyleft.de>, 2000 | |
12 | ||
13 | # PostScript | |
14 | 0 %! fpipe /usr/bin/gs -q -dSAFER -dNOPAUSE -r600 -sDEVICE=ppmraw -sOutputFile=- - -c quit | |
15 | 0 \004%! fpipe /usr/bin/gs -q -dSAFER -dNOPAUSE -r600 -sDEVICE=ppmraw -sOutputFile=- - -c quit | |
16 | ||
17 | ||
18 | 0 %PDF fpipe /usr/bin/gs -q -dSAFER -dNOPAUSE -r600 -sDEVICE=ppmraw -sOutputFile=- $FILE -c quit | |
19 | ||
20 | ||
21 | # TeX DVI | |
22 | 0 \367\002 fpipe /usr/bin/dvips -D 600 -R -q -f | |
23 | ||
24 | # compress'd data | |
25 | 0 \037\235 pipe /bin/gzip -cdq | |
26 | ||
27 | # packed, gzipped, frozen and SCO LZH data | |
28 | 0 \037\036 pipe /bin/gzip -cdq | |
29 | 0 \037\213 pipe /bin/gzip -cdq | |
30 | 0 \037\236 pipe /bin/gzip -cdq | |
31 | 0 \037\240 pipe /bin/gzip -cdq | |
32 | ||
33 | # troff documents | |
34 | 0 .\?\?\040 fpipe `/usr/bin/grog -Tps $FILE` | |
35 | 0 .\\\" fpipe `/usr/bin/grog -Tps $FILE` | |
36 | 0 '\\\" fpipe `/usr/bin/grog -Tps $FILE` | |
37 | 0 '.\\\" fpipe `/usr/bin/grog -Tps $FILE` | |
38 | 0 \\\" fpipe `/usr/bin/grog -Tps $FILE` | |
39 | ||
40 | # ditroff | |
41 | 0 "x T ps" pipe /usr/bin/grops | |
42 | 0 "x T dvi" pipe /usr/bin/grodvi | |
43 | 0 "x T ascii" pipe /usr/bin/grotty | |
44 | 0 "x T latin1" pipe /usr/bin/grotty | |
45 | 0 "x T lj4" reject Cannot print LaserJet 4 ditroff files. | |
46 | ||
47 | # Portable bit-, grey- and pixmaps | |
48 | 0 P1\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null | |
49 | 0 P2\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null | |
50 | 0 P3\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null | |
51 | 0 P4\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null | |
52 | 0 P5\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null | |
53 | 0 P6\n filter /usr/bin/pnm2ppa --eco -f /etc/ppa/pnm2ppa.conf.hp1000 -i - -o - | |
54 | ||
55 | # HP Printer Control Language (PCL) -- assume start with reset code | |
56 | 0 \033E\033 reject Cannot print PCL files on this printer. | |
57 | ||
58 | # HP Printer Job Language (PJL) | |
59 | 0 \033%-12345X reject Cannot print PJL files on this printer. | |
60 | 0 "@PJL " reject Cannot print PJL files on this printer. | |
61 | 0 @PJL\t reject Cannot print PJL files on this printer. | |
62 | 0 @PJL\r reject Cannot print PJL files on this printer. | |
63 | 0 @PJL\n reject Cannot print PJL files on this printer. | |
64 | ||
65 | # GIF files | |
66 | 0 GIF87a pipe /usr/bin/giftopnm 2>/dev/null | |
67 | 0 GIF89a pipe /usr/bin/giftopnm 2>/dev/null | |
68 | ||
69 | # JFIF (JPEG) files | |
70 | 0 \377\330\377\340\?\?JFIF\0 pipe /usr/bin/djpeg -pnm | |
71 | ||
72 | # TIFF files (the last two bytes of the "magic" is really a version number; | |
73 | # but the magic is really lame and as far as I have understood the version | |
74 | # number has never changed and never will, so we include it.) | |
75 | 0 MM\0\x2a fpipe /usr/bin/tiff2ps $FILE | |
76 | 0 II\x2a\0 fpipe /usr/bin/tiff2ps $FILE | |
77 | ||
78 | # BMP files (even lousier magic -- Microsoft strikes again!) | |
79 | 0 BM\?\?\?\?\?\?\?\?\?\?\?\?\x0c pipe \ | |
80 | /usr/bin/bmptoppm 2>/dev/null | |
81 | 0 BM\?\?\?\?\?\?\?\?\?\?\?\?\x40 pipe \ | |
82 | /usr/bin/bmptoppm 2>/dev/null | |
83 | 0 BM\?\?\?\?\?\?\?\?\?\?\?\?\x28 pipe \ | |
84 | /usr/bin/bmptoppm 2>/dev/null | |
85 | ||
86 | # Garbage delivered from Windows via Samba | |
87 | # (donated by Andree Leidenfrost <leidenfrost@dkrz.de>) | |
88 | # 300 \033\052\157 cat | |
89 | # later changed to | |
90 | # (Bug report #22866: magicfilter: Incorrect magic for Win95/Samba print jobs) | |
91 | 0 \000\000\000\000\000 cat | |
92 | ||
93 | # Sun rasterfiles | |
94 | 0 \x59\xa6\x6a\x95 pipe /usr/bin/rasttopnm 2>/dev/null | |
95 | ||
96 | # SGI Imagelib (IRIS RGB) files | |
97 | 0 \x1\xda pipe /usr/bin/sgitopnm 2>/dev/null | |
98 | 0 \xda\x1 pipe /usr/bin/sgitopnm 2>/dev/null | |
99 | ||
100 | # FIG files; reported by Steven P. Hill <sph@uscbu.ih.att.com> | |
101 | 0 #FIG pipe /usr/bin/X11/fig2dev -Lps -P -l dummy | |
102 | ||
103 | # | |
104 | # Standard rejects... things we don't want to print | |
105 | # | |
106 | ||
107 | # Various archive formats | |
108 | 257 ustar\0 reject Attempted to print a tar file. | |
109 | 257 "ustar \0" reject Attempted to print a tar file. | |
110 | 0 07070 reject Attempted to print a cpio file. | |
111 | 0 PK\3\4 reject Attempted to print a zip file. | |
112 | 20 \xdc\xa7\xc7\xfd reject Attempted to print a zoo file. | |
113 | ||
114 | # Binaries (Linux): reject with email message | |
115 | 0 \013\1d\0 reject Attempted to print a compiled binary. | |
116 | 0 \100\1d\0 reject Attempted to print a compiled binary. | |
117 | 0 \007\1d\0 reject Attempted to print a compiled binary. | |
118 | 0 \314\0d\0 reject Attempted to print a compiled binary. | |
119 | 0 \177ELF reject Attempted to print an ELF object. | |
120 | 0 \007\001\0 reject Attempted to print an object file. | |
121 | 216 \021\001\0\0 reject Attempted to print a core dump file. | |
122 | 0 !<arch> reject Attempted to print an archive. | |
123 | 0 =<ar> reject Attempted to print an archive. | |
124 | ||
125 | # Don't confuse this one with troff! | |
126 | 0 .snd reject Attempted to print Sun/NeXT audio data. | |
127 | ||
128 | # wacko troff magic | |
129 | 0 ''' fpipe `/usr/bin/grog -Tps $FILE` | |
130 | ||
131 | # wild guess: PCL control codes start with <ESC> | |
132 | 0 \033 reject Cannot print PCL files on this printer. | |
133 | ||
134 | # Default entry -- for normal (text) files. MUST BE LAST. | |
135 | # If you do not have djscript use the other default line or, better, install | |
136 | # it. MM | |
137 | # | |
138 | default pipe /usr/bin/enscript -B -p- |
0 | #!/usr/sbin/magicfilter | |
1 | # | |
2 | # Magic filter setup file for HP printers 720, 820 and 1000 series. | |
3 | ||
4 | # pnm2ppa supports color and black/white printing. This file was | |
5 | # tested on a HP Deskjet 720C printer, but is supposed to work on | |
6 | # other printers using the HP PPA protocol, too. Supported pagesizes | |
7 | # are a4, letter and legal. The pagesize has to be set in /etc/papersize | |
8 | # and not in the configuration files in /etc/ppa/pnm2ppa.conf.hp*. | |
9 | ||
10 | # Adapted from dj500-filter, cpsonly600-filter and pbm2ppa-filter | |
11 | # by Roland Bauerschmidt <roland@copyleft.de>, 2000 | |
12 | ||
13 | # PostScript | |
14 | 0 %! fpipe /usr/bin/gs -q -dSAFER -dNOPAUSE -r600 -sDEVICE=ppmraw -sOutputFile=- - -c quit | |
15 | 0 \004%! fpipe /usr/bin/gs -q -dSAFER -dNOPAUSE -r600 -sDEVICE=ppmraw -sOutputFile=- - -c quit | |
16 | ||
17 | ||
18 | 0 %PDF fpipe /usr/bin/gs -q -dSAFER -dNOPAUSE -r600 -sDEVICE=ppmraw -sOutputFile=- $FILE -c quit | |
19 | ||
20 | ||
21 | # TeX DVI | |
22 | 0 \367\002 fpipe /usr/bin/dvips -D 600 -R -q -f | |
23 | ||
24 | # compress'd data | |
25 | 0 \037\235 pipe /bin/gzip -cdq | |
26 | ||
27 | # packed, gzipped, frozen and SCO LZH data | |
28 | 0 \037\036 pipe /bin/gzip -cdq | |
29 | 0 \037\213 pipe /bin/gzip -cdq | |
30 | 0 \037\236 pipe /bin/gzip -cdq | |
31 | 0 \037\240 pipe /bin/gzip -cdq | |
32 | ||
33 | # troff documents | |
34 | 0 .\?\?\040 fpipe `/usr/bin/grog -Tps $FILE` | |
35 | 0 .\\\" fpipe `/usr/bin/grog -Tps $FILE` | |
36 | 0 '\\\" fpipe `/usr/bin/grog -Tps $FILE` | |
37 | 0 '.\\\" fpipe `/usr/bin/grog -Tps $FILE` | |
38 | 0 \\\" fpipe `/usr/bin/grog -Tps $FILE` | |
39 | ||
40 | # ditroff | |
41 | 0 "x T ps" pipe /usr/bin/grops | |
42 | 0 "x T dvi" pipe /usr/bin/grodvi | |
43 | 0 "x T ascii" pipe /usr/bin/grotty | |
44 | 0 "x T latin1" pipe /usr/bin/grotty | |
45 | 0 "x T lj4" reject Cannot print LaserJet 4 ditroff files. | |
46 | ||
47 | # Portable bit-, grey- and pixmaps | |
48 | 0 P1\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null | |
49 | 0 P2\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null | |
50 | 0 P3\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null | |
51 | 0 P4\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null | |
52 | 0 P5\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null | |
53 | 0 P6\n filter /usr/bin/pnm2ppa -f /etc/ppa/pnm2ppa.conf.hp1000 -i - -o - | |
54 | ||
55 | # HP Printer Control Language (PCL) -- assume start with reset code | |
56 | 0 \033E\033 reject Cannot print PCL files on this printer. | |
57 | ||
58 | # HP Printer Job Language (PJL) | |
59 | 0 \033%-12345X reject Cannot print PJL files on this printer. | |
60 | 0 "@PJL " reject Cannot print PJL files on this printer. | |
61 | 0 @PJL\t reject Cannot print PJL files on this printer. | |
62 | 0 @PJL\r reject Cannot print PJL files on this printer. | |
63 | 0 @PJL\n reject Cannot print PJL files on this printer. | |
64 | ||
65 | # GIF files | |
66 | 0 GIF87a pipe /usr/bin/giftopnm 2>/dev/null | |
67 | 0 GIF89a pipe /usr/bin/giftopnm 2>/dev/null | |
68 | ||
69 | # JFIF (JPEG) files | |
70 | 0 \377\330\377\340\?\?JFIF\0 pipe /usr/bin/djpeg -pnm | |
71 | ||
72 | # TIFF files (the last two bytes of the "magic" is really a version number; | |
73 | # but the magic is really lame and as far as I have understood the version | |
74 | # number has never changed and never will, so we include it.) | |
75 | 0 MM\0\x2a fpipe /usr/bin/tiff2ps $FILE | |
76 | 0 II\x2a\0 fpipe /usr/bin/tiff2ps $FILE | |
77 | ||
78 | # BMP files (even lousier magic -- Microsoft strikes again!) | |
79 | 0 BM\?\?\?\?\?\?\?\?\?\?\?\?\x0c pipe \ | |
80 | /usr/bin/bmptoppm 2>/dev/null | |
81 | 0 BM\?\?\?\?\?\?\?\?\?\?\?\?\x40 pipe \ | |
82 | /usr/bin/bmptoppm 2>/dev/null | |
83 | 0 BM\?\?\?\?\?\?\?\?\?\?\?\?\x28 pipe \ | |
84 | /usr/bin/bmptoppm 2>/dev/null | |
85 | ||
86 | # Garbage delivered from Windows via Samba | |
87 | # (donated by Andree Leidenfrost <leidenfrost@dkrz.de>) | |
88 | # 300 \033\052\157 cat | |
89 | # later changed to | |
90 | # (Bug report #22866: magicfilter: Incorrect magic for Win95/Samba print jobs) | |
91 | 0 \000\000\000\000\000 cat | |
92 | ||
93 | # Sun rasterfiles | |
94 | 0 \x59\xa6\x6a\x95 pipe /usr/bin/rasttopnm 2>/dev/null | |
95 | ||
96 | # SGI Imagelib (IRIS RGB) files | |
97 | 0 \x1\xda pipe /usr/bin/sgitopnm 2>/dev/null | |
98 | 0 \xda\x1 pipe /usr/bin/sgitopnm 2>/dev/null | |
99 | ||
100 | # FIG files; reported by Steven P. Hill <sph@uscbu.ih.att.com> | |
101 | 0 #FIG pipe /usr/bin/X11/fig2dev -Lps -P -l dummy | |
102 | ||
103 | # | |
104 | # Standard rejects... things we don't want to print | |
105 | # | |
106 | ||
107 | # Various archive formats | |
108 | 257 ustar\0 reject Attempted to print a tar file. | |
109 | 257 "ustar \0" reject Attempted to print a tar file. | |
110 | 0 07070 reject Attempted to print a cpio file. | |
111 | 0 PK\3\4 reject Attempted to print a zip file. | |
112 | 20 \xdc\xa7\xc7\xfd reject Attempted to print a zoo file. | |
113 | ||
114 | # Binaries (Linux): reject with email message | |
115 | 0 \013\1d\0 reject Attempted to print a compiled binary. | |
116 | 0 \100\1d\0 reject Attempted to print a compiled binary. | |
117 | 0 \007\1d\0 reject Attempted to print a compiled binary. | |
118 | 0 \314\0d\0 reject Attempted to print a compiled binary. | |
119 | 0 \177ELF reject Attempted to print an ELF object. | |
120 | 0 \007\001\0 reject Attempted to print an object file. | |
121 | 216 \021\001\0\0 reject Attempted to print a core dump file. | |
122 | 0 !<arch> reject Attempted to print an archive. | |
123 | 0 =<ar> reject Attempted to print an archive. | |
124 | ||
125 | # Don't confuse this one with troff! | |
126 | 0 .snd reject Attempted to print Sun/NeXT audio data. | |
127 | ||
128 | # wacko troff magic | |
129 | 0 ''' fpipe `/usr/bin/grog -Tps $FILE` | |
130 | ||
131 | # wild guess: PCL control codes start with <ESC> | |
132 | 0 \033 reject Cannot print PCL files on this printer. | |
133 | ||
134 | # Default entry -- for normal (text) files. MUST BE LAST. | |
135 | # If you do not have djscript use the other default line or, better, install | |
136 | # it. MM | |
137 | # | |
138 | default pipe /usr/bin/enscript -B -p- |
0 | #!/usr/sbin/magicfilter | |
1 | # | |
2 | # Magic filter setup file for HP printers 720, 820 and 1000 series. | |
3 | ||
4 | # pnm2ppa supports color and black/white printing. This file was | |
5 | # tested on a HP Deskjet 720C printer, but is supposed to work on | |
6 | # other printers using the HP PPA protocol, too. Supported pagesizes | |
7 | # are a4, letter and legal. The pagesize has to be set in /etc/papersize | |
8 | # and not in the configuration files in /etc/ppa/pnm2ppa.conf.hp*. | |
9 | ||
10 | # Adapted from dj500-filter, cpsonly600-filter and pbm2ppa-filter | |
11 | # by Roland Bauerschmidt <roland@copyleft.de>, 2000 | |
12 | ||
13 | # PostScript | |
14 | 0 %! fpipe /usr/bin/gs -q -dSAFER -dNOPAUSE -r600 -sDEVICE=ppmraw -sOutputFile=- - -c quit | |
15 | 0 \004%! fpipe /usr/bin/gs -q -dSAFER -dNOPAUSE -r600 -sDEVICE=ppmraw -sOutputFile=- - -c quit | |
16 | ||
17 | ||
18 | 0 %PDF fpipe /usr/bin/gs -q -dSAFER -dNOPAUSE -r600 -sDEVICE=ppmraw -sOutputFile=- $FILE -c quit | |
19 | ||
20 | ||
21 | # TeX DVI | |
22 | 0 \367\002 fpipe /usr/bin/dvips -D 600 -R -q -f | |
23 | ||
24 | # compress'd data | |
25 | 0 \037\235 pipe /bin/gzip -cdq | |
26 | ||
27 | # packed, gzipped, frozen and SCO LZH data | |
28 | 0 \037\036 pipe /bin/gzip -cdq | |
29 | 0 \037\213 pipe /bin/gzip -cdq | |
30 | 0 \037\236 pipe /bin/gzip -cdq | |
31 | 0 \037\240 pipe /bin/gzip -cdq | |
32 | ||
33 | # troff documents | |
34 | 0 .\?\?\040 fpipe `/usr/bin/grog -Tps $FILE` | |
35 | 0 .\\\" fpipe `/usr/bin/grog -Tps $FILE` | |
36 | 0 '\\\" fpipe `/usr/bin/grog -Tps $FILE` | |
37 | 0 '.\\\" fpipe `/usr/bin/grog -Tps $FILE` | |
38 | 0 \\\" fpipe `/usr/bin/grog -Tps $FILE` | |
39 | ||
40 | # ditroff | |
41 | 0 "x T ps" pipe /usr/bin/grops | |
42 | 0 "x T dvi" pipe /usr/bin/grodvi | |
43 | 0 "x T ascii" pipe /usr/bin/grotty | |
44 | 0 "x T latin1" pipe /usr/bin/grotty | |
45 | 0 "x T lj4" reject Cannot print LaserJet 4 ditroff files. | |
46 | ||
47 | # Portable bit-, grey- and pixmaps | |
48 | 0 P1\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null | |
49 | 0 P2\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null | |
50 | 0 P3\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null | |
51 | 0 P4\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null | |
52 | 0 P5\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null | |
53 | 0 P6\n filter /usr/bin/pnm2ppa --bw --eco -f /etc/ppa/pnm2ppa.conf.hp720 -i - -o - | |
54 | ||
55 | # HP Printer Control Language (PCL) -- assume start with reset code | |
56 | 0 \033E\033 reject Cannot print PCL files on this printer. | |
57 | ||
58 | # HP Printer Job Language (PJL) | |
59 | 0 \033%-12345X reject Cannot print PJL files on this printer. | |
60 | 0 "@PJL " reject Cannot print PJL files on this printer. | |
61 | 0 @PJL\t reject Cannot print PJL files on this printer. | |
62 | 0 @PJL\r reject Cannot print PJL files on this printer. | |
63 | 0 @PJL\n reject Cannot print PJL files on this printer. | |
64 | ||
65 | # GIF files | |
66 | 0 GIF87a pipe /usr/bin/giftopnm 2>/dev/null | |
67 | 0 GIF89a pipe /usr/bin/giftopnm 2>/dev/null | |
68 | ||
69 | # JFIF (JPEG) files | |
70 | 0 \377\330\377\340\?\?JFIF\0 pipe /usr/bin/djpeg -pnm | |
71 | ||
72 | # TIFF files (the last two bytes of the "magic" is really a version number; | |
73 | # but the magic is really lame and as far as I have understood the version | |
74 | # number has never changed and never will, so we include it.) | |
75 | 0 MM\0\x2a fpipe /usr/bin/tiff2ps $FILE | |
76 | 0 II\x2a\0 fpipe /usr/bin/tiff2ps $FILE | |
77 | ||
78 | # BMP files (even lousier magic -- Microsoft strikes again!) | |
79 | 0 BM\?\?\?\?\?\?\?\?\?\?\?\?\x0c pipe \ | |
80 | /usr/bin/bmptoppm 2>/dev/null | |
81 | 0 BM\?\?\?\?\?\?\?\?\?\?\?\?\x40 pipe \ | |
82 | /usr/bin/bmptoppm 2>/dev/null | |
83 | 0 BM\?\?\?\?\?\?\?\?\?\?\?\?\x28 pipe \ | |
84 | /usr/bin/bmptoppm 2>/dev/null | |
85 | ||
86 | # Garbage delivered from Windows via Samba | |
87 | # (donated by Andree Leidenfrost <leidenfrost@dkrz.de>) | |
88 | # 300 \033\052\157 cat | |
89 | # later changed to | |
90 | # (Bug report #22866: magicfilter: Incorrect magic for Win95/Samba print jobs) | |
91 | 0 \000\000\000\000\000 cat | |
92 | ||
93 | # Sun rasterfiles | |
94 | 0 \x59\xa6\x6a\x95 pipe /usr/bin/rasttopnm 2>/dev/null | |
95 | ||
96 | # SGI Imagelib (IRIS RGB) files | |
97 | 0 \x1\xda pipe /usr/bin/sgitopnm 2>/dev/null | |
98 | 0 \xda\x1 pipe /usr/bin/sgitopnm 2>/dev/null | |
99 | ||
100 | # FIG files; reported by Steven P. Hill <sph@uscbu.ih.att.com> | |
101 | 0 #FIG pipe /usr/bin/X11/fig2dev -Lps -P -l dummy | |
102 | ||
103 | # | |
104 | # Standard rejects... things we don't want to print | |
105 | # | |
106 | ||
107 | # Various archive formats | |
108 | 257 ustar\0 reject Attempted to print a tar file. | |
109 | 257 "ustar \0" reject Attempted to print a tar file. | |
110 | 0 07070 reject Attempted to print a cpio file. | |
111 | 0 PK\3\4 reject Attempted to print a zip file. | |
112 | 20 \xdc\xa7\xc7\xfd reject Attempted to print a zoo file. | |
113 | ||
114 | # Binaries (Linux): reject with email message | |
115 | 0 \013\1d\0 reject Attempted to print a compiled binary. | |
116 | 0 \100\1d\0 reject Attempted to print a compiled binary. | |
117 | 0 \007\1d\0 reject Attempted to print a compiled binary. | |
118 | 0 \314\0d\0 reject Attempted to print a compiled binary. | |
119 | 0 \177ELF reject Attempted to print an ELF object. | |
120 | 0 \007\001\0 reject Attempted to print an object file. | |
121 | 216 \021\001\0\0 reject Attempted to print a core dump file. | |
122 | 0 !<arch> reject Attempted to print an archive. | |
123 | 0 =<ar> reject Attempted to print an archive. | |
124 | ||
125 | # Don't confuse this one with troff! | |
126 | 0 .snd reject Attempted to print Sun/NeXT audio data. | |
127 | ||
128 | # wacko troff magic | |
129 | 0 ''' fpipe `/usr/bin/grog -Tps $FILE` | |
130 | ||
131 | # wild guess: PCL control codes start with <ESC> | |
132 | 0 \033 reject Cannot print PCL files on this printer. | |
133 | ||
134 | # Default entry -- for normal (text) files. MUST BE LAST. | |
135 | # If you do not have djscript use the other default line or, better, install | |
136 | # it. MM | |
137 | # | |
138 | default pipe /usr/bin/enscript -B -p- |
0 | #!/usr/sbin/magicfilter | |
1 | # | |
2 | # Magic filter setup file for HP printers 720, 820 and 1000 series. | |
3 | ||
4 | # pnm2ppa supports color and black/white printing. This file was | |
5 | # tested on a HP Deskjet 720C printer, but is supposed to work on | |
6 | # other printers using the HP PPA protocol, too. Supported pagesizes | |
7 | # are a4, letter and legal. The pagesize has to be set in /etc/papersize | |
8 | # and not in the configuration files in /etc/ppa/pnm2ppa.conf.hp*. | |
9 | ||
10 | # Adapted from dj500-filter, cpsonly600-filter and pbm2ppa-filter | |
11 | # by Roland Bauerschmidt <roland@copyleft.de>, 2000 | |
12 | ||
13 | # PostScript | |
14 | 0 %! fpipe /usr/bin/gs -q -dSAFER -dNOPAUSE -r600 -sDEVICE=ppmraw -sOutputFile=- - -c quit | |
15 | 0 \004%! fpipe /usr/bin/gs -q -dSAFER -dNOPAUSE -r600 -sDEVICE=ppmraw -sOutputFile=- - -c quit | |
16 | ||
17 | ||
18 | 0 %PDF fpipe /usr/bin/gs -q -dSAFER -dNOPAUSE -r600 -sDEVICE=ppmraw -sOutputFile=- $FILE -c quit | |
19 | ||
20 | ||
21 | # TeX DVI | |
22 | 0 \367\002 fpipe /usr/bin/dvips -D 600 -R -q -f | |
23 | ||
24 | # compress'd data | |
25 | 0 \037\235 pipe /bin/gzip -cdq | |
26 | ||
27 | # packed, gzipped, frozen and SCO LZH data | |
28 | 0 \037\036 pipe /bin/gzip -cdq | |
29 | 0 \037\213 pipe /bin/gzip -cdq | |
30 | 0 \037\236 pipe /bin/gzip -cdq | |
31 | 0 \037\240 pipe /bin/gzip -cdq | |
32 | ||
33 | # troff documents | |
34 | 0 .\?\?\040 fpipe `/usr/bin/grog -Tps $FILE` | |
35 | 0 .\\\" fpipe `/usr/bin/grog -Tps $FILE` | |
36 | 0 '\\\" fpipe `/usr/bin/grog -Tps $FILE` | |
37 | 0 '.\\\" fpipe `/usr/bin/grog -Tps $FILE` | |
38 | 0 \\\" fpipe `/usr/bin/grog -Tps $FILE` | |
39 | ||
40 | # ditroff | |
41 | 0 "x T ps" pipe /usr/bin/grops | |
42 | 0 "x T dvi" pipe /usr/bin/grodvi | |
43 | 0 "x T ascii" pipe /usr/bin/grotty | |
44 | 0 "x T latin1" pipe /usr/bin/grotty | |
45 | 0 "x T lj4" reject Cannot print LaserJet 4 ditroff files. | |
46 | ||
47 | # Portable bit-, grey- and pixmaps | |
48 | 0 P1\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null | |
49 | 0 P2\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null | |
50 | 0 P3\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null | |
51 | 0 P4\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null | |
52 | 0 P5\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null | |
53 | 0 P6\n filter /usr/bin/pnm2ppa --bw -f /etc/ppa/pnm2ppa.conf.hp720 -i - -o - | |
54 | ||
55 | # HP Printer Control Language (PCL) -- assume start with reset code | |
56 | 0 \033E\033 reject Cannot print PCL files on this printer. | |
57 | ||
58 | # HP Printer Job Language (PJL) | |
59 | 0 \033%-12345X reject Cannot print PJL files on this printer. | |
60 | 0 "@PJL " reject Cannot print PJL files on this printer. | |
61 | 0 @PJL\t reject Cannot print PJL files on this printer. | |
62 | 0 @PJL\r reject Cannot print PJL files on this printer. | |
63 | 0 @PJL\n reject Cannot print PJL files on this printer. | |
64 | ||
65 | # GIF files | |
66 | 0 GIF87a pipe /usr/bin/giftopnm 2>/dev/null | |
67 | 0 GIF89a pipe /usr/bin/giftopnm 2>/dev/null | |
68 | ||
69 | # JFIF (JPEG) files | |
70 | 0 \377\330\377\340\?\?JFIF\0 pipe /usr/bin/djpeg -pnm | |
71 | ||
72 | # TIFF files (the last two bytes of the "magic" is really a version number; | |
73 | # but the magic is really lame and as far as I have understood the version | |
74 | # number has never changed and never will, so we include it.) | |
75 | 0 MM\0\x2a fpipe /usr/bin/tiff2ps $FILE | |
76 | 0 II\x2a\0 fpipe /usr/bin/tiff2ps $FILE | |
77 | ||
78 | # BMP files (even lousier magic -- Microsoft strikes again!) | |
79 | 0 BM\?\?\?\?\?\?\?\?\?\?\?\?\x0c pipe \ | |
80 | /usr/bin/bmptoppm 2>/dev/null | |
81 | 0 BM\?\?\?\?\?\?\?\?\?\?\?\?\x40 pipe \ | |
82 | /usr/bin/bmptoppm 2>/dev/null | |
83 | 0 BM\?\?\?\?\?\?\?\?\?\?\?\?\x28 pipe \ | |
84 | /usr/bin/bmptoppm 2>/dev/null | |
85 | ||
86 | # Garbage delivered from Windows via Samba | |
87 | # (donated by Andree Leidenfrost <leidenfrost@dkrz.de>) | |
88 | # 300 \033\052\157 cat | |
89 | # later changed to | |
90 | # (Bug report #22866: magicfilter: Incorrect magic for Win95/Samba print jobs) | |
91 | 0 \000\000\000\000\000 cat | |
92 | ||
93 | # Sun rasterfiles | |
94 | 0 \x59\xa6\x6a\x95 pipe /usr/bin/rasttopnm 2>/dev/null | |
95 | ||
96 | # SGI Imagelib (IRIS RGB) files | |
97 | 0 \x1\xda pipe /usr/bin/sgitopnm 2>/dev/null | |
98 | 0 \xda\x1 pipe /usr/bin/sgitopnm 2>/dev/null | |
99 | ||
100 | # FIG files; reported by Steven P. Hill <sph@uscbu.ih.att.com> | |
101 | 0 #FIG pipe /usr/bin/X11/fig2dev -Lps -P -l dummy | |
102 | ||
103 | # | |
104 | # Standard rejects... things we don't want to print | |
105 | # | |
106 | ||
107 | # Various archive formats | |
108 | 257 ustar\0 reject Attempted to print a tar file. | |
109 | 257 "ustar \0" reject Attempted to print a tar file. | |
110 | 0 07070 reject Attempted to print a cpio file. | |
111 | 0 PK\3\4 reject Attempted to print a zip file. | |
112 | 20 \xdc\xa7\xc7\xfd reject Attempted to print a zoo file. | |
113 | ||
114 | # Binaries (Linux): reject with email message | |
115 | 0 \013\1d\0 reject Attempted to print a compiled binary. | |
116 | 0 \100\1d\0 reject Attempted to print a compiled binary. | |
117 | 0 \007\1d\0 reject Attempted to print a compiled binary. | |
118 | 0 \314\0d\0 reject Attempted to print a compiled binary. | |
119 | 0 \177ELF reject Attempted to print an ELF object. | |
120 | 0 \007\001\0 reject Attempted to print an object file. | |
121 | 216 \021\001\0\0 reject Attempted to print a core dump file. | |
122 | 0 !<arch> reject Attempted to print an archive. | |
123 | 0 =<ar> reject Attempted to print an archive. | |
124 | ||
125 | # Don't confuse this one with troff! | |
126 | 0 .snd reject Attempted to print Sun/NeXT audio data. | |
127 | ||
128 | # wacko troff magic | |
129 | 0 ''' fpipe `/usr/bin/grog -Tps $FILE` | |
130 | ||
131 | # wild guess: PCL control codes start with <ESC> | |
132 | 0 \033 reject Cannot print PCL files on this printer. | |
133 | ||
134 | # Default entry -- for normal (text) files. MUST BE LAST. | |
135 | # If you do not have djscript use the other default line or, better, install | |
136 | # it. MM | |
137 | # | |
138 | default pipe /usr/bin/enscript -B -p- |
0 | #!/usr/sbin/magicfilter | |
1 | # | |
2 | # Magic filter setup file for HP printers 720, 820 and 1000 series. | |
3 | ||
4 | # pnm2ppa supports color and black/white printing. This file was | |
5 | # tested on a HP Deskjet 720C printer, but is supposed to work on | |
6 | # other printers using the HP PPA protocol, too. Supported pagesizes | |
7 | # are a4, letter and legal. The pagesize has to be set in /etc/papersize | |
8 | # and not in the configuration files in /etc/ppa/pnm2ppa.conf.hp*. | |
9 | ||
10 | # Adapted from dj500-filter, cpsonly600-filter and pbm2ppa-filter | |
11 | # by Roland Bauerschmidt <roland@copyleft.de>, 2000 | |
12 | ||
13 | # PostScript | |
14 | 0 %! fpipe /usr/bin/gs -q -dSAFER -dNOPAUSE -r600 -sDEVICE=ppmraw -sOutputFile=- - -c quit | |
15 | 0 \004%! fpipe /usr/bin/gs -q -dSAFER -dNOPAUSE -r600 -sDEVICE=ppmraw -sOutputFile=- - -c quit | |
16 | ||
17 | ||
18 | 0 %PDF fpipe /usr/bin/gs -q -dSAFER -dNOPAUSE -r600 -sDEVICE=ppmraw -sOutputFile=- $FILE -c quit | |
19 | ||
20 | ||
21 | # TeX DVI | |
22 | 0 \367\002 fpipe /usr/bin/dvips -D 600 -R -q -f | |
23 | ||
24 | # compress'd data | |
25 | 0 \037\235 pipe /bin/gzip -cdq | |
26 | ||
27 | # packed, gzipped, frozen and SCO LZH data | |
28 | 0 \037\036 pipe /bin/gzip -cdq | |
29 | 0 \037\213 pipe /bin/gzip -cdq | |
30 | 0 \037\236 pipe /bin/gzip -cdq | |
31 | 0 \037\240 pipe /bin/gzip -cdq | |
32 | ||
33 | # troff documents | |
34 | 0 .\?\?\040 fpipe `/usr/bin/grog -Tps $FILE` | |
35 | 0 .\\\" fpipe `/usr/bin/grog -Tps $FILE` | |
36 | 0 '\\\" fpipe `/usr/bin/grog -Tps $FILE` | |
37 | 0 '.\\\" fpipe `/usr/bin/grog -Tps $FILE` | |
38 | 0 \\\" fpipe `/usr/bin/grog -Tps $FILE` | |
39 | ||
40 | # ditroff | |
41 | 0 "x T ps" pipe /usr/bin/grops | |
42 | 0 "x T dvi" pipe /usr/bin/grodvi | |
43 | 0 "x T ascii" pipe /usr/bin/grotty | |
44 | 0 "x T latin1" pipe /usr/bin/grotty | |
45 | 0 "x T lj4" reject Cannot print LaserJet 4 ditroff files. | |
46 | ||
47 | # Portable bit-, grey- and pixmaps | |
48 | 0 P1\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null | |
49 | 0 P2\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null | |
50 | 0 P3\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null | |
51 | 0 P4\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null | |
52 | 0 P5\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null | |
53 | 0 P6\n filter /usr/bin/pnm2ppa --eco -f /etc/ppa/pnm2ppa.conf.hp720 -i - -o - | |
54 | ||
55 | # HP Printer Control Language (PCL) -- assume start with reset code | |
56 | 0 \033E\033 reject Cannot print PCL files on this printer. | |
57 | ||
58 | # HP Printer Job Language (PJL) | |
59 | 0 \033%-12345X reject Cannot print PJL files on this printer. | |
60 | 0 "@PJL " reject Cannot print PJL files on this printer. | |
61 | 0 @PJL\t reject Cannot print PJL files on this printer. | |
62 | 0 @PJL\r reject Cannot print PJL files on this printer. | |
63 | 0 @PJL\n reject Cannot print PJL files on this printer. | |
64 | ||
65 | # GIF files | |
66 | 0 GIF87a pipe /usr/bin/giftopnm 2>/dev/null | |
67 | 0 GIF89a pipe /usr/bin/giftopnm 2>/dev/null | |
68 | ||
69 | # JFIF (JPEG) files | |
70 | 0 \377\330\377\340\?\?JFIF\0 pipe /usr/bin/djpeg -pnm | |
71 | ||
72 | # TIFF files (the last two bytes of the "magic" is really a version number; | |
73 | # but the magic is really lame and as far as I have understood the version | |
74 | # number has never changed and never will, so we include it.) | |
75 | 0 MM\0\x2a fpipe /usr/bin/tiff2ps $FILE | |
76 | 0 II\x2a\0 fpipe /usr/bin/tiff2ps $FILE | |
77 | ||
78 | # BMP files (even lousier magic -- Microsoft strikes again!) | |
79 | 0 BM\?\?\?\?\?\?\?\?\?\?\?\?\x0c pipe \ | |
80 | /usr/bin/bmptoppm 2>/dev/null | |
81 | 0 BM\?\?\?\?\?\?\?\?\?\?\?\?\x40 pipe \ | |
82 | /usr/bin/bmptoppm 2>/dev/null | |
83 | 0 BM\?\?\?\?\?\?\?\?\?\?\?\?\x28 pipe \ | |
84 | /usr/bin/bmptoppm 2>/dev/null | |
85 | ||
86 | # Garbage delivered from Windows via Samba | |
87 | # (donated by Andree Leidenfrost <leidenfrost@dkrz.de>) | |
88 | # 300 \033\052\157 cat | |
89 | # later changed to | |
90 | # (Bug report #22866: magicfilter: Incorrect magic for Win95/Samba print jobs) | |
91 | 0 \000\000\000\000\000 cat | |
92 | ||
93 | # Sun rasterfiles | |
94 | 0 \x59\xa6\x6a\x95 pipe /usr/bin/rasttopnm 2>/dev/null | |
95 | ||
96 | # SGI Imagelib (IRIS RGB) files | |
97 | 0 \x1\xda pipe /usr/bin/sgitopnm 2>/dev/null | |
98 | 0 \xda\x1 pipe /usr/bin/sgitopnm 2>/dev/null | |
99 | ||
100 | # FIG files; reported by Steven P. Hill <sph@uscbu.ih.att.com> | |
101 | 0 #FIG pipe /usr/bin/X11/fig2dev -Lps -P -l dummy | |
102 | ||
103 | # | |
104 | # Standard rejects... things we don't want to print | |
105 | # | |
106 | ||
107 | # Various archive formats | |
108 | 257 ustar\0 reject Attempted to print a tar file. | |
109 | 257 "ustar \0" reject Attempted to print a tar file. | |
110 | 0 07070 reject Attempted to print a cpio file. | |
111 | 0 PK\3\4 reject Attempted to print a zip file. | |
112 | 20 \xdc\xa7\xc7\xfd reject Attempted to print a zoo file. | |
113 | ||
114 | # Binaries (Linux): reject with email message | |
115 | 0 \013\1d\0 reject Attempted to print a compiled binary. | |
116 | 0 \100\1d\0 reject Attempted to print a compiled binary. | |
117 | 0 \007\1d\0 reject Attempted to print a compiled binary. | |
118 | 0 \314\0d\0 reject Attempted to print a compiled binary. | |
119 | 0 \177ELF reject Attempted to print an ELF object. | |
120 | 0 \007\001\0 reject Attempted to print an object file. | |
121 | 216 \021\001\0\0 reject Attempted to print a core dump file. | |
122 | 0 !<arch> reject Attempted to print an archive. | |
123 | 0 =<ar> reject Attempted to print an archive. | |
124 | ||
125 | # Don't confuse this one with troff! | |
126 | 0 .snd reject Attempted to print Sun/NeXT audio data. | |
127 | ||
128 | # wacko troff magic | |
129 | 0 ''' fpipe `/usr/bin/grog -Tps $FILE` | |
130 | ||
131 | # wild guess: PCL control codes start with <ESC> | |
132 | 0 \033 reject Cannot print PCL files on this printer. | |
133 | ||
134 | # Default entry -- for normal (text) files. MUST BE LAST. | |
135 | # If you do not have djscript use the other default line or, better, install | |
136 | # it. MM | |
137 | # | |
138 | default pipe /usr/bin/enscript -B -p- |
0 | #!/usr/sbin/magicfilter | |
1 | # | |
2 | # Magic filter setup file for HP printers 720, 820 and 1000 series. | |
3 | ||
4 | # pnm2ppa supports color and black/white printing. This file was | |
5 | # tested on a HP Deskjet 720C printer, but is supposed to work on | |
6 | # other printers using the HP PPA protocol, too. Supported pagesizes | |
7 | # are a4, letter and legal. The pagesize has to be set in /etc/papersize | |
8 | # and not in the configuration files in /etc/ppa/pnm2ppa.conf.hp*. | |
9 | ||
10 | # Adapted from dj500-filter, cpsonly600-filter and pbm2ppa-filter | |
11 | # by Roland Bauerschmidt <roland@copyleft.de>, 2000 | |
12 | ||
13 | # PostScript | |
14 | 0 %! fpipe /usr/bin/gs -q -dSAFER -dNOPAUSE -r600 -sDEVICE=ppmraw -sOutputFile=- - -c quit | |
15 | 0 \004%! fpipe /usr/bin/gs -q -dSAFER -dNOPAUSE -r600 -sDEVICE=ppmraw -sOutputFile=- - -c quit | |
16 | ||
17 | ||
18 | 0 %PDF fpipe /usr/bin/gs -q -dSAFER -dNOPAUSE -r600 -sDEVICE=ppmraw -sOutputFile=- $FILE -c quit | |
19 | ||
20 | ||
21 | # TeX DVI | |
22 | 0 \367\002 fpipe /usr/bin/dvips -D 600 -R -q -f | |
23 | ||
24 | # compress'd data | |
25 | 0 \037\235 pipe /bin/gzip -cdq | |
26 | ||
27 | # packed, gzipped, frozen and SCO LZH data | |
28 | 0 \037\036 pipe /bin/gzip -cdq | |
29 | 0 \037\213 pipe /bin/gzip -cdq | |
30 | 0 \037\236 pipe /bin/gzip -cdq | |
31 | 0 \037\240 pipe /bin/gzip -cdq | |
32 | ||
33 | # troff documents | |
34 | 0 .\?\?\040 fpipe `/usr/bin/grog -Tps $FILE` | |
35 | 0 .\\\" fpipe `/usr/bin/grog -Tps $FILE` | |
36 | 0 '\\\" fpipe `/usr/bin/grog -Tps $FILE` | |
37 | 0 '.\\\" fpipe `/usr/bin/grog -Tps $FILE` | |
38 | 0 \\\" fpipe `/usr/bin/grog -Tps $FILE` | |
39 | ||
40 | # ditroff | |
41 | 0 "x T ps" pipe /usr/bin/grops | |
42 | 0 "x T dvi" pipe /usr/bin/grodvi | |
43 | 0 "x T ascii" pipe /usr/bin/grotty | |
44 | 0 "x T latin1" pipe /usr/bin/grotty | |
45 | 0 "x T lj4" reject Cannot print LaserJet 4 ditroff files. | |
46 | ||
47 | # Portable bit-, grey- and pixmaps | |
48 | 0 P1\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null | |
49 | 0 P2\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null | |
50 | 0 P3\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null | |
51 | 0 P4\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null | |
52 | 0 P5\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null | |
53 | 0 P6\n filter /usr/bin/pnm2ppa -f /etc/ppa/pnm2ppa.conf.hp720 -i - -o - | |
54 | ||
55 | # HP Printer Control Language (PCL) -- assume start with reset code | |
56 | 0 \033E\033 reject Cannot print PCL files on this printer. | |
57 | ||
58 | # HP Printer Job Language (PJL) | |
59 | 0 \033%-12345X reject Cannot print PJL files on this printer. | |
60 | 0 "@PJL " reject Cannot print PJL files on this printer. | |
61 | 0 @PJL\t reject Cannot print PJL files on this printer. | |
62 | 0 @PJL\r reject Cannot print PJL files on this printer. | |
63 | 0 @PJL\n reject Cannot print PJL files on this printer. | |
64 | ||
65 | # GIF files | |
66 | 0 GIF87a pipe /usr/bin/giftopnm 2>/dev/null | |
67 | 0 GIF89a pipe /usr/bin/giftopnm 2>/dev/null | |
68 | ||
69 | # JFIF (JPEG) files | |
70 | 0 \377\330\377\340\?\?JFIF\0 pipe /usr/bin/djpeg -pnm | |
71 | ||
72 | # TIFF files (the last two bytes of the "magic" is really a version number; | |
73 | # but the magic is really lame and as far as I have understood the version | |
74 | # number has never changed and never will, so we include it.) | |
75 | 0 MM\0\x2a fpipe /usr/bin/tiff2ps $FILE | |
76 | 0 II\x2a\0 fpipe /usr/bin/tiff2ps $FILE | |
77 | ||
78 | # BMP files (even lousier magic -- Microsoft strikes again!) | |
79 | 0 BM\?\?\?\?\?\?\?\?\?\?\?\?\x0c pipe \ | |
80 | /usr/bin/bmptoppm 2>/dev/null | |
81 | 0 BM\?\?\?\?\?\?\?\?\?\?\?\?\x40 pipe \ | |
82 | /usr/bin/bmptoppm 2>/dev/null | |
83 | 0 BM\?\?\?\?\?\?\?\?\?\?\?\?\x28 pipe \ | |
84 | /usr/bin/bmptoppm 2>/dev/null | |
85 | ||
86 | # Garbage delivered from Windows via Samba | |
87 | # (donated by Andree Leidenfrost <leidenfrost@dkrz.de>) | |
88 | # 300 \033\052\157 cat | |
89 | # later changed to | |
90 | # (Bug report #22866: magicfilter: Incorrect magic for Win95/Samba print jobs) | |
91 | 0 \000\000\000\000\000 cat | |
92 | ||
93 | # Sun rasterfiles | |
94 | 0 \x59\xa6\x6a\x95 pipe /usr/bin/rasttopnm 2>/dev/null | |
95 | ||
96 | # SGI Imagelib (IRIS RGB) files | |
97 | 0 \x1\xda pipe /usr/bin/sgitopnm 2>/dev/null | |
98 | 0 \xda\x1 pipe /usr/bin/sgitopnm 2>/dev/null | |
99 | ||
100 | # FIG files; reported by Steven P. Hill <sph@uscbu.ih.att.com> | |
101 | 0 #FIG pipe /usr/bin/X11/fig2dev -Lps -P -l dummy | |
102 | ||
103 | # | |
104 | # Standard rejects... things we don't want to print | |
105 | # | |
106 | ||
107 | # Various archive formats | |
108 | 257 ustar\0 reject Attempted to print a tar file. | |
109 | 257 "ustar \0" reject Attempted to print a tar file. | |
110 | 0 07070 reject Attempted to print a cpio file. | |
111 | 0 PK\3\4 reject Attempted to print a zip file. | |
112 | 20 \xdc\xa7\xc7\xfd reject Attempted to print a zoo file. | |
113 | ||
114 | # Binaries (Linux): reject with email message | |
115 | 0 \013\1d\0 reject Attempted to print a compiled binary. | |
116 | 0 \100\1d\0 reject Attempted to print a compiled binary. | |
117 | 0 \007\1d\0 reject Attempted to print a compiled binary. | |
118 | 0 \314\0d\0 reject Attempted to print a compiled binary. | |
119 | 0 \177ELF reject Attempted to print an ELF object. | |
120 | 0 \007\001\0 reject Attempted to print an object file. | |
121 | 216 \021\001\0\0 reject Attempted to print a core dump file. | |
122 | 0 !<arch> reject Attempted to print an archive. | |
123 | 0 =<ar> reject Attempted to print an archive. | |
124 | ||
125 | # Don't confuse this one with troff! | |
126 | 0 .snd reject Attempted to print Sun/NeXT audio data. | |
127 | ||
128 | # wacko troff magic | |
129 | 0 ''' fpipe `/usr/bin/grog -Tps $FILE` | |
130 | ||
131 | # wild guess: PCL control codes start with <ESC> | |
132 | 0 \033 reject Cannot print PCL files on this printer. | |
133 | ||
134 | # Default entry -- for normal (text) files. MUST BE LAST. | |
135 | # If you do not have djscript use the other default line or, better, install | |
136 | # it. MM | |
137 | # | |
138 | default pipe /usr/bin/enscript -B -p- |
0 | #!/usr/sbin/magicfilter | |
1 | # | |
2 | # Magic filter setup file for HP printers 720, 820 and 1000 series. | |
3 | ||
4 | # pnm2ppa supports color and black/white printing. This file was | |
5 | # tested on a HP Deskjet 720C printer, but is supposed to work on | |
6 | # other printers using the HP PPA protocol, too. Supported pagesizes | |
7 | # are a4, letter and legal. The pagesize has to be set in /etc/papersize | |
8 | # and not in the configuration files in /etc/ppa/pnm2ppa.conf.hp*. | |
9 | ||
10 | # Adapted from dj500-filter, cpsonly600-filter and pbm2ppa-filter | |
11 | # by Roland Bauerschmidt <roland@copyleft.de>, 2000 | |
12 | ||
13 | # PostScript | |
14 | 0 %! fpipe /usr/bin/gs -q -dSAFER -dNOPAUSE -r600 -sDEVICE=ppmraw -sOutputFile=- - -c quit | |
15 | 0 \004%! fpipe /usr/bin/gs -q -dSAFER -dNOPAUSE -r600 -sDEVICE=ppmraw -sOutputFile=- - -c quit | |
16 | ||
17 | ||
18 | 0 %PDF fpipe /usr/bin/gs -q -dSAFER -dNOPAUSE -r600 -sDEVICE=ppmraw -sOutputFile=- $FILE -c quit | |
19 | ||
20 | ||
21 | # TeX DVI | |
22 | 0 \367\002 fpipe /usr/bin/dvips -D 600 -R -q -f | |
23 | ||
24 | # compress'd data | |
25 | 0 \037\235 pipe /bin/gzip -cdq | |
26 | ||
27 | # packed, gzipped, frozen and SCO LZH data | |
28 | 0 \037\036 pipe /bin/gzip -cdq | |
29 | 0 \037\213 pipe /bin/gzip -cdq | |
30 | 0 \037\236 pipe /bin/gzip -cdq | |
31 | 0 \037\240 pipe /bin/gzip -cdq | |
32 | ||
33 | # troff documents | |
34 | 0 .\?\?\040 fpipe `/usr/bin/grog -Tps $FILE` | |
35 | 0 .\\\" fpipe `/usr/bin/grog -Tps $FILE` | |
36 | 0 '\\\" fpipe `/usr/bin/grog -Tps $FILE` | |
37 | 0 '.\\\" fpipe `/usr/bin/grog -Tps $FILE` | |
38 | 0 \\\" fpipe `/usr/bin/grog -Tps $FILE` | |
39 | ||
40 | # ditroff | |
41 | 0 "x T ps" pipe /usr/bin/grops | |
42 | 0 "x T dvi" pipe /usr/bin/grodvi | |
43 | 0 "x T ascii" pipe /usr/bin/grotty | |
44 | 0 "x T latin1" pipe /usr/bin/grotty | |
45 | 0 "x T lj4" reject Cannot print LaserJet 4 ditroff files. | |
46 | ||
47 | # Portable bit-, grey- and pixmaps | |
48 | 0 P1\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null | |
49 | 0 P2\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null | |
50 | 0 P3\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null | |
51 | 0 P4\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null | |
52 | 0 P5\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null | |
53 | 0 P6\n filter /usr/bin/pnm2ppa --bw --eco -f /etc/ppa/pnm2ppa.conf.hp820 -i - -o - | |
54 | ||
55 | # HP Printer Control Language (PCL) -- assume start with reset code | |
56 | 0 \033E\033 reject Cannot print PCL files on this printer. | |
57 | ||
58 | # HP Printer Job Language (PJL) | |
59 | 0 \033%-12345X reject Cannot print PJL files on this printer. | |
60 | 0 "@PJL " reject Cannot print PJL files on this printer. | |
61 | 0 @PJL\t reject Cannot print PJL files on this printer. | |
62 | 0 @PJL\r reject Cannot print PJL files on this printer. | |
63 | 0 @PJL\n reject Cannot print PJL files on this printer. | |
64 | ||
65 | # GIF files | |
66 | 0 GIF87a pipe /usr/bin/giftopnm 2>/dev/null | |
67 | 0 GIF89a pipe /usr/bin/giftopnm 2>/dev/null | |
68 | ||
69 | # JFIF (JPEG) files | |
70 | 0 \377\330\377\340\?\?JFIF\0 pipe /usr/bin/djpeg -pnm | |
71 | ||
72 | # TIFF files (the last two bytes of the "magic" is really a version number; | |
73 | # but the magic is really lame and as far as I have understood the version | |
74 | # number has never changed and never will, so we include it.) | |
75 | 0 MM\0\x2a fpipe /usr/bin/tiff2ps $FILE | |
76 | 0 II\x2a\0 fpipe /usr/bin/tiff2ps $FILE | |
77 | ||
78 | # BMP files (even lousier magic -- Microsoft strikes again!) | |
79 | 0 BM\?\?\?\?\?\?\?\?\?\?\?\?\x0c pipe \ | |
80 | /usr/bin/bmptoppm 2>/dev/null | |
81 | 0 BM\?\?\?\?\?\?\?\?\?\?\?\?\x40 pipe \ | |
82 | /usr/bin/bmptoppm 2>/dev/null | |
83 | 0 BM\?\?\?\?\?\?\?\?\?\?\?\?\x28 pipe \ | |
84 | /usr/bin/bmptoppm 2>/dev/null | |
85 | ||
86 | # Garbage delivered from Windows via Samba | |
87 | # (donated by Andree Leidenfrost <leidenfrost@dkrz.de>) | |
88 | # 300 \033\052\157 cat | |
89 | # later changed to | |
90 | # (Bug report #22866: magicfilter: Incorrect magic for Win95/Samba print jobs) | |
91 | 0 \000\000\000\000\000 cat | |
92 | ||
93 | # Sun rasterfiles | |
94 | 0 \x59\xa6\x6a\x95 pipe /usr/bin/rasttopnm 2>/dev/null | |
95 | ||
96 | # SGI Imagelib (IRIS RGB) files | |
97 | 0 \x1\xda pipe /usr/bin/sgitopnm 2>/dev/null | |
98 | 0 \xda\x1 pipe /usr/bin/sgitopnm 2>/dev/null | |
99 | ||
100 | # FIG files; reported by Steven P. Hill <sph@uscbu.ih.att.com> | |
101 | 0 #FIG pipe /usr/bin/X11/fig2dev -Lps -P -l dummy | |
102 | ||
103 | # | |
104 | # Standard rejects... things we don't want to print | |
105 | # | |
106 | ||
107 | # Various archive formats | |
108 | 257 ustar\0 reject Attempted to print a tar file. | |
109 | 257 "ustar \0" reject Attempted to print a tar file. | |
110 | 0 07070 reject Attempted to print a cpio file. | |
111 | 0 PK\3\4 reject Attempted to print a zip file. | |
112 | 20 \xdc\xa7\xc7\xfd reject Attempted to print a zoo file. | |
113 | ||
114 | # Binaries (Linux): reject with email message | |
115 | 0 \013\1d\0 reject Attempted to print a compiled binary. | |
116 | 0 \100\1d\0 reject Attempted to print a compiled binary. | |
117 | 0 \007\1d\0 reject Attempted to print a compiled binary. | |
118 | 0 \314\0d\0 reject Attempted to print a compiled binary. | |
119 | 0 \177ELF reject Attempted to print an ELF object. | |
120 | 0 \007\001\0 reject Attempted to print an object file. | |
121 | 216 \021\001\0\0 reject Attempted to print a core dump file. | |
122 | 0 !<arch> reject Attempted to print an archive. | |
123 | 0 =<ar> reject Attempted to print an archive. | |
124 | ||
125 | # Don't confuse this one with troff! | |
126 | 0 .snd reject Attempted to print Sun/NeXT audio data. | |
127 | ||
128 | # wacko troff magic | |
129 | 0 ''' fpipe `/usr/bin/grog -Tps $FILE` | |
130 | ||
131 | # wild guess: PCL control codes start with <ESC> | |
132 | 0 \033 reject Cannot print PCL files on this printer. | |
133 | ||
134 | # Default entry -- for normal (text) files. MUST BE LAST. | |
135 | # If you do not have djscript use the other default line or, better, install | |
136 | # it. MM | |
137 | # | |
138 | default pipe /usr/bin/enscript -B -p- |
0 | #!/usr/sbin/magicfilter | |
1 | # | |
2 | # Magic filter setup file for HP printers 720, 820 and 1000 series. | |
3 | ||
4 | # pnm2ppa supports color and black/white printing. This file was | |
5 | # tested on a HP Deskjet 720C printer, but is supposed to work on | |
6 | # other printers using the HP PPA protocol, too. Supported pagesizes | |
7 | # are a4, letter and legal. The pagesize has to be set in /etc/papersize | |
8 | # and not in the configuration files in /etc/ppa/pnm2ppa.conf.hp*. | |
9 | ||
10 | # Adapted from dj500-filter, cpsonly600-filter and pbm2ppa-filter | |
11 | # by Roland Bauerschmidt <roland@copyleft.de>, 2000 | |
12 | ||
13 | # PostScript | |
14 | 0 %! fpipe /usr/bin/gs -q -dSAFER -dNOPAUSE -r600 -sDEVICE=ppmraw -sOutputFile=- - -c quit | |
15 | 0 \004%! fpipe /usr/bin/gs -q -dSAFER -dNOPAUSE -r600 -sDEVICE=ppmraw -sOutputFile=- - -c quit | |
16 | ||
17 | ||
18 | 0 %PDF fpipe /usr/bin/gs -q -dSAFER -dNOPAUSE -r600 -sDEVICE=ppmraw -sOutputFile=- $FILE -c quit | |
19 | ||
20 | ||
21 | # TeX DVI | |
22 | 0 \367\002 fpipe /usr/bin/dvips -D 600 -R -q -f | |
23 | ||
24 | # compress'd data | |
25 | 0 \037\235 pipe /bin/gzip -cdq | |
26 | ||
27 | # packed, gzipped, frozen and SCO LZH data | |
28 | 0 \037\036 pipe /bin/gzip -cdq | |
29 | 0 \037\213 pipe /bin/gzip -cdq | |
30 | 0 \037\236 pipe /bin/gzip -cdq | |
31 | 0 \037\240 pipe /bin/gzip -cdq | |
32 | ||
33 | # troff documents | |
34 | 0 .\?\?\040 fpipe `/usr/bin/grog -Tps $FILE` | |
35 | 0 .\\\" fpipe `/usr/bin/grog -Tps $FILE` | |
36 | 0 '\\\" fpipe `/usr/bin/grog -Tps $FILE` | |
37 | 0 '.\\\" fpipe `/usr/bin/grog -Tps $FILE` | |
38 | 0 \\\" fpipe `/usr/bin/grog -Tps $FILE` | |
39 | ||
40 | # ditroff | |
41 | 0 "x T ps" pipe /usr/bin/grops | |
42 | 0 "x T dvi" pipe /usr/bin/grodvi | |
43 | 0 "x T ascii" pipe /usr/bin/grotty | |
44 | 0 "x T latin1" pipe /usr/bin/grotty | |
45 | 0 "x T lj4" reject Cannot print LaserJet 4 ditroff files. | |
46 | ||
47 | # Portable bit-, grey- and pixmaps | |
48 | 0 P1\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null | |
49 | 0 P2\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null | |
50 | 0 P3\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null | |
51 | 0 P4\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null | |
52 | 0 P5\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null | |
53 | 0 P6\n filter /usr/bin/pnm2ppa --bw -f /etc/ppa/pnm2ppa.conf.hp820 -i - -o - | |
54 | ||
55 | # HP Printer Control Language (PCL) -- assume start with reset code | |
56 | 0 \033E\033 reject Cannot print PCL files on this printer. | |
57 | ||
58 | # HP Printer Job Language (PJL) | |
59 | 0 \033%-12345X reject Cannot print PJL files on this printer. | |
60 | 0 "@PJL " reject Cannot print PJL files on this printer. | |
61 | 0 @PJL\t reject Cannot print PJL files on this printer. | |
62 | 0 @PJL\r reject Cannot print PJL files on this printer. | |
63 | 0 @PJL\n reject Cannot print PJL files on this printer. | |
64 | ||
65 | # GIF files | |
66 | 0 GIF87a pipe /usr/bin/giftopnm 2>/dev/null | |
67 | 0 GIF89a pipe /usr/bin/giftopnm 2>/dev/null | |
68 | ||
69 | # JFIF (JPEG) files | |
70 | 0 \377\330\377\340\?\?JFIF\0 pipe /usr/bin/djpeg -pnm | |
71 | ||
72 | # TIFF files (the last two bytes of the "magic" is really a version number; | |
73 | # but the magic is really lame and as far as I have understood the version | |
74 | # number has never changed and never will, so we include it.) | |
75 | 0 MM\0\x2a fpipe /usr/bin/tiff2ps $FILE | |
76 | 0 II\x2a\0 fpipe /usr/bin/tiff2ps $FILE | |
77 | ||
78 | # BMP files (even lousier magic -- Microsoft strikes again!) | |
79 | 0 BM\?\?\?\?\?\?\?\?\?\?\?\?\x0c pipe \ | |
80 | /usr/bin/bmptoppm 2>/dev/null | |
81 | 0 BM\?\?\?\?\?\?\?\?\?\?\?\?\x40 pipe \ | |
82 | /usr/bin/bmptoppm 2>/dev/null | |
83 | 0 BM\?\?\?\?\?\?\?\?\?\?\?\?\x28 pipe \ | |
84 | /usr/bin/bmptoppm 2>/dev/null | |
85 | ||
86 | # Garbage delivered from Windows via Samba | |
87 | # (donated by Andree Leidenfrost <leidenfrost@dkrz.de>) | |
88 | # 300 \033\052\157 cat | |
89 | # later changed to | |
90 | # (Bug report #22866: magicfilter: Incorrect magic for Win95/Samba print jobs) | |
91 | 0 \000\000\000\000\000 cat | |
92 | ||
93 | # Sun rasterfiles | |
94 | 0 \x59\xa6\x6a\x95 pipe /usr/bin/rasttopnm 2>/dev/null | |
95 | ||
96 | # SGI Imagelib (IRIS RGB) files | |
97 | 0 \x1\xda pipe /usr/bin/sgitopnm 2>/dev/null | |
98 | 0 \xda\x1 pipe /usr/bin/sgitopnm 2>/dev/null | |
99 | ||
100 | # FIG files; reported by Steven P. Hill <sph@uscbu.ih.att.com> | |
101 | 0 #FIG pipe /usr/bin/X11/fig2dev -Lps -P -l dummy | |
102 | ||
103 | # | |
104 | # Standard rejects... things we don't want to print | |
105 | # | |
106 | ||
107 | # Various archive formats | |
108 | 257 ustar\0 reject Attempted to print a tar file. | |
109 | 257 "ustar \0" reject Attempted to print a tar file. | |
110 | 0 07070 reject Attempted to print a cpio file. | |
111 | 0 PK\3\4 reject Attempted to print a zip file. | |
112 | 20 \xdc\xa7\xc7\xfd reject Attempted to print a zoo file. | |
113 | ||
114 | # Binaries (Linux): reject with email message | |
115 | 0 \013\1d\0 reject Attempted to print a compiled binary. | |
116 | 0 \100\1d\0 reject Attempted to print a compiled binary. | |
117 | 0 \007\1d\0 reject Attempted to print a compiled binary. | |
118 | 0 \314\0d\0 reject Attempted to print a compiled binary. | |
119 | 0 \177ELF reject Attempted to print an ELF object. | |
120 | 0 \007\001\0 reject Attempted to print an object file. | |
121 | 216 \021\001\0\0 reject Attempted to print a core dump file. | |
122 | 0 !<arch> reject Attempted to print an archive. | |
123 | 0 =<ar> reject Attempted to print an archive. | |
124 | ||
125 | # Don't confuse this one with troff! | |
126 | 0 .snd reject Attempted to print Sun/NeXT audio data. | |
127 | ||
128 | # wacko troff magic | |
129 | 0 ''' fpipe `/usr/bin/grog -Tps $FILE` | |
130 | ||
131 | # wild guess: PCL control codes start with <ESC> | |
132 | 0 \033 reject Cannot print PCL files on this printer. | |
133 | ||
134 | # Default entry -- for normal (text) files. MUST BE LAST. | |
135 | # If you do not have djscript use the other default line or, better, install | |
136 | # it. MM | |
137 | # | |
138 | default pipe /usr/bin/enscript -B -p- |
0 | #!/usr/sbin/magicfilter | |
1 | # | |
2 | # Magic filter setup file for HP printers 720, 820 and 1000 series. | |
3 | ||
4 | # pnm2ppa supports color and black/white printing. This file was | |
5 | # tested on a HP Deskjet 720C printer, but is supposed to work on | |
6 | # other printers using the HP PPA protocol, too. Supported pagesizes | |
7 | # are a4, letter and legal. The pagesize has to be set in /etc/papersize | |
8 | # and not in the configuration files in /etc/ppa/pnm2ppa.conf.hp*. | |
9 | ||
10 | # Adapted from dj500-filter, cpsonly600-filter and pbm2ppa-filter | |
11 | # by Roland Bauerschmidt <roland@copyleft.de>, 2000 | |
12 | ||
13 | # PostScript | |
14 | 0 %! fpipe /usr/bin/gs -q -dSAFER -dNOPAUSE -r600 -sDEVICE=ppmraw -sOutputFile=- - -c quit | |
15 | 0 \004%! fpipe /usr/bin/gs -q -dSAFER -dNOPAUSE -r600 -sDEVICE=ppmraw -sOutputFile=- - -c quit | |
16 | ||
17 | ||
18 | 0 %PDF fpipe /usr/bin/gs -q -dSAFER -dNOPAUSE -r600 -sDEVICE=ppmraw -sOutputFile=- $FILE -c quit | |
19 | ||
20 | ||
21 | # TeX DVI | |
22 | 0 \367\002 fpipe /usr/bin/dvips -D 600 -R -q -f | |
23 | ||
24 | # compress'd data | |
25 | 0 \037\235 pipe /bin/gzip -cdq | |
26 | ||
27 | # packed, gzipped, frozen and SCO LZH data | |
28 | 0 \037\036 pipe /bin/gzip -cdq | |
29 | 0 \037\213 pipe /bin/gzip -cdq | |
30 | 0 \037\236 pipe /bin/gzip -cdq | |
31 | 0 \037\240 pipe /bin/gzip -cdq | |
32 | ||
33 | # troff documents | |
34 | 0 .\?\?\040 fpipe `/usr/bin/grog -Tps $FILE` | |
35 | 0 .\\\" fpipe `/usr/bin/grog -Tps $FILE` | |
36 | 0 '\\\" fpipe `/usr/bin/grog -Tps $FILE` | |
37 | 0 '.\\\" fpipe `/usr/bin/grog -Tps $FILE` | |
38 | 0 \\\" fpipe `/usr/bin/grog -Tps $FILE` | |
39 | ||
40 | # ditroff | |
41 | 0 "x T ps" pipe /usr/bin/grops | |
42 | 0 "x T dvi" pipe /usr/bin/grodvi | |
43 | 0 "x T ascii" pipe /usr/bin/grotty | |
44 | 0 "x T latin1" pipe /usr/bin/grotty | |
45 | 0 "x T lj4" reject Cannot print LaserJet 4 ditroff files. | |
46 | ||
47 | # Portable bit-, grey- and pixmaps | |
48 | 0 P1\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null | |
49 | 0 P2\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null | |
50 | 0 P3\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null | |
51 | 0 P4\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null | |
52 | 0 P5\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null | |
53 | 0 P6\n filter /usr/bin/pnm2ppa --eco -f /etc/ppa/pnm2ppa.conf.hp820 -i - -o - | |
54 | ||
55 | # HP Printer Control Language (PCL) -- assume start with reset code | |
56 | 0 \033E\033 reject Cannot print PCL files on this printer. | |
57 | ||
58 | # HP Printer Job Language (PJL) | |
59 | 0 \033%-12345X reject Cannot print PJL files on this printer. | |
60 | 0 "@PJL " reject Cannot print PJL files on this printer. | |
61 | 0 @PJL\t reject Cannot print PJL files on this printer. | |
62 | 0 @PJL\r reject Cannot print PJL files on this printer. | |
63 | 0 @PJL\n reject Cannot print PJL files on this printer. | |
64 | ||
65 | # GIF files | |
66 | 0 GIF87a pipe /usr/bin/giftopnm 2>/dev/null | |
67 | 0 GIF89a pipe /usr/bin/giftopnm 2>/dev/null | |
68 | ||
69 | # JFIF (JPEG) files | |
70 | 0 \377\330\377\340\?\?JFIF\0 pipe /usr/bin/djpeg -pnm | |
71 | ||
72 | # TIFF files (the last two bytes of the "magic" is really a version number; | |
73 | # but the magic is really lame and as far as I have understood the version | |
74 | # number has never changed and never will, so we include it.) | |
75 | 0 MM\0\x2a fpipe /usr/bin/tiff2ps $FILE | |
76 | 0 II\x2a\0 fpipe /usr/bin/tiff2ps $FILE | |
77 | ||
78 | # BMP files (even lousier magic -- Microsoft strikes again!) | |
79 | 0 BM\?\?\?\?\?\?\?\?\?\?\?\?\x0c pipe \ | |
80 | /usr/bin/bmptoppm 2>/dev/null | |
81 | 0 BM\?\?\?\?\?\?\?\?\?\?\?\?\x40 pipe \ | |
82 | /usr/bin/bmptoppm 2>/dev/null | |
83 | 0 BM\?\?\?\?\?\?\?\?\?\?\?\?\x28 pipe \ | |
84 | /usr/bin/bmptoppm 2>/dev/null | |
85 | ||
86 | # Garbage delivered from Windows via Samba | |
87 | # (donated by Andree Leidenfrost <leidenfrost@dkrz.de>) | |
88 | # 300 \033\052\157 cat | |
89 | # later changed to | |
90 | # (Bug report #22866: magicfilter: Incorrect magic for Win95/Samba print jobs) | |
91 | 0 \000\000\000\000\000 cat | |
92 | ||
93 | # Sun rasterfiles | |
94 | 0 \x59\xa6\x6a\x95 pipe /usr/bin/rasttopnm 2>/dev/null | |
95 | ||
96 | # SGI Imagelib (IRIS RGB) files | |
97 | 0 \x1\xda pipe /usr/bin/sgitopnm 2>/dev/null | |
98 | 0 \xda\x1 pipe /usr/bin/sgitopnm 2>/dev/null | |
99 | ||
100 | # FIG files; reported by Steven P. Hill <sph@uscbu.ih.att.com> | |
101 | 0 #FIG pipe /usr/bin/X11/fig2dev -Lps -P -l dummy | |
102 | ||
103 | # | |
104 | # Standard rejects... things we don't want to print | |
105 | # | |
106 | ||
107 | # Various archive formats | |
108 | 257 ustar\0 reject Attempted to print a tar file. | |
109 | 257 "ustar \0" reject Attempted to print a tar file. | |
110 | 0 07070 reject Attempted to print a cpio file. | |
111 | 0 PK\3\4 reject Attempted to print a zip file. | |
112 | 20 \xdc\xa7\xc7\xfd reject Attempted to print a zoo file. | |
113 | ||
114 | # Binaries (Linux): reject with email message | |
115 | 0 \013\1d\0 reject Attempted to print a compiled binary. | |
116 | 0 \100\1d\0 reject Attempted to print a compiled binary. | |
117 | 0 \007\1d\0 reject Attempted to print a compiled binary. | |
118 | 0 \314\0d\0 reject Attempted to print a compiled binary. | |
119 | 0 \177ELF reject Attempted to print an ELF object. | |
120 | 0 \007\001\0 reject Attempted to print an object file. | |
121 | 216 \021\001\0\0 reject Attempted to print a core dump file. | |
122 | 0 !<arch> reject Attempted to print an archive. | |
123 | 0 =<ar> reject Attempted to print an archive. | |
124 | ||
125 | # Don't confuse this one with troff! | |
126 | 0 .snd reject Attempted to print Sun/NeXT audio data. | |
127 | ||
128 | # wacko troff magic | |
129 | 0 ''' fpipe `/usr/bin/grog -Tps $FILE` | |
130 | ||
131 | # wild guess: PCL control codes start with <ESC> | |
132 | 0 \033 reject Cannot print PCL files on this printer. | |
133 | ||
134 | # Default entry -- for normal (text) files. MUST BE LAST. | |
135 | # If you do not have djscript use the other default line or, better, install | |
136 | # it. MM | |
137 | # | |
138 | default pipe /usr/bin/enscript -B -p- |
0 | #!/usr/sbin/magicfilter | |
1 | # | |
2 | # Magic filter setup file for HP printers 720, 820 and 1000 series. | |
3 | ||
4 | # pnm2ppa supports color and black/white printing. This file was | |
5 | # tested on a HP Deskjet 720C printer, but is supposed to work on | |
6 | # other printers using the HP PPA protocol, too. Supported pagesizes | |
7 | # are a4, letter and legal. The pagesize has to be set in /etc/papersize | |
8 | # and not in the configuration files in /etc/ppa/pnm2ppa.conf.hp*. | |
9 | ||
10 | # Adapted from dj500-filter, cpsonly600-filter and pbm2ppa-filter | |
11 | # by Roland Bauerschmidt <roland@copyleft.de>, 2000 | |
12 | ||
13 | # PostScript | |
14 | 0 %! fpipe /usr/bin/gs -q -dSAFER -dNOPAUSE -r600 -sDEVICE=ppmraw -sOutputFile=- - -c quit | |
15 | 0 \004%! fpipe /usr/bin/gs -q -dSAFER -dNOPAUSE -r600 -sDEVICE=ppmraw -sOutputFile=- - -c quit | |
16 | ||
17 | ||
18 | 0 %PDF fpipe /usr/bin/gs -q -dSAFER -dNOPAUSE -r600 -sDEVICE=ppmraw -sOutputFile=- $FILE -c quit | |
19 | ||
20 | ||
21 | # TeX DVI | |
22 | 0 \367\002 fpipe /usr/bin/dvips -D 600 -R -q -f | |
23 | ||
24 | # compress'd data | |
25 | 0 \037\235 pipe /bin/gzip -cdq | |
26 | ||
27 | # packed, gzipped, frozen and SCO LZH data | |
28 | 0 \037\036 pipe /bin/gzip -cdq | |
29 | 0 \037\213 pipe /bin/gzip -cdq | |
30 | 0 \037\236 pipe /bin/gzip -cdq | |
31 | 0 \037\240 pipe /bin/gzip -cdq | |
32 | ||
33 | # troff documents | |
34 | 0 .\?\?\040 fpipe `/usr/bin/grog -Tps $FILE` | |
35 | 0 .\\\" fpipe `/usr/bin/grog -Tps $FILE` | |
36 | 0 '\\\" fpipe `/usr/bin/grog -Tps $FILE` | |
37 | 0 '.\\\" fpipe `/usr/bin/grog -Tps $FILE` | |
38 | 0 \\\" fpipe `/usr/bin/grog -Tps $FILE` | |
39 | ||
40 | # ditroff | |
41 | 0 "x T ps" pipe /usr/bin/grops | |
42 | 0 "x T dvi" pipe /usr/bin/grodvi | |
43 | 0 "x T ascii" pipe /usr/bin/grotty | |
44 | 0 "x T latin1" pipe /usr/bin/grotty | |
45 | 0 "x T lj4" reject Cannot print LaserJet 4 ditroff files. | |
46 | ||
47 | # Portable bit-, grey- and pixmaps | |
48 | 0 P1\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null | |
49 | 0 P2\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null | |
50 | 0 P3\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null | |
51 | 0 P4\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null | |
52 | 0 P5\n pipe /usr/bin/pnmtops -scale 1000 -dpi 600 2>/dev/null | |
53 | 0 P6\n filter /usr/bin/pnm2ppa -f /etc/ppa/pnm2ppa.conf.hp820 -i - -o - | |
54 | ||
55 | # HP Printer Control Language (PCL) -- assume start with reset code | |
56 | 0 \033E\033 reject Cannot print PCL files on this printer. | |
57 | ||
58 | # HP Printer Job Language (PJL) | |
59 | 0 \033%-12345X reject Cannot print PJL files on this printer. | |
60 | 0 "@PJL " reject Cannot print PJL files on this printer. | |
61 | 0 @PJL\t reject Cannot print PJL files on this printer. | |
62 | 0 @PJL\r reject Cannot print PJL files on this printer. | |
63 | 0 @PJL\n reject Cannot print PJL files on this printer. | |
64 | ||
65 | # GIF files | |
66 | 0 GIF87a pipe /usr/bin/giftopnm 2>/dev/null | |
67 | 0 GIF89a pipe /usr/bin/giftopnm 2>/dev/null | |
68 | ||
69 | # JFIF (JPEG) files | |
70 | 0 \377\330\377\340\?\?JFIF\0 pipe /usr/bin/djpeg -pnm | |
71 | ||
72 | # TIFF files (the last two bytes of the "magic" is really a version number; | |
73 | # but the magic is really lame and as far as I have understood the version | |
74 | # number has never changed and never will, so we include it.) | |
75 | 0 MM\0\x2a fpipe /usr/bin/tiff2ps $FILE | |
76 | 0 II\x2a\0 fpipe /usr/bin/tiff2ps $FILE | |
77 | ||
78 | # BMP files (even lousier magic -- Microsoft strikes again!) | |
79 | 0 BM\?\?\?\?\?\?\?\?\?\?\?\?\x0c pipe \ | |
80 | /usr/bin/bmptoppm 2>/dev/null | |
81 | 0 BM\?\?\?\?\?\?\?\?\?\?\?\?\x40 pipe \ | |
82 | /usr/bin/bmptoppm 2>/dev/null | |
83 | 0 BM\?\?\?\?\?\?\?\?\?\?\?\?\x28 pipe \ | |
84 | /usr/bin/bmptoppm 2>/dev/null | |
85 | ||
86 | # Garbage delivered from Windows via Samba | |
87 | # (donated by Andree Leidenfrost <leidenfrost@dkrz.de>) | |
88 | # 300 \033\052\157 cat | |
89 | # later changed to | |
90 | # (Bug report #22866: magicfilter: Incorrect magic for Win95/Samba print jobs) | |
91 | 0 \000\000\000\000\000 cat | |
92 | ||
93 | # Sun rasterfiles | |
94 | 0 \x59\xa6\x6a\x95 pipe /usr/bin/rasttopnm 2>/dev/null | |
95 | ||
96 | # SGI Imagelib (IRIS RGB) files | |
97 | 0 \x1\xda pipe /usr/bin/sgitopnm 2>/dev/null | |
98 | 0 \xda\x1 pipe /usr/bin/sgitopnm 2>/dev/null | |
99 | ||
100 | # FIG files; reported by Steven P. Hill <sph@uscbu.ih.att.com> | |
101 | 0 #FIG pipe /usr/bin/X11/fig2dev -Lps -P -l dummy | |
102 | ||
103 | # | |
104 | # Standard rejects... things we don't want to print | |
105 | # | |
106 | ||
107 | # Various archive formats | |
108 | 257 ustar\0 reject Attempted to print a tar file. | |
109 | 257 "ustar \0" reject Attempted to print a tar file. | |
110 | 0 07070 reject Attempted to print a cpio file. | |
111 | 0 PK\3\4 reject Attempted to print a zip file. | |
112 | 20 \xdc\xa7\xc7\xfd reject Attempted to print a zoo file. | |
113 | ||
114 | # Binaries (Linux): reject with email message | |
115 | 0 \013\1d\0 reject Attempted to print a compiled binary. | |
116 | 0 \100\1d\0 reject Attempted to print a compiled binary. | |
117 | 0 \007\1d\0 reject Attempted to print a compiled binary. | |
118 | 0 \314\0d\0 reject Attempted to print a compiled binary. | |
119 | 0 \177ELF reject Attempted to print an ELF object. | |
120 | 0 \007\001\0 reject Attempted to print an object file. | |
121 | 216 \021\001\0\0 reject Attempted to print a core dump file. | |
122 | 0 !<arch> reject Attempted to print an archive. | |
123 | 0 =<ar> reject Attempted to print an archive. | |
124 | ||
125 | # Don't confuse this one with troff! | |
126 | 0 .snd reject Attempted to print Sun/NeXT audio data. | |
127 | ||
128 | # wacko troff magic | |
129 | 0 ''' fpipe `/usr/bin/grog -Tps $FILE` | |
130 | ||
131 | # wild guess: PCL control codes start with <ESC> | |
132 | 0 \033 reject Cannot print PCL files on this printer. | |
133 | ||
134 | # Default entry -- for normal (text) files. MUST BE LAST. | |
135 | # If you do not have djscript use the other default line or, better, install | |
136 | # it. MM | |
137 | # | |
138 | default pipe /usr/bin/enscript -B -p- |
0 | # Sample configuration file | |
1 | # | |
2 | # This file will be automatically read upon startup if it is placed in | |
3 | # /etc/pnm2ppa.conf | |
4 | # | |
5 | # uncomment entries by removing "#" to activate them. | |
6 | # | |
7 | #-----------set the printer model--------------------------- | |
8 | # YOU MUST CHOOSE ONE OF THE FOLLOWING, EVEN IF YOU DO NOTHING ELSE! | |
9 | # | |
10 | # If there is more than one "version" entry activated, the last one | |
11 | # will be used. The printer version can also be set with the command line | |
12 | # option e.g., "-v 720". | |
13 | ||
14 | #version ERROR # PNM2PPA WIIL *NOT* WORK UNTIUL THIS ENTRY IS REMOVED!!!! | |
15 | #version 720 # 710, 712, 722 also acceptable | |
16 | #version 820 | |
17 | version 1000 | |
18 | ||
19 | ||
20 | #--------control system log messages from pnm2ppa------------------- | |
21 | # pnm2ppa issues progress and error messages to the system log (syslog). | |
22 | # For security reasons, no input from the user is ever sent to the syslog. | |
23 | # The setting "silent 1" suppresses messages to the syslog. The | |
24 | # setting "verbose 1" sends messages to the standard error stream (stderr) | |
25 | # in addition to the syslog. (Note: on BeOS, syslog messages are | |
26 | # diverted to stderr; use "silent 1" to suppress them.) | |
27 | # Note: the "silent 1" keyword is only accepted from the system | |
28 | # configuration file (/etc/pnm2ppa.conf), and not from configuration files | |
29 | # specified with the pnm2ppa option "-f". | |
30 | ||
31 | #silent 1 | |
32 | #verbose 1 | |
33 | ||
34 | #---------set the margins of the printed page------------------- | |
35 | # Margins: these are distances from the edges of the paper in | |
36 | # "dots" ( 600 dots = 1 inch = 2.54 cm). | |
37 | # Nothing outside these margins will be printed. | |
38 | # Default values are give below; uncomment and change, if necessary. | |
39 | # (Older versions of pnm2ppa required larger left and right margins to avoid | |
40 | # printer failure with "flashing lights", but this problem is believed to | |
41 | # be solved) | |
42 | ||
43 | #topmargin 10 | |
44 | #bottommargin 150 | |
45 | #leftmargin 10 | |
46 | #rightmargin 10 | |
47 | ||
48 | #----------center the printer output on the paper------------------- | |
49 | # Offsets: these are adjustments for centering the print correctly on the | |
50 | # paper. Units are dots (1/600 inch). Add a positive number of dots to | |
51 | # xoff to move the printed image to the right, relative to the paper. | |
52 | # add to yoff to move it down. The helper program calibrate_ppa prints | |
53 | # a test page to check the offsets (see CALIBRATON.txt): | |
54 | # usage: "calibrate_ppa --center | pnm2ppa --bw - - | lpr -l | |
55 | # Default values are: | |
56 | ||
57 | #xoffset 160 | |
58 | #yoffset 50 | |
59 | ||
60 | #------------align the black and color ink cartridges-------- | |
61 | # Color Offsets: these control alignment between the black ink | |
62 | # and color ink print cartridges. This changes a little whenever you | |
63 | # replace an ink cartridge, so the default values are just approximate. | |
64 | # | |
65 | # Use "calibrate_ppa --align | pnm2ppa --fd - - | lpr -l " | |
66 | # to print a test page to help you adjust the color offsets. | |
67 | # | |
68 | # The first line checks horizontal alignment ColOffsX,: | |
69 | # The second line checks vertical alignment ColOffsY,: | |
70 | # The alignment is correct if alignment patterns "0" is best. | |
71 | # If a diffent alignment pattern is best, add or subtract the + or | |
72 | # - value shown below it to ColOffsX or ColOffSy. | |
73 | # | |
74 | # See CALIBRATION.txt for more details. | |
75 | # Use "calibrate_ppa --test | pnm2ppa --fd - - | lpr -l " to check your | |
76 | # new settings. | |
77 | ||
78 | #ColOffsX 0 | |
79 | #ColOffsY 0 | |
80 | ||
81 | #---------------"shearing" corrections------------------------------------- | |
82 | # shearing correction (for bidirectional printing modes) | |
83 | # if there is a horizontal offset between right-to-left and left-to-right | |
84 | # sweeps of the print head, adjust these in units of 1"/600 (1 dot). | |
85 | # There are separate corrections colorshear and blackshear for the | |
86 | # color and black print heads. The third and fourth lines of the | |
87 | # alignment test page (see above) tests these. | |
88 | # The setting is correct when alignments "0" are correct. | |
89 | # Add or subtract the + or - number shown under the best-aligned shearing | |
90 | # alignment pattern. | |
91 | ||
92 | #colorshear 0 | |
93 | #blackshear 0 | |
94 | ||
95 | #-------------blackness control----------------------------- | |
96 | # this controls the density of black ink used. | |
97 | # valid blackness choices are 1 2 3 4; controls the | |
98 | # density of black ink used: 1 (least ink), 2 (default), 4 (most). | |
99 | # 0 = no black ink. This affects black ink bordered by whitespace | |
100 | # only (e.g. text, but not black in color images) | |
101 | ||
102 | #blackness 2 | |
103 | ||
104 | #------------Color correct curve Gamma parameters------------------------- | |
105 | # Gamma color correction values for Red, Green and Blue: | |
106 | # (Note: a more effective method of color correction is to use | |
107 | # a calibration file /etc/pnm2ppa.gamma, in which case these | |
108 | # Gamma values will not be used. See COLOR.html or COLOR.txt) | |
109 | # The pnm2ppa option --noGamma suppresses color correction. | |
110 | ||
111 | # The standard Gamma enhancement curve is | |
112 | # gEnh(i) = (int) ( pow ( (double) i / 256, Gamma ) * 256 ) | |
113 | # (i.e., 256 times ( i*(1.0/256)) to the power Gamma ), | |
114 | # where (int) i is the ppm color intensity, in the range 0 - 255. | |
115 | # positive values of Gamma enhance (increase the intensity of) | |
116 | # the corresponding color. Gamma = 1.0 corresponds to no | |
117 | # color correction, gEnh[i] = i. | |
118 | ||
119 | # You can specify Gamma values as a decimal number for each primary color | |
120 | ||
121 | #GammaR 1.0 # red enhancement | |
122 | #GammaG 1.0 # green enhancement | |
123 | #GammaB 1.0 # blue enhancement | |
124 | ||
125 | # For use with the printed output of "pnm2ppa -g ", | |
126 | # you can also specify Gamma values using the integer GammaIdx, | |
127 | # which gives Gamma = 1.0 - 0.033 * GammaIdx : | |
128 | ||
129 | #RedGammaIdx 0 | |
130 | #GreenGammaIdx 0 | |
131 | #BlueGammaIdx 0 | |
132 | ||
133 | # Default papersize (only used for printing the color calibration | |
134 | # test page with pnm2ppa -g). | |
135 | # Valid choices are: a4, letter, legal: | |
136 | ||
137 | #papersize letter # this is the default | |
138 | #papersize legal | |
139 | #papersize a4 | |
140 | ||
141 | #-----------suppress bidirectional printing--------------------- | |
142 | ||
143 | # by default the printing sweeps are now bidirectional (unimode 0); | |
144 | # to make unidirectional printing (left-to-right) the default behavior, | |
145 | # (unimode 1) uncomment the next line . (The command line options --uni | |
146 | # and --bi override the default behavior). You might wish to print | |
147 | # unidirectionally to avoid shearing effects in high-quality | |
148 | # color images, for example) | |
149 | ||
150 | #unimode 1 | |
151 | ||
152 | #===================================================================== | |
153 | # the following are switches for debugging purposes only: | |
154 | # set their values to 0 to switch off the corresponding ink type: | |
155 | ||
156 | #black_ink 1 | |
157 | #color_ink 1 | |
158 | #cyan_ink 1 | |
159 | #magenta_ink 1 | |
160 | #yellow_ink 1 |
0 | # Sample configuration file | |
1 | # | |
2 | # This file will be automatically read upon startup if it is placed in | |
3 | # /etc/pnm2ppa.conf | |
4 | # | |
5 | # uncomment entries by removing "#" to activate them. | |
6 | # | |
7 | #-----------set the printer model--------------------------- | |
8 | # YOU MUST CHOOSE ONE OF THE FOLLOWING, EVEN IF YOU DO NOTHING ELSE! | |
9 | # | |
10 | # If there is more than one "version" entry activated, the last one | |
11 | # will be used. The printer version can also be set with the command line | |
12 | # option e.g., "-v 720". | |
13 | ||
14 | #version ERROR # PNM2PPA WIIL *NOT* WORK UNTIUL THIS ENTRY IS REMOVED!!!! | |
15 | version 720 # 710, 712, 722 also acceptable | |
16 | #version 820 | |
17 | #version 1000 | |
18 | ||
19 | ||
20 | #--------control system log messages from pnm2ppa------------------- | |
21 | # pnm2ppa issues progress and error messages to the system log (syslog). | |
22 | # For security reasons, no input from the user is ever sent to the syslog. | |
23 | # The setting "silent 1" suppresses messages to the syslog. The | |
24 | # setting "verbose 1" sends messages to the standard error stream (stderr) | |
25 | # in addition to the syslog. (Note: on BeOS, syslog messages are | |
26 | # diverted to stderr; use "silent 1" to suppress them.) | |
27 | # Note: the "silent 1" keyword is only accepted from the system | |
28 | # configuration file (/etc/pnm2ppa.conf), and not from configuration files | |
29 | # specified with the pnm2ppa option "-f". | |
30 | ||
31 | #silent 1 | |
32 | #verbose 1 | |
33 | ||
34 | #---------set the margins of the printed page------------------- | |
35 | # Margins: these are distances from the edges of the paper in | |
36 | # "dots" ( 600 dots = 1 inch = 2.54 cm). | |
37 | # Nothing outside these margins will be printed. | |
38 | # Default values are give below; uncomment and change, if necessary. | |
39 | # (Older versions of pnm2ppa required larger left and right margins to avoid | |
40 | # printer failure with "flashing lights", but this problem is believed to | |
41 | # be solved) | |
42 | ||
43 | #topmargin 10 | |
44 | #bottommargin 150 | |
45 | #leftmargin 10 | |
46 | #rightmargin 10 | |
47 | ||
48 | #----------center the printer output on the paper------------------- | |
49 | # Offsets: these are adjustments for centering the print correctly on the | |
50 | # paper. Units are dots (1/600 inch). Add a positive number of dots to | |
51 | # xoff to move the printed image to the right, relative to the paper. | |
52 | # add to yoff to move it down. The helper program calibrate_ppa prints | |
53 | # a test page to check the offsets (see CALIBRATON.txt): | |
54 | # usage: "calibrate_ppa --center | pnm2ppa --bw - - | lpr -l | |
55 | # Default values are: | |
56 | ||
57 | #xoffset 160 | |
58 | #yoffset 50 | |
59 | ||
60 | #------------align the black and color ink cartridges-------- | |
61 | # Color Offsets: these control alignment between the black ink | |
62 | # and color ink print cartridges. This changes a little whenever you | |
63 | # replace an ink cartridge, so the default values are just approximate. | |
64 | # | |
65 | # Use "calibrate_ppa --align | pnm2ppa --fd - - | lpr -l " | |
66 | # to print a test page to help you adjust the color offsets. | |
67 | # | |
68 | # The first line checks horizontal alignment ColOffsX,: | |
69 | # The second line checks vertical alignment ColOffsY,: | |
70 | # The alignment is correct if alignment patterns "0" is best. | |
71 | # If a diffent alignment pattern is best, add or subtract the + or | |
72 | # - value shown below it to ColOffsX or ColOffSy. | |
73 | # | |
74 | # See CALIBRATION.txt for more details. | |
75 | # Use "calibrate_ppa --test | pnm2ppa --fd - - | lpr -l " to check your | |
76 | # new settings. | |
77 | ||
78 | #ColOffsX 0 | |
79 | #ColOffsY 0 | |
80 | ||
81 | #---------------"shearing" corrections------------------------------------- | |
82 | # shearing correction (for bidirectional printing modes) | |
83 | # if there is a horizontal offset between right-to-left and left-to-right | |
84 | # sweeps of the print head, adjust these in units of 1"/600 (1 dot). | |
85 | # There are separate corrections colorshear and blackshear for the | |
86 | # color and black print heads. The third and fourth lines of the | |
87 | # alignment test page (see above) tests these. | |
88 | # The setting is correct when alignments "0" are correct. | |
89 | # Add or subtract the + or - number shown under the best-aligned shearing | |
90 | # alignment pattern. | |
91 | ||
92 | #colorshear 0 | |
93 | #blackshear 0 | |
94 | ||
95 | #-------------blackness control----------------------------- | |
96 | # this controls the density of black ink used. | |
97 | # valid blackness choices are 1 2 3 4; controls the | |
98 | # density of black ink used: 1 (least ink), 2 (default), 4 (most). | |
99 | # 0 = no black ink. This affects black ink bordered by whitespace | |
100 | # only (e.g. text, but not black in color images) | |
101 | ||
102 | #blackness 2 | |
103 | ||
104 | #------------Color correct curve Gamma parameters------------------------- | |
105 | # Gamma color correction values for Red, Green and Blue: | |
106 | # (Note: a more effective method of color correction is to use | |
107 | # a calibration file /etc/pnm2ppa.gamma, in which case these | |
108 | # Gamma values will not be used. See COLOR.html or COLOR.txt) | |
109 | # The pnm2ppa option --noGamma suppresses color correction. | |
110 | ||
111 | # The standard Gamma enhancement curve is | |
112 | # gEnh(i) = (int) ( pow ( (double) i / 256, Gamma ) * 256 ) | |
113 | # (i.e., 256 times ( i*(1.0/256)) to the power Gamma ), | |
114 | # where (int) i is the ppm color intensity, in the range 0 - 255. | |
115 | # positive values of Gamma enhance (increase the intensity of) | |
116 | # the corresponding color. Gamma = 1.0 corresponds to no | |
117 | # color correction, gEnh[i] = i. | |
118 | ||
119 | # You can specify Gamma values as a decimal number for each primary color | |
120 | ||
121 | #GammaR 1.0 # red enhancement | |
122 | #GammaG 1.0 # green enhancement | |
123 | #GammaB 1.0 # blue enhancement | |
124 | ||
125 | # For use with the printed output of "pnm2ppa -g ", | |
126 | # you can also specify Gamma values using the integer GammaIdx, | |
127 | # which gives Gamma = 1.0 - 0.033 * GammaIdx : | |
128 | ||
129 | #RedGammaIdx 0 | |
130 | #GreenGammaIdx 0 | |
131 | #BlueGammaIdx 0 | |
132 | ||
133 | # Default papersize (only used for printing the color calibration | |
134 | # test page with pnm2ppa -g). | |
135 | # Valid choices are: a4, letter, legal: | |
136 | ||
137 | #papersize letter # this is the default | |
138 | #papersize legal | |
139 | #papersize a4 | |
140 | ||
141 | #-----------suppress bidirectional printing--------------------- | |
142 | ||
143 | # by default the printing sweeps are now bidirectional (unimode 0); | |
144 | # to make unidirectional printing (left-to-right) the default behavior, | |
145 | # (unimode 1) uncomment the next line . (The command line options --uni | |
146 | # and --bi override the default behavior). You might wish to print | |
147 | # unidirectionally to avoid shearing effects in high-quality | |
148 | # color images, for example) | |
149 | ||
150 | #unimode 1 | |
151 | ||
152 | #===================================================================== | |
153 | # the following are switches for debugging purposes only: | |
154 | # set their values to 0 to switch off the corresponding ink type: | |
155 | ||
156 | #black_ink 1 | |
157 | #color_ink 1 | |
158 | #cyan_ink 1 | |
159 | #magenta_ink 1 | |
160 | #yellow_ink 1 |
0 | # Sample configuration file | |
1 | # | |
2 | # This file will be automatically read upon startup if it is placed in | |
3 | # /etc/pnm2ppa.conf | |
4 | # | |
5 | # uncomment entries by removing "#" to activate them. | |
6 | # | |
7 | #-----------set the printer model--------------------------- | |
8 | # YOU MUST CHOOSE ONE OF THE FOLLOWING, EVEN IF YOU DO NOTHING ELSE! | |
9 | # | |
10 | # If there is more than one "version" entry activated, the last one | |
11 | # will be used. The printer version can also be set with the command line | |
12 | # option e.g., "-v 720". | |
13 | ||
14 | #version ERROR # PNM2PPA WIIL *NOT* WORK UNTIUL THIS ENTRY IS REMOVED!!!! | |
15 | #version 720 # 710, 712, 722 also acceptable | |
16 | version 820 | |
17 | #version 1000 | |
18 | ||
19 | ||
20 | #--------control system log messages from pnm2ppa------------------- | |
21 | # pnm2ppa issues progress and error messages to the system log (syslog). | |
22 | # For security reasons, no input from the user is ever sent to the syslog. | |
23 | # The setting "silent 1" suppresses messages to the syslog. The | |
24 | # setting "verbose 1" sends messages to the standard error stream (stderr) | |
25 | # in addition to the syslog. (Note: on BeOS, syslog messages are | |
26 | # diverted to stderr; use "silent 1" to suppress them.) | |
27 | # Note: the "silent 1" keyword is only accepted from the system | |
28 | # configuration file (/etc/pnm2ppa.conf), and not from configuration files | |
29 | # specified with the pnm2ppa option "-f". | |
30 | ||
31 | #silent 1 | |
32 | #verbose 1 | |
33 | ||
34 | #---------set the margins of the printed page------------------- | |
35 | # Margins: these are distances from the edges of the paper in | |
36 | # "dots" ( 600 dots = 1 inch = 2.54 cm). | |
37 | # Nothing outside these margins will be printed. | |
38 | # Default values are give below; uncomment and change, if necessary. | |
39 | # (Older versions of pnm2ppa required larger left and right margins to avoid | |
40 | # printer failure with "flashing lights", but this problem is believed to | |
41 | # be solved) | |
42 | ||
43 | #topmargin 10 | |
44 | #bottommargin 150 | |
45 | #leftmargin 10 | |
46 | #rightmargin 10 | |
47 | ||
48 | #----------center the printer output on the paper------------------- | |
49 | # Offsets: these are adjustments for centering the print correctly on the | |
50 | # paper. Units are dots (1/600 inch). Add a positive number of dots to | |
51 | # xoff to move the printed image to the right, relative to the paper. | |
52 | # add to yoff to move it down. The helper program calibrate_ppa prints | |
53 | # a test page to check the offsets (see CALIBRATON.txt): | |
54 | # usage: "calibrate_ppa --center | pnm2ppa --bw - - | lpr -l | |
55 | # Default values are: | |
56 | ||
57 | #xoffset 160 | |
58 | #yoffset 50 | |
59 | ||
60 | #------------align the black and color ink cartridges-------- | |
61 | # Color Offsets: these control alignment between the black ink | |
62 | # and color ink print cartridges. This changes a little whenever you | |
63 | # replace an ink cartridge, so the default values are just approximate. | |
64 | # | |
65 | # Use "calibrate_ppa --align | pnm2ppa --fd - - | lpr -l " | |
66 | # to print a test page to help you adjust the color offsets. | |
67 | # | |
68 | # The first line checks horizontal alignment ColOffsX,: | |
69 | # The second line checks vertical alignment ColOffsY,: | |
70 | # The alignment is correct if alignment patterns "0" is best. | |
71 | # If a diffent alignment pattern is best, add or subtract the + or | |
72 | # - value shown below it to ColOffsX or ColOffSy. | |
73 | # | |
74 | # See CALIBRATION.txt for more details. | |
75 | # Use "calibrate_ppa --test | pnm2ppa --fd - - | lpr -l " to check your | |
76 | # new settings. | |
77 | ||
78 | #ColOffsX 0 | |
79 | #ColOffsY 0 | |
80 | ||
81 | #---------------"shearing" corrections------------------------------------- | |
82 | # shearing correction (for bidirectional printing modes) | |
83 | # if there is a horizontal offset between right-to-left and left-to-right | |
84 | # sweeps of the print head, adjust these in units of 1"/600 (1 dot). | |
85 | # There are separate corrections colorshear and blackshear for the | |
86 | # color and black print heads. The third and fourth lines of the | |
87 | # alignment test page (see above) tests these. | |
88 | # The setting is correct when alignments "0" are correct. | |
89 | # Add or subtract the + or - number shown under the best-aligned shearing | |
90 | # alignment pattern. | |
91 | ||
92 | #colorshear 0 | |
93 | #blackshear 0 | |
94 | ||
95 | #-------------blackness control----------------------------- | |
96 | # this controls the density of black ink used. | |
97 | # valid blackness choices are 1 2 3 4; controls the | |
98 | # density of black ink used: 1 (least ink), 2 (default), 4 (most). | |
99 | # 0 = no black ink. This affects black ink bordered by whitespace | |
100 | # only (e.g. text, but not black in color images) | |
101 | ||
102 | #blackness 2 | |
103 | ||
104 | #------------Color correct curve Gamma parameters------------------------- | |
105 | # Gamma color correction values for Red, Green and Blue: | |
106 | # (Note: a more effective method of color correction is to use | |
107 | # a calibration file /etc/pnm2ppa.gamma, in which case these | |
108 | # Gamma values will not be used. See COLOR.html or COLOR.txt) | |
109 | # The pnm2ppa option --noGamma suppresses color correction. | |
110 | ||
111 | # The standard Gamma enhancement curve is | |
112 | # gEnh(i) = (int) ( pow ( (double) i / 256, Gamma ) * 256 ) | |
113 | # (i.e., 256 times ( i*(1.0/256)) to the power Gamma ), | |
114 | # where (int) i is the ppm color intensity, in the range 0 - 255. | |
115 | # positive values of Gamma enhance (increase the intensity of) | |
116 | # the corresponding color. Gamma = 1.0 corresponds to no | |
117 | # color correction, gEnh[i] = i. | |
118 | ||
119 | # You can specify Gamma values as a decimal number for each primary color | |
120 | ||
121 | #GammaR 1.0 # red enhancement | |
122 | #GammaG 1.0 # green enhancement | |
123 | #GammaB 1.0 # blue enhancement | |
124 | ||
125 | # For use with the printed output of "pnm2ppa -g ", | |
126 | # you can also specify Gamma values using the integer GammaIdx, | |
127 | # which gives Gamma = 1.0 - 0.033 * GammaIdx : | |
128 | ||
129 | #RedGammaIdx 0 | |
130 | #GreenGammaIdx 0 | |
131 | #BlueGammaIdx 0 | |
132 | ||
133 | # Default papersize (only used for printing the color calibration | |
134 | # test page with pnm2ppa -g). | |
135 | # Valid choices are: a4, letter, legal: | |
136 | ||
137 | #papersize letter # this is the default | |
138 | #papersize legal | |
139 | #papersize a4 | |
140 | ||
141 | #-----------suppress bidirectional printing--------------------- | |
142 | ||
143 | # by default the printing sweeps are now bidirectional (unimode 0); | |
144 | # to make unidirectional printing (left-to-right) the default behavior, | |
145 | # (unimode 1) uncomment the next line . (The command line options --uni | |
146 | # and --bi override the default behavior). You might wish to print | |
147 | # unidirectionally to avoid shearing effects in high-quality | |
148 | # color images, for example) | |
149 | ||
150 | #unimode 1 | |
151 | ||
152 | #===================================================================== | |
153 | # the following are switches for debugging purposes only: | |
154 | # set their values to 0 to switch off the corresponding ink type: | |
155 | ||
156 | #black_ink 1 | |
157 | #color_ink 1 | |
158 | #cyan_ink 1 | |
159 | #magenta_ink 1 | |
160 | #yellow_ink 1 |
0 | diff -urN pnm2ppa-1.12/calibrate_ppa.c pnm2ppa-1.12.new/calibrate_ppa.c | |
1 | --- pnm2ppa-1.12/calibrate_ppa.c Mon Jun 10 01:46:19 2002 | |
2 | +++ pnm2ppa-1.12.new/calibrate_ppa.c Mon Sep 15 07:57:28 2003 | |
3 | @@ -78,7 +78,7 @@ | |
4 | FILE *outFile = NULL ; | |
5 | int testPattern = 0; | |
6 | char *out_filepath = NULL; | |
7 | - char c; | |
8 | + int c; | |
9 | static struct option long_opts[] = { | |
10 | {"gamma",0,0,'g'}, | |
11 | {"align",0,0,0}, | |
12 | diff -urN pnm2ppa-1.12/pnm2ppa.c pnm2ppa-1.12.new/pnm2ppa.c | |
13 | --- pnm2ppa-1.12/pnm2ppa.c Sat Nov 9 15:47:47 2002 | |
14 | +++ pnm2ppa-1.12.new/pnm2ppa.c Mon Sep 15 07:57:03 2003 | |
15 | @@ -626,7 +626,7 @@ | |
16 | int i, opt_index; | |
17 | FILE *in = NULL, *out = NULL, *gf = NULL; | |
18 | struct stat tmpstat; | |
19 | - char c; | |
20 | + int c; | |
21 | BOOLEAN get_Gamma = true; | |
22 | ||
23 | char gammaFile[MAXPATHLEN]; |
0 | diff -ruN pnm2ppa-1.12-old/sample_scripts/lprbw pnm2ppa-1.11/sample_scripts/lprbw | |
1 | --- pnm2ppa-1.12-old/sample_scripts/lprbw 2002-10-02 20:32:36.000000000 -0500 | |
2 | +++ pnm2ppa-1.12/sample_scripts/lprbw 2002-11-13 15:21:21.000000000 -0600 | |
3 | @@ -1,3 +1,4 @@ | |
4 | +#!/bin/sh | |
5 | cat $1 | \ | |
6 | gs -sDEVICE=pbmraw -q -sPAPERSIZE=a4 -dNOPAUSE -r600 -sOutputFile=- - | \ | |
7 | pnm2ppa --bw --eco $2 $3 $4 $5 -i - -o /dev/lp0 | |
8 | diff -ruN pnm2ppa-1.12-old/sample_scripts/lprcolor pnm2ppa-1.11/sample_scripts/lprcolor | |
9 | --- pnm2ppa-1.12-old/sample_scripts/lprcolor 2002-10-02 20:32:36.000000000 -0500 | |
10 | +++ pnm2ppa-1.12/sample_scripts/lprcolor 2002-11-13 15:21:25.000000000 -0600 | |
11 | @@ -1,3 +1,4 @@ | |
12 | +#!/bin/sh | |
13 | cat $1 | \ | |
14 | gs -sDEVICE=ppmraw -q -sPAPERSIZE=a4 -dNOPAUSE -r600 -sOutputFile=- - | \ | |
15 | pnm2ppa $2 $3 $4 $5 -i - -o /dev/lp0 | |
16 | diff -ruN pnm2ppa-1.12-old/sample_scripts/lpreco pnm2ppa-1.11/sample_scripts/lpreco | |
17 | --- pnm2ppa-1.12-old/sample_scripts/lpreco 2002-10-02 20:32:36.000000000 -0500 | |
18 | +++ pnm2ppa-1.12/sample_scripts/lpreco 2002-11-13 15:21:27.000000000 -0600 | |
19 | @@ -1,3 +1,4 @@ | |
20 | +#!/bin/sh | |
21 | cat $1 | \ | |
22 | gs -sDEVICE=ppmraw -q -sPAPERSIZE=a4 -dNOPAUSE -r600 -sOutputFile=- - | \ | |
23 | pnm2ppa --eco $2 $3 $4 $5 -i - -o /dev/lp0 |
0 | diff -urN pnm2ppa-1.12/docs/en/pnm2ppa.1 pnm2ppa-1.12.new/docs/en/pnm2ppa.1 | |
1 | --- pnm2ppa-1.12/docs/en/pnm2ppa.1 2002-06-23 00:17:58.000000000 -0500 | |
2 | +++ pnm2ppa-1.12.new/docs/en/pnm2ppa.1 2003-12-16 09:33:58.000000000 -0600 | |
3 | @@ -1,4 +1,4 @@ | |
4 | -.TH pnm2ppa "23 Jun 2002" | |
5 | +.TH pnm2ppa 1 "23 Jun 2002" | |
6 | .SH NAME | |
7 | pnm2ppa - convert portable anymap (PNM) images to HP's PPA printer format. | |
8 | .SH SYNOPSIS |
0 | .\" Hey, EMACS: -*- nroff -*- | |
1 | .\" First parameter, NAME, should be all caps | |
2 | .\" Second parameter, SECTION, should be 1-8, maybe w/ subsection | |
3 | .\" other parameters are allowed: see man(7), man(1) | |
4 | .TH pnm2ppa 8 "November 2000" | |
5 | .\" Please adjust this date whenever revising the manpage. | |
6 | .\" | |
7 | .\" Some roff macros, for reference: | |
8 | .\" .nh disable hyphenation | |
9 | .\" .hy enable hyphenation | |
10 | .\" .ad l left justify | |
11 | .\" .ad b justify to both left and right margins | |
12 | .\" .nf disable filling | |
13 | .\" .fi enable filling | |
14 | .\" .br insert line break | |
15 | .\" .sp <n> insert n+1 empty lines | |
16 | .\" for manpage-specific macros, see man(7) | |
17 | .\" | |
18 | .SH NAME | |
19 | pnm2ppa \- PPM to PPA converter | |
20 | .SH SYNOPSIS | |
21 | .B pnm2ppa | |
22 | .RI [options] | |
23 | .SH DESCRIPTION | |
24 | Using pnm2ppa it's possible to run HP-GDI printers on Linux. These printers are normally "Windows-only" and use the PPA protocol which is proprietary. pnm2ppa supports color and is supposed to work faster than pbm2ppa. pnm2ppa supports the following printers: HP Deskjet 7XX Series, HP Deskjet 820 Series and HP Deskjet 1000 Series. | |
25 | .SH OPTIONS | |
26 | .TP | |
27 | .B \-b <margin> | |
28 | bottom margin in 1"/600 (default: 150 = 0.25") | |
29 | .TP | |
30 | .B \-\-bi | |
31 | forces bidirectional print head sweeps | |
32 | .TP | |
33 | .B \-B <n> | |
34 | density of black ink (n = 0,1,2,3 or 4) | |
35 | .TP | |
36 | .B \-\-bw | |
37 | forces black/white output | |
38 | .TP | |
39 | .B \-d | |
40 | dumps the configuration to stdout | |
41 | .TP | |
42 | .B \-\-eco | |
43 | Econofast mode (uses less ink) | |
44 | .TP | |
45 | .B \-f <cfgfile> | |
46 | read printer settings from configuration file <cfgfile> | |
47 | .TP | |
48 | .B \-F <gammaFile> | |
49 | read color correction table from file <gammaFile> | |
50 | .TP | |
51 | .B \-\-fd | |
52 | use fast dithering mode | |
53 | .TP | |
54 | .B \-g | |
55 | print color calibration page. See CALIBRATION.txt | |
56 | .TP | |
57 | .B \-h, \-\-help displays this help text. | |
58 | .TP | |
59 | .B \-i <infile> | |
60 | input from file <infile>, "-i -" means stdin | |
61 | .TP | |
62 | .B \-l <margin> | |
63 | left margin in 1"/600 (default: 150 = 0.25") | |
64 | .TP | |
65 | .B \-\-noGamma | |
66 | suppresses any color correction | |
67 | .TP | |
68 | .B \-o <outfile> | |
69 | output to file <outfile>, "-o -" means stdout | |
70 | .TP | |
71 | .B \-p | |
72 | disable black ink cartridge | |
73 | .TP | |
74 | .B \-r <margin> | |
75 | right margin in 1"/600 (default: 150 = 0.25") | |
76 | .TP | |
77 | .B \-s <paper> | |
78 | default papersize (a4, legal, letter = us (default)) | |
79 | .TP | |
80 | .B \-t <margin> | |
81 | top margin in 1"/600 (default: 150 = 0.25") | |
82 | .TP | |
83 | .B \-\-uni | |
84 | forces unidirectional print head sweeps | |
85 | .TP | |
86 | .B \-v <model> | |
87 | set the printer model (710, 712, 720, 722, 820, or 1000) | |
88 | .TP | |
89 | .B \-\-verbose | |
90 | outputs syslog output to stderr as well | |
91 | .TP | |
92 | .B \-\-version | |
93 | Display the version of pnm2ppa to the syslog | |
94 | .TP | |
95 | .B \-x <offset> | |
96 | vertical offset adjustment in 1"/600 | |
97 | .TP | |
98 | .B \-y <offset> | |
99 | horizontal offset adjustment in 1"/600 | |
100 | .TP | |
101 | The \fB\-v\fR option resets the margins and offset adjustments to the default values for that printer model. <infile> and <outfile> default to stdin and stdout. '-' is a synonym for stdin and stdout. | |
102 | .SH CONFIGURATION FILES | |
103 | The order in which parameters are specified is important: The file /etc/pnm2ppa.conf, if it exists, is processed as a configuration file before any command-line parameters are processed. If an alternate configuration file is specified on the command line with the '-f' parameter, its contents are processed at that point. If a parameter is specified more than once, only its last value is used. Configuration files specified with the '-f' parameter have the following format: | |
104 | .IP | |
105 | # Comment | |
106 | .IP | |
107 | <key1> <value1> | |
108 | .IP | |
109 | <key2> <value2> | |
110 | .IP | |
111 | [etc.] | |
112 | .TP | |
113 | Valid keys include: | |
114 | .IP | |
115 | version, xoffset, yoffset, topmargin, leftmargin, rightmargin, bottommargin, blackness, papersize | |
116 | .TP | |
117 | or any non-null truncated version of these words. Valid values are the same as with the corresponding command-line parameters. | |
118 | .TP | |
119 | Other keys that can be set in the configuration file include: | |
120 | .IP | |
121 | silent, verbose, unimode, blackshear, colorshear, RedGammaIdx, BlueGammaIdx, GreenGammaIdx, GammaR, GammaG, GammaB, ColOffsX, ColOffsY, black_ink, color_ink, cyan_ink, magenta_ink, yellow_ink | |
122 | .TP | |
123 | See documentation in the sample configuration file for their usage. | |
124 | .SH FILES | |
125 | .PD 0 | |
126 | .IR /etc/ppa/gamma.ppm | |
127 | gamma correction file | |
128 | .TP | |
129 | \fI/etc/ppa/pnm2ppa.conf.hp1000\fP, \fI /etc/ppa/pnm2ppa.conf.hp820\fP, \fI /etc/ppa/pnm2ppa.conf.hp720\fP | |
130 | .TP | |
131 | Configuration files for the HP1000, HP820, and HP720 Series respectively. | |
132 | .PD | |
133 | .SH SEE ALSO | |
134 | .IR calibrate_ppa (8), | |
135 | .IR magicfilter (8), | |
136 | .IR apsfilter(8) |
0 | Document: pnm2ppa-calibrate | |
1 | Title: PPA Printer calibration for pnm2ppa | |
2 | Author: The pnm2ppa project team ppa-rpms@users.sourceforge.net | |
3 | Abstract: This manual describes how to calibrate a PPA Printer for use with | |
4 | pnm2ppa. | |
5 | Section: text | |
6 | ||
7 | Format: debiandoc-sgml | |
8 | Files: /usr/share/doc/pnm2ppa/en/sgml/CALIBRATION.sgml.gz | |
9 | ||
10 | Format: text | |
11 | Files: /usr/share/doc/pnm2ppa/en/CALIBRATION.txt.gz | |
12 | ||
13 | Format: HTML | |
14 | Index: /usr/share/doc/pnm2ppa/en/CALIBRATION.html | |
15 | Files: /usr/share/doc/pnm2ppa/en/CALIBRATION.html |
0 | Document: pnm2ppa-color | |
1 | Title: Color correction for pnm2ppa | |
2 | Author: The pnm2ppa project team ppa-rpms@users.sourceforge.net | |
3 | Abstract: Information and instructions for color correction of pnm2ppa color | |
4 | printing. http://sourceforge.net/projects/pnm2ppa (Updated for pnm2ppa-1.0 and | |
5 | later.) | |
6 | Section: text | |
7 | ||
8 | Format: debiandoc-sgml | |
9 | Files: /usr/share/doc/pnm2ppa/en/sgml/COLOR.sgml.gz | |
10 | ||
11 | Format: text | |
12 | Files: /usr/share/doc/pnm2ppa/en/COLOR.txt.gz | |
13 | ||
14 | Format: HTML | |
15 | Index: /usr/share/doc/pnm2ppa/en/COLOR.html | |
16 | Files: /usr/share/doc/pnm2ppa/en/COLOR.html |
0 | Document: pnm2ppa-ppa_networking | |
1 | Title: PPA Networking for Non-Windows Hosts or Clients using SAMBA | |
2 | Author: The pnm2ppa project team ppa-rpms@users.sourceforge.net | |
3 | Abstract: This document discusses Networking HP 710C, 720C 820C or 1000C Series | |
4 | (PPA Protocol) HP DeskJet printers with non-Windows Hosts or Clients, using | |
5 | SAMBA. Topics include choosing between transmitting PPA or PostScript | |
6 | across the network, Windows and Linux/Unix Hosts, Windows and Linux/Unix | |
7 | Clients, and emulating a PostScript printer on Windows. (Updated for | |
8 | pnm2ppa-1.04 and later.) | |
9 | Section: text | |
10 | ||
11 | Format: debiandoc-sgml | |
12 | Files: /usr/share/doc/pnm2ppa/en/sgml/PPA_networking.sgml.gz | |
13 | ||
14 | Format: text | |
15 | Files: /usr/share/doc/pnm2ppa/en/PPA_networking.txt.gz | |
16 | ||
17 | Format: HTML | |
18 | Index: /usr/share/doc/pnm2ppa/en/PPA_networking.html | |
19 | Files: /usr/share/doc/pnm2ppa/en/PPA_networking*.html |
0 | build-tree/@TAR_DIR@/lpd/ | |
1 | build-tree/@TAR_DIR@/pdq/ | |
2 | build-tree/@TAR_DIR@/sample_scripts/ | |
3 | build-tree/@TAR_DIR@/test* |
0 | debian/tmp/usr/bin/calibrate_ppa | |
1 | debian/tmp/usr/bin/pnm2ppa | |
2 | debian/share/pnm2ppa-magicfilter.in usr/share/pnm2ppa | |
3 | debian/share/update-magicfilter usr/share/pnm2ppa | |
4 | build-tree/@TAR_DIR@/pnm2ppa.conf usr/share/pnm2ppa | |
5 | build-tree/@TAR_DIR@/README.security usr/share/doc/pnm2ppa | |
6 | build-tree/@TAR_DIR@/docs/en/CREDITS usr/share/doc/pnm2ppa | |
7 | build-tree/@TAR_DIR@/docs/en/README usr/share/doc/pnm2ppa | |
8 | build-tree/@TAR_DIR@/docs/en/RELEASE-NOTES usr/share/doc/pnm2ppa | |
9 | build-tree/@TAR_DIR@/docs/en/TODO usr/share/doc/pnm2ppa | |
10 | build-tree/@TAR_DIR@/docs/en/CALIBRATION.html usr/share/doc/pnm2ppa/en | |
11 | build-tree/@TAR_DIR@/docs/en/CALIBRATION.txt usr/share/doc/pnm2ppa/en | |
12 | build-tree/@TAR_DIR@/docs/en/COLOR.html usr/share/doc/pnm2ppa/en | |
13 | build-tree/@TAR_DIR@/docs/en/COLOR.txt usr/share/doc/pnm2ppa/en | |
14 | build-tree/@TAR_DIR@/docs/en/PPA_networking-1.html usr/share/doc/pnm2ppa/en | |
15 | build-tree/@TAR_DIR@/docs/en/PPA_networking-2.html usr/share/doc/pnm2ppa/en | |
16 | build-tree/@TAR_DIR@/docs/en/PPA_networking-3.html usr/share/doc/pnm2ppa/en | |
17 | build-tree/@TAR_DIR@/docs/en/PPA_networking-4.html usr/share/doc/pnm2ppa/en | |
18 | build-tree/@TAR_DIR@/docs/en/PPA_networking.html usr/share/doc/pnm2ppa/en | |
19 | build-tree/@TAR_DIR@/docs/en/PPA_networking.txt usr/share/doc/pnm2ppa/en | |
20 | build-tree/@TAR_DIR@/docs/en/sgml/ usr/share/doc/pnm2ppa/en | |
21 | build-tree/@TAR_DIR@/docs/pl/AUTORZY usr/share/doc/pnm2ppa/pl | |
22 | build-tree/@TAR_DIR@/docs/pl/CZYTAJ.TO usr/share/doc/pnm2ppa/pl | |
23 | build-tree/@TAR_DIR@/docs/pl/KALIBRACJA usr/share/doc/pnm2ppa/pl | |
24 | build-tree/@TAR_DIR@/docs/pl/text-pl.h usr/share/doc/pnm2ppa/pl |
0 | [type: gettext/rfc822deb] templates |
0 | # translation of pnm2ppa_1.12-10-da.po to Danish | |
1 | # translation of pnm2ppa_1.12-10_templates.po to Danish | |
2 | # | |
3 | # Translators, if you are not familiar with the PO format, gettext | |
4 | # documentation is worth reading, especially sections dedicated to | |
5 | # this format, e.g. by running: | |
6 | # info -n '(gettext)PO Files' | |
7 | # info -n '(gettext)Header Entry' | |
8 | # Some information specific to po-debconf are available at | |
9 | # /usr/share/doc/po-debconf/README-trans | |
10 | # or http://www.debian.org/intl/l10n/po-debconf/README-trans# | |
11 | # Developers do not need to manually edit POT or PO files. | |
12 | # Claus Hindsgaul <claus_h@image.dk>, 2004. | |
13 | # | |
14 | msgid "" | |
15 | msgstr "" | |
16 | "Project-Id-Version: pnm2ppa_1.12-10-da\n" | |
17 | "Report-Msgid-Bugs-To: \n" | |
18 | "POT-Creation-Date: 2004-01-06 10:43-0600\n" | |
19 | "PO-Revision-Date: 2004-02-26 19:57+0100\n" | |
20 | "Last-Translator: Claus Hindsgaul <claus_h@image.dk>\n" | |
21 | "Language-Team: Danish <dansk@klid.dk>\n" | |
22 | "MIME-Version: 1.0\n" | |
23 | "Content-Type: text/plain; charset=UTF-8\n" | |
24 | "Content-Transfer-Encoding: 8bit\n" | |
25 | "X-Generator: KBabel 1.0.2\n" | |
26 | ||
27 | #. Type: boolean | |
28 | #. Description | |
29 | #: ../templates:4 | |
30 | msgid "Would you like debconf to configure pnm2ppa?" | |
31 | msgstr "Vil du have debconf til at sætte pnm2ppa op?" | |
32 | ||
33 | #. Type: boolean | |
34 | #. Description | |
35 | #: ../templates:4 | |
36 | msgid "" | |
37 | "You can have debconf perform some simple configuration steps for your " | |
38 | "default pnm2ppa setup (edited in your /etc/pnm2ppa.conf file)." | |
39 | msgstr "" | |
40 | "Du kan få debconf til at udføre nogle simple opsætningstrin på din " | |
41 | "standardopsætning af pnm2ppa (ved at redigere i filen /etc/pnm2ppa.conf)." | |
42 | ||
43 | #. Type: select | |
44 | #. Description | |
45 | #: ../templates:11 | |
46 | msgid "What model of HP Deskjet printer do you use?" | |
47 | msgstr "Hvilken model er den HP Deskjet-printer, du bruger?" | |
48 | ||
49 | #. Type: select | |
50 | #. Description | |
51 | #: ../templates:11 | |
52 | msgid "" | |
53 | "The pnm2ppa printer filter behaves differently depending upon which HP " | |
54 | "DeskJet model you use. Choose your model of printer for the default " | |
55 | "configuration file /etc/pnm2ppa.conf." | |
56 | msgstr "" | |
57 | "pnm2ppa-printerfiltret opfører sig forskelligt afhængigt af hvilken HP " | |
58 | "DeskJet-model, du bruger. Vælg din printermodel til standard-opsætningsfilen " | |
59 | "/etc/pnm2ppa.conf." | |
60 | ||
61 | #. Type: boolean | |
62 | #. Description | |
63 | #: ../templates:19 | |
64 | msgid "Would you like debconf to create magicfilter filters?" | |
65 | msgstr "Vil du have at debconf opretter magicfilter-filtre?" | |
66 | ||
67 | #. Type: boolean | |
68 | #. Description | |
69 | #: ../templates:19 | |
70 | msgid "" | |
71 | "Magicfilter is a customizable, extensible automatic printer filter. It uses " | |
72 | "its own magic database (a la file(1)) to decide how to print out a given " | |
73 | "print job. Debconf can run the custom pnm2ppa script called \"update-" | |
74 | "magicfilter\" to generate a default set of filters for color and black-and-" | |
75 | "white printing." | |
76 | msgstr "" | |
77 | "Magicfilter er et automatisk printerfilter, der kan tilrettes og udvides. " | |
78 | "Det benytter sin egen magiske oversigt (a'la file(1)) til at afgøre hvordan " | |
79 | "det skal udskrive et givet udskriftsjob. Debconf kan køre det tilpassede " | |
80 | "pnm2ppa-skript \"update-magicfilter\" for at generere et standard-filsæt " | |
81 | "til udskrivning i farver og sort/hvid." | |
82 | ||
83 | #. Type: boolean | |
84 | #. Description | |
85 | #: ../templates:19 | |
86 | msgid "" | |
87 | "The template filter is found in /usr/share/pnm2ppa/ as \"pnm2ppa-magicfilter." | |
88 | "in\". update-magicfilter uses sed to replace @OPTIONS@ from the template " | |
89 | "and place the resulting filters in /etc/magicfilter. Additionally, symbolic " | |
90 | "links are created from the generated pnm2ppa filters to pbm2ppa filters (the " | |
91 | "deprecated predecessor to pnm2ppa)." | |
92 | msgstr "" | |
93 | "Skabelonfiltret ligger i /usr/share/pnm2ppa/ som \"pnm2ppa-magicfilter." | |
94 | "in\". update-magicfilter benytter sed til at erstatte @OPTIONS@ fra skabelonen " | |
95 | "og lægge de resulterende filtre i /etc/magicfilter. Derudover oprettes " | |
96 | "symbolske lænker fra de genererede pnm2ppa-filtre til pbm2ppa-filtre (den " | |
97 | "nu forældede forgænger til pnm2ppa)." | |
98 | ||
99 | #. Type: boolean | |
100 | #. Description | |
101 | #: ../templates:19 | |
102 | msgid "" | |
103 | "The only thing left for you to do is run magicfilterconfig to generate your /" | |
104 | "etc/printcap." | |
105 | msgstr "" | |
106 | "Det eneste du derefter behøver at gøre, er at køre magicfilterconfig for at " | |
107 | "generere din /etc/printcap." | |
108 |
0 | # | |
1 | # Translators, if you are not familiar with the PO format, gettext | |
2 | # documentation is worth reading, especially sections dedicated to | |
3 | # this format, e.g. by running: | |
4 | # info -n '(gettext)PO Files' | |
5 | # info -n '(gettext)Header Entry' | |
6 | # Some information specific to po-debconf are available at | |
7 | # /usr/share/doc/po-debconf/README-trans | |
8 | # or http://www.debian.org/intl/l10n/po-debconf/README-trans# | |
9 | # Developers do not need to manually edit POT or PO files. | |
10 | # Erik Schanze <mail@erikschanze.de>, 2004. | |
11 | # | |
12 | msgid "" | |
13 | msgstr "" | |
14 | "Project-Id-Version: pnm2ppa_1.12-12_templates\n" | |
15 | "Report-Msgid-Bugs-To: \n" | |
16 | "POT-Creation-Date: 2004-01-06 10:43-0600\n" | |
17 | "PO-Revision-Date: 2004-11-06 21:22+0100\n" | |
18 | "Last-Translator: Erik Schanze <mail@erikschanze.de>\n" | |
19 | "Language-Team: German <debian-l10n-german@lists.debian.org>\n" | |
20 | "MIME-Version: 1.0\n" | |
21 | "Content-Type: text/plain; charset=UTF-8\n" | |
22 | "Content-Transfer-Encoding: 8bit\n" | |
23 | "X-Generator: KBabel 1.3.1\n" | |
24 | "Plural-Forms: nplurals=2; plural=(n != 1);\n" | |
25 | ||
26 | #. Type: boolean | |
27 | #. Description | |
28 | #: ../templates:4 | |
29 | msgid "Would you like debconf to configure pnm2ppa?" | |
30 | msgstr "Soll debconf für die Einstellungen verwendet werden?" | |
31 | ||
32 | #. Type: boolean | |
33 | #. Description | |
34 | #: ../templates:4 | |
35 | msgid "" | |
36 | "You can have debconf perform some simple configuration steps for your " | |
37 | "default pnm2ppa setup (edited in your /etc/pnm2ppa.conf file)." | |
38 | msgstr "" | |
39 | "Sie können debconf benutzen, um einige einfache Anpassungen an den " | |
40 | "Standardeinstellungen von pnm2ppa (in Ihrer Datei /etc/pnm2ppa.conf) " | |
41 | "vorzunehmen." | |
42 | ||
43 | #. Type: select | |
44 | #. Description | |
45 | #: ../templates:11 | |
46 | msgid "What model of HP Deskjet printer do you use?" | |
47 | msgstr "Welches Modell eines HP-Deskjet-Druckers benutzen Sie?" | |
48 | ||
49 | #. Type: select | |
50 | #. Description | |
51 | #: ../templates:11 | |
52 | msgid "" | |
53 | "The pnm2ppa printer filter behaves differently depending upon which HP " | |
54 | "DeskJet model you use. Choose your model of printer for the default " | |
55 | "configuration file /etc/pnm2ppa.conf." | |
56 | msgstr "" | |
57 | "Der verwendete Drucker-Filter in pnm2ppa hängt vom Typ des HP-Deskjets ab, " | |
58 | "den Sie einsetzen. Wählen Sie Ihr Druckermodell für die systemweite " | |
59 | "Konfigurationsdatei /etc/pnm2ppa.conf aus." | |
60 | ||
61 | #. Type: boolean | |
62 | #. Description | |
63 | #: ../templates:19 | |
64 | msgid "Would you like debconf to create magicfilter filters?" | |
65 | msgstr "Soll debconf \"magicfilter\" erstellen?" | |
66 | ||
67 | #. Type: boolean | |
68 | #. Description | |
69 | #: ../templates:19 | |
70 | msgid "" | |
71 | "Magicfilter is a customizable, extensible automatic printer filter. It uses " | |
72 | "its own magic database (a la file(1)) to decide how to print out a given " | |
73 | "print job. Debconf can run the custom pnm2ppa script called \"update-" | |
74 | "magicfilter\" to generate a default set of filters for color and black-and-" | |
75 | "white printing." | |
76 | msgstr "" | |
77 | "Magicfilter ist ein anpassbarer, erweiterbarer automatischer Druckerfilter. Er " | |
78 | "nutzt seine eigene magische Datenbank (wie file(1)), um zu entscheiden, wie " | |
79 | "ein übergebener Druckjob ausgedruckt wird. Debconf kann das Skript " | |
80 | "\"update-magicfilter\" aufrufen, um einige Standardfilter für Farb- und " | |
81 | "Schwarz-Weiß-Druck zu erstellen." | |
82 | ||
83 | #. Type: boolean | |
84 | #. Description | |
85 | #: ../templates:19 | |
86 | msgid "" | |
87 | "The template filter is found in /usr/share/pnm2ppa/ as \"pnm2ppa-magicfilter." | |
88 | "in\". update-magicfilter uses sed to replace @OPTIONS@ from the template " | |
89 | "and place the resulting filters in /etc/magicfilter. Additionally, symbolic " | |
90 | "links are created from the generated pnm2ppa filters to pbm2ppa filters (the " | |
91 | "deprecated predecessor to pnm2ppa)." | |
92 | msgstr "" | |
93 | "Die Vorlage für den Filter befindet sich im Verzeichnis /usr/share/pnm2ppa/ " | |
94 | "als \"pnm2ppa-magicfilter.in\". Das Skript update-magicfilter nutzt 'sed', um " | |
95 | "@OPTIONS@ in der Vorlage zu ersetzen und legt den erstellten Filter im " | |
96 | "Verzeichnis /etc/magicfilter ab. Zusätzlich werden symbolische Links von den " | |
97 | "erstellten pnm2ppa-Filtern zu den pbm2ppa-Filtern (dem veralteten Vorgänger " | |
98 | "von pnm2ppa) angelegt." | |
99 | ||
100 | #. Type: boolean | |
101 | #. Description | |
102 | #: ../templates:19 | |
103 | msgid "" | |
104 | "The only thing left for you to do is run magicfilterconfig to generate your /" | |
105 | "etc/printcap." | |
106 | msgstr "" | |
107 | "Sie müssen nun nur noch das Programm 'magicfilterconfig' starten, um die Datei " | |
108 | "/etc/printcap zu erzeugen." | |
109 |
0 | # | |
1 | # Translators, if you are not familiar with the PO format, gettext | |
2 | # documentation is worth reading, especially sections dedicated to | |
3 | # this format, e.g. by running: | |
4 | # info -n '(gettext)PO Files' | |
5 | # info -n '(gettext)Header Entry' | |
6 | # | |
7 | # Some information specific to po-debconf are available at | |
8 | # /usr/share/doc/po-debconf/README-trans | |
9 | # or http://www.debian.org/intl/l10n/po-debconf/README-trans | |
10 | # | |
11 | # Developers do not need to manually edit POT or PO files. | |
12 | # | |
13 | msgid "" | |
14 | msgstr "" | |
15 | "Project-Id-Version: pnm2ppa 1.12-5\n" | |
16 | "Report-Msgid-Bugs-To: \n" | |
17 | "POT-Creation-Date: 2004-01-06 10:43-0600\n" | |
18 | "PO-Revision-Date: 2003-09-07 12:38+0200\n" | |
19 | "Last-Translator: Nicolas Bertolissio <nico.bertol@free.fr>\n" | |
20 | "Language-Team: French <debian-l10n-french@lists.debian.org>\n" | |
21 | "MIME-Version: 1.0\n" | |
22 | "Content-Type: text/plain; charset=ISO-8859-15\n" | |
23 | "Content-Transfer-Encoding: 8bit\n" | |
24 | ||
25 | #. Type: boolean | |
26 | #. Description | |
27 | #: ../templates:4 | |
28 | msgid "Would you like debconf to configure pnm2ppa?" | |
29 | msgstr "Faut-il utiliser debconf pour configurer pnm2ppa ?" | |
30 | ||
31 | #. Type: boolean | |
32 | #. Description | |
33 | #: ../templates:4 | |
34 | msgid "" | |
35 | "You can have debconf perform some simple configuration steps for your " | |
36 | "default pnm2ppa setup (edited in your /etc/pnm2ppa.conf file)." | |
37 | msgstr "" | |
38 | "Debconf peut réaliser quelques étapes de configuration simples pour le " | |
39 | "paramétrage par défaut de pnm2ppa (dans le fichier /etc/pnm2ppa.conf)." | |
40 | ||
41 | #. Type: select | |
42 | #. Description | |
43 | #: ../templates:11 | |
44 | msgid "What model of HP Deskjet printer do you use?" | |
45 | msgstr "Quel modèle d'imprimante HP Deskjet utilisez-vous ?" | |
46 | ||
47 | #. Type: select | |
48 | #. Description | |
49 | #: ../templates:11 | |
50 | msgid "" | |
51 | "The pnm2ppa printer filter behaves differently depending upon which HP " | |
52 | "DeskJet model you use. Choose your model of printer for the default " | |
53 | "configuration file /etc/pnm2ppa.conf." | |
54 | msgstr "" | |
55 | "Le filtre d'impression pnm2ppa se comporte différemment selon le modèle " | |
56 | "d'imprimante HP Deskjet. Veuillez choisir le modèle d'imprimante pour le " | |
57 | "fichier de configuration par défaut /etc/pnm2ppa.conf." | |
58 | ||
59 | #. Type: boolean | |
60 | #. Description | |
61 | #: ../templates:19 | |
62 | msgid "Would you like debconf to create magicfilter filters?" | |
63 | msgstr "Faut-il utiliser debconf pour configurer pnm2ppa ?" | |
64 | ||
65 | #. Type: boolean | |
66 | #. Description | |
67 | #: ../templates:19 | |
68 | msgid "" | |
69 | "Magicfilter is a customizable, extensible automatic printer filter. It uses " | |
70 | "its own magic database (a la file(1)) to decide how to print out a given " | |
71 | "print job. Debconf can run the custom pnm2ppa script called \"update-" | |
72 | "magicfilter\" to generate a default set of filters for color and black-and-" | |
73 | "white printing." | |
74 | msgstr "" | |
75 | "Magicfilter est un filtre d'impression automatique extensible et " | |
76 | "personnalisable. Il utilise sa propre base de données magique (à la file(1)) " | |
77 | "pour déterminer comment imprimer un travail donné. Debconf peut utiliser le " | |
78 | "script personnalisé de pnm2ppa appelé « update-magicfilter » pour générer un " | |
79 | "ensemble de filtres par défaut pour les impressions en couleurs et en noir " | |
80 | "et blanc." | |
81 | ||
82 | #. Type: boolean | |
83 | #. Description | |
84 | #: ../templates:19 | |
85 | msgid "" | |
86 | "The template filter is found in /usr/share/pnm2ppa/ as \"pnm2ppa-magicfilter." | |
87 | "in\". update-magicfilter uses sed to replace @OPTIONS@ from the template " | |
88 | "and place the resulting filters in /etc/magicfilter. Additionally, symbolic " | |
89 | "links are created from the generated pnm2ppa filters to pbm2ppa filters (the " | |
90 | "deprecated predecessor to pnm2ppa)." | |
91 | msgstr "" | |
92 | "Le filtre du modèle se trouve dans /usr/share/pnm2ppa/ et est nommé pnm2ppa-" | |
93 | "magicfilter.in. update-magicfilter utilise sed pour remplacer les chaînes " | |
94 | "« @OPTIONS@ » du modèle et installe le filtre résultant dans /etc/" | |
95 | "magicfilter. De plus, des liens symboliques sont créés des filtres de " | |
96 | "pnm2ppa générés vers ceux de pbm2ppa (le prédécesseur obsolète de pnm2ppa)." | |
97 | ||
98 | #. Type: boolean | |
99 | #. Description | |
100 | #: ../templates:19 | |
101 | msgid "" | |
102 | "The only thing left for you to do is run magicfilterconfig to generate your /" | |
103 | "etc/printcap." | |
104 | msgstr "" | |
105 | "La seule chose qu'il vous reste à faire est de lancer magicfilterconfig pour " | |
106 | "générer /etc/printcap." |
0 | # | |
1 | # Translators, if you are not familiar with the PO format, gettext | |
2 | # documentation is worth reading, especially sections dedicated to | |
3 | # this format, e.g. by running: | |
4 | # info -n '(gettext)PO Files' | |
5 | # info -n '(gettext)Header Entry' | |
6 | # | |
7 | # Some information specific to po-debconf are available at | |
8 | # /usr/share/doc/po-debconf/README-trans | |
9 | # or http://www.debian.org/intl/l10n/po-debconf/README-trans | |
10 | # | |
11 | # Developers do not need to manually edit POT or PO files. | |
12 | # | |
13 | #, fuzzy | |
14 | msgid "" | |
15 | msgstr "" | |
16 | "Project-Id-Version: pmn2ppa 1.12-7\n" | |
17 | "Report-Msgid-Bugs-To: \n" | |
18 | "POT-Creation-Date: 2004-01-06 10:43-0600\n" | |
19 | "PO-Revision-Date: 2003-12-16 23:12+0900\n" | |
20 | "Last-Translator: OHURA Makoto <ohura@debian.org>\n" | |
21 | "Language-Team: Japanese <debian-japanese@lists.debian.org>\n" | |
22 | "MIME-Version: 1.0\n" | |
23 | "Content-Type: text/plain; charset=EUC-JP\n" | |
24 | "Content-Transfer-Encoding: 8bit\n" | |
25 | ||
26 | #. Type: boolean | |
27 | #. Description | |
28 | #: ../templates:4 | |
29 | msgid "Would you like debconf to configure pnm2ppa?" | |
30 | msgstr "pnm2ppa を設定するために debconf を使いたいですか。" | |
31 | ||
32 | #. Type: boolean | |
33 | #. Description | |
34 | #: ../templates:4 | |
35 | msgid "" | |
36 | "You can have debconf perform some simple configuration steps for your " | |
37 | "default pnm2ppa setup (edited in your /etc/pnm2ppa.conf file)." | |
38 | msgstr "" | |
39 | "(/etc/pnm2ppa.conf ファイルを編集することによって、) 標準の pnm2ppa のセット" | |
40 | "アップのための簡単な設定の手続きを debconf に行わせることもできます。" | |
41 | ||
42 | #. Type: select | |
43 | #. Description | |
44 | #: ../templates:11 | |
45 | msgid "What model of HP Deskjet printer do you use?" | |
46 | msgstr "使用している HP Deskjet プリンタのモデルは何ですか。" | |
47 | ||
48 | #. Type: select | |
49 | #. Description | |
50 | #: ../templates:11 | |
51 | msgid "" | |
52 | "The pnm2ppa printer filter behaves differently depending upon which HP " | |
53 | "DeskJet model you use. Choose your model of printer for the default " | |
54 | "configuration file /etc/pnm2ppa.conf." | |
55 | msgstr "" | |
56 | "pnm2ppa プリンタフィルタは、どの HP DeskJet のモデルを使っているかによって、" | |
57 | "異なった振舞をします。標準の設定ファイル /etc/pnm2ppa.conf におけるプリンタの" | |
58 | "モデルを選択して下さい。" | |
59 | ||
60 | #. Type: boolean | |
61 | #. Description | |
62 | #: ../templates:19 | |
63 | msgid "Would you like debconf to create magicfilter filters?" | |
64 | msgstr "magicfilter のフィルタを作るために debconf を使いますか。" | |
65 | ||
66 | #. Type: boolean | |
67 | #. Description | |
68 | #: ../templates:19 | |
69 | msgid "" | |
70 | "Magicfilter is a customizable, extensible automatic printer filter. It uses " | |
71 | "its own magic database (a la file(1)) to decide how to print out a given " | |
72 | "print job. Debconf can run the custom pnm2ppa script called \"update-" | |
73 | "magicfilter\" to generate a default set of filters for color and black-and-" | |
74 | "white printing." | |
75 | msgstr "" | |
76 | "magicfilter はカスタマイズ可能で、拡張性のある自動プリンタフィルタです。これ" | |
77 | "は、与えられたプリントジョブをどのように印刷するか決定するための (file(1) 流" | |
78 | "の) magic データベースを持っています。debconf は update-magicfilter という " | |
79 | "pnm2ppa のスクリプトを使って、カラーと白黒印刷のための標準のフィルタを生成す" | |
80 | "ることができます。" | |
81 | ||
82 | #. Type: boolean | |
83 | #. Description | |
84 | #: ../templates:19 | |
85 | #, fuzzy | |
86 | msgid "" | |
87 | "The template filter is found in /usr/share/pnm2ppa/ as \"pnm2ppa-magicfilter." | |
88 | "in\". update-magicfilter uses sed to replace @OPTIONS@ from the template " | |
89 | "and place the resulting filters in /etc/magicfilter. Additionally, symbolic " | |
90 | "links are created from the generated pnm2ppa filters to pbm2ppa filters (the " | |
91 | "deprecated predecessor to pnm2ppa)." | |
92 | msgstr "" | |
93 | "雛型のフィルタは pnm2ppa-magicfilter.in という名前で /usr/share/pnm2ppa/ にあ" | |
94 | "ります。update-magicfilter は雛型の @OPTIONS@ を sed を使って置き換えて、その" | |
95 | "結果を /etc/magicfilter に置くために使われます。さらに、生成された pnm2ppa の" | |
96 | "フィルタから、(pnm2ppa の先祖である) pbm2ppa のフィルタへのシンボリックリンク" | |
97 | "が作られます。" | |
98 | ||
99 | #. Type: boolean | |
100 | #. Description | |
101 | #: ../templates:19 | |
102 | #, fuzzy | |
103 | msgid "" | |
104 | "The only thing left for you to do is run magicfilterconfig to generate your /" | |
105 | "etc/printcap." | |
106 | msgstr "" | |
107 | "後は、/etc/printcap を生成するために magicfilterconfig を実行するだけです。" |
0 | # | |
1 | # Translators, if you are not familiar with the PO format, gettext | |
2 | # documentation is worth reading, especially sections dedicated to | |
3 | # this format, e.g. by running: | |
4 | # info -n '(gettext)PO Files' | |
5 | # info -n '(gettext)Header Entry' | |
6 | # | |
7 | # Some information specific to po-debconf are available at | |
8 | # /usr/share/doc/po-debconf/README-trans | |
9 | # or http://www.debian.org/intl/l10n/po-debconf/README-trans | |
10 | # | |
11 | # Developers do not need to manually edit POT or PO files. | |
12 | # | |
13 | #, fuzzy | |
14 | msgid "" | |
15 | msgstr "" | |
16 | "Project-Id-Version: PACKAGE VERSION\n" | |
17 | "Report-Msgid-Bugs-To: \n" | |
18 | "POT-Creation-Date: 2004-01-06 10:43-0600\n" | |
19 | "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" | |
20 | "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" | |
21 | "Language-Team: LANGUAGE <LL@li.org>\n" | |
22 | "MIME-Version: 1.0\n" | |
23 | "Content-Type: text/plain; charset=CHARSET\n" | |
24 | "Content-Transfer-Encoding: 8bit\n" | |
25 | ||
26 | #. Type: boolean | |
27 | #. Description | |
28 | #: ../templates:4 | |
29 | msgid "Would you like debconf to configure pnm2ppa?" | |
30 | msgstr "" | |
31 | ||
32 | #. Type: boolean | |
33 | #. Description | |
34 | #: ../templates:4 | |
35 | msgid "" | |
36 | "You can have debconf perform some simple configuration steps for your " | |
37 | "default pnm2ppa setup (edited in your /etc/pnm2ppa.conf file)." | |
38 | msgstr "" | |
39 | ||
40 | #. Type: select | |
41 | #. Description | |
42 | #: ../templates:11 | |
43 | msgid "What model of HP Deskjet printer do you use?" | |
44 | msgstr "" | |
45 | ||
46 | #. Type: select | |
47 | #. Description | |
48 | #: ../templates:11 | |
49 | msgid "" | |
50 | "The pnm2ppa printer filter behaves differently depending upon which HP " | |
51 | "DeskJet model you use. Choose your model of printer for the default " | |
52 | "configuration file /etc/pnm2ppa.conf." | |
53 | msgstr "" | |
54 | ||
55 | #. Type: boolean | |
56 | #. Description | |
57 | #: ../templates:19 | |
58 | msgid "Would you like debconf to create magicfilter filters?" | |
59 | msgstr "" | |
60 | ||
61 | #. Type: boolean | |
62 | #. Description | |
63 | #: ../templates:19 | |
64 | msgid "" | |
65 | "Magicfilter is a customizable, extensible automatic printer filter. It uses " | |
66 | "its own magic database (a la file(1)) to decide how to print out a given " | |
67 | "print job. Debconf can run the custom pnm2ppa script called \"update-" | |
68 | "magicfilter\" to generate a default set of filters for color and black-and-" | |
69 | "white printing." | |
70 | msgstr "" | |
71 | ||
72 | #. Type: boolean | |
73 | #. Description | |
74 | #: ../templates:19 | |
75 | msgid "" | |
76 | "The template filter is found in /usr/share/pnm2ppa/ as \"pnm2ppa-magicfilter." | |
77 | "in\". update-magicfilter uses sed to replace @OPTIONS@ from the template " | |
78 | "and place the resulting filters in /etc/magicfilter. Additionally, symbolic " | |
79 | "links are created from the generated pnm2ppa filters to pbm2ppa filters (the " | |
80 | "deprecated predecessor to pnm2ppa)." | |
81 | msgstr "" | |
82 | ||
83 | #. Type: boolean | |
84 | #. Description | |
85 | #: ../templates:19 | |
86 | msgid "" | |
87 | "The only thing left for you to do is run magicfilterconfig to generate your /" | |
88 | "etc/printcap." | |
89 | msgstr "" |
0 | #! /bin/sh | |
1 | # postinst script for pnm2ppa | |
2 | # | |
3 | # see: dh_installdeb(1) | |
4 | set -e | |
5 | ||
6 | # Variables | |
7 | CONFFILE="/etc/pnm2ppa.conf" | |
8 | CONFTMPL="/usr/share/pnm2ppa/pnm2ppa.conf" | |
9 | MKMAGIC="/usr/share/pnm2ppa/update-magicfilter" | |
10 | ||
11 | # Debconf, baby -- no tests. It's a dependency for installation. | |
12 | . /usr/share/debconf/confmodule | |
13 | ||
14 | case "${1}" in | |
15 | configure) | |
16 | # Make sure we have a config file in place | |
17 | if [ ! -f ${CONFFILE} ] ; then | |
18 | /usr/bin/install -m644 ${CONFTMPL} ${CONFFILE} | |
19 | fi | |
20 | ||
21 | db_get pnm2ppa/use_debconf | |
22 | if [ "${RET}" = "true" ] ; then | |
23 | # If conf file already exists, use that | |
24 | if [ -f ${CONFFILE} ] ; then | |
25 | CONFSRC=${CONFFILE} | |
26 | else | |
27 | CONFSRC=${CONFTMPL} | |
28 |