2 # "$Id: mime.types 6405 2007-03-27 16:09:02Z mike $"
4 # MIME types file for the Common UNIX Printing System (CUPS).
6 # DO NOT EDIT THIS FILE, AS IT IS OVERWRITTEN WHEN YOU INSTALL NEW
7 # VERSIONS OF CUPS. Instead, create a "local.types" file that
8 # reflects your local configuration changes.
10 # Copyright 1997-2007 by Easy Software Products.
12 # These coded instructions, statements, and computer programs are the
13 # property of Easy Software Products and are protected by Federal
14 # copyright law. Distribution and use rights are outlined in the file
15 # "LICENSE.txt" which should have been included with this file. If this
16 # file is missing or damaged please contact Easy Software Products
19 # Attn: CUPS Licensing Information
20 # Easy Software Products
21 # 44141 Airport View Drive, Suite 204
22 # Hollywood, Maryland 20636 USA
24 # Voice: (301) 373-9600
25 # EMail: cups-info@cups.org
26 # WWW: http://www.cups.org
29 ########################################################################
35 # "rules" can be any combination of:
37 # ( expr ) Parenthesis for expression grouping
39 # , or whitespace Logical OR
41 # match("pattern") Pattern match on filename
42 # extension Pattern match on "*.extension"
43 # ascii(offset,length) True if bytes are valid printable ASCII
44 # (CR, NL, TAB, BS, 32-126)
45 # printable(offset,length) True if bytes are printable 8-bit chars
46 # (CR, NL, TAB, BS, 32-126, 128-254)
47 # string(offset,"string") True if bytes are identical to string
48 # istring(offset,"string") True if bytes are identical to
49 # case-insensitive string
50 # char(offset,value) True if byte is identical
51 # short(offset,value) True if 16-bit integer is identical
52 # int(offset,value) True if 32-bit integer is identical
53 # locale("string") True if current locale matches string
54 # contains(offset,range,"string") True if the range contains the string
58 # MIME type names are case-insensitive. Internally they are converted
59 # to lowercase. Multiple occurrences of a type will cause the provided
60 # rules to be appended to the existing definition. Type names are sorted
61 # in ascending order, so if two types use the same rules to resolve a type
62 # (e.g. doc extension for two types), the returned type will be the first
63 # type in the sorted list.
65 # The "printable" rule differs from the "ascii" rule in that it also
66 # accepts 8-bit characters in the range 128-255.
68 # String constants must be surrounded by "" if they contain whitespace.
69 # To insert binary data into a string, use the <hex> notation.
72 ########################################################################
74 # Application-generated files...
77 #application/msword doc string(0,<D0CF11E0A1B11AE1>)
78 application/pdf pdf string(0,%PDF)
79 application/postscript ai eps ps string(0,%!) string(0,<04>%!) \
80 contains(0,128,<1B>%-12345X) + \
81 (contains(0,1024,"LANGUAGE=POSTSCRIPT") \
82 contains(0,1024,"LANGUAGE = Postscript") \
83 contains(0,1024,"LANGUAGE = PostScript") \
84 contains(0,1024,"LANGUAGE = POSTSCRIPT") \
85 (contains(0,1024,<0a>%!) + \
86 !contains(0,1024,"ENTER LANGUAGE")))
87 application/vnd.hp-HPGL hpgl string(0,<1B>&)\
88 string(0,<1B>E<1B>%0B) \
89 string(0,<1B>%-1B) string(0,<201B>)\
90 string(0,BP;) string(0,IN;) string(0,DF;) \
92 (contains(0,128,<1B>%-12345X) + \
93 (contains(0,1024,"LANGUAGE=HPGL") \
94 contains(0,1024,"LANGUAGE = HPGL")))
96 ########################################################################
101 image/gif gif string(0,GIF87a) string(0,GIF89a)
102 image/png png string(0,<89>PNG)
103 image/jpeg jpeg jpg jpe string(0,<FFD8FF>) &&\
104 (char(3,0xe0) char(3,0xe1) char(3,0xe2) char(3,0xe3)\
105 char(3,0xe4) char(3,0xe5) char(3,0xe6) char(3,0xe7)\
106 char(3,0xe8) char(3,0xe9) char(3,0xea) char(3,0xeb)\
107 char(3,0xec) char(3,0xed) char(3,0xee) char(3,0xef))
108 image/tiff tiff tif string(0,MM) string(0,II)
109 image/x-photocd pcd string(2048,PCD_IPI)
110 image/x-portable-anymap pnm
111 image/x-portable-bitmap pbm string(0,P1) string(0,P4)
112 image/x-portable-graymap pgm string(0,P2) string(0,P5)
113 image/x-portable-pixmap ppm string(0,P3) string(0,P6)
114 image/x-sgi-rgb rgb sgi bw icon short(0,474)
116 image/x-xpixmap xpm ascii(0,1024) + string(3,"XPM")
117 #image/x-xwindowdump xwd string(4,<00000007>)
118 image/x-sun-raster ras string(0,<59a66a95>)
121 image/x-alias pix short(8,8) short(8,24)
122 image/x-bitmap bmp string(0,BM) && !printable(2,14)
125 ########################################################################
130 application/x-cshell csh printable(0,1024) + string(0,#!) +\
131 (contains(2,80,/csh) contains(2,80,/tcsh))
132 application/x-perl pl printable(0,1024) + string(0,#!) +\
134 application/x-shell sh printable(0,1024) + string(0,#!) +\
135 (contains(2,80,/bash) contains(2,80,/ksh)\
136 contains(2,80,/sh) contains(2,80,/zsh))
137 application/x-csource c cxx cpp cc C h hpp \
138 printable(0,1024) + \
139 (string(0,/*) string(0,//)
140 string(0,#include) contains(0,1024,<0a>#include) \
141 string(0,#define) contains(0,1024,<0a>#define))
142 text/html html htm printable(0,1024) +\
143 (istring(0,"<HTML>") istring(0,"<!DOCTYPE"))
144 text/plain txt printable(0,1024)
148 ########################################################################
153 application/rss+xml rss
156 ########################################################################
158 # CUPS-specific types...
161 application/vnd.cups-command string(0,'#CUPS-COMMAND')
162 application/vnd.cups-form string(0,"<CUPSFORM>")
163 application/vnd.cups-pdf
164 application/vnd.cups-postscript
165 application/vnd.cups-ppd ppd string(0,"*PPD-Adobe:")
166 application/vnd.cups-raster string(0,"RaSt") string(0,"tSaR")
167 application/vnd.cups-raw (string(0,<1B>E) + !string(2,<1B>%0B)) \
169 (contains(0,128,<1B>%-12345X) + \
170 (contains(0,4096,"LANGUAGE=PCL") \
171 contains(0,4096,"LANGUAGE = PCL")))
173 ########################################################################
175 # Raw print file support...
177 # Comment the following type to prevent raw file printing.
180 application/octet-stream
183 # End of "$Id: mime.types 6405 2007-03-27 16:09:02Z mike $".