2 #@ This is the set of MIME types that will become compiled into S-nail.
3 #@ Official MIME types are registered at and managed by IANA.
4 #@ A more complete list of actually used MIME types can be found at
5 #@ <http://svn.apache.org/viewvc/tika/trunk/tika-core/src/main/resources/\
6 #@ org/apache/tika/mime/tika-mimetypes.xml>.
7 #@ S-nail adds some more, search EXTENSION comments below.
8 #@ S-nail changes some TIKA things, search CHANGE comments below.
10 # Lines starting with a number sign (#) (after possible whitespace) are
11 # comments and discarded, empty lines are ignored, remaining ones are
12 # interpreted according to the scheme
13 # [TYPEMARKER ]MIMETYPE whitespace EXTENSION(S, whitespace separated)
14 # MIMETYPE may occur several times, values are joined.
17 # - Follow lines may be used: instead of repeating MIMETYPE, start the next
18 # line with whitespace. (Intervening comment lines may be used.)
19 # - TYPEMARKER: an at sign (@) will tag the MIME type as plain text (unless
20 # the user installs a specific handler for the type in question).
21 # . "@t@" is identical to plain "@".
22 # . "@h@" will tag the MIME type as HTML tagsoup.
23 # . "@H@" is identical to "@h@", but won't treat the MIME type as plain
24 # text if the builtin HTML tagsoup parser isn't available, i.e., it
25 # requires an explicit MIME type handler to be set.
27 # Syntax restrictions:
28 # - Comments must be lines of their own.
29 # - Only MIME types for which we have a type constant allocated in
30 # mime_types.c:enum mime_type are allowed in this file here.
31 # - MIME types without any file extensions are not handled by mk-mk.in.
32 # - Note that the order of types and extensions is preserved ...
33 # - Note that at least one builtin type is required (empty C array)
35 # Expected frequent use
36 # text/plain CHANGE: m4->text/x-m4, pod->text/x-pod; rc<-
37 @ text/plain txt text conf cfg def list log in properties
39 @ text/x-diff diff patch
40 @ text/troff t tr roff man me ms
44 @h@ application/xhtml+xml xhtml xht
45 @h@ text/html html htm
46 application/xml xml xsl xsd
48 @ application/x-sh sh bash
52 @ text/x-c++hdr hpp hxx hh h++ hp
53 @ text/x-c++src cpp cxx cc c++
55 @ text/x-perl pl pm al perl
56 # CHANGE (tika: text/plain)
60 application/x-xz xz txz
62 application/x-lzma lzma tlz
63 application/gzip tgz gz emz
67 application/x-bzip2 bz2 tbz2 boz
72 application/pgp-encrypted pgp
73 application/pgp-signature sig asc
74 application/pkcs7-mime p7m p7c
75 application/pkcs7-signature p7s
76 application/postscript ps eps epsf epsi
80 image/jpeg jpg jpeg jpe jif jfif jfi
85 # Remains alphabetically
86 @ application/javascript js
87 @ application/json json
88 @ application/mbox mbox
89 application/rdf+xml rdf owl
90 application/rss+xml rss
91 application/x-bcpio bcpio
92 application/x-bittorrent torrent
93 application/x-bzip bz tbz
94 application/x-compress z
95 application/x-cpio cpio
96 @ application/x-csh csh tcsh
98 @ application/x-latex latex
99 application/x-shar shar
100 @ application/x-tex tex
101 @ application/x-texinfo texinfo texi
102 application/x-x509-ca-cert der crt
103 application/x-xfig fig
104 application/xml-dtd dtd
105 application/xquery xq xquery
106 application/xslt+xml xslt
108 audio/midi mid midi kar rmi
109 audio/mp4 mp4a m4a m4b
110 audio/mpeg mpga mp2 mp2a mp3 m2a m3a
116 audio/x-pn-realaudio ram ra
118 image/svg+xml svg svgz
120 image/x-ms-bmp bmp dib
124 image/x-xwindowdump xwd
125 message/rfc822 eml mime mht mhtml
126 @ text/calendar ics ifb
130 @ text/x-assembly s S asm
131 # (Note that the tuple extensions will never match since text/plain wins!)
132 @ text/x-asciidoc asciidoc adoc ad ad.txt adoc.txt
134 # (I have assembler .cgi's written myself, don't "@ " mark that one)
143 # CHANGE (tika: text/plain)
146 @ text/x-php php php3 php4
148 @ text/x-rst rst rest restx
152 @ text/x-vcalendar vcs
154 @ text/x-web-markdown md mdtext mkd markdown