]>
Commit | Line | Data |
---|---|---|
771e5703 | 1 | .\" |
2e9f3b68 | 2 | .\" "$Id: mime.types.man,v 1.4.2.2 2002/08/22 17:14:43 mike Exp $" |
771e5703 | 3 | .\" |
4 | .\" mime.types man page for the Common UNIX Printing System (CUPS). | |
5 | .\" | |
839c43aa | 6 | .\" Copyright 1997-2002 by Easy Software Products. |
771e5703 | 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-3111 USA | |
19 | .\" | |
20 | .\" Voice: (301) 373-9603 | |
21 | .\" EMail: cups-info@cups.org | |
22 | .\" WWW: http://www.cups.org | |
23 | .\" | |
e6c9b8b4 | 24 | .TH mime.types 5 "Common UNIX Printing System" "22 June 2000" "Easy Software Products" |
771e5703 | 25 | .SH NAME |
26 | mime.types \- mime type description file for cups | |
27 | .SH DESCRIPTION | |
28 | The \fImime.types\fR file defines the recognized file types. | |
29 | .LP | |
e6c9b8b4 | 30 | Additional file types can be added to \fImime.types\fR or in additional |
31 | files in the configuration directory \fB/etc/cups\fR with the extension | |
32 | ".types". | |
33 | .LP | |
34 | Each line in the \fImime.types\fR file is a comment, blank, or rule | |
35 | line. Comment lines start with the # character. Rule lines start with | |
36 | the MIME type name and are optionally followed by a series of file | |
37 | recognition rules that are used to automatically identify print and web | |
38 | files: | |
39 | .br | |
40 | .nf | |
41 | ||
42 | super/type rule [ ... ruleN] | |
43 | .fi | |
44 | The rules may be grouped using parenthesis, joined using "+" for a | |
45 | logical AND and "," or whitespace for a logical OR, and negated using | |
46 | "!". | |
47 | .SH RULES | |
48 | Rules take two forms - a filename extension by itself and functions with test | |
49 | values inside parenthesis. The following functions are available: | |
50 | .TP 5 | |
51 | match("pattern") | |
52 | .br | |
53 | Pattern match on filename | |
54 | .TP 5 | |
55 | ascii(offset,length) | |
56 | .br | |
57 | True if bytes are valid printable ASCII (CR, NL, TAB, BS, 32-126) | |
58 | .TP 5 | |
59 | printable(offset,length) | |
60 | .br | |
61 | True if bytes are printable 8-bit chars (CR, NL, TAB, BS, 32-126, 128-254) | |
62 | .TP 5 | |
63 | string(offset,"string") | |
64 | .br | |
65 | True if bytes are identical to string | |
66 | .TP 5 | |
67 | char(offset,value) | |
68 | .br | |
69 | True if byte is identical | |
70 | .TP 5 | |
71 | short(offset,value) | |
72 | .br | |
73 | True if 16-bit integer is identical | |
74 | .TP 5 | |
75 | int(offset,value) | |
76 | .br | |
77 | True if 32-bit integer is identical | |
78 | .TP 5 | |
79 | locale("string") | |
80 | .br | |
81 | True if current locale matches string | |
82 | .TP 5 | |
83 | contains(offset,range,"string") | |
84 | .br | |
85 | True if the range contains the string | |
86 | .SH STRING CONSTANTS | |
87 | String constants can be specified inside quotes ("") for strings | |
88 | containing whitespace and angle brackets (<>) for hexadecimal | |
89 | strings. | |
771e5703 | 90 | .SH SEE ALSO |
91 | classes.conf(5), cupsd(8), cupsd.conf(5), mime.convs(5), printers.conf(5), | |
85e7af89 | 92 | CUPS Software Administrators Manual, |
93 | http://localhost:631/documentation.html | |
771e5703 | 94 | .SH COPYRIGHT |
839c43aa | 95 | Copyright 1993-2002 by Easy Software Products, All Rights Reserved. |
771e5703 | 96 | .\" |
2e9f3b68 | 97 | .\" End of "$Id: mime.types.man,v 1.4.2.2 2002/08/22 17:14:43 mike Exp $". |
771e5703 | 98 | .\" |