]> git.ipfire.org Git - thirdparty/cups.git/blame - conf/mime.types
Import CUPS v1.7.3
[thirdparty/cups.git] / conf / mime.types
CommitLineData
ef416fc2 1#
75bd9771 2# "$Id: mime.types 7670 2008-06-17 22:42:08Z mike $"
ef416fc2 3#
a51f28ec 4# Base MIME types file for CUPS.
ef416fc2 5#
a51f28ec
MS
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.
c0e1af83 9#
a51f28ec
MS
10# Copyright 2007-2014 by Apple Inc.
11# Copyright 1997-2007 by Easy Software Products.
ef416fc2 12#
a51f28ec
MS
13# These coded instructions, statements, and computer programs are the
14# property of Apple Inc. and are protected by Federal copyright
15# law. Distribution and use rights are outlined in the file "LICENSE.txt"
16# which should have been included with this file. If this file is
17# file is missing or damaged, see the license at "http://www.cups.org/".
ef416fc2 18#
19
20########################################################################
21#
22# Format of Lines:
23#
24# super/type rules
25#
26# "rules" can be any combination of:
27#
28# ( expr ) Parenthesis for expression grouping
29# + Logical AND
30# , or whitespace Logical OR
31# ! Logical NOT
32# match("pattern") Pattern match on filename
33# extension Pattern match on "*.extension"
34# ascii(offset,length) True if bytes are valid printable ASCII
35# (CR, NL, TAB, BS, 32-126)
dd1abb6b
MS
36# priority(number) Sets priority of type (0=lowest,
37# 100=default, 200=highest)
ef416fc2 38# printable(offset,length) True if bytes are printable 8-bit chars
39# (CR, NL, TAB, BS, 32-126, 128-254)
40# string(offset,"string") True if bytes are identical to string
41# istring(offset,"string") True if bytes are identical to
42# case-insensitive string
43# char(offset,value) True if byte is identical
44# short(offset,value) True if 16-bit integer is identical
45# int(offset,value) True if 32-bit integer is identical
46# locale("string") True if current locale matches string
47# contains(offset,range,"string") True if the range contains the string
48#
49# General Notes:
50#
51# MIME type names are case-insensitive. Internally they are converted
52# to lowercase. Multiple occurrences of a type will cause the provided
68b10830
MS
53# rules to be appended to the existing definition. If two types use the same
54# rules to resolve a type and have the same priority, e.g. "doc" extension for
55# "text/bar" and "text/foo", the returned type will be the first type as
56# sorted in alphanumerically ascending order without regard to case. Thus,
57# the "text/bar" type will match the "doc" extension first unless the
58# "text/foo" type has specified a higher priority.
ef416fc2 59#
60# The "printable" rule differs from the "ascii" rule in that it also
61# accepts 8-bit characters in the range 128-255.
62#
63# String constants must be surrounded by "" if they contain whitespace.
64# To insert binary data into a string, use the <hex> notation.
65#
66
67########################################################################
68#
69# Application-generated files...
70#
71
72#application/msword doc string(0,<D0CF11E0A1B11AE1>)
73application/pdf pdf string(0,%PDF)
74application/postscript ai eps ps string(0,%!) string(0,<04>%!) \
75 contains(0,128,<1B>%-12345X) + \
09a101d6 76 (contains(0,4096,"LANGUAGE=POSTSCRIPT") \
77 contains(0,4096,"LANGUAGE = Postscript") \
78 contains(0,4096,"LANGUAGE = PostScript") \
79 contains(0,4096,"LANGUAGE = POSTSCRIPT") \
80 (contains(0,4096,<0a>%!) + \
81 !contains(0,4096,"ENTER LANGUAGE")))
ef416fc2 82
83########################################################################
84#
85# Image files...
86#
87
88image/gif gif string(0,GIF87a) string(0,GIF89a)
89image/png png string(0,<89>PNG)
7a0cbd5e 90image/jpeg jpeg jpg jpe string(0,<FFD8FF>) +\
ef416fc2 91 (char(3,0xe0) char(3,0xe1) char(3,0xe2) char(3,0xe3)\
92 char(3,0xe4) char(3,0xe5) char(3,0xe6) char(3,0xe7)\
93 char(3,0xe8) char(3,0xe9) char(3,0xea) char(3,0xeb)\
94 char(3,0xec) char(3,0xed) char(3,0xee) char(3,0xef))
a51f28ec 95image/pwg-raster string(0,"RaS2") + string(4,PwgRaster<00>) priority(150)
bc44d920 96image/tiff tiff tif string(0,MM<002A>) string(0,II<2A00>)
ef416fc2 97image/x-photocd pcd string(2048,PCD_IPI)
98image/x-portable-anymap pnm
99image/x-portable-bitmap pbm string(0,P1) string(0,P4)
100image/x-portable-graymap pgm string(0,P2) string(0,P5)
101image/x-portable-pixmap ppm string(0,P3) string(0,P6)
102image/x-sgi-rgb rgb sgi bw icon short(0,474)
103image/x-xbitmap xbm
104image/x-xpixmap xpm ascii(0,1024) + string(3,"XPM")
105#image/x-xwindowdump xwd string(4,<00000007>)
106image/x-sun-raster ras string(0,<59a66a95>)
107
108#image/fpx fpx
109image/x-alias pix short(8,8) short(8,24)
7a0cbd5e 110image/x-bitmap bmp string(0,BM) + !printable(2,14)
ef416fc2 111image/x-icon ico
112
113########################################################################
114#
115# Text files...
116#
117
118application/x-cshell csh printable(0,1024) + string(0,#!) +\
119 (contains(2,80,/csh) contains(2,80,/tcsh))
120application/x-perl pl printable(0,1024) + string(0,#!) +\
121 contains(2,80,/perl)
122application/x-shell sh printable(0,1024) + string(0,#!) +\
123 (contains(2,80,/bash) contains(2,80,/ksh)\
124 contains(2,80,/sh) contains(2,80,/zsh))
125application/x-csource c cxx cpp cc C h hpp \
126 printable(0,1024) + \
127 (string(0,/*) string(0,//)
128 string(0,#include) contains(0,1024,<0a>#include) \
129 string(0,#define) contains(0,1024,<0a>#define))
130text/html html htm printable(0,1024) +\
131 (istring(0,"<HTML>") istring(0,"<!DOCTYPE"))
132text/plain txt printable(0,1024)
133text/css css
134
f7deaa1a 135
136########################################################################
137#
138# RSS feed type...
139#
140
141application/rss+xml rss
142
143
ef416fc2 144########################################################################
145#
146# CUPS-specific types...
147#
148
cda47a96 149application/vnd.cups-banner string(0,'#CUPS-BANNER')
ef416fc2 150application/vnd.cups-command string(0,'#CUPS-COMMAND')
89d46774 151application/vnd.cups-pdf
ef416fc2 152application/vnd.cups-postscript
89d46774 153application/vnd.cups-ppd ppd string(0,"*PPD-Adobe:")
cda47a96 154application/vnd.cups-raster string(0,"RaSt") string(0,"tSaR") \
a51f28ec 155 (string(0,"RaS2") + !string(4,PwgRaster<00>)) string(0,"2SaR") \
cda47a96 156 string(0,"RaS3") string(0,"3SaR")
ef416fc2 157application/vnd.cups-raw (string(0,<1B>E) + !string(2,<1B>%0B)) \
158 string(0,<1B>@) \
159 (contains(0,128,<1B>%-12345X) + \
2abf387c 160 (contains(0,4096,"LANGUAGE=PCL") \
161 contains(0,4096,"LANGUAGE = PCL")))
ef416fc2 162
163########################################################################
164#
165# Raw print file support...
166#
89d46774 167# Comment the following type to prevent raw file printing.
ef416fc2 168#
169
89d46774 170application/octet-stream
ef416fc2 171
172#
75bd9771 173# End of "$Id: mime.types 7670 2008-06-17 22:42:08Z mike $".
ef416fc2 174#