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 generic EPSON printers supporting ESC/P2
# at 360 dpi, late 20th century edition.
#
# Initially based on `epsonlqc-filter.x'. Heavily modified and partially
# tested together with the original Stylus Color, GhostScript versions 3.33,
# 4.03 and 5.10 by Dirk Ritter <dirk@gnumatic.de>.
#
# 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 360 /* printer resolution */
%define IS_COLOR 1 /* color capability */
/*
* PostScript:
*/
%ifdef HAVE_GHOSTSCRIPT
%define HANDLE_PS filter PATH_GHOSTSCRIPT @stcany.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 @stcany.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
|