]> git.ipfire.org Git - thirdparty/cups.git/blob - conf/mime.types
Merge changes from 1.1.x into 1.2 devel.
[thirdparty/cups.git] / conf / mime.types
1 #
2 # "$Id: mime.types,v 1.17.2.2 2001/12/26 16:52:09 mike Exp $"
3 #
4 # MIME types file for the Common UNIX Printing System (CUPS).
5 #
6 # Copyright 1997-2001 by Easy Software Products.
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
17 # 44141 Airport View Drive, Suite 204
18 # Hollywood, Maryland 20636-3111 USA
19 #
20 # Voice: (301) 373-9603
21 # EMail: cups-info@cups.org
22 # WWW: http://www.cups.org
23 #
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
42 # (CR, NL, TAB, BS, 32-126, 128-254)
43 # string(offset,"string") True if bytes are identical to string
44 # char(offset,value) True if byte is identical
45 # short(offset,value) True if 16-bit integer is identical
46 # int(offset,value) True if 32-bit integer is identical
47 # locale("string") True if current locale matches string
48 # contains(offset,range,"string") True if the range contains the string
49 #
50 # General Notes:
51 #
52 # MIME type names are case-insensitive. Internally they are converted
53 # to lowercase. Multiple occurrences of a type will cause the provided
54 # rules to be appended to the existing definition. Type names are sorted
55 # in ascending order, so if two types use the same rules to resolve a type
56 # (e.g. doc extension for two types), the returned type will be the first
57 # type in the sorted list.
58 #
59 # The "printable" rule differs from the "ascii" rule in that it also
60 # accepts 8-bit characters in the range 128-255.
61 #
62 # String constants must be surrounded by "" if they contain whitespace.
63 # To insert binary data into a string, use the <hex> notation.
64 #
65
66 ########################################################################
67 #
68 # Application-generated files...
69 #
70
71 application/msword doc string(0,<D0CF11E0A1B11AE1>)
72 application/pdf pdf string(0,%PDF)
73 application/postscript ai eps ps string(0,%!) string(0,<04>%!)
74 application/vnd.hp-HPGL hpgl string(0,<1B>&)\
75 string(0,<1B>E<1B>%0B) string(0,<201B>)\
76 string(0,BP;) string(0,IN;) string(0,DF;) \
77 string(0,BPINPS;) \
78 (string(0,<1B>%-12345X) + \
79 (contains(9,512,"LANGUAGE=HPGL") \
80 contains(9,512,"LANGUAGE = HPGL")))
81
82 ########################################################################
83 #
84 # Image files...
85 #
86
87 image/gif gif string(0,GIF87a) string(0,GIF89a)
88 image/png png string(0,<89>PNG)
89 image/jpeg jpeg jpg jpe string(0,<FFD8FF>) &&\
90 (char(3,0xe0) char(3,0xe1) char(3,0xe2) char(3,0xe3)\
91 char(3,0xe4) char(3,0xe5) char(3,0xe6) char(3,0xe7)\
92 char(3,0xe8) char(3,0xe9) char(3,0xea) char(3,0xeb)\
93 char(3,0xec) char(3,0xed) char(3,0xee) char(3,0xef))
94 image/tiff tiff tif string(0,MM) string(0,II)
95 image/x-photocd pcd string(2048,PCD_IPI)
96 image/x-portable-anymap pnm
97 image/x-portable-bitmap pbm string(0,P1) string(0,P4)
98 image/x-portable-graymap pgm string(0,P2) string(0,P5)
99 image/x-portable-pixmap ppm string(0,P3) string(0,P6)
100 image/x-sgi-rgb rgb sgi bw icon short(0,474)
101 image/x-xbitmap xbm
102 image/x-xpixmap xpm ascii(0,1024) + string(3,"XPM")
103 image/x-xwindowdump xwd
104 image/x-sun-raster ras string(0,<59a66a95>)
105
106 #image/fpx fpx
107 image/x-alias pix short(8,8) short(8,24)
108 image/x-bitmap bmp string(0,BM) && !printable(2,14)
109
110 ########################################################################
111 #
112 # Text files...
113 #
114
115 text/html html htm printable(0,1024) +\
116 (string(0,"<HTML>") string(0,"<!DOCTYPE"))
117 application/x-cshell csh printable(0,1024) + string(0,#!) +\
118 (contains(2,80,/csh) contains(2,80,/tcsh))
119 application/x-perl pl printable(0,1024) + string(0,#!) +\
120 contains(2,80,/perl)
121 application/x-shell sh printable(0,1024) + string(0,#!) +\
122 (contains(2,80,/bash) contains(2,80,/ksh)\
123 contains(2,80,/sh) contains(2,80,/zsh))
124 text/plain txt printable(0,1024)
125
126 ########################################################################
127 #
128 # CUPS-specific types...
129 #
130
131 application/vnd.cups-form string(0,"<CUPSFORM>")
132 application/vnd.cups-postscript string(0,<1B>%-12345X) + \
133 (contains(9,512,"LANGUAGE=POSTSCRIPT") \
134 contains(9,512,"LANGUAGE = Postscript") \
135 contains(9,512,"LANGUAGE = POSTSCRIPT"))
136 application/vnd.cups-raster string(0,"RaSt") string(0,"tSaR")
137 application/vnd.cups-raw (string(0,<1B>E) + !string(2,<1B>%0B)) \
138 string(0,<1B>@) \
139 (string(0,<1B>%-12345X) + \
140 (contains(9,512,"LANGUAGE=PCL") \
141 contains(9,512,"LANGUAGE = PCL")))
142
143 ########################################################################
144 #
145 # Raw print file support...
146 #
147 # Uncomment the following type and the application/octet-stream
148 # filter line in mime.convs to allow raw file printing without the
149 # -oraw option.
150 #
151
152 #application/octet-stream
153
154 #
155 # End of "$Id: mime.types,v 1.17.2.2 2001/12/26 16:52:09 mike Exp $".
156 #