/
custom-mimetypes.xml
418 lines (375 loc) · 13.3 KB
/
custom-mimetypes.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (C) 2012 Andrew Jackson <Andrew.Jackson@bl.uk>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<!-- See http://tika.apache.org/1.0/parser_guide.html#Add_your_MIME-Type -->
<mime-info>
<mime-type type="application/font-woff">
<!-- Source is http://www.w3.org/TR/2011/CR-WOFF-20110804/#WOFFHeader
Note that this could be more detailed, covering different versions etc. -->
<!-- OSX UTI org.w3c.woff -->
<_comment>WOFF File Format</_comment>
<magic priority="50">
<match value="0x774F4646" type="string" offset="0"/>
</magic>
<glob pattern="*.woff"/>
</mime-type>
<mime-type type="image/x-jp2-container">
<_comment>JPEG 2000 Container Format</_comment>
<magic priority="50">
<match value="0x0000000C6A5020200D0A870A" type="string" offset="0"/>
</magic>
</mime-type>
<mime-type type="image/jp2">
<sub-class-of type="image/x-jp2-container" />
<acronym>JP2</acronym>
<_comment>JPEG 2000 Part 1 (JP2)</_comment>
<magic priority="50">
<match value="0x0000000C6A5020200D0A870A" type="string" offset="0">
<match value="0x6a703220" type="string" offset="20"/>
</match>
</magic>
<glob pattern="*.jp2"/>
</mime-type>
<mime-type type="image/jpx">
<sub-class-of type="image/x-jp2-container" />
<acronym>JP2</acronym>
<_comment>JPEG 2000 Part 2 (JPX)</_comment>
<magic priority="50">
<match value="0x0000000C6A5020200D0A870A" type="string" offset="0">
<match value="0x6a707820" type="string" offset="20"/>
</match>
</magic>
<glob pattern="*.jpf"/>
</mime-type>
<mime-type type="image/jpm">
<sub-class-of type="image/x-jp2-container" />
<acronym>JP2</acronym>
<_comment>JPEG 2000 Part 6 (JPM)</_comment>
<magic priority="50">
<match value="0x0000000C6A5020200D0A870A" type="string" offset="0">
<match value="0x6a706d20" type="string" offset="20"/>
</match>
</magic>
<glob pattern="*.jpmM"/>
</mime-type>
<mime-type type="video/mj2">
<sub-class-of type="image/x-jp2-container" />
<acronym>MJ2</acronym>
<_comment>JPEG 2000 Part 3 (Motion JPEG, MJ2)</_comment>
<magic priority="50">
<match value="0x0000000C6A5020200D0A870A" type="string" offset="0">
<match value="0x6d6a7032" type="string" offset="20"/>
</match>
</magic>
<glob pattern="*.mj2"/>
</mime-type>
<mime-type type="image/x-jp2-codestream">
<_comment>JPEG 2000 Codestream</_comment>
<magic priority="25">
<match value="0xff4fff51" type="string" offset="0"/>
</magic>
<glob pattern="*.j2c"/>
</mime-type>
<!-- Based on http://wiki.multimedia.cx/index.php?title=RealMedia -->
<mime-type type="audio/x-pn-realaudio; version=1.0">
<sub-class-of type="audio/x-pn-realaudio" />
<_comment>Real Audio 1.0 (.ra version 3)</_comment>
<magic priority="70">
<!-- Header: '.' 'r' 'a' 0xfd -->
<match value="0x2e7261fd" type="big32" offset="0">
<match value="0x0003" type="big16" offset="4"/>
</match>
</magic>
</mime-type>
<mime-type type="audio/x-pn-realaudio; version=2.0">
<sub-class-of type="audio/x-pn-realaudio" />
<_comment>Real Audio 2.0 (.ra version 4)</_comment>
<magic priority="70">
<!-- Header: '.' 'r' 'a' 0xfd -->
<match value="0x2e7261fd" type="big32" offset="0">
<match value="0x0004" type="big16" offset="4"/>
</match>
</magic>
</mime-type>
<mime-type type="audio/x-pn-realaudio; version=3.0">
<sub-class-of type="audio/x-pn-realaudio" />
<_comment>Real Audio 3.0 (.ra version 5)</_comment>
<magic priority="70">
<!-- Header: '.' 'r' 'a' 0xfd -->
<match value="0x2e7261fd" type="big32" offset="0">
<match value="0x0005" type="big16" offset="4"/>
</match>
</magic>
</mime-type>
<!-- WARC -->
<mime-type type="application/warc">
<acronym>WARC</acronym>
<_comment>WARC</_comment>
<magic priority="50">
<match value="WARC/" type="string" offset="0"/>
</magic>
<glob pattern="*.warc"/>
</mime-type>
<!-- General parser module could extract version - some are appended here too. -->
<mime-type type="application/warc; version=1.0">
<sub-class-of type="application/warc" />
<_comment>WARC 1.0</_comment>
<magic priority="70">
<match value="WARC/1.0" type="string" offset="0"/>
</magic>
</mime-type>
<mime-type type="application/warc; version=0.16">
<sub-class-of type="application/warc" />
<_comment>WARC 0.16</_comment>
<magic priority="70">
<match value="WARC/0.16" type="string" offset="0"/>
</magic>
</mime-type>
<mime-type type="application/warc; version=0.9">
<sub-class-of type="application/warc" />
<_comment>WARC 0.9</_comment>
<magic priority="70">
<match value="WARC/0.9" type="string" offset="0"/>
</magic>
</mime-type>
<!-- http://archive.org/web/researcher/ArcFileFormat.php -->
<mime-type type="application/x-internet-archive">
<acronym>ARC</acronym>
<_comment>ARC</_comment>
<magic priority="90">
<match value="filedesc://" type="string" offset="0"/>
</magic>
<glob pattern="*.arc"/>
</mime-type>
<!-- -->
<mime-type type="application/x-ibooks+zip">
<sub-class-of type="application/epub+zip" />
<acronym>iBooks</acronym>
<_comment>Apple iBooks Author publication format</_comment>
<magic priority="50">
<match value="PK\003\004" type="string" offset="0">
<match value="mimetypeapplication/x-ibooks+zip" type="string" offset="30"/>
</match>
</magic>
<glob pattern="*.ibooks"/>
</mime-type>
<mime-type type="application/x-iso9660-image">
<acronym>ISO</acronym>
<_comment>ISO 9660 CD-ROM filesystem data</_comment>
<magic priority="50">
<match value="CD001" type="string" offset="32769"/>
</magic>
<glob pattern="*.iso"/>
</mime-type>
<mime-type type="application/x-udf-image">
<acronym>UDF</acronym>
<_comment>UDF filesystem data</_comment>
<magic priority="75">
<match value="CD001" type="string" offset="32769">
<match value="NSR0" type="string" offset="38913"/>
</match>
</magic>
<glob pattern="*.udf"/>
</mime-type>
<!--
# CDROM Filesystems
# Modified for UDF by gerardo.cacciari@gmail.com
32769 string CD001
!:mime application/x-iso9660-image
>38913 string !NSR0 ISO 9660 CD-ROM filesystem data
>38913 string NSR0 UDF filesystem data
>>38917 string 1 (version 1.0)
>>38917 string 2 (version 1.5)
>>38917 string 3 (version 2.0)
>>38917 byte >0x33 (unknown version, ID 0x%X)
>>38917 byte <0x31 (unknown version, ID 0x%X)
# "application id" which appears to be used as a volume label
>32808 string >\0 '%s'
>34816 string \000CD001\001EL\ TORITO\ SPECIFICATION (bootable)
37633 string CD001 ISO 9660 CD-ROM filesystem data (raw 2352 byte sectors)
!:mime application/x-iso9660-image
32776 string CDROM High Sierra CD-ROM filesystem data
-->
<!-- NOTES:
* This is almost identical to the vnd.apple.pages signature, and it's not quite clear how to tell between them.
* The vnd.apple.* MIME Types are not 'proper' ones as they are not registered with IANA.
In an example file, the header looks like this:
- - - -
<?xml version="1.0"?>
<sl:document xmlns:sfa="http://developer.apple.com/namespaces/sfa" xmlns:sf="http://developer.apple.com/namespaces/sf" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:sl="http://developer.apple.com/namespaces/sl" sl:version="102011120100" sfa:ID="KFTextbookModel-0" sl:generator="ibauthor" sl:app_build_date="Jan 12 2012, 17:46:22" sl:app_bundle_version="159">
- - - -
cut -b 279-301 index.xml
sl:generator="ibauthor"
<sub-class-of type="application/vnd.apple.iwork" />
-->
<mime-type type="application/vnd.apple.ibauthor">
<sub-class-of type="application/vnd.apple.pages" />
<root-XML localName="document" namespaceURI="http://developer.apple.com/namespaces/sl" />
<!-- If you can match inside files inside the zip, you could say:
<magic priority="50">
<match value="sl:generator="ibauthor"" type="string" offset="279" />
</magic>
-->
<glob pattern="*.iba" />
</mime-type>
<!-- From The British Library -->
<mime-type type="application/vnd.amazon.ebook">
<sub-class-of type="application/x-mobipocket-mobibook"/>
<_comment>Amazon Kindle eBook</_comment>
<glob pattern="*.azw"/>
</mime-type>
<mime-type type="application/x-mobipocket-mobibook">
<acronym></acronym>
<_comment>Mobipocket eBook</_comment>
<magic priority="60">
<!-- ASCII: BOOKMOBI @60 -->
<match value="BOOKMOBI" type="string" offset="60">
</match>
</magic>
<!-- <glob pattern="*.mobi"/>-->
</mime-type>
<mime-type type="application/x-pdb-plucker-ebook">
<acronym></acronym>
<_comment>Plucker ebook</_comment>
<magic priority="60">
<!-- ASCII: DataPlkr @60 -->
<match value="DataPlkr" type="string" offset="60">
</match>
</magic>
<!-- <glob pattern="*.pdb"/> -->
</mime-type>
<mime-type type="application/x-pdb-textread-ebook">
<acronym></acronym>
<_comment>TEXtREAd ebook</_comment>
<magic priority="60">
<!-- ASCII: TEXtREAd @60 -->
<match value="TEXtREAd" type="string" offset="60">
</match>
</magic>
<!-- <glob pattern="*.pdb"/> -->
</mime-type>
<mime-type type="application/x-pdb-ztxt-ebook">
<acronym></acronym>
<_comment>zTXT ebook</_comment>
<magic priority="60">
<!-- ASCII: zTXT @60 -->
<match value="zTXT" type="string" offset="60">
</match>
</magic>
<!-- <glob pattern="*.pdb"/> -->
</mime-type>
<mime-type type="application/x-pdb-isilo-ebook">
<acronym></acronym>
<_comment>ISilo ebook</_comment>
<magic priority="60">
<!-- ASCII: SDocSilX @60 -->
<match value="SDocSilX" type="string" offset="60">
</match>
</magic>
<!-- <glob pattern="*.pdb"/> -->
</mime-type>
<mime-type type="application/x-pdb-peanutpress-ebook">
<acronym></acronym>
<_comment>PeanutPress ebook</_comment>
<magic priority="60">
<!-- ASCII: PNRdPPrs @60 -->
<match value="PNRdPPrs" type="string" offset="60">
</match>
</magic>
<!-- <glob pattern="*.pdb"/> -->
</mime-type>
<mime-type type="application/x-ext-lrf">
<acronym></acronym>
<_comment>BroadBand eBook</_comment>
<magic priority="60">
<match value="0x4C00520046000000" type="string" offset="0">
</match>
</magic>
<glob pattern="*.lrf"/>
</mime-type>
<mime-type type="application/x-ms-reader">
<acronym></acronym>
<_comment></_comment>
<magic priority="50">
<!-- ASCII: ITOLITLS -->
<match value="0x49544F4C49544C53" type="string" offset="0">
</match>
</magic>
<glob pattern="*.lit"/>
</mime-type>
<mime-type type="application/x-rocketbook">
<acronym></acronym>
<_comment>Rocketbook ebook</_comment>
<magic priority="80">
<!-- ASCII: NUVO @6 -->
<match value="NUVO" type="string" offset="6">
</match>
</magic>
<!-- <glob pattern="*.rb"/> -->
</mime-type>
<mime-type type="application/x-newton-compatible-pkg">
<acronym></acronym>
<_comment>Newton compatible pkg eBook</_comment>
<magic priority="60">
<!-- ASCII: package1xxxx @0 -->
<match value="package1xxxx" type="string" offset="0">
</match>
</magic>
<glob pattern="*.pkg"/>
</mime-type>
<mime-type type="application/x-tcr-ebook">
<acronym></acronym>
<_comment>TCR ebook</_comment>
<magic priority="60">
<!-- ASCII: !!8-Bit!! @0 -->
<match value="!!8-Bit!!" type="string" offset="0">
</match>
</magic>
<glob pattern="*.tcr"/>
</mime-type>
<mime-type type="application/x-snb-ebook">
<acronym></acronym>
<_comment>SNB ebook</_comment>
<magic priority="60">
<!-- ASCII: SNBP000B @0 -->
<match value="SNBP000B" type="string" offset="0">
</match>
</magic>
<glob pattern="*.snb"/>
</mime-type>
<!-- Macromedia Director, initially from @benfinoradin -->
<mime-type type="application/x-director">
<acronym>DCR</acronym>
<_comment>Macromedia Director</_comment>
<magic priority="50">
<!-- One Endian? -->
<match value="RIFX" type="string" offset="0">
<match value="FGDM" type="string" offset="8"/>
</match>
<!-- Other Endian? -->
<match value="XFIR" type="string" offset="0">
<match value="MDGF" type="string" offset="8"/>
</match>
</magic>
<glob pattern="*.dcr"/>
</mime-type>
<!-- Acorn Draw, from @prwheatley -->
<mime-type type="application/x-acorn_draw">
<acronym>Acorn Draw</acronym>
<_comment>Risc OS filetype: AFF</_comment>
<magic priority="50">
<match value="Draw" type="string" offset="0"/>
</magic>
<glob pattern="*.aff"/>
</mime-type>
</mime-info>