mime.types man page for CUPS.
Copyright © 2007-2019 by Apple Inc.
Copyright © 1997-2006 by Easy Software Products.
Licensed under Apache License v2.0. See the file "LICENSE" for more
information.
Additional file types are specified in files with the extension .types in the CUPS configuration directory.
Each line in the mime.types file is a comment, blank, or rule line. Comment lines start with the # character. Rule lines start with the MIME media type and are optionally followed by a series of file recognition rules:
mime/type [ rule ... rule ]Rules can be extended over multiple lines using the backslash character (\\):
mime/type [ really-really-really-long-rule ... \\ rule ]MIME media types specified by the mime/type field are case-insensitive and are sorted in ascending alphanumeric order for the purposes of matching. See the "TYPE MATCHING AND PRIORITY" section for more information.
The rules may be grouped using parenthesis, joined using "+" for a logical AND, joined using "," or whitespace for a logical OR, and negated using "!".
5 match("pattern") True if the filename matches the given shell wildcard pattern.
5 ascii(offset,length) True if the length bytes starting at offset are valid printable ASCII (CR, NL, TAB, BS, 32-126).
5 printable(offset,length) True if the length bytes starting at offset are printable 8-bit chars (CR, NL, TAB, BS, 32-126, 128-254).
5 priority(number) Specifies the relative priority of this MIME media type. The default priority is 100. Larger values have higher priority while smaller values have lower priority.
5 string(offset,"string") True if the bytes starting at offset are identical to string.
5 istring(offset,"string") True if the bytes starting at offset match string without respect to case.
5 char(offset,value) True if the byte at offset is identical to value.
5 short(offset,value) True if the 16-bit big-endian integer at offset is identical to value.
5 int(offset,value) True if the 32-bit big-endian integer at offset is identical to value.
5 locale("string") True if current locale matches string.
5 contains(offset,range,"string") True if the bytes starting at offset for range bytes contains string.
For example, if two types "text/bar" and "text/foo" are defined as matching the extension "doc", normally the type "text/bar" will be chosen since its name is alphanumerically smaller than "text/foo". However, if "text/foo" also defines a higher priority than "text/bar", "text/foo" will be chosen instead.
application/vnd.cups-raster string(0,"RaSt") string(0,"tSaR") \\ string(0,"RaS2") string(0,"2SaR") \\ string(0,"RaS3") string(0,"3SaR") image/pwg-raster string(0,"RaS2") + \\ string(4,PwgRaster<00>) priority(150)