]> git.ipfire.org Git - thirdparty/cups.git/blame - man/mime.types.man
Load cups into easysw/current.
[thirdparty/cups.git] / man / mime.types.man
CommitLineData
ef416fc2 1.\"
bc44d920 2.\" "$Id: mime.types.man 6649 2007-07-11 21:46:42Z mike $"
ef416fc2 3.\"
4.\" mime.types man page for the Common UNIX Printing System (CUPS).
5.\"
bc44d920 6.\" Copyright 2007 by Apple Inc.
bd7854cb 7.\" Copyright 1997-2006 by Easy Software Products.
ef416fc2 8.\"
9.\" These coded instructions, statements, and computer programs are the
bc44d920 10.\" property of Apple Inc. and are protected by Federal copyright
11.\" law. Distribution and use rights are outlined in the file "LICENSE.txt"
12.\" which should have been included with this file. If this file is
13.\" file is missing or damaged, see the license at "http://www.cups.org/".
ef416fc2 14.\"
bc44d920 15.TH mime.types 5 "Common UNIX Printing System" "12 February 2006" "Apple Inc."
ef416fc2 16.SH NAME
17mime.types \- mime type description file for cups
18.SH DESCRIPTION
19The \fImime.types\fR file defines the recognized file types.
20.LP
bd7854cb 21Additional file types can be added to \fImime.types\fR or
22(preferably) in additional files in the CUPS configuration
23directory with the extension ".types".
ef416fc2 24.LP
bd7854cb 25Each line in the \fImime.types\fR file is a comment, blank, or
26rule line. Comment lines start with the # character. Rule lines
27start with the MIME type name and are optionally followed by a
28series of file recognition rules that are used to automatically
29identify print and web files:
ef416fc2 30.br
31.nf
32
33 super/type rule [ ... ruleN]
34.fi
35The rules may be grouped using parenthesis, joined using "+" for a
36logical AND and "," or whitespace for a logical OR, and negated using
37"!".
38.SH RULES
39Rules take two forms - a filename extension by itself and functions with test
40values inside parenthesis. The following functions are available:
41.TP 5
42match("pattern")
43.br
44Pattern match on filename
45.TP 5
46ascii(offset,length)
47.br
48True if bytes are valid printable ASCII (CR, NL, TAB, BS, 32-126)
49.TP 5
50printable(offset,length)
51.br
52True if bytes are printable 8-bit chars (CR, NL, TAB, BS, 32-126, 128-254)
53.TP 5
54string(offset,"string")
55.br
56True if bytes are identical to string
57.TP 5
58istring(offset,"string")
59.br
60True if a case-insensitive comparison of the bytes is identical
61.TP 5
62char(offset,value)
63.br
64True if byte is identical
65.TP 5
66short(offset,value)
67.br
68True if 16-bit integer is identical
69.TP 5
70int(offset,value)
71.br
72True if 32-bit integer is identical
73.TP 5
74locale("string")
75.br
76True if current locale matches string
77.TP 5
78contains(offset,range,"string")
79.br
80True if the range contains the string
81.SH STRING CONSTANTS
82String constants can be specified inside quotes ("") for strings
83containing whitespace and angle brackets (<>) for hexadecimal
84strings.
85.SH SEE ALSO
bd7854cb 86\fIclasses.conf(5)\fR, \fIcupsd(8)\fR, \fIcupsd.conf(5)\fR,
87\fImime.convs(5)\fR, \fIprinters.conf(5)\fR,
88.br
89http://localhost:631/help
ef416fc2 90.SH COPYRIGHT
bc44d920 91Copyright 2007 by Apple Inc.
ef416fc2 92.\"
bc44d920 93.\" End of "$Id: mime.types.man 6649 2007-07-11 21:46:42Z mike $".
ef416fc2 94.\"