]> git.ipfire.org Git - thirdparty/cups.git/blame - conf/mime.types
Load cups into easysw/current.
[thirdparty/cups.git] / conf / mime.types
CommitLineData
ef416fc2 1#
f7faf1f5 2# "$Id: mime.types 5402 2006-04-14 19:21:03Z mike $"
ef416fc2 3#
4# MIME types file for the Common UNIX Printing System (CUPS).
5#
6# Copyright 1997-2005 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 USA
19#
20# Voice: (301) 373-9600
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# istring(offset,"string") True if bytes are identical to
45# case-insensitive string
46# char(offset,value) True if byte is identical
47# short(offset,value) True if 16-bit integer is identical
48# int(offset,value) True if 32-bit integer is identical
49# locale("string") True if current locale matches string
50# contains(offset,range,"string") True if the range contains the string
51#
52# General Notes:
53#
54# MIME type names are case-insensitive. Internally they are converted
55# to lowercase. Multiple occurrences of a type will cause the provided
56# rules to be appended to the existing definition. Type names are sorted
57# in ascending order, so if two types use the same rules to resolve a type
58# (e.g. doc extension for two types), the returned type will be the first
59# type in the sorted list.
60#
61# The "printable" rule differs from the "ascii" rule in that it also
62# accepts 8-bit characters in the range 128-255.
63#
64# String constants must be surrounded by "" if they contain whitespace.
65# To insert binary data into a string, use the <hex> notation.
66#
67
68########################################################################
69#
70# Application-generated files...
71#
72
73#application/msword doc string(0,<D0CF11E0A1B11AE1>)
74application/pdf pdf string(0,%PDF)
75application/postscript ai eps ps string(0,%!) string(0,<04>%!) \
76 contains(0,128,<1B>%-12345X) + \
77 (contains(0,1024,"LANGUAGE=POSTSCRIPT") \
78 contains(0,1024,"LANGUAGE = Postscript") \
79 contains(0,1024,"LANGUAGE = PostScript") \
e53920b9 80 contains(0,1024,"LANGUAGE = POSTSCRIPT") \
81 (contains(0,1024,<0a>%!) + \
82 !contains(0,1024,"ENTER LANGUAGE")))
ef416fc2 83application/vnd.hp-HPGL hpgl string(0,<1B>&)\
84 string(0,<1B>E<1B>%0B) \
85 string(0,<1B>%-1B) string(0,<201B>)\
86 string(0,BP;) string(0,IN;) string(0,DF;) \
87 string(0,BPINPS;) \
88 (contains(0,128,<1B>%-12345X) + \
89 (contains(0,1024,"LANGUAGE=HPGL") \
90 contains(0,1024,"LANGUAGE = HPGL")))
91
92########################################################################
93#
94# Image files...
95#
96
97image/gif gif string(0,GIF87a) string(0,GIF89a)
98image/png png string(0,<89>PNG)
99image/jpeg jpeg jpg jpe string(0,<FFD8FF>) &&\
100 (char(3,0xe0) char(3,0xe1) char(3,0xe2) char(3,0xe3)\
101 char(3,0xe4) char(3,0xe5) char(3,0xe6) char(3,0xe7)\
102 char(3,0xe8) char(3,0xe9) char(3,0xea) char(3,0xeb)\
103 char(3,0xec) char(3,0xed) char(3,0xee) char(3,0xef))
104image/tiff tiff tif string(0,MM) string(0,II)
105image/x-photocd pcd string(2048,PCD_IPI)
106image/x-portable-anymap pnm
107image/x-portable-bitmap pbm string(0,P1) string(0,P4)
108image/x-portable-graymap pgm string(0,P2) string(0,P5)
109image/x-portable-pixmap ppm string(0,P3) string(0,P6)
110image/x-sgi-rgb rgb sgi bw icon short(0,474)
111image/x-xbitmap xbm
112image/x-xpixmap xpm ascii(0,1024) + string(3,"XPM")
113#image/x-xwindowdump xwd string(4,<00000007>)
114image/x-sun-raster ras string(0,<59a66a95>)
115
116#image/fpx fpx
117image/x-alias pix short(8,8) short(8,24)
118image/x-bitmap bmp string(0,BM) && !printable(2,14)
119image/x-icon ico
120
121########################################################################
122#
123# Text files...
124#
125
126application/x-cshell csh printable(0,1024) + string(0,#!) +\
127 (contains(2,80,/csh) contains(2,80,/tcsh))
128application/x-perl pl printable(0,1024) + string(0,#!) +\
129 contains(2,80,/perl)
130application/x-shell sh printable(0,1024) + string(0,#!) +\
131 (contains(2,80,/bash) contains(2,80,/ksh)\
132 contains(2,80,/sh) contains(2,80,/zsh))
133application/x-csource c cxx cpp cc C h hpp \
134 printable(0,1024) + \
135 (string(0,/*) string(0,//)
136 string(0,#include) contains(0,1024,<0a>#include) \
137 string(0,#define) contains(0,1024,<0a>#define))
138text/html html htm printable(0,1024) +\
139 (istring(0,"<HTML>") istring(0,"<!DOCTYPE"))
140text/plain txt printable(0,1024)
141text/css css
142
143########################################################################
144#
145# CUPS-specific types...
146#
147
148application/vnd.cups-command string(0,'#CUPS-COMMAND')
149application/vnd.cups-form string(0,"<CUPSFORM>")
89d46774 150application/vnd.cups-pdf
ef416fc2 151application/vnd.cups-postscript
89d46774 152application/vnd.cups-ppd ppd string(0,"*PPD-Adobe:")
ef416fc2 153application/vnd.cups-raster string(0,"RaSt") string(0,"tSaR")
154application/vnd.cups-raw (string(0,<1B>E) + !string(2,<1B>%0B)) \
155 string(0,<1B>@) \
156 (contains(0,128,<1B>%-12345X) + \
157 (contains(0,1024,"LANGUAGE=PCL") \
158 contains(0,1024,"LANGUAGE = PCL")))
159
160########################################################################
161#
162# Raw print file support...
163#
89d46774 164# Comment the following type to prevent raw file printing.
ef416fc2 165#
166
89d46774 167application/octet-stream
ef416fc2 168
169#
f7faf1f5 170# End of "$Id: mime.types 5402 2006-04-14 19:21:03Z mike $".
ef416fc2 171#