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