source: trunk/third/gnome-mime-data/gnome-vfs-mime-magic @ 20786

Revision 20786, 10.4 KB checked in by ghudson, 20 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r20785, which included commits to RCS files with non-trunk default branches.
Line 
1# Copyright (C) Eazel, Inc. 2000, 2001
2#
3# MIME magic patterns as used by the Gnome VFS library
4#
5# The format of magic entries is:
6#
7#     offset_start[:offset_end] pattern_type pattern [&pattern_mask] type
8#
9# <offset_start> and <offset_end> are decimal numbers (file offsets).
10#
11# <pattern_type> is (byte | short | long | string | date | beshort |
12#                    belong | bedate | leshort | lelong | ledate).
13#
14# <pattern> is an ASCII string with non-printable characters escaped
15# as hex or octal escape sequences, and spaces and other important
16# whitespace escaped with '\'.
17#
18# <pattern_mask> is a string of hex digits. The mask must be the same
19# length as the pattern.
20#
21# <type> is a valid MIME type.
22#
23# Order magic patterns such that ambiguous ones (such as
24# application/x-ms-dos-executable) are at the end of the list and
25# therefore get applied last.
26#
27# Avoid rules that require a seek deep into the examined file. If you
28# must, locate such rules at the end of the list so that they get
29# applied last
30#
31# When designing new document formats, make them easily recognizable
32# by defining a sufficiently unique magic pattern near the document
33# start. A good pattern is at least four bytes long and contains one
34# or two non-printable characters so that text files won't be
35# misidentified.
36
370       string          %PDF-                                   application/pdf
380       string          \177ELF\ \ \ \ \ \ \ \ \ \ \ \ \004 &0xffffffff000000000000000000000000ff application/x-core-file
390       string          \177ELF\ \ \ \ \ \ \ \ \ \ \ \ \003 &0xffffffff000000000000000000000000ff application/x-shared-library
400       string          \177ELF                                 application/x-executable-binary
41
42# Disable zip because detecting StarOffice files correctly is more imporant in the release
43# than detecting the occasional zip file without an extension
44#0      string          PK\003\004                              application/zip
45
460       string          \004%!                                  application/postscript
470       string          \000\000\001\272                        video/mpeg
480       string          \000\000\001\263                        video/mpeg
49# .mmv, mpeg transport stream created by movieshaker
500       string          \x47\x3f\xff\x10                        video/mpeg
510       string          \377\330\377                            image/jpeg
52# The below ignores the details available (architecture, type, version)
530       string          \xed\xab\xee\xdb                        application/x-rpm
540       string          Rar!                                    application/x-rar
550       string          GIF8                                    image/gif
564       string          ftypM4A                                 audio/x-m4a
574       string          moov                                    video/quicktime
584       string          mdat                                    video/quicktime
598       string          mp42                                    video/quicktime
6012      string          mdat                                    video/quicktime
6136      string          mdat                                    video/quicktime
620       belong          0x3026b275                              video/x-ms-asf
630       string          ASF\                                    audio/x-ms-asx
640       string          \<ASX                                   audio/x-ms-asx
650       string          \<asx                                   audio/x-ms-asx
660       string          MThd                                    audio/x-midi
670       string          IMPM                                    audio/x-it
680       string          \x1f\x07\x00\x00 &0xffffff00            video/dv
692       string          -lh0-                                   application/x-lha
702       string          -lh1-                                   application/x-lha
712       string          -lz4-                                   application/x-lha
722       string          -lz5-                                   application/x-lha
732       string          -lzs-                                   application/x-lha
742       string          -lh\40-                                 application/x-lha
752       string          -lhd-                                   application/x-lha
762       string          -lh2-                                   application/x-lha
772       string          -lh3-                                   application/x-lha
782       string          -lh4-                                   application/x-lha
792       string          -lh5-                                   application/x-lha
8020      string          \375\304\247\334                        application/x-zoo
810       string          StuffIt\                                application/x-stuffit
8211      string          must\ be\ converted\ with\ BinHex       application/mac-binhex40
83102     string          mBIN                                    application/x-macbinary
844       string          gtktalog\                               application/x-gtktalog
850       string          diff\                                   text/x-patch
860       string          Index:                                  text/x-patch
870       string          ***\                                    text/x-patch
880       string          Only\ in\                               text/x-patch
890       string          Common\ subdirectories:\                text/x-patch
900       string          FONT                                    application/x-font-vfont
910       string          IIN1                                    image/tiff
920       string          MM\x00\x2a                              image/tiff
930       string          II\x2a\x00                              image/tiff
940       string          \x89PNG                                 image/png
950       string          8BPS\ \ \000\000\000\000 &0xffffffff0000ffffffff image/x-psd
960       string          #LyX                                    text/x-lyx
970       string          DCMw                                    image/x-dcm
980       belong          0x59a66a95                              image/x-sun-raster
990       belong          0x01da0000 &0xfcfeffff                  image/x-sgi
1000       belong          0xb168de3a                              image/x-pcx
1010       string          \x28\x00\x00\x00                        image/x-dib
1020       string          SIMPLE\ \ =                             image/x-fits
1030       belong          0x46506978                              image/x-fpx
1040       belong          0x00000200                              image/x-icb
1050       belong          0x53445058                              image/x-dpx
1060       string          d8:announce                             application/x-bittorrent
107
108# Desktop file support - slightly wrong, since comments can be before
109# the [Desktop Entry] line in the current spec - probably should fix
110# desktop entry spec to allow this
1110:32   string          [Desktop\ Entry]                        application/x-gnome-app-info
112
113# Theme ("Metatheme") support
1140:40   string          [X-GNOME-Metatheme]                     application/x-gnome-theme
115
116# special Nautilus link type
1170:32    string          \<nautilus_object\ nautilus_link        application/x-nautilus-link
118
119# special GMC link type
1200:32    string          \URL:                                   application/x-gmc-link
121
122# xpm rule needs to go before text/x-c
1230       string          /*\ XPM\ */                             image/x-xpixmap
124
1250:64    string          \<!DOCTYPE\ xbel                        application/xbel
1260:192   string          \<xbel                                  application/xbel
1270:64    string          \<!DOCTYPE\ NETSCAPE-Bookmark-file-1\>  application/x-mozilla-bookmarks
1280:64    string          \<!DOCTYPE\ NETSCAPE-Bookmark-file-1\>  application/x-netscape-bookmarks
1290:64    string          \<ephy_bookmarks                        application/x-epiphany-bookmarks
130
131# svg rules need to go before html
1320:256   string          \<!DOCTYPE\ svg                         image/svg+xml
1330:64    string          \<svg                                   image/svg+xml
1340:64    string          \<chemistry                             application/x-gchempaint
1350:64    string          \<crystal                               application/x-gcrystal
136# php rules need to go before html
1370:64    string          \<?php                                  application/x-php
1380:64    string          \<smil\>                                application/x-smil
1390:64    string          \<SMIL\>                                application/x-smil
1400:64    string          \<!DOCTYPE\ HTML                        text/html
1410:64    string          \<!doctype\ html                        text/html
1420:64    string          \<HEAD                                  text/html
1430:64    string          \<head                                  text/html
1440:64    string          \<html                                  text/html
1450:64    string          \<HTML                                  text/html
1460:64    string          \<dia:diagram                           application/x-dia-diagram
1470:64    string          \<abiword                               application/x-abiword
1480:64    string          \<\!DOCTYPE\ abiword                    application/x-abiword
1490:64    string          gmr:Workbook                            application/x-gnumeric
150# text/xml content detection needs to be after all the xml-derived formats
1510:64    string          \<?xml                                  text/xml
1520       string          {\\rtf                                  application/rtf
1530       string          #!/bin/sh                               text/x-sh
1540       string          #!/bin/bash                             text/x-sh
1550       string          #!/bin/csh                              text/x-csh
1560       string          #!/bin/ksh                              text/x-ksh
1570       string          #!/bin/perl                             text/x-perl
1580       string          #!/bin/zsh                              text/x-zsh
1591:16    string          /bin/sh                                 text/x-sh
1601:16    string          /bin/bash                               text/x-sh
1611:16    string          /bin/csh                                text/x-csh
1621:16    string          /bin/ksh                                text/x-ksh
1631:16    string          /bin/perl                               text/x-perl
1640       string          BEGIN:VCARD                             text/x-vcard
1650       string          BEGIN:VCALENDAR                         text/calendar
1668       string          CDR\ vrsn                               application/vnd.corel-draw
1678       string          AVI\                                    video/x-msvideo
1680       string          MOVI                                    video/x-sgi-movie
1690       string          .snd                                    audio/basic
1708       string          AIFC                                    audio/x-aifc
1718       string          AIFF                                    audio/x-aiff
1720       string          .ra\375                                 audio/x-pn-realaudio
1730       belong          0x2e7261fd                              audio/x-pn-realaudio
1740       string          .RMF                                    audio/x-pn-realaudio
1758       string          WAVE                                    audio/x-wav
1768       string          WAV\                                    audio/x-wav
1770       string          RIFFxxxxCDXA &0xffffffff00000000ffffffff        video/mpeg
1780       string          RIFF                                    audio/x-riff
1790       string          OggS                                    application/ogg
1800       string          pnm:\/\/                                audio/x-real-audio
1810       string          rtsp:\/\/                               audio/x-real-audio
1820       string          SIT!                                    application/x-stuffit
1830       string          \312\376\272\276                        application/x-java-byte-code
1840       string          Joy!                                    application/x-pef-executable
1854       string          \x11\xAF                                video/x-fli
1864       string          \x12\xAF                                video/x-flc
1870       string          \x31\xbe\x00\x00                        application/msword
1880       string          PO^Q`                                   application/msword
1890       string          *BEGIN\ SPREADSHEETS                    application/x-applix-spreadsheet
1900       string          \x00\x00\x02\x00                        application/vnd.lotus-1-2-3
1910       string          PSID                                    audio/prs.sid
19231      string          Oleo                                    application/x-oleo
1930       string          FFIL                                    application/x-font-ttf
19465      string          FFIL                                    application/x-font-ttf
1950       string          LWFN                                    application/x-font-type1
19665      string          LWFN                                    application/x-font-type1
1970       string          StartFont                               application/x-font-sunos-news
1980       string          \x13\x7A\x29                            application/x-font-sunos-news
1998       string          \x13\x7A\x2B                            application/x-font-sunos-news
2000       string          %!PS-AdobeFont-1.                       application/x-font-type1
2016       string          %!PS-AdobeFont-1.                       application/x-font-type1
2020       string          %!FontType1-1.                          application/x-font-type1
2036       string          %!FontType1-1.                          application/x-font-type1
2040       string          STARTFONT\040                           application/x-font-bdf
2050       string          \001fcp                                 application/x-font-pcf
2060       string          D1.0\015                                application/x-font-speedo
2070       string          \x14\x02\x59\x19                        application/x-font-libgrx
2080       string          \xff\x46\x4f\x4e                        application/x-font-dos
2097       string          \x00\x45\x47\x41                        application/x-font-dos
2107       string          \x00\x56\x49\x44                        application/x-font-dos
2110       string          \<MakerScreenFont                       application/x-font-framemaker
2120       string          \000\001\000\000\000                    application/x-font-ttf
2131       string          WPC                                     application/x-wordperfect
2140       string          ID;                                     text/spreadsheet
2150       string          MZ                                      application/x-ms-dos-executable
2160       string          %!                                      application/postscript
2170       string          BZh                                     application/x-bzip
2180       string          \x1f\x8b                                application/x-gzip
2190       string          \037\235                                application/x-compress
2200       string          \367\002                                application/x-dvi
2210       string          \367\203                                application/x-font-tex
2220       string          \367\131                                application/x-font-tex
2230       string          \367\312                                application/x-font-tex
2242       string          \000\022                                application/x-font-tex-tfm
2250       string          \x36\x04                                application/x-font-linux-psf
2260       string          FWS                                     application/x-shockwave-flash
2270       string          NSVf                                    video/x-nsv
2280       string          BMxxxx\000\000 &0xffff00000000ffff      image/bmp
2290       string          AT&TFORM                                image/vnd.djvu
2300       string          Return-Path:                            message/rfc822
2310       string          Path:                                   message/news
2320       string          Xref:                                   message/news
2330       string          From:                                   message/rfc822
2340       string          Article                                 message/news
2350       string          Received:                               message/rfc822
2360       string          [playlist]                              audio/x-scpls
2370       string          [Reference]                             video/x-ms-asf
23822      string          \<EDL                                   application/x-cinelerra
23932769   string          CD001                                   application/x-iso-image
24037633   string          CD001                                   application/x-iso-image
24132776   string          CDROM                                   application/x-iso-image
2420       string          OTTO                                    application/x-font-otf
24354      string          S\ T\ O\ P                              application/x-ipod-firmware
2440:160   string          fLaC                                    audio/x-flac
2450:160   string          ID3\x20\x00                             audio/mpeg
2460:160   string          ID3\x30\x00                             audio/mpeg
2470:160   string          ID3\x40\x00                             audio/mpeg
2480:512   string          \x00\x00\x01\xba                        video/mpeg
2490       string          BLENDER                                 application/x-blender
Note: See TracBrowser for help on using the repository browser.