/[drupal]/contributions/modules/mimedetect/magic.mime
ViewVC logotype

Contents of /contributions/modules/mimedetect/magic.mime

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (show annotations) (download)
Sat May 9 17:42:01 2009 UTC (6 months, 2 weeks ago) by drewish
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +3 -3 lines
#444724 by quicksketch and drewish: Not recognizing the ZIP mime-type (application/zip).
1 # Magic data for KMimeMagic (originally for file(1) command)
2 #
3 # The format is 4-5 columns:
4 # Column #1: byte number to begin checking from, ">" indicates continuation
5 # Column #2: type of data to match
6 # Column #3: contents of data to match
7 # Column #4: MIME type of result
8 # Column #5: MIME encoding of result (optional)
9
10 #------------------------------------------------------------------------------
11 # Localstuff: file(1) magic for locally observed files
12 # Add any locally observed files here.
13
14 # Real Audio (Magic .ra\0375)
15 0 belong 0x2e7261fd audio/x-pn-realaudio
16 0 string .RMF application/vnd.rn-realmedia
17
18 #video/x-pn-realvideo
19 #video/vnd.rn-realvideo
20 #application/vnd.rn-realmedia
21 # sigh, there are many mimes for that but the above are the most common.
22
23 # Taken from magic, converted to magic.mime
24 # mime types according to http://www.geocities.com/nevilo/mod.htm:
25 # audio/it .it
26 # audio/x-zipped-it .itz
27 # audio/xm fasttracker modules
28 # audio/x-s3m screamtracker modules
29 # audio/s3m screamtracker modules
30 # audio/x-zipped-mod mdz
31 # audio/mod mod
32 # audio/x-mod All modules (mod, s3m, 669, mtm, med, xm, it, mdz, stm, itz, xmz, s3z)
33
34 # Taken from loader code from mikmod version 2.14
35 # by Steve McIntyre (stevem@chiark.greenend.org.uk)
36 # <doj@cubic.org> added title printing on 2003-06-24
37 0 string MAS_UTrack_V00
38 >14 string >/0 audio/x-mod
39 #audio/x-tracker-module
40
41 #0 string UN05 MikMod UNI format module sound data
42
43 0 string Extended\ Module: audio/x-mod
44 #audio/x-tracker-module
45 ##>17 string >\0 Title: "%s"
46
47 21 string/c \!SCREAM! audio/x-mod
48 #audio/x-screamtracker-module
49 21 string BMOD2STM audio/x-mod
50 #audio/x-screamtracker-module
51 1080 string M.K. audio/x-mod
52 #audio/x-protracker-module
53 #>0 string >\0 Title: "%s"
54 1080 string M!K! audio/x-mod
55 #audio/x-protracker-module
56 #>0 string >\0 Title: "%s"
57 1080 string FLT4 audio/x-mod
58 #audio/x-startracker-module
59 #>0 string >\0 Title: "%s"
60 1080 string FLT8 audio/x-mod
61 #audio/x-startracker-module
62 #>0 string >\0 Title: "%s"
63 1080 string 4CHN audio/x-mod
64 #audio/x-fasttracker-module
65 #>0 string >\0 Title: "%s"
66 1080 string 6CHN audio/x-mod
67 #audio/x-fasttracker-module
68 #>0 string >\0 Title: "%s"
69 1080 string 8CHN audio/x-mod
70 #audio/x-fasttracker-module
71 #>0 string >\0 Title: "%s"
72 1080 string CD81 audio/x-mod
73 #audio/x-oktalyzer-tracker-module
74 #>0 string >\0 Title: "%s"
75 1080 string OKTA audio/x-mod
76 #audio/x-oktalyzer-tracker-module
77 #>0 string >\0 Title: "%s"
78 # Not good enough.
79 #1082 string CH
80 #>1080 string >/0 %.2s-channel Fasttracker "oktalyzer" module sound data
81 1080 string 16CN audio/x-mod
82 #audio/x-taketracker-module
83 #>0 string >\0 Title: "%s"
84 1080 string 32CN audio/x-mod
85 #audio/x-taketracker-module
86 #>0 string >\0 Title: "%s"
87
88 # Impuse tracker module (it)
89 0 string IMPM audio/x-mod
90 #>4 string >\0 "%s"
91 #>40 leshort !0 compatible w/ITv%x
92 #>42 leshort !0 created w/ITv%x
93
94 #------------------------------------------------------------------------------
95 # end local stuff
96 #------------------------------------------------------------------------------
97
98 # xml based formats!
99
100 # svg
101
102 38 string \<\!DOCTYPE\040svg image/svg+xml
103
104
105 # xml
106 0 string \<?xml text/xml
107
108
109 #------------------------------------------------------------------------------
110 # Java
111
112 0 beshort 0xcafe
113 >2 beshort 0xbabe application/java
114
115 #------------------------------------------------------------------------------
116 # audio: file(1) magic for sound formats
117 #
118 # from Jan Nicolai Langfeldt <janl@ifi.uio.no>,
119 #
120
121 # Sun/NeXT audio data
122 0 string .snd
123 >12 belong 1 audio/basic
124 >12 belong 2 audio/basic
125 >12 belong 3 audio/basic
126 >12 belong 4 audio/basic
127 >12 belong 5 audio/basic
128 >12 belong 6 audio/basic
129 >12 belong 7 audio/basic
130
131 >12 belong 23 audio/x-adpcm
132
133 # DEC systems (e.g. DECstation 5000) use a variant of the Sun/NeXT format
134 # that uses little-endian encoding and has a different magic number
135 # (0x0064732E in little-endian encoding).
136 0 lelong 0x0064732E
137 >12 lelong 1 audio/x-dec-basic
138 >12 lelong 2 audio/x-dec-basic
139 >12 lelong 3 audio/x-dec-basic
140 >12 lelong 4 audio/x-dec-basic
141 >12 lelong 5 audio/x-dec-basic
142 >12 lelong 6 audio/x-dec-basic
143 >12 lelong 7 audio/x-dec-basic
144 # compressed (G.721 ADPCM)
145 >12 lelong 23 audio/x-dec-adpcm
146
147 # Bytes 0-3 of AIFF, AIFF-C, & 8SVX audio files are "FORM"
148 # AIFF audio data
149 8 string AIFF audio/x-aiff
150 # AIFF-C audio data
151 8 string AIFC audio/x-aiff
152 # IFF/8SVX audio data
153 8 string 8SVX audio/x-aiff
154
155
156
157 # Creative Labs AUDIO stuff
158 # Standard MIDI data
159 0 string MThd audio/unknown
160 0 string MThd audio/midi
161 # Creative Music (CMF) data
162 0 string CTMF audio/unknown
163 # SoundBlaster instrument data
164 0 string SBI audio/unknown
165 # Creative Labs voice data
166 0 string Creative\ Voice\ File audio/unknown
167 ## is this next line right? it came this way...
168 #>19 byte 0x1A
169 #>23 byte >0 - version %d
170 #>22 byte >0 \b.%d
171
172 # [GRR 950115: is this also Creative Labs? Guessing that first line
173 # should be string instead of unknown-endian long...]
174 #0 long 0x4e54524b MultiTrack sound data
175 #0 string NTRK MultiTrack sound data
176 #>4 long x - version %ld
177
178 # Microsoft WAVE format (*.wav)
179 # [GRR 950115: probably all of the shorts and longs should be leshort/lelong]
180 # Microsoft RIFF
181 0 string RIFF
182 # - WAVE format
183 >8 string WAVE audio/x-wav
184 >8 string/B AVI video/x-msvideo
185 #
186 >8 string CDRA image/x-coreldraw
187
188 # AAC (aka MPEG-2 NBC)
189 0 beshort&0xfff6 0xfff0 audio/X-HX-AAC-ADTS
190 0 string ADIF audio/X-HX-AAC-ADIF
191 0 beshort&0xffe0 0x56e0 audio/MP4A-LATM
192 0 beshort 0x4De1 audio/MP4A-LATM
193
194 # MPEG Layer 3 sound files
195 # modified by Joerg Jenderek
196 # GRR the original test are too common for many DOS files
197 # so test 1 <= kbits nibble <= E
198 0 beshort &0xffe0
199 >2 ubyte&0xF0 >0x0F
200 >>2 ubyte&0xF0 <0xE1 audio/mpeg
201 #MP3 with ID3 tag
202 0 string ID3 audio/mpeg
203 # Ogg/Vorbis
204 0 string OggS application/ogg
205
206 #------------------------------------------------------------------------------
207 # c-lang: file(1) magic for C programs or various scripts
208 #
209
210 # XPM icons (Greg Roelofs, newt@uchicago.edu)
211 # ideally should go into "images", but entries below would tag XPM as C source
212 0 string /*\ XPM image/x-xpmi 7bit
213
214 # 3DS (3d Studio files) Conflicts with diff output 0x3d '='
215 #16 beshort 0x3d3d image/x-3ds
216
217 # this first will upset you if you're a PL/1 shop... (are there any left?)
218 # in which case rm it; ascmagic will catch real C programs
219 # C or REXX program text
220 #0 string /* text/x-c
221 # C++ program text
222 #0 string // text/x-c++
223
224 #------------------------------------------------------------------------------
225 # commands: file(1) magic for various shells and interpreters
226 #
227 #0 string :\ shell archive or commands for antique kernel text
228 0 string #!/bin/sh application/x-shellscript
229 0 string #!\ /bin/sh application/x-shellscript
230 0 string #!/bin/csh application/x-shellscript
231 0 string #!\ /bin/csh application/x-shellscript
232 # korn shell magic, sent by George Wu, gwu@clyde.att.com
233 0 string #!/bin/ksh application/x-shellscript
234 0 string #!\ /bin/ksh application/x-shellscript
235 0 string #!/bin/tcsh application/x-shellscript
236 0 string #!\ /bin/tcsh application/x-shellscript
237 0 string #!/usr/local/tcsh application/x-shellscript
238 0 string #!\ /usr/local/tcsh application/x-shellscript
239 0 string #!/usr/local/bin/tcsh application/x-shellscript
240 0 string #!\ /usr/local/bin/tcsh application/x-shellscript
241 # bash shell magic, from Peter Tobias (tobias@server.et-inf.fho-emden.de)
242 0 string #!/bin/bash application/x-shellscript
243 0 string #!\ /bin/bash application/x-shellscript
244 0 string #!/usr/local/bin/bash application/x-shellscript
245 0 string #!\ /usr/local/bin/bash application/x-shellscript
246
247 #
248 # zsh/ash/ae/nawk/gawk magic from cameron@cs.unsw.oz.au (Cameron Simpson)
249 0 string #!/bin/zsh application/x-shellscript
250 0 string #!/usr/bin/zsh application/x-shellscript
251 0 string #!/usr/local/bin/zsh application/x-shellscript
252 0 string #!\ /usr/local/bin/zsh application/x-shellscript
253 0 string #!/usr/local/bin/ash application/x-shellscript
254 0 string #!\ /usr/local/bin/ash application/x-shellscript
255 #0 string #!/usr/local/bin/ae Neil Brown's ae
256 #0 string #!\ /usr/local/bin/ae Neil Brown's ae
257 0 string #!/bin/nawk application/x-nawk
258 0 string #!\ /bin/nawk application/x-nawk
259 0 string #!/usr/bin/nawk application/x-nawk
260 0 string #!\ /usr/bin/nawk application/x-nawk
261 0 string #!/usr/local/bin/nawk application/x-nawk
262 0 string #!\ /usr/local/bin/nawk application/x-nawk
263 0 string #!/bin/gawk application/x-gawk
264 0 string #!\ /bin/gawk application/x-gawk
265 0 string #!/usr/bin/gawk application/x-gawk
266 0 string #!\ /usr/bin/gawk application/x-gawk
267 0 string #!/usr/local/bin/gawk application/x-gawk
268 0 string #!\ /usr/local/bin/gawk application/x-gawk
269 #
270 0 string #!/bin/awk application/x-awk
271 0 string #!\ /bin/awk application/x-awk
272 0 string #!/usr/bin/awk application/x-awk
273 0 string #!\ /usr/bin/awk application/x-awk
274 # update to distinguish from *.vcf files by Joerg Jenderek: joerg dot jenderek at web dot de
275 #0 regex BEGIN[[:space:]]*[{] application/x-awk
276
277 # For Larry Wall's perl language. The ``eval'' line recognizes an
278 # outrageously clever hack for USG systems.
279 # Keith Waclena <keith@cerberus.uchicago.edu>
280 0 string #!/bin/perl application/x-perl
281 0 string #!\ /bin/perl application/x-perl
282 0 string eval\ "exec\ /bin/perl application/x-perl
283 0 string #!/usr/bin/perl application/x-perl
284 0 string #!\ /usr/bin/perl application/x-perl
285 0 string eval\ "exec\ /usr/bin/perl application/x-perl
286 0 string #!/usr/local/bin/perl application/x-perl
287 0 string #!\ /usr/local/bin/perl application/x-perl
288 0 string eval\ "exec\ /usr/local/bin/perl application/x-perl
289
290 # Type: Lua scripting language
291 # URL: http://www.lua.org/
292 # From: Reuben Thomas <rrt@sc3d.org>
293 0 string/B #!\ /usr/bin/lua application/x-lua
294 0 string/B #!\ /usr/local/bin/lua application/x-lua
295 0 string #!/usr/bin/env\ lua application/x-lua
296 0 string #!\ /usr/bin/env\ lua application/x-lua
297
298 #------------------------------------------------------------------------------
299 # compress: file(1) magic for pure-compression formats (no archives)
300 #
301 # compress, gzip, pack, compact, huf, squeeze, crunch, freeze, yabba, whap, etc.
302 #
303 # Formats for various forms of compressed data
304 # Formats for "compress" proper have been moved into "compress.c",
305 # because it tries to uncompress it to figure out what's inside.
306
307 # standard unix compress
308 #0 string \037\235 application/x-compress
309
310 # gzip (GNU zip, not to be confused with [Info-ZIP/PKWARE] zip archiver)
311 0 string \037\213 application/x-gzip
312
313 0 string PK\003\004 application/zip
314
315 # RAR archiver (Greg Roelofs, newt@uchicago.edu)
316 0 string Rar! application/x-rar
317
318 # According to gzip.h, this is the correct byte order for packed data.
319 0 string \037\036 application/octet-stream
320 #
321 # This magic number is byte-order-independent.
322 #
323 0 short 017437 application/octet-stream
324
325 # XXX - why *two* entries for "compacted data", one of which is
326 # byte-order independent, and one of which is byte-order dependent?
327 #
328 # compacted data
329 0 short 0x1fff application/octet-stream
330 0 string \377\037 application/octet-stream
331 # huf output
332 0 short 0145405 application/octet-stream
333
334 # Squeeze and Crunch...
335 # These numbers were gleaned from the Unix versions of the programs to
336 # handle these formats. Note that I can only uncrunch, not crunch, and
337 # I didn't have a crunched file handy, so the crunch number is untested.
338 # Keith Waclena <keith@cerberus.uchicago.edu>
339 #0 leshort 0x76FF squeezed data (CP/M, DOS)
340 #0 leshort 0x76FE crunched data (CP/M, DOS)
341
342 # Freeze
343 #0 string \037\237 Frozen file 2.1
344 #0 string \037\236 Frozen file 1.0 (or gzip 0.5)
345
346 # lzh?
347 #0 string \037\240 LZH compressed data
348
349 257 string ustar\0 application/x-tar posix
350 257 string ustar\040\040\0 application/x-tar gnu
351
352 0 short 070707 application/x-cpio
353 0 short 0143561 application/x-cpio swapped
354
355 0 string =<ar> application/x-archive
356 0 string \!<arch> application/x-archive
357 >8 string debian application/x-debian-package
358
359 #------------------------------------------------------------------------------
360 #
361 # RPM: file(1) magic for Red Hat Packages Erik Troan (ewt@redhat.com)
362 #
363 0 beshort 0xedab
364 >2 beshort 0xeedb application/x-rpm
365
366 0 lelong&0x8080ffff 0x0000081a application/x-arc lzw
367 0 lelong&0x8080ffff 0x0000091a application/x-arc squashed
368 0 lelong&0x8080ffff 0x0000021a application/x-arc uncompressed
369 0 lelong&0x8080ffff 0x0000031a application/x-arc packed
370 0 lelong&0x8080ffff 0x0000041a application/x-arc squeezed
371 0 lelong&0x8080ffff 0x0000061a application/x-arc crunched
372
373 0 leshort 0xea60 application/x-arj
374
375 # LHARC/LHA archiver (Greg Roelofs, newt@uchicago.edu)
376 2 string -lh0- application/x-lharc lh0
377 2 string -lh1- application/x-lharc lh1
378 2 string -lz4- application/x-lharc lz4
379 2 string -lz5- application/x-lharc lz5
380 # [never seen any but the last; -lh4- reported in comp.compression:]
381 2 string -lzs- application/x-lha lzs
382 2 string -lh\ - application/x-lha lh
383 2 string -lhd- application/x-lha lhd
384 2 string -lh2- application/x-lha lh2
385 2 string -lh3- application/x-lha lh3
386 2 string -lh4- application/x-lha lh4
387 2 string -lh5- application/x-lha lh5
388 2 string -lh6- application/x-lha lh6
389 2 string -lh7- application/x-lha lh7
390 # Shell archives
391 10 string #\ This\ is\ a\ shell\ archive application/octet-stream x-shell
392
393 #------------------------------------------------------------------------------
394 # frame: file(1) magic for FrameMaker files
395 #
396 # This stuff came on a FrameMaker demo tape, most of which is
397 # copyright, but this file is "published" as witness the following:
398 #
399 0 string \<MakerFile application/x-frame
400 0 string \<MIFFile application/x-frame
401 0 string \<MakerDictionary application/x-frame
402 0 string \<MakerScreenFon application/x-frame
403 0 string \<MML application/x-frame
404 0 string \<Book application/x-frame
405 0 string \<Maker application/x-frame
406
407 #------------------------------------------------------------------------------
408 # html: file(1) magic for HTML (HyperText Markup Language) docs
409 #
410 # from Michael Piefel <piefel@debian.org>
411 #
412 0 string/cB \<!DOCTYPE\ html text/html
413 0 string/cb \<head text/html
414 0 string/cb \<title text/html
415 0 string/bc \<html text/html
416 0 string \<!-- text/html
417 0 string/c \<h1 text/html
418
419 #------------------------------------------------------------------------------
420 # images: file(1) magic for image formats (see also "c-lang" for XPM bitmaps)
421 #
422 # originally from jef@helios.ee.lbl.gov (Jef Poskanzer),
423 # additions by janl@ifi.uio.no as well as others. Jan also suggested
424 # merging several one- and two-line files into here.
425 #
426 # XXX - byte order for GIF and TIFF fields?
427 # [GRR: TIFF allows both byte orders; GIF is probably little-endian]
428 #
429
430 # [GRR: what the hell is this doing in here?]
431 #0 string xbtoa btoa'd file
432
433 # PBMPLUS
434 # PBM file
435 0 string P1 image/x-portable-bitmap 7bit
436 # PGM file
437 0 string P2 image/x-portable-greymap 7bit
438 # PPM file
439 0 string P3 image/x-portable-pixmap 7bit
440 # PBM "rawbits" file
441 0 string P4 image/x-portable-bitmap
442 # PGM "rawbits" file
443 0 string P5 image/x-portable-greymap
444 # PPM "rawbits" file
445 0 string P6 image/x-portable-pixmap
446
447 # NIFF (Navy Interchange File Format, a modification of TIFF)
448 # [GRR: this *must* go before TIFF]
449 0 string IIN1 image/x-niff
450
451 # TIFF and friends
452 # TIFF file, big-endian
453 0 string MM image/tiff
454 # TIFF file, little-endian
455 0 string II image/tiff
456
457 # possible GIF replacements; none yet released!
458 # (Greg Roelofs, newt@uchicago.edu)
459 #
460 # GRR 950115: this was mine ("Zip GIF"):
461 # ZIF image (GIF+deflate alpha)
462 0 string GIF94z image/unknown
463 #
464 # GRR 950115: this is Jeremy Wohl's Free Graphics Format (better):
465 # FGF image (GIF+deflate beta)
466 0 string FGF95a image/unknown
467 #
468 # GRR 950115: this is Thomas Boutell's Portable Bitmap Format proposal
469 # (best; not yet implemented):
470 # PBF image (deflate compression)
471 0 string PBF image/unknown
472
473 # GIF
474 0 string GIF image/gif
475
476 # JPEG images
477 0 beshort 0xffd8 image/jpeg
478
479 # PC bitmaps (OS/2, Windoze BMP files) (Greg Roelofs, newt@uchicago.edu)
480 0 string BM image/x-ms-bmp
481 #>14 byte 12 (OS/2 1.x format)
482 #>14 byte 64 (OS/2 2.x format)
483 #>14 byte 40 (Windows 3.x format)
484 #0 string IC icon
485 #0 string PI pointer
486 #0 string CI color icon
487 #0 string CP color pointer
488 #0 string BA bitmap array
489
490 # CDROM Filesystems
491 32769 string CD001 application/x-iso9660
492
493 # Newer StuffIt archives (grant@netbsd.org)
494 0 string StuffIt application/x-stuffit
495 #>162 string >0 : %s
496
497 # BinHex is the Macintosh ASCII-encoded file format (see also "apple")
498 # Daniel Quinlan, quinlan@yggdrasil.com
499 11 string must\ be\ converted\ with\ BinHex\ 4 application/mac-binhex40
500 ##>41 string x \b, version %.3s
501
502
503 #------------------------------------------------------------------------------
504 # lisp: file(1) magic for lisp programs
505 #
506 # various lisp types, from Daniel Quinlan (quinlan@yggdrasil.com)
507 0 string ;; text/plain 8bit
508 # Emacs 18 - this is always correct, but not very magical.
509 0 string \012( application/x-elc
510 # Emacs 19
511 0 string ;ELC\023\000\000\000 application/x-elc
512
513 #------------------------------------------------------------------------------
514 # mail.news: file(1) magic for mail and news
515 #
516 # There are tests to ascmagic.c to cope with mail and news.
517 0 string Relay-Version: message/rfc822 7bit
518 0 string #!\ rnews message/rfc822 7bit
519 0 string N#!\ rnews message/rfc822 7bit
520 0 string Forward\ to message/rfc822 7bit
521 0 string Pipe\ to message/rfc822 7bit
522 0 string Return-Path: message/rfc822 7bit
523 0 string Received: message/rfc822
524 0 string Path: message/news 8bit
525 0 string Xref: message/news 8bit
526 0 string From: message/rfc822 7bit
527 0 string Article message/news 8bit
528 #------------------------------------------------------------------------------
529 # msword: file(1) magic for MS Word files
530 #
531 # Contributor claims:
532 # Reversed-engineered MS Word magic numbers
533 #
534
535 0 string \376\067\0\043 application/msword
536 # disable this one because it applies also to other
537 # Office/OLE documents for which msword is not correct. See PR#2608.
538 # from magic file of the apache
539 #0 string \320\317\021\340\241\261 application/msword
540 512 string \354\245\301 application/msword
541 0 string \333\245-\0\0\0 application/msword
542
543
544
545 #------------------------------------------------------------------------------
546 # printer: file(1) magic for printer-formatted files
547 #
548
549 # PostScript
550 0 string %! application/postscript
551 0 string \004%! application/postscript
552
553 # Acrobat
554 # (due to clamen@cs.cmu.edu)
555 0 string %PDF- application/pdf
556
557 #------------------------------------------------------------------------------
558 # sc: file(1) magic for "sc" spreadsheet
559 #
560 38 string Spreadsheet application/x-sc
561
562 #------------------------------------------------------------------------------
563 # tex: file(1) magic for TeX files
564 #
565 # XXX - needs byte-endian stuff (big-endian and little-endian DVI?)
566 #
567 # From <conklin@talisman.kaleida.com>
568
569 # Although we may know the offset of certain text fields in TeX DVI
570 # and font files, we can't use them reliably because they are not
571 # zero terminated. [but we do anyway, christos]
572 0 string \367\002 application/x-dvi
573 #0 string \367\203 TeX generic font data
574 #0 string \367\131 TeX packed font data
575 #0 string \367\312 TeX virtual font data
576 #0 string This\ is\ TeX, TeX transcript text
577 #0 string This\ is\ METAFONT, METAFONT transcript text
578
579 # There is no way to detect TeX Font Metric (*.tfm) files without
580 # breaking them apart and reading the data. The following patterns
581 # match most *.tfm files generated by METAFONT or afm2tfm.
582 2 string \000\021 application/x-tex-tfm
583 2 string \000\022 application/x-tex-tfm
584 #>34 string >\0 (%s)
585
586 # Texinfo and GNU Info, from Daniel Quinlan (quinlan@yggdrasil.com)
587 0 string \\input\ texinfo text/x-texinfo
588 0 string This\ is\ Info\ file text/x-info
589
590 # correct TeX magic for Linux (and maybe more)
591 # from Peter Tobias (tobias@server.et-inf.fho-emden.de)
592 #
593 0 leshort 0x02f7 application/x-dvi
594
595 # RTF - Rich Text Format
596 0 string {\\rtf text/rtf
597
598 # TeX documents, from Daniel Quinlan (quinlan@yggdrasil.com)
599 0 search/400 \\input text/x-tex
600 0 search/400 \\section text/x-tex
601 0 search/400 \\setlength text/x-tex
602 0 search/400 \\documentstyle text/x-tex
603 0 search/400 \\chapter text/x-tex
604 0 search/400 \\documentclass text/x-tex
605
606 # Type: Inform interactive fiction language
607 # URL: http://www.inform-fiction.org/
608 # From: Reuben Thomas <rrt@sc3d.org>
609 0 regex [Cc]onstant[[:space:]]+[Ss]tory text/x-inform
610
611 #------------------------------------------------------------------------------
612 # animation: file(1) magic for animation/movie formats
613 #
614 # animation formats, originally from vax@ccwf.cc.utexas.edu (VaX#n8)
615 # MPEG file
616 # MPEG sequences
617 0 belong 0x000001BA
618 >4 byte &0x40 video/mp2p
619 >4 byte ^0x40 video/mpeg
620 0 belong 0x000001BB video/mpeg
621 0 belong 0x000001B0 video/mp4v-es
622 0 belong 0x000001B5 video/mp4v-es
623 0 belong 0x000001B3 video/mpv
624 0 belong&0xFF5FFF1F 0x47400010 video/mp2t
625 0 belong 0x00000001
626 >4 byte&0x1F 0x07 video/h264
627
628 # FLI animation format
629 0 leshort 0xAF11 video/fli
630 # FLC animation format
631 0 leshort 0xAF12 video/flc
632 #
633 # SGI and Apple formats
634 # Added ISO mimes
635 0 string MOVI video/sgi
636 4 string moov video/quicktime
637 4 string mdat video/quicktime
638 4 string wide video/quicktime
639 4 string skip video/quicktime
640 4 string free video/quicktime
641 4 string idsc image/x-quicktime
642 4 string idat image/x-quicktime
643 4 string pckg application/x-quicktime
644 4 string/B jP image/jp2
645 4 string ftyp
646 >8 string isom video/mp4
647 >8 string mp41 video/mp4
648 >8 string mp42 video/mp4
649 >8 string/B jp2 image/jp2
650 >8 string 3gp video/3gpp
651 >8 string avc1 video/3gpp
652 >8 string mmp4 video/mp4
653 >8 string/B M4A audio/mp4
654 >8 string/B M4V video/mp4
655 >8 string/B qt video/quicktime
656 # The contributor claims:
657 # I couldn't find a real magic number for these, however, this
658 # -appears- to work. Note that it might catch other files, too,
659 # so BE CAREFUL!
660 #
661 # Note that title and author appear in the two 20-byte chunks
662 # at decimal offsets 2 and 22, respectively, but they are XOR'ed with
663 # 255 (hex FF)! DL format SUCKS BIG ROCKS.
664 #
665 # DL file version 1 , medium format (160x100, 4 images/screen)
666 0 byte 1 video/unknown
667 0 byte 2 video/unknown
668 #
669 # Databases
670 #
671 # GDBM magic numbers
672 # Will be maintained as part of the GDBM distribution in the future.
673 # <downsj@teeny.org>
674 0 belong 0x13579ace application/x-gdbm
675 0 lelong 0x13579ace application/x-gdbm
676 0 string GDBM application/x-gdbm
677 #
678 0 belong 0x061561 application/x-dbm
679 #
680 # Executables
681 #
682 0 string \177ELF
683 >16 leshort 0 application/octet-stream
684 >16 leshort 1 application/x-object
685 >16 leshort 2 application/x-executable
686 >16 leshort 3 application/x-sharedlib
687 >16 leshort 4 application/x-coredump
688 >16 beshort 0 application/octet-stream
689 >16 beshort 1 application/x-object
690 >16 beshort 2 application/x-executable
691 >16 beshort 3 application/x-sharedlib
692 >16 beshort 4 application/x-coredump
693 #
694 # DOS
695 0 string MZ application/x-dosexec
696 #
697 # KDE
698 0 string [KDE\ Desktop\ Entry] application/x-kdelnk
699 0 string #\ KDE\ Config\ File application/x-kdelnk
700 # xmcd database file for kscd
701 0 string #\ xmcd text/xmcd
702
703 #------------------------------------------------------------------------------
704 # pkgadd: file(1) magic for SysV R4 PKG Datastreams
705 #
706 0 string #\ PaCkAgE\ DaTaStReAm application/x-svr4-package
707
708 #PNG Image Format
709 0 string \x89PNG image/png
710
711 # MNG Video Format, <URL:http://www.libpng.org/pub/mng/spec/>
712 0 string \x8aMNG video/x-mng
713 0 string \x8aJNG video/x-jng
714
715 #------------------------------------------------------------------------------
716 # Hierarchical Data Format, used to facilitate scientific data exchange
717 # specifications at http://hdf.ncsa.uiuc.edu/
718 #Hierarchical Data Format (version 4) data
719 0 belong 0x0e031301 application/x-hdf
720 #Hierarchical Data Format (version 5) data
721 0 string \211HDF\r\n\032 application/x-hdf
722
723 # Adobe Photoshop
724 0 string 8BPS image/x-photoshop
725
726 # Felix von Leitner <felix-file@fefe.de>
727 0 string d8:announce application/x-bittorrent
728
729
730 # lotus 1-2-3 document
731 0 belong 0x00001a00 application/x-123
732 0 belong 0x00000200 application/x-123
733
734 # MS Access database
735 4 string Standard\ Jet\ DB application/msaccess
736
737 ## magic for XBase files
738 #0 byte 0x02
739 #>8 leshort >0
740 #>>12 leshort 0 application/x-dbf
741 #
742 #0 byte 0x03
743 #>8 leshort >0
744 #>>12 leshort 0 application/x-dbf
745 #
746 #0 byte 0x04
747 #>8 leshort >0
748 #>>12 leshort 0 application/x-dbf
749 #
750 #0 byte 0x05
751 #>8 leshort >0
752 #>>12 leshort 0 application/x-dbf
753 #
754 #0 byte 0x30
755 #>8 leshort >0
756 #>>12 leshort 0 application/x-dbf
757 #
758 #0 byte 0x43
759 #>8 leshort >0
760 #>>12 leshort 0 application/x-dbf
761 #
762 #0 byte 0x7b
763 #>8 leshort >0
764 #>>12 leshort 0 application/x-dbf
765 #
766 #0 byte 0x83
767 #>8 leshort >0
768 #>>12 leshort 0 application/x-dbf
769 #
770 #0 byte 0x8b
771 #>8 leshort >0
772 #>>12 leshort 0 application/x-dbf
773 #
774 #0 byte 0x8e
775 #>8 leshort >0
776 #>>12 leshort 0 application/x-dbf
777 #
778 #0 byte 0xb3
779 #>8 leshort >0
780 #>>12 leshort 0 application/x-dbf
781 #
782 #0 byte 0xf5
783 #>8 leshort >0
784 #>>12 leshort 0 application/x-dbf
785 #
786 #0 leshort 0x0006 application/x-dbt
787
788 # Debian has entries for the old PGP formats:
789 # pgp: file(1) magic for Pretty Good Privacy
790 # see http://lists.gnupg.org/pipermail/gnupg-devel/1999-September/016052.html
791 #text/PGP key public ring
792 0 beshort 0x9900 application/pgp
793 #text/PGP key security ring
794 0 beshort 0x9501 application/pgp
795 #text/PGP key security ring
796 0 beshort 0x9500 application/pgp
797 #text/PGP encrypted data
798 0 beshort 0xa600 application/pgp-encrypted
799 #text/PGP armored data
800 ##public key block
801 2 string ---BEGIN\ PGP\ PUBLIC\ KEY\ BLOCK- application/pgp-keys
802 0 string -----BEGIN\040PGP\40MESSAGE- application/pgp
803 0 string -----BEGIN\040PGP\40SIGNATURE- application/pgp-signature
804 #
805 # GnuPG Magic:
806 #
807 #text/GnuPG key public ring
808 0 beshort 0x9901 application/pgp
809 #text/OpenPGP data
810 0 beshort 0x8501 application/pgp-encrypted
811
812 # flash: file(1) magic for Macromedia Flash file format
813 #
814 # See
815 #
816 # http://www.macromedia.com/software/flash/open/
817 #
818 0 string FWS
819 >3 byte x application/x-shockwave-flash
820
821 # The following paramaters are created for Namazu.
822 # <http://www.namazu.org/>
823 #
824 # 1999/08/13
825 #0 string \<!--\ MHonArc text/html; x-type=mhonarc
826 0 string BZh application/x-bzip2
827
828 # 1999/09/09
829 # VRML (suggested by Masao Takaku)
830 0 string #VRML\ V1.0\ ascii model/vrml
831 0 string #VRML\ V2.0\ utf8 model/vrml
832
833 #------------------------------------------------------------------------------
834 # ichitaro456: file(1) magic for Just System Word Processor Ichitaro
835 #
836 # Contributor kenzo-:
837 # Reversed-engineered JS Ichitaro magic numbers
838 #
839
840 0 string DOC
841 >43 byte 0x14 application/ichitaro4
842 >144 string JDASH application/ichitaro4
843
844 0 string DOC
845 >43 byte 0x15 application/ichitaro5
846
847 0 string DOC
848 >43 byte 0x16 application/ichitaro6
849
850 #------------------------------------------------------------------------------
851 # office97: file(1) magic for MicroSoft Office files
852 #
853 # Contributor kenzo-:
854 # Reversed-engineered MS Office magic numbers
855 #
856
857 #0 string \320\317\021\340\241\261\032\341
858 #>48 byte 0x1B application/excel
859
860 2080 string Microsoft\ Excel\ 5.0\ Worksheet application/excel
861 2114 string Biff5 application/excel
862
863 0 string \224\246\056 application/msword
864
865 0 belong 0x31be0000 application/msword
866
867 0 string PO^Q` application/msword
868
869 0 string \320\317\021\340\241\261\032\341
870 >546 string bjbj application/msword
871 >546 string jbjb application/msword
872
873 512 string R\0o\0o\0t\0\ \0E\0n\0t\0r\0y application/msword
874
875 2080 string Microsoft\ Word\ 6.0\ Document application/msword
876 2080 string Documento\ Microsoft\ Word\ 6 application/msword
877 2112 string MSWordDoc application/msword
878
879 #0 string \320\317\021\340\241\261\032\341 application/powerpoint
880 0 string \320\317\021\340\241\261\032\341 application/msword
881
882 0 string #\ PaCkAgE\ DaTaStReAm application/x-svr4-package
883
884
885 # WinNT/WinCE PE files (Warner Losh, imp@village.org)
886 #
887 128 string PE\000\000 application/octet-stream
888 0 string PE\000\000 application/octet-stream
889
890 # miscellaneous formats
891 0 string LZ application/octet-stream
892
893 # DOS device drivers by Joerg Jenderek
894 0 belong 0xffffffff application/octet-stream
895
896 # .EXE formats (Greg Roelofs, newt@uchicago.edu)
897 #
898 0 string MZ
899 >24 string @ application/octet-stream
900
901 0 string MZ
902 >30 string Copyright\ 1989-1990\ PKWARE\ Inc. application/zip
903
904 0 string MZ
905 >30 string PKLITE\ Copr. application/zip
906
907 0 string MZ
908 >36 string LHa's\ SFX application/x-lha
909
910 0 string MZ application/octet-stream
911
912 # LHA archiver
913 2 string -lh
914 >6 string - application/x-lha
915
916
917 # Zoo archiver
918 20 lelong 0xfdc4a7dc application/x-zoo
919
920 # ARC archiver
921 0 lelong&0x8080ffff 0x0000081a application/x-arc
922 0 lelong&0x8080ffff 0x0000091a application/x-arc
923 0 lelong&0x8080ffff 0x0000021a application/x-arc
924 0 lelong&0x8080ffff 0x0000031a application/x-arc
925 0 lelong&0x8080ffff 0x0000041a application/x-arc
926 0 lelong&0x8080ffff 0x0000061a application/x-arc
927
928 # Microsoft Outlook's Transport Neutral Encapsulation Format (TNEF)
929 0 lelong 0x223e9f78 application/ms-tnef
930
931 # From: stephane.loeuillet@tiscali.f
932 # http://www.djvuzone.org/
933 0 string AT&TFORM image/x.djvu
934
935 # Danny Milosavljevic <danny.milo@gmx.net>
936 # this are adrift (adventure game standard) game files, extension .taf
937 # depending on version magic continues with 0x93453E6139FA (V 4.0)
938 # 0x9445376139FA (V 3.90)
939 # 0x9445366139FA (V 3.80)
940 # this is from source (http://www.adrift.org.uk/) and I have some taf
941 # files, and checked them.
942 #0 belong 0x3C423FC9
943 #>4 belong 0x6A87C2CF application/x-adrift
944 #0 string \000\000\001\000 image/x-ico
945
946 # Quark Xpress 3 Files:
947 # (made the mimetype up)
948 0 string \0\0MMXPR3\0 application/x-quark-xpress-3
949
950 # EET archive
951 # From: Tilman Sauerbeck <tilman@code-monkey.de>
952 0 belong 0x1ee7ff00 application/x-eet
953
954 # From: Denis Knauf, via gentoo.
955 0 string fLaC audio/x-flac
956 0 string CWS application/x-shockwave-flash
957
958 # Hangul Document Files:
959 # Reversed-engineered HWP magic numbers
960 # From: Won-Kyu Park <wkpark@kldp.org>
961 512 string R\0o\0o\0t\0 application/x-hwp
962
963 0 string/c BEGIN:VCARD text/x-vcard
964 0 string WordPro\0 application/vnd.lotus-wordpro
965 0 string WordPro\r\373 application/vnd.lotus-wordpro
966 0 string CPC\262 image/cpi
967
968 #
969 128 string DICM application/dicom
970
971 # Symbian installation files
972 8 lelong 0x10000419 application/vnd.symbian.install
973 0 lelong 0x10201A7A x-epoc/x-sisx-app
974
975 # Gnumeric spreadsheet
976 # This entry is only semi-helpful, as Gnumeric compresses its files, so
977 # they will ordinarily reported as "compressed", but at least -z helps
978 39 string =<gmr:Workbook application/x-gnumeric

  ViewVC Help
Powered by ViewVC 1.1.2