printer revision 191736
1132451Sroberto
2132451Sroberto#------------------------------------------------------------------------------
3285612Sdelphij# printer:  file(1) magic for printer-formatted files
4285612Sdelphij#
5285612Sdelphij
6285612Sdelphij# PostScript, updated by Daniel Quinlan (quinlan@yggdrasil.com)
7285612Sdelphij0	string		%!		PostScript document text
8285612Sdelphij!:mime	application/postscript
9285612Sdelphij!:apple	ASPSTEXT
10285612Sdelphij>2	string		PS-Adobe-	conforming
11285612Sdelphij>>11	string		>\0		DSC level %.3s
12285612Sdelphij>>>15	string		EPS		\b, type %s
13330567Sgordon>>>15	string		Query		\b, type %s
14285612Sdelphij>>>15	string		ExitServer	\b, type %s
15285612Sdelphij>>>15   search/1000		%%LanguageLevel:\ 
16285612Sdelphij>>>>&0	string		>\0		\b, Level %s
17285612Sdelphij# Some PCs have the annoying habit of adding a ^D as a document separator
18285612Sdelphij0	string		\004%!		PostScript document text
19285612Sdelphij!:mime	application/postscript
20285612Sdelphij!:apple	ASPSTEXT
21285612Sdelphij>3	string		PS-Adobe-	conforming
22285612Sdelphij>>12	string		>\0		DSC level %.3s
23285612Sdelphij>>>16	string		EPS		\b, type %s
24285612Sdelphij>>>16	string		Query		\b, type %s
25285612Sdelphij>>>16	string		ExitServer	\b, type %s
26285612Sdelphij>>>16   search/1000		%%LanguageLevel:\ 
27285612Sdelphij>>>>&0	string		>\0		\b, Level %s
28285612Sdelphij0	string		\033%-12345X%!PS	PostScript document
29285612Sdelphij
30285612Sdelphij# DOS EPS Binary File Header
31294569Sdelphij# From: Ed Sznyter <ews@Black.Market.NET>
32294569Sdelphij0       belong          0xC5D0D3C6      DOS EPS Binary File
33294569Sdelphij>4      long            >0              Postscript starts at byte %d
34285612Sdelphij>>8     long            >0              length %d
35285612Sdelphij>>>12   long            >0              Metafile starts at byte %d
36285612Sdelphij>>>>16  long            >0              length %d
37285612Sdelphij>>>20   long            >0              TIFF starts at byte %d
38285612Sdelphij>>>>24  long            >0              length %d
39285612Sdelphij
40285612Sdelphij# Summary: Adobe's PostScript Printer Description File
41285612Sdelphij# Extension: .ppd
42285612Sdelphij# Reference: http://partners.adobe.com/public/developer/en/ps/5003.PPD_Spec_v4.3.pdf, Section 3.8
43285612Sdelphij# Submitted by: Yves Arrouye <arrouye@marin.fdn.fr>
44285612Sdelphij#
45285612Sdelphij0	string		*PPD-Adobe:\x20	PPD file
46285612Sdelphij>&0	string		x		\b, version %s
47285612Sdelphij
48285612Sdelphij# HP Printer Job Language
49285612Sdelphij0	string		\033%-12345X@PJL	HP Printer Job Language data
50285612Sdelphij# HP Printer Job Language
51285612Sdelphij# The header found on Win95 HP plot files is the "Silliest Thing possible" 
52285612Sdelphij# (TM)
53294569Sdelphij# Every driver puts the language at some random position, with random case
54294569Sdelphij# (LANGUAGE and Language)
55294569Sdelphij# For example the LaserJet 5L driver puts the "PJL ENTER LANGUAGE" in line 10
56294569Sdelphij# From: Uwe Bonnes <bon@elektron.ikp.physik.th-darmstadt.de>
57294569Sdelphij# 
58294569Sdelphij0	string		\033%-12345X@PJL	HP Printer Job Language data
59294569Sdelphij>&0	string		>\0			%s			
60285612Sdelphij>>&0	string		>\0			%s			
61285612Sdelphij>>>&0	string		>\0			%s		
62285612Sdelphij>>>>&0	string		>\0			%s		
63285612Sdelphij#>15	string		\ ENTER\ LANGUAGE\ =
64285612Sdelphij#>31	string		PostScript		PostScript
65285612Sdelphij
66285612Sdelphij# HP Printer Control Language, Daniel Quinlan (quinlan@yggdrasil.com)
67293650Sglebius0	string		\033E\033	HP PCL printer data
68285612Sdelphij>3	string		\&l0A		- default page size
69285612Sdelphij>3	string		\&l1A		- US executive page size
70285612Sdelphij>3	string		\&l2A		- US letter page size
71285612Sdelphij>3	string		\&l3A		- US legal page size
72285612Sdelphij>3	string		\&l26A		- A4 page size
73285612Sdelphij>3	string		\&l80A		- Monarch envelope size
74285612Sdelphij>3	string		\&l81A		- No. 10 envelope size
75285612Sdelphij>3	string		\&l90A		- Intl. DL envelope size
76285612Sdelphij>3	string		\&l91A		- Intl. C5 envelope size
77285612Sdelphij>3	string		\&l100A		- Intl. B5 envelope size
78285612Sdelphij>3	string		\&l-81A		- No. 10 envelope size (landscape)
79285612Sdelphij>3	string		\&l-90A		- Intl. DL envelope size (landscape)
80285612Sdelphij
81285612Sdelphij# IMAGEN printer-ready files:
82285612Sdelphij0	string	@document(		Imagen printer
83285612Sdelphij# this only works if "language xxx" is first item in Imagen header.
84285612Sdelphij>10	string	language\ impress	(imPRESS data)
85285612Sdelphij>10	string	language\ daisy		(daisywheel text)
86285612Sdelphij>10	string	language\ diablo	(daisywheel text)
87285612Sdelphij>10	string	language\ printer	(line printer emulation)
88285612Sdelphij>10	string	language\ tektronix	(Tektronix 4014 emulation)
89285612Sdelphij# Add any other languages that your Imagen uses - remember
90285612Sdelphij# to keep the word `text' if the file is human-readable.
91285612Sdelphij# [GRR 950115:  missing "postscript" or "ultrascript" (whatever it was called)]
92285612Sdelphij#
93285612Sdelphij# Now magic for IMAGEN font files...
94285612Sdelphij0	string		Rast		RST-format raster font data
95285612Sdelphij>45	string		>0		face %s
96285612Sdelphij# From Jukka Ukkonen
97285612Sdelphij0	string		\033[K\002\0\0\017\033(a\001\0\001\033(g	Canon Bubble Jet BJC formatted data
98285612Sdelphij
99285612Sdelphij# From <mike@flyn.org>
100285612Sdelphij# These are the /etc/magic entries to decode data sent to an Epson printer.
101285612Sdelphij0       string          \x1B\x40\x1B\x28\x52\x08\x00\x00REMOTE1P        Epson Stylus Color 460 data
102285612Sdelphij
103285612Sdelphij
104285612Sdelphij#------------------------------------------------------------------------------
105285612Sdelphij# zenographics:  file(1) magic for Zenographics ZjStream printer data
106285612Sdelphij# Rick Richardson  rickr@mn.rr.com
107330567Sgordon0	string		JZJZ
108330567Sgordon>0x12	string		ZZ		Zenographics ZjStream printer data (big-endian)
109330567Sgordon0	string		ZJZJ
110330567Sgordon>0x12	string		ZZ		Zenographics ZjStream printer data (little-endian)
111285612Sdelphij
112285612Sdelphij
113285612Sdelphij#------------------------------------------------------------------------------
114285612Sdelphij# Oak Technologies printer stream
115285612Sdelphij# Rick Richardson <rickr@mn.rr.com>
116285612Sdelphij0       string          OAK
117285612Sdelphij>0x07	byte		0
118289997Sglebius>0x0b	byte		0	Oak Technologies printer stream
119285612Sdelphij
120285612Sdelphij# This would otherwise be recognized as PostScript - nick@debian.org
121285612Sdelphij0	string		%!VMF 		SunClock's Vector Map Format data
122285612Sdelphij
123285612Sdelphij#------------------------------------------------------------------------------
124285612Sdelphij# HP LaserJet 1000 series downloadable firmware file
125285612Sdelphij0	string	\xbe\xefABCDEFGH	HP LaserJet 1000 series downloadable firmware   
126285612Sdelphij
127285612Sdelphij# From: Paolo <oopla@users.sf.net>
128285612Sdelphij# Epson ESC/Page, ESC/PageColor 
129285612Sdelphij0	string	\x1b\x01@EJL	Epson ESC/Page language printer data
130285612Sdelphij