]> git.saurik.com Git - apple/file_cmds.git/blob - file/magdir/printer
file_cmds-60.tar.gz
[apple/file_cmds.git] / file / magdir / printer
1
2 #------------------------------------------------------------------------------
3 # printer: file(1) magic for printer-formatted files
4 #
5
6 # PostScript, updated by Daniel Quinlan (quinlan@yggdrasil.com)
7 0 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
14 0 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
20
21 # HP Printer Job Language
22 0 string \033%-12345X@PJL HP Printer Job Language data
23 >15 string \ ENTER\ LANGUAGE\ =
24 >31 string PostScript PostScript
25
26 # HP Printer Control Language, Daniel Quinlan (quinlan@yggdrasil.com)
27 0 string \033E\033 HP PCL printer data
28 >3 string \&l0A - default page size
29 >3 string \&l1A - US executive page size
30 >3 string \&l2A - US letter page size
31 >3 string \&l3A - US legal page size
32 >3 string \&l26A - A4 page size
33 >3 string \&l80A - Monarch envelope size
34 >3 string \&l81A - No. 10 envelope size
35 >3 string \&l90A - Intl. DL envelope size
36 >3 string \&l91A - Intl. C5 envelope size
37 >3 string \&l100A - Intl. B5 envelope size
38 >3 string \&l-81A - No. 10 envelope size (landscape)
39 >3 string \&l-90A - Intl. DL envelope size (landscape)
40
41 # IMAGEN printer-ready files:
42 0 string @document( Imagen printer
43 # this only works if "language xxx" is first item in Imagen header.
44 >10 string language\ impress (imPRESS data)
45 >10 string language\ daisy (daisywheel text)
46 >10 string language\ diablo (daisywheel text)
47 >10 string language\ printer (line printer emulation)
48 >10 string language\ tektronix (Tektronix 4014 emulation)
49 # Add any other languages that your Imagen uses - remember
50 # to keep the word `text' if the file is human-readable.
51 # [GRR 950115: missing "postscript" or "ultrascript" (whatever it was called)]
52 #
53 # Now magic for IMAGEN font files...
54 0 string Rast RST-format raster font data
55 >45 string >0 face %