"Fossies" - the Fresh Open Source Software Archive

Member "file-5.35/magic/Magdir/printer" (17 Mar 2017, 5968 Bytes) of package /linux/misc/file-5.35.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the last Fossies "Diffs" side-by-side code changes report for "printer": 5.30_vs_5.31.

    1 
    2 #------------------------------------------------------------------------------
    3 # $File: printer,v 1.28 2017/03/17 22:20:22 christos Exp $
    4 # printer:  file(1) magic for printer-formatted files
    5 #
    6 
    7 # PostScript, updated by Daniel Quinlan (quinlan@yggdrasil.com)
    8 0	string		%!		PostScript document text
    9 !:mime	application/postscript
   10 !:apple	ASPSTEXT
   11 >2	string		PS-Adobe-	conforming
   12 >>11	string		>\0		DSC level %.3s
   13 >>>15	string		EPS		\b, type %s
   14 >>>15	string		Query		\b, type %s
   15 >>>15	string		ExitServer	\b, type %s
   16 >>>15   search/1000		%%LanguageLevel:\040
   17 >>>>&0	string		>\0		\b, Level %s
   18 # Some PCs have the annoying habit of adding a ^D as a document separator
   19 0	string		\004%!		PostScript document text
   20 !:mime	application/postscript
   21 !:apple	ASPSTEXT
   22 >3	string		PS-Adobe-	conforming
   23 >>12	string		>\0		DSC level %.3s
   24 >>>16	string		EPS		\b, type %s
   25 >>>16	string		Query		\b, type %s
   26 >>>16	string		ExitServer	\b, type %s
   27 >>>16   search/1000		%%LanguageLevel:\040
   28 >>>>&0	string		>\0		\b, Level %s
   29 0	string		\033%-12345X%!PS	PostScript document
   30 
   31 # DOS EPS Binary File Header
   32 # From: Ed Sznyter <ews@Black.Market.NET>
   33 0       belong          0xC5D0D3C6      DOS EPS Binary File
   34 >4      long            >0              Postscript starts at byte %d
   35 >>8     long            >0              length %d
   36 >>>12   long            >0              Metafile starts at byte %d
   37 >>>>16  long            >0              length %d
   38 >>>20   long            >0              TIFF starts at byte %d
   39 >>>>24  long            >0              length %d
   40 
   41 # Summary: Adobe's PostScript Printer Description File
   42 # Extension: .ppd
   43 # Reference: http://partners.adobe.com/public/developer/en/ps/5003.PPD_Spec_v4.3.pdf, Section 3.8
   44 # Submitted by: Yves Arrouye <arrouye@marin.fdn.fr>
   45 #
   46 0	string		*PPD-Adobe:\x20	PPD file
   47 >&0	string		x		\b, version %s
   48 
   49 # HP Printer Job Language
   50 0	string		\033%-12345X@PJL	HP Printer Job Language data
   51 # HP Printer Job Language
   52 # The header found on Win95 HP plot files is the "Silliest Thing possible"
   53 # (TM)
   54 # Every driver puts the language at some random position, with random case
   55 # (LANGUAGE and Language)
   56 # For example the LaserJet 5L driver puts the "PJL ENTER LANGUAGE" in line 10
   57 # From: Uwe Bonnes <bon@elektron.ikp.physik.th-darmstadt.de>
   58 #
   59 0	string		\033%-12345X@PJL	HP Printer Job Language data
   60 >&0	string		>\0			%s
   61 >>&0	string		>\0			%s
   62 >>>&0	string		>\0			%s
   63 >>>>&0	string		>\0			%s
   64 #>15	string		\ ENTER\ LANGUAGE\ =
   65 #>31	string		PostScript		PostScript
   66 
   67 # From: Stefan Thurner <thurners@nicsys.de>
   68 0	string		\033%-12345X@PJL
   69 >&0	search/10000	%!			PJL encapsulated PostScript document text
   70 
   71 # Rick Richardson <rickrich@gmail.com>
   72 
   73 # For Fuji-Xerox Printers - HBPL stands for Host Based Printer Language
   74 # For Oki Data Printers - HIPERC
   75 # For Konica Minolta Printers - LAVAFLOW
   76 # For Samsung Printers - QPDL
   77 # For HP Printers - ZJS stands for Zenographics ZJStream
   78 0	string		\033%-12345X@PJL	HP Printer Job Language data
   79 >0	search/10000	@PJL\ ENTER\ LANGUAGE=HBPL	- HBPL
   80 >0	search/10000	@PJL\ ENTER\ LANGUAGE=HIPERC	- Oki Data HIPERC
   81 >0	search/10000	@PJL\ ENTER\ LANGUAGE=LAVAFLOW	- Konica Minolta LAVAFLOW
   82 >0	search/10000	@PJL\ ENTER\ LANGUAGE=QPDL	- Samsung QPDL
   83 >0	search/10000	@PJL\ ENTER\ LANGUAGE\ =\ QPDL	- Samsung QPDL
   84 >0	search/10000	@PJL\ ENTER\ LANGUAGE=ZJS	- HP ZJS
   85 
   86 
   87 # HP Printer Control Language, Daniel Quinlan (quinlan@yggdrasil.com)
   88 0	string		\033E\033	HP PCL printer data
   89 >3	string		\&l0A		- default page size
   90 >3	string		\&l1A		- US executive page size
   91 >3	string		\&l2A		- US letter page size
   92 >3	string		\&l3A		- US legal page size
   93 >3	string		\&l26A		- A4 page size
   94 >3	string		\&l80A		- Monarch envelope size
   95 >3	string		\&l81A		- No. 10 envelope size
   96 >3	string		\&l90A		- Intl. DL envelope size
   97 >3	string		\&l91A		- Intl. C5 envelope size
   98 >3	string		\&l100A		- Intl. B5 envelope size
   99 >3	string		\&l-81A		- No. 10 envelope size (landscape)
  100 >3	string		\&l-90A		- Intl. DL envelope size (landscape)
  101 
  102 # IMAGEN printer-ready files:
  103 0	string	@document(		Imagen printer
  104 # this only works if "language xxx" is first item in Imagen header.
  105 >10	string	language\ impress	(imPRESS data)
  106 >10	string	language\ daisy		(daisywheel text)
  107 >10	string	language\ diablo	(daisywheel text)
  108 >10	string	language\ printer	(line printer emulation)
  109 >10	string	language\ tektronix	(Tektronix 4014 emulation)
  110 # Add any other languages that your Imagen uses - remember
  111 # to keep the word `text' if the file is human-readable.
  112 # [GRR 950115:  missing "postscript" or "ultrascript" (whatever it was called)]
  113 #
  114 # Now magic for IMAGEN font files...
  115 0	string		Rast		RST-format raster font data
  116 >45	string		>0		face %s
  117 # From Jukka Ukkonen
  118 0	string		\033[K\002\0\0\017\033(a\001\0\001\033(g	Canon Bubble Jet BJC formatted data
  119 
  120 # From <mike@flyn.org>
  121 # These are the /etc/magic entries to decode data sent to an Epson printer.
  122 0       string          \x1B\x40\x1B\x28\x52\x08\x00\x00REMOTE1P        Epson Stylus Color 460 data
  123 
  124 
  125 #------------------------------------------------------------------------------
  126 # zenographics:  file(1) magic for Zenographics ZjStream printer data
  127 # Rick Richardson <rickrich@gmail.com>
  128 0	string		JZJZ
  129 >0x12	string		ZZ		Zenographics ZjStream printer data (big-endian)
  130 0	string		ZJZJ
  131 >0x12	string		ZZ		Zenographics ZjStream printer data (little-endian)
  132 
  133 
  134 #------------------------------------------------------------------------------
  135 # Oak Technologies printer stream
  136 # Rick Richardson <rickrich@gmail.com>
  137 0       string          OAK
  138 >0x07	byte		0
  139 >0x0b	byte		0	Oak Technologies printer stream
  140 
  141 # This would otherwise be recognized as PostScript - nick@debian.org
  142 0	string		%!VMF 		SunClock's Vector Map Format data
  143 
  144 #------------------------------------------------------------------------------
  145 # HP LaserJet 1000 series downloadable firmware file
  146 0	string	\xbe\xefABCDEFGH	HP LaserJet 1000 series downloadable firmware
  147 
  148 # From: Paolo <oopla@users.sf.net>
  149 # Epson ESC/Page, ESC/PageColor
  150 0	string	\x1b\x01@EJL	Epson ESC/Page language printer data