]>
Commit | Line | Data |
---|---|---|
8414d2b5 | 1 | # |
fa27cf64 | 2 | # "$Id: mime.types,v 1.31 2005/01/03 19:29:45 mike Exp $" |
8414d2b5 | 3 | # |
4 | # MIME types file for the Common UNIX Printing System (CUPS). | |
5 | # | |
fa27cf64 | 6 | # Copyright 1997-2005 by Easy Software Products. |
8414d2b5 | 7 | # |
8 | # These coded instructions, statements, and computer programs are the | |
9 | # property of Easy Software Products and are protected by Federal | |
10 | # copyright law. Distribution and use rights are outlined in the file | |
11 | # "LICENSE.txt" which should have been included with this file. If this | |
12 | # file is missing or damaged please contact Easy Software Products | |
13 | # at: | |
14 | # | |
15 | # Attn: CUPS Licensing Information | |
16 | # Easy Software Products | |
eb17a8d2 | 17 | # 44141 Airport View Drive, Suite 204 |
fa27cf64 | 18 | # Hollywood, Maryland 20636 USA |
8414d2b5 | 19 | # |
fa27cf64 | 20 | # Voice: (301) 373-9600 |
8414d2b5 | 21 | # EMail: cups-info@cups.org |
22 | # WWW: http://www.cups.org | |
23 | # | |
8414d2b5 | 24 | |
25 | ######################################################################## | |
26 | # | |
27 | # Format of Lines: | |
28 | # | |
29 | # super/type rules | |
30 | # | |
31 | # "rules" can be any combination of: | |
32 | # | |
33 | # ( expr ) Parenthesis for expression grouping | |
34 | # + Logical AND | |
35 | # , or whitespace Logical OR | |
36 | # ! Logical NOT | |
37 | # match("pattern") Pattern match on filename | |
38 | # extension Pattern match on "*.extension" | |
39 | # ascii(offset,length) True if bytes are valid printable ASCII | |
40 | # (CR, NL, TAB, BS, 32-126) | |
41 | # printable(offset,length) True if bytes are printable 8-bit chars | |
9992687f | 42 | # (CR, NL, TAB, BS, 32-126, 128-254) |
8414d2b5 | 43 | # string(offset,"string") True if bytes are identical to string |
74634630 | 44 | # istring(offset,"string") True if bytes are identical to |
45 | # case-insensitive string | |
8414d2b5 | 46 | # char(offset,value) True if byte is identical |
47 | # short(offset,value) True if 16-bit integer is identical | |
48 | # int(offset,value) True if 32-bit integer is identical | |
49 | # locale("string") True if current locale matches string | |
caa58f49 | 50 | # contains(offset,range,"string") True if the range contains the string |
8414d2b5 | 51 | # |
52 | # General Notes: | |
53 | # | |
54 | # MIME type names are case-insensitive. Internally they are converted | |
55 | # to lowercase. Multiple occurrences of a type will cause the provided | |
56 | # rules to be appended to the existing definition. Type names are sorted | |
57 | # in ascending order, so if two types use the same rules to resolve a type | |
58 | # (e.g. doc extension for two types), the returned type will be the first | |
59 | # type in the sorted list. | |
60 | # | |
eb17a8d2 | 61 | # The "printable" rule differs from the "ascii" rule in that it also |
caa58f49 | 62 | # accepts 8-bit characters in the range 128-255. |
8414d2b5 | 63 | # |
eb17a8d2 | 64 | # String constants must be surrounded by "" if they contain whitespace. |
35a2ba9d | 65 | # To insert binary data into a string, use the <hex> notation. |
8414d2b5 | 66 | # |
67 | ||
68 | ######################################################################## | |
69 | # | |
70 | # Application-generated files... | |
71 | # | |
72 | ||
74634630 | 73 | #application/msword doc string(0,<D0CF11E0A1B11AE1>) |
276dcbe1 | 74 | application/pdf pdf string(0,%PDF) |
2502981d | 75 | application/postscript ai eps ps string(0,%!) string(0,<04>%!) \ |
76 | contains(0,128,<1B>%-12345X) + \ | |
77 | (contains(0,1024,"LANGUAGE=POSTSCRIPT") \ | |
78 | contains(0,1024,"LANGUAGE = Postscript") \ | |
93ac97b0 | 79 | contains(0,1024,"LANGUAGE = PostScript") \ |
2502981d | 80 | contains(0,1024,"LANGUAGE = POSTSCRIPT")) |
8cf6bc6e | 81 | application/vnd.hp-HPGL hpgl string(0,<1B>&)\ |
d2e39fe4 | 82 | string(0,<1B>E<1B>%0B) \ |
83 | string(0,<1B>%-1B) string(0,<201B>)\ | |
8cf6bc6e | 84 | string(0,BP;) string(0,IN;) string(0,DF;) \ |
058e992e | 85 | string(0,BPINPS;) \ |
af6b9152 | 86 | (contains(0,128,<1B>%-12345X) + \ |
587cc33e | 87 | (contains(0,1024,"LANGUAGE=HPGL") \ |
88 | contains(0,1024,"LANGUAGE = HPGL"))) | |
8414d2b5 | 89 | |
90 | ######################################################################## | |
91 | # | |
92 | # Image files... | |
93 | # | |
94 | ||
276dcbe1 | 95 | image/gif gif string(0,GIF87a) string(0,GIF89a) |
96 | image/png png string(0,<89>PNG) | |
bf96a866 | 97 | image/jpeg jpeg jpg jpe string(0,<FFD8FF>) &&\ |
98 | (char(3,0xe0) char(3,0xe1) char(3,0xe2) char(3,0xe3)\ | |
99 | char(3,0xe4) char(3,0xe5) char(3,0xe6) char(3,0xe7)\ | |
100 | char(3,0xe8) char(3,0xe9) char(3,0xea) char(3,0xeb)\ | |
101 | char(3,0xec) char(3,0xed) char(3,0xee) char(3,0xef)) | |
276dcbe1 | 102 | image/tiff tiff tif string(0,MM) string(0,II) |
103 | image/x-photocd pcd string(2048,PCD_IPI) | |
8414d2b5 | 104 | image/x-portable-anymap pnm |
276dcbe1 | 105 | image/x-portable-bitmap pbm string(0,P1) string(0,P4) |
106 | image/x-portable-graymap pgm string(0,P2) string(0,P5) | |
107 | image/x-portable-pixmap ppm string(0,P3) string(0,P6) | |
aaa5608c | 108 | image/x-sgi-rgb rgb sgi bw icon short(0,474) |
8414d2b5 | 109 | image/x-xbitmap xbm |
276dcbe1 | 110 | image/x-xpixmap xpm ascii(0,1024) + string(3,"XPM") |
74634630 | 111 | #image/x-xwindowdump xwd string(4,<00000007>) |
ef56e874 | 112 | image/x-sun-raster ras string(0,<59a66a95>) |
2901fe25 | 113 | |
d8916a11 | 114 | #image/fpx fpx |
115 | image/x-alias pix short(8,8) short(8,24) | |
116 | image/x-bitmap bmp string(0,BM) && !printable(2,14) | |
276dcbe1 | 117 | |
8414d2b5 | 118 | ######################################################################## |
119 | # | |
120 | # Text files... | |
121 | # | |
122 | ||
123 | text/html html htm printable(0,1024) +\ | |
74634630 | 124 | (istring(0,"<HTML>") istring(0,"<!DOCTYPE")) |
cda0a4ed | 125 | application/x-cshell csh printable(0,1024) + string(0,#!) +\ |
126 | (contains(2,80,/csh) contains(2,80,/tcsh)) | |
127 | application/x-perl pl printable(0,1024) + string(0,#!) +\ | |
128 | contains(2,80,/perl) | |
129 | application/x-shell sh printable(0,1024) + string(0,#!) +\ | |
130 | (contains(2,80,/bash) contains(2,80,/ksh)\ | |
131 | contains(2,80,/sh) contains(2,80,/zsh)) | |
aaa5608c | 132 | text/plain txt printable(0,1024) |
276dcbe1 | 133 | |
8414d2b5 | 134 | ######################################################################## |
135 | # | |
136 | # CUPS-specific types... | |
137 | # | |
138 | ||
8961cdc0 | 139 | application/vnd.cups-command string(0,'#CUPS-COMMAND') |
caa58f49 | 140 | application/vnd.cups-form string(0,"<CUPSFORM>") |
2502981d | 141 | application/vnd.cups-postscript |
eb17a8d2 | 142 | application/vnd.cups-raster string(0,"RaSt") string(0,"tSaR") |
8cf6bc6e | 143 | application/vnd.cups-raw (string(0,<1B>E) + !string(2,<1B>%0B)) \ |
673a323d | 144 | string(0,<1B>@) \ |
af6b9152 | 145 | (contains(0,128,<1B>%-12345X) + \ |
587cc33e | 146 | (contains(0,1024,"LANGUAGE=PCL") \ |
147 | contains(0,1024,"LANGUAGE = PCL"))) | |
8414d2b5 | 148 | |
69830509 | 149 | ######################################################################## |
150 | # | |
151 | # Raw print file support... | |
152 | # | |
153 | # Uncomment the following type and the application/octet-stream | |
154 | # filter line in mime.convs to allow raw file printing without the | |
155 | # -oraw option. | |
156 | # | |
157 | ||
158 | #application/octet-stream | |
159 | ||
8414d2b5 | 160 | # |
fa27cf64 | 161 | # End of "$Id: mime.types,v 1.31 2005/01/03 19:29:45 mike Exp $". |
8414d2b5 | 162 | # |