printer revision 186675
1 2#------------------------------------------------------------------------------ 3# printer: file(1) magic for printer-formatted files 4# 5 6# PostScript, updated by Daniel Quinlan (quinlan@yggdrasil.com) 70 string %! PostScript document text 8>2 string PS-Adobe- conforming 9>>11 string >\0 at level %.3s 10>>>15 string EPS - type %s 11>>>15 string Query - type %s 12>>>15 string ExitServer - type %s 13# Some PCs have the annoying habit of adding a ^D as a document separator 140 string \004%! PostScript document text 15>3 string PS-Adobe- conforming 16>>12 string >\0 at level %.3s 17>>>16 string EPS - type %s 18>>>16 string Query - type %s 19>>>16 string ExitServer - type %s 200 string \033%-12345X%!PS PostScript document 21 22 23# DOS EPS Binary File Header 24# From: Ed Sznyter <ews@Black.Market.NET> 250 belong 0xC5D0D3C6 DOS EPS Binary File 26>4 long >0 Postscript starts at byte %d 27>>8 long >0 length %d 28>>>12 long >0 Metafile starts at byte %d 29>>>>16 long >0 length %d 30>>>20 long >0 TIFF starts at byte %d 31>>>>24 long >0 length %d 32 33# Adobe's PostScript Printer Description (PPD) files 34# Yves Arrouye <arrouye@marin.fdn.fr> 35# 360 string *PPD-Adobe: PPD file 37>13 string x \b, ve 38 39# HP Printer Job Language 400 string \033%-12345X@PJL HP Printer Job Language data 41# HP Printer Job Language 42# The header found on Win95 HP plot files is the "Silliest Thing possible" 43# (TM) 44# Every driver puts the language at some random position, with random case 45# (LANGUAGE and Language) 46# For example the LaserJet 5L driver puts the "PJL ENTER LANGUAGE" in line 10 47# From: Uwe Bonnes <bon@elektron.ikp.physik.th-darmstadt.de> 48# 490 string \033%-12345X@PJL HP Printer Job Language data 50>&0 string >\0 %s 51>>&0 string >\0 %s 52>>>&0 string >\0 %s 53>>>>&0 string >\0 %s 54#>15 string \ ENTER\ LANGUAGE\ = 55#>31 string PostScript PostScript 56 57# HP Printer Control Language, Daniel Quinlan (quinlan@yggdrasil.com) 580 string \033E\033 HP PCL printer data 59>3 string \&l0A - default page size 60>3 string \&l1A - US executive page size 61>3 string \&l2A - US letter page size 62>3 string \&l3A - US legal page size 63>3 string \&l26A - A4 page size 64>3 string \&l80A - Monarch envelope size 65>3 string \&l81A - No. 10 envelope size 66>3 string \&l90A - Intl. DL envelope size 67>3 string \&l91A - Intl. C5 envelope size 68>3 string \&l100A - Intl. B5 envelope size 69>3 string \&l-81A - No. 10 envelope size (landscape) 70>3 string \&l-90A - Intl. DL envelope size (landscape) 71 72# IMAGEN printer-ready files: 730 string @document( Imagen printer 74# this only works if "language xxx" is first item in Imagen header. 75>10 string language\ impress (imPRESS data) 76>10 string language\ daisy (daisywheel text) 77>10 string language\ diablo (daisywheel text) 78>10 string language\ printer (line printer emulation) 79>10 string language\ tektronix (Tektronix 4014 emulation) 80# Add any other languages that your Imagen uses - remember 81# to keep the word `text' if the file is human-readable. 82# [GRR 950115: missing "postscript" or "ultrascript" (whatever it was called)] 83# 84# Now magic for IMAGEN font files... 850 string Rast RST-format raster font data 86>45 string >0 face %s 87# From Jukka Ukkonen 880 string \033[K\002\0\0\017\033(a\001\0\001\033(g Canon Bubble Jet BJC formatted data 89 90# From <mike@flyn.org> 91# These are the /etc/magic entries to decode data sent to an Epson printer. 920 string \x1B\x40\x1B\x28\x52\x08\x00\x00REMOTE1P Epson Stylus Color 460 data 93 94 95#------------------------------------------------------------------------------ 96# zenographics: file(1) magic for Zenographics ZjStream printer data 97# Rick Richardson rickr@mn.rr.com 980 string JZJZ 99>0x12 string ZZ Zenographics ZjStream printer data (big-endian) 1000 string ZJZJ 101>0x12 string ZZ Zenographics ZjStream printer data (little-endian) 102 103 104#------------------------------------------------------------------------------ 105# Oak Technologies printer stream 106# Rick Richardson <rickr@mn.rr.com> 1070 string OAK 108>0x07 byte 0 109>0x0b byte 0 Oak Technologies printer stream 110 111# This would otherwise be recognized as PostScript - nick@debian.org 1120 string %!VMF SunClock's Vector Map Format data 113 114#------------------------------------------------------------------------------ 115# HP LaserJet 1000 series downloadable firmware file 1160 string \xbe\xefABCDEFGH HP LaserJet 1000 series downloadable firmware 117 118# From: Paolo <oopla@users.sf.net> 119# Epson ESC/Page, ESC/PageColor 1200 string \x1b\x01@EJL Epson ESC/Page language printer data 121