]> git.ipfire.org Git - thirdparty/cups.git/blame - conf/mime.types
Merge changes from CUPS 1.4svn-r7696.
[thirdparty/cups.git] / conf / mime.types
CommitLineData
ef416fc2 1#
75bd9771 2# "$Id: mime.types 7670 2008-06-17 22:42:08Z mike $"
ef416fc2 3#
4# MIME types file for the Common UNIX Printing System (CUPS).
5#
c0e1af83 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.
9#
dd1abb6b 10# Copyright 2007-2008 by Apple Inc.
c0e1af83 11# Copyright 1997-2007 by Easy Software Products.
ef416fc2 12#
13# These coded instructions, statements, and computer programs are the
bc44d920 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
53# rules to be appended to the existing definition. Type names are sorted
54# in ascending order, so if two types use the same rules to resolve a type
55# (e.g. doc extension for two types), the returned type will be the first
56# type in the sorted list.
57#
58# The "printable" rule differs from the "ascii" rule in that it also
59# accepts 8-bit characters in the range 128-255.
60#
61# String constants must be surrounded by "" if they contain whitespace.
62# To insert binary data into a string, use the <hex> notation.
63#
64
65########################################################################
66#
67# Application-generated files...
68#
69
70#application/msword doc string(0,<D0CF11E0A1B11AE1>)
71application/pdf pdf string(0,%PDF)
72application/postscript ai eps ps string(0,%!) string(0,<04>%!) \
73 contains(0,128,<1B>%-12345X) + \
09a101d6 74 (contains(0,4096,"LANGUAGE=POSTSCRIPT") \
75 contains(0,4096,"LANGUAGE = Postscript") \
76 contains(0,4096,"LANGUAGE = PostScript") \
77 contains(0,4096,"LANGUAGE = POSTSCRIPT") \
78 (contains(0,4096,<0a>%!) + \
79 !contains(0,4096,"ENTER LANGUAGE")))
bc44d920 80application/vnd.hp-HPGL hpgl \
ef416fc2 81 string(0,<1B>E<1B>%0B) \
82 string(0,<1B>%-1B) string(0,<201B>)\
83 string(0,BP;) string(0,IN;) string(0,DF;) \
84 string(0,BPINPS;) \
85 (contains(0,128,<1B>%-12345X) + \
09a101d6 86 (contains(0,4096,"LANGUAGE=HPGL") \
87 contains(0,4096,"LANGUAGE = HPGL")))
ef416fc2 88
89########################################################################
90#
91# Image files...
92#
93
94image/gif gif string(0,GIF87a) string(0,GIF89a)
95image/png png string(0,<89>PNG)
96image/jpeg jpeg jpg jpe string(0,<FFD8FF>) &&\
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))
bc44d920 101image/tiff tiff tif string(0,MM<002A>) string(0,II<2A00>)
ef416fc2 102image/x-photocd pcd string(2048,PCD_IPI)
103image/x-portable-anymap pnm
104image/x-portable-bitmap pbm string(0,P1) string(0,P4)
105image/x-portable-graymap pgm string(0,P2) string(0,P5)
106image/x-portable-pixmap ppm string(0,P3) string(0,P6)
107image/x-sgi-rgb rgb sgi bw icon short(0,474)
108image/x-xbitmap xbm
109image/x-xpixmap xpm ascii(0,1024) + string(3,"XPM")
110#image/x-xwindowdump xwd string(4,<00000007>)
111image/x-sun-raster ras string(0,<59a66a95>)
112
113#image/fpx fpx
114image/x-alias pix short(8,8) short(8,24)
115image/x-bitmap bmp string(0,BM) && !printable(2,14)
116image/x-icon ico
117
118########################################################################
119#
120# Text files...
121#
122
123application/x-cshell csh printable(0,1024) + string(0,#!) +\
124 (contains(2,80,/csh) contains(2,80,/tcsh))
125application/x-perl pl printable(0,1024) + string(0,#!) +\
126 contains(2,80,/perl)
127application/x-shell sh printable(0,1024) + string(0,#!) +\
128 (contains(2,80,/bash) contains(2,80,/ksh)\
129 contains(2,80,/sh) contains(2,80,/zsh))
130application/x-csource c cxx cpp cc C h hpp \
131 printable(0,1024) + \
132 (string(0,/*) string(0,//)
133 string(0,#include) contains(0,1024,<0a>#include) \
134 string(0,#define) contains(0,1024,<0a>#define))
135text/html html htm printable(0,1024) +\
136 (istring(0,"<HTML>") istring(0,"<!DOCTYPE"))
137text/plain txt printable(0,1024)
138text/css css
139
f7deaa1a 140
141########################################################################
142#
143# RSS feed type...
144#
145
146application/rss+xml rss
147
148
ef416fc2 149########################################################################
150#
151# CUPS-specific types...
152#
153
154application/vnd.cups-command string(0,'#CUPS-COMMAND')
155application/vnd.cups-form string(0,"<CUPSFORM>")
89d46774 156application/vnd.cups-pdf
ef416fc2 157application/vnd.cups-postscript
89d46774 158application/vnd.cups-ppd ppd string(0,"*PPD-Adobe:")
ef416fc2 159application/vnd.cups-raster string(0,"RaSt") string(0,"tSaR")
160application/vnd.cups-raw (string(0,<1B>E) + !string(2,<1B>%0B)) \
161 string(0,<1B>@) \
162 (contains(0,128,<1B>%-12345X) + \
2abf387c 163 (contains(0,4096,"LANGUAGE=PCL") \
164 contains(0,4096,"LANGUAGE = PCL")))
ef416fc2 165
166########################################################################
167#
168# Raw print file support...
169#
89d46774 170# Comment the following type to prevent raw file printing.
ef416fc2 171#
172
89d46774 173application/octet-stream
ef416fc2 174
175#
75bd9771 176# End of "$Id: mime.types 7670 2008-06-17 22:42:08Z mike $".
ef416fc2 177#