printer revision 159764
192654Sjeff 2103623Sjeff#------------------------------------------------------------------------------ 392654Sjeff# printer: file(1) magic for printer-formatted files 492654Sjeff# 592654Sjeff 692654Sjeff# PostScript, updated by Daniel Quinlan (quinlan@yggdrasil.com) 792654Sjeff0 string %! PostScript document text 892654Sjeff>2 string PS-Adobe- conforming 992654Sjeff>>11 string >\0 at level %.3s 1092654Sjeff>>>15 string EPS - type %s 1192654Sjeff>>>15 string Query - type %s 1292654Sjeff>>>15 string ExitServer - type %s 1392654Sjeff# Some PCs have the annoying habit of adding a ^D as a document separator 1492654Sjeff0 string \004%! PostScript document text 1592654Sjeff>3 string PS-Adobe- conforming 1692654Sjeff>>12 string >\0 at level %.3s 1792654Sjeff>>>16 string EPS - type %s 1892654Sjeff>>>16 string Query - type %s 1992654Sjeff>>>16 string ExitServer - type %s 2092654Sjeff0 string \033%-12345X%!PS PostScript document 2192654Sjeff 2292654Sjeff 2392654Sjeff# DOS EPS Binary File Header 2492654Sjeff# From: Ed Sznyter <ews@Black.Market.NET> 2592654Sjeff0 belong 0xC5D0D3C6 DOS EPS Binary File 2692654Sjeff>4 long >0 Postscript starts at byte %d 2792654Sjeff>>8 long >0 length %d 2892654Sjeff>>>12 long >0 Metafile starts at byte %d 2992654Sjeff>>>>16 long >0 length %d 3092654Sjeff>>>20 long >0 TIFF starts at byte %d 3192654Sjeff>>>>24 long >0 length %d 3292654Sjeff 3392654Sjeff# Adobe's PostScript Printer Description (PPD) files 3492654Sjeff# Yves Arrouye <arrouye@marin.fdn.fr> 3592654Sjeff# 3692654Sjeff0 string *PPD-Adobe: PPD file 3792654Sjeff>13 string x \b, ve 3892654Sjeff 3992654Sjeff# HP Printer Job Language 4092654Sjeff0 string \033%-12345X@PJL HP Printer Job Language data 4192654Sjeff# HP Printer Job Language 4292654Sjeff# The header found on Win95 HP plot files is the "Silliest Thing possible" 4392654Sjeff# (TM) 4492654Sjeff# Every driver puts the language at some random position, with random case 4592654Sjeff# (LANGUAGE and Language) 4692654Sjeff# For example the LaserJet 5L driver puts the "PJL ENTER LANGUAGE" in line 10 4792654Sjeff# From: Uwe Bonnes <bon@elektron.ikp.physik.th-darmstadt.de> 4892654Sjeff# 4992654Sjeff0 string \033%-12345X@PJL HP Printer Job Language data 5092654Sjeff>&0 string >\0 %s 5192654Sjeff>>&0 string >\0 %s 5292654Sjeff>>>&0 string >\0 %s 5392654Sjeff>>>>&0 string >\0 %s 5492654Sjeff#>15 string \ ENTER\ LANGUAGE\ = 5592654Sjeff#>31 string PostScript PostScript 5692654Sjeff 5792654Sjeff# HP Printer Control Language, Daniel Quinlan (quinlan@yggdrasil.com) 5892654Sjeff0 string \033E\033 HP PCL printer data 5992654Sjeff>3 string \&l0A - default page size 6092654Sjeff>3 string \&l1A - US executive page size 6192654Sjeff>3 string \&l2A - US letter page size 6292654Sjeff>3 string \&l3A - US legal page size 63105689Ssheldonh>3 string \&l26A - A4 page size 6492654Sjeff>3 string \&l80A - Monarch envelope size 6592654Sjeff>3 string \&l81A - No. 10 envelope size 6692654Sjeff>3 string \&l90A - Intl. DL envelope size 6792654Sjeff>3 string \&l91A - Intl. C5 envelope size 6892654Sjeff>3 string \&l100A - Intl. B5 envelope size 6992654Sjeff>3 string \&l-81A - No. 10 envelope size (landscape) 7092654Sjeff>3 string \&l-90A - Intl. DL envelope size (landscape) 7192654Sjeff 7292654Sjeff# IMAGEN printer-ready files: 7392654Sjeff0 string @document( Imagen printer 7492654Sjeff# this only works if "language xxx" is first item in Imagen header. 7592654Sjeff>10 string language\ impress (imPRESS data) 7692654Sjeff>10 string language\ daisy (daisywheel text) 7792654Sjeff>10 string language\ diablo (daisywheel text) 7892654Sjeff>10 string language\ printer (line printer emulation) 7992654Sjeff>10 string language\ tektronix (Tektronix 4014 emulation) 8092654Sjeff# Add any other languages that your Imagen uses - remember 8192654Sjeff# to keep the word `text' if the file is human-readable. 8292654Sjeff# [GRR 950115: missing "postscript" or "ultrascript" (whatever it was called)] 8392654Sjeff# 8492654Sjeff# Now magic for IMAGEN font files... 8592654Sjeff0 string Rast RST-format raster font data 8692654Sjeff>45 string >0 face %s 8792654Sjeff# From Jukka Ukkonen 8892654Sjeff0 string \033[K\002\0\0\017\033(a\001\0\001\033(g Canon Bubble Jet BJC formatted data 8992654Sjeff 9092654Sjeff# From <mike@flyn.org> 9192654Sjeff# These are the /etc/magic entries to decode data sent to an Epson printer. 9292654Sjeff0 string \x1B\x40\x1B\x28\x52\x08\x00\x00REMOTE1P Epson Stylus Color 460 data 9392654Sjeff 9492654Sjeff 9592654Sjeff#------------------------------------------------------------------------------ 9692654Sjeff# zenographics: file(1) magic for Zenographics ZjStream printer data 9792654Sjeff# Rick Richardson rickr@mn.rr.com 9892654Sjeff0 string JZJZ 9992654Sjeff>0x12 string ZZ Zenographics ZjStream printer data (big-endian) 10092654Sjeff0 string ZJZJ 10192654Sjeff>0x12 string ZZ Zenographics ZjStream printer data (little-endian) 10292654Sjeff 10392654Sjeff 10492654Sjeff#------------------------------------------------------------------------------ 10592654Sjeff# Oak Technologies printer stream 10692654Sjeff# Rick Richardson <rickr@mn.rr.com> 10792654Sjeff0 string OAK 10892654Sjeff>0x07 byte 0 10992654Sjeff>0x0b byte 0 Oak Technologies printer stream 11092654Sjeff 11192654Sjeff# This would otherwise be recognized as PostScript - nick@debian.org 11292654Sjeff0 string %!VMF SunClock's Vector Map Format data 11392654Sjeff 11492654Sjeff#------------------------------------------------------------------------------ 11592654Sjeff# HP LaserJet 1000 series downloadable firmware file 11692654Sjeff0 string \xbe\xefABCDEFGH HP LaserJet 1000 series downloadable firmware 11792654Sjeff 11892654Sjeff# From: Paolo <oopla@users.sf.net> 11992654Sjeff# Epson ESC/Page, ESC/PageColor 12092654Sjeff0 string \x1b\x01@EJL Epson ESC/Page language printer data 12192654Sjeff