~hexperides/hexperides/main

« back to all changes in this revision

Viewing changes to etc/cups/mime.types

  • Committer: RicardoCardenes
  • Date: 2005-06-10 15:49:54 UTC
  • Revision ID: RicardoCardenes-8124e411ce351a4aa8b751fa1054a3c0e680bad5
movemos el contenido actual dentro de "trunk"

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#
 
2
#
 
3
#   MIME types file for the Common UNIX Printing System (CUPS).
 
4
#
 
5
#   Copyright 1997-2005 by Easy Software Products.
 
6
#
 
7
#   These coded instructions, statements, and computer programs are the
 
8
#   property of Easy Software Products and are protected by Federal
 
9
#   copyright law.  Distribution and use rights are outlined in the file
 
10
#   "LICENSE.txt" which should have been included with this file.  If this
 
11
#   file is missing or damaged please contact Easy Software Products
 
12
#   at:
 
13
#
 
14
#       Attn: CUPS Licensing Information
 
15
#       Easy Software Products
 
16
#       44141 Airport View Drive, Suite 204
 
17
#       Hollywood, Maryland 20636 USA
 
18
#
 
19
#       Voice: (301) 373-9600
 
20
#       EMail: cups-info@cups.org
 
21
#         WWW: http://www.cups.org
 
22
#
 
23
 
 
24
########################################################################
 
25
#
 
26
# Format of Lines:
 
27
#
 
28
#   super/type rules
 
29
#
 
30
# "rules" can be any combination of:
 
31
#
 
32
#   ( expr )                            Parenthesis for expression grouping
 
33
#   +                                   Logical AND
 
34
#   , or whitespace                     Logical OR
 
35
#   !                                   Logical NOT
 
36
#   match("pattern")                    Pattern match on filename
 
37
#   extension                           Pattern match on "*.extension"
 
38
#   ascii(offset,length)                True if bytes are valid printable ASCII
 
39
#                                       (CR, NL, TAB, BS, 32-126)
 
40
#   printable(offset,length)            True if bytes are printable 8-bit chars
 
41
#                                       (CR, NL, TAB, BS, 32-126, 128-254)
 
42
#   string(offset,"string")             True if bytes are identical to string
 
43
#   istring(offset,"string")            True if bytes are identical to
 
44
#                                       case-insensitive string
 
45
#   char(offset,value)                  True if byte is identical
 
46
#   short(offset,value)                 True if 16-bit integer is identical
 
47
#   int(offset,value)                   True if 32-bit integer is identical
 
48
#   locale("string")                    True if current locale matches string
 
49
#   contains(offset,range,"string")     True if the range contains the string
 
50
#
 
51
# General Notes:
 
52
#
 
53
#   MIME type names are case-insensitive.  Internally they are converted
 
54
#   to lowercase.  Multiple occurrences of a type will cause the provided
 
55
#   rules to be appended to the existing definition.  Type names are sorted
 
56
#   in ascending order, so if two types use the same rules to resolve a type
 
57
#   (e.g. doc extension for two types), the returned type will be the first
 
58
#   type in the sorted list.
 
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>)
 
73
application/pdf                 pdf string(0,%PDF)
 
74
application/postscript          ai eps ps string(0,%!) string(0,<04>%!) \
 
75
                                contains(0,128,<1B>%-12345X) + \
 
76
                                (contains(0,1024,"LANGUAGE=POSTSCRIPT") \
 
77
                                 contains(0,1024,"LANGUAGE = Postscript") \
 
78
                                 contains(0,1024,"LANGUAGE = PostScript") \
 
79
                                 contains(0,1024,"LANGUAGE = POSTSCRIPT"))
 
80
application/vnd.hp-HPGL         hpgl string(0,<1B>&)\
 
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) + \
 
86
                                 (contains(0,1024,"LANGUAGE=HPGL") \
 
87
                                  contains(0,1024,"LANGUAGE = HPGL")))
 
88
 
 
89
########################################################################
 
90
#
 
91
# Image files...
 
92
#
 
93
 
 
94
image/gif                       gif string(0,GIF87a) string(0,GIF89a)
 
95
image/png                       png string(0,<89>PNG)
 
96
image/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))
 
101
image/tiff                      tiff tif string(0,MM) string(0,II)
 
102
image/x-photocd                 pcd string(2048,PCD_IPI)
 
103
image/x-portable-anymap         pnm
 
104
image/x-portable-bitmap         pbm string(0,P1) string(0,P4)
 
105
image/x-portable-graymap        pgm string(0,P2) string(0,P5)
 
106
image/x-portable-pixmap         ppm string(0,P3) string(0,P6)
 
107
image/x-sgi-rgb                 rgb sgi bw icon short(0,474)
 
108
image/x-xbitmap                 xbm
 
109
image/x-xpixmap                 xpm ascii(0,1024) + string(3,"XPM")
 
110
#image/x-xwindowdump            xwd string(4,<00000007>)
 
111
image/x-sun-raster              ras string(0,<59a66a95>)
 
112
 
 
113
#image/fpx                      fpx
 
114
image/x-alias                   pix short(8,8) short(8,24)
 
115
image/x-bitmap                  bmp string(0,BM) && !printable(2,14)
 
116
 
 
117
########################################################################
 
118
#
 
119
# Text files...
 
120
#
 
121
 
 
122
text/html                       html htm printable(0,1024) +\
 
123
                                (istring(0,"<HTML>") istring(0,"<!DOCTYPE"))
 
124
application/x-cshell            csh printable(0,1024) + string(0,#!) +\
 
125
                                (contains(2,80,/csh) contains(2,80,/tcsh))
 
126
application/x-perl              pl printable(0,1024) + string(0,#!) +\
 
127
                                contains(2,80,/perl)
 
128
application/x-shell             sh printable(0,1024) + string(0,#!) +\
 
129
                                (contains(2,80,/bash) contains(2,80,/ksh)\
 
130
                                 contains(2,80,/sh) contains(2,80,/zsh))
 
131
text/plain                      txt printable(0,1024)
 
132
 
 
133
########################################################################
 
134
#
 
135
# CUPS-specific types...
 
136
#
 
137
 
 
138
application/vnd.cups-command    string(0,'#CUPS-COMMAND')
 
139
application/vnd.cups-form       string(0,"<CUPSFORM>")
 
140
application/vnd.cups-postscript
 
141
application/vnd.cups-raster     string(0,"RaSt") string(0,"tSaR")
 
142
application/vnd.cups-raw        (string(0,<1B>E) + !string(2,<1B>%0B)) \
 
143
                                string(0,<1B>@) \
 
144
                                (contains(0,128,<1B>%-12345X) + \
 
145
                                 (contains(0,1024,"LANGUAGE=PCL") \
 
146
                                  contains(0,1024,"LANGUAGE = PCL")))
 
147
 
 
148
########################################################################
 
149
#
 
150
# Raw print file support...
 
151
#
 
152
# Uncomment the following type and the application/octet-stream
 
153
# filter line in mime.convs to allow raw file printing without the
 
154
# -oraw option.
 
155
#
 
156
 
 
157
#application/octet-stream
 
158
 
 
159
#
 
160
#