1# $OpenBSD: printer,v 1.5 2004/06/03 03:14:20 tedu Exp $ 2 3#------------------------------------------------------------------------------ 4# printer: file(1) magic for printer-formatted files 5# 6 7# PostScript, updated by Daniel Quinlan (quinlan@yggdrasil.com) 80 string %! PostScript document text 9>2 string PS-Adobe- conforming 10>>11 string >\0 at level %.3s 11>>>15 string EPS - type %s 12>>>15 string Query - type %s 13>>>15 string ExitServer - type %s 14# Some PCs have the annoying habit of adding a ^D as a document separator 150 string \004%! PostScript document text 16>3 string PS-Adobe- conforming 17>>12 string >\0 at level %.3s 18>>>16 string EPS - type %s 19>>>16 string Query - type %s 20>>>16 string ExitServer - type %s 21 22# HP Printer Job Language 230 string \033%-12345X@PJL HP Printer Job Language data 24>15 string \ ENTER\ LANGUAGE\ = 25>31 string PostScript PostScript 26 27# HP Printer Control Language, Daniel Quinlan (quinlan@yggdrasil.com) 280 string \033E\033 HP PCL printer data 29>3 string \&l0A - default page size 30>3 string \&l1A - US executive page size 31>3 string \&l2A - US letter page size 32>3 string \&l3A - US legal page size 33>3 string \&l26A - A4 page size 34>3 string \&l80A - Monarch envelope size 35>3 string \&l81A - No. 10 envelope size 36>3 string \&l90A - Intl. DL envelope size 37>3 string \&l91A - Intl. C5 envelope size 38>3 string \&l100A - Intl. B5 envelope size 39>3 string \&l-81A - No. 10 envelope size (landscape) 40>3 string \&l-90A - Intl. DL envelope size (landscape) 41 42# HPGL2 - Graphics for HP printers. Pavel Lisy <pali@tmapy.cz>, edited. 430 string \033%OB; HP HPGL printer data 44# be nice to get the other parameters that can follow, as per PCL? 45 46# IMAGEN printer-ready files: 470 string @document( Imagen printer 48# this only works if "language xxx" is first item in Imagen header. 49>10 string language\ impress (imPRESS data) 50>10 string language\ daisy (daisywheel text) 51>10 string language\ diablo (daisywheel text) 52>10 string language\ printer (line printer emulation) 53>10 string language\ tektronix (Tektronix 4014 emulation) 54# Add any other languages that your Imagen uses - remember 55# to keep the word `text' if the file is human-readable. 56# [GRR 950115: missing "postscript" or "ultrascript" (whatever it was called)] 57# 58# Now magic for IMAGEN font files... 590 string Rast RST-format raster font data 60>45 string >0 face % 61