File: StylusColor-800%40720dpi-filter.x

package info (click to toggle)
magicfilter 1.2-63
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 1,280 kB
  • ctags: 142
  • sloc: ansic: 1,292; makefile: 289; perl: 220; sh: 193
file content (74 lines) | stat: -rw-r--r-- 2,439 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
%include <filters.h>
#
# Magic filter setup file for the EPSON Stylus Color 800 printer operating
# at 720 dpi, late 20th century edition.
#
# Initially based on `epsonlqc-filter.x'.  Heavily modified and completely
# untested since I (Dirk Ritter <dirk@gnumatic.de>) only have the original
# Stylus Color.
#
# There is no warranty for anything whatsoever!
#
# This file is covered by the GNU General Public License as published by the
# Free Software Foundation; either version 2, or (at your option) any later
# version.
#
# Copyright (c) 1999 Dirk Ritter
#
# This file has been automatically adapted to your system.
%ifndef HAVE_GHOSTSCRIPT
# However, since you did not have GhostScript installed, most entries
# are going to be rejects.
%endif
%define DPI 720		/* printer resolution */
%define IS_COLOR 1	/* color capability   */
/*
 * PostScript:
 */
%ifdef HAVE_GHOSTSCRIPT
%define HANDLE_PS	filter	PATH_GHOSTSCRIPT @stc800p.upp -q -sOutputFile=- /usr/share/magicfilter/quiet.ps - -c quit
%endif
/*
 * Portable Document Format (input needs to be seekable):
 */
%ifdef HAVE_GHOSTSCRIPT
%define HANDLE_PDF	fpipe	PATH_GHOSTSCRIPT @stc800p.upp -q -sOutputFile=- /usr/share/magicfilter/quiet.ps $FILE -c quit
%endif
/*
 * Text:
 */
%ifdef HAVE_RECODE
%define HANDLE_TEXT	filter	PATH_RECODE --silent latin1..ibmpc
%endif
%ifndef HAVE_RECODE
%define HANDLE_TEXT	text
%endif

/*
 * Native control codes are used here to override PCL magic:
 */
# Native printer control codes start with <ESC>, so we pass everything that
# starts with `\033' directly to the printer, cross our fingers and hope for
# the best:
0	\033	cat

%ifdef HAVE_GHOSTSCRIPT
# See `Devices.htm' for a description of the GhostScript options. They are
# needed and are not documented in the GhostScript manual page since they are
# specific to the GhostScript device drivers.
#
# GhostScript version >= 5.00 options, driver 'uniprint':
# -------------------------------------------------------
# The options currently used should work with GhostScript version >= 5.00
# if the uniprint driver got included during compilation:
%endif
%include <stdconv.mh>

# Default entry for normal (text) files.  This must be the last entry!
# =====================================================================
%ifdef HAVE_RECODE
# Please adjust recode's codepage conversion manually according to your
# local needs. We apologize for the inconveniences...
#
%endif
default HANDLE_TEXT