# Copyright (C) Eazel, Inc. 2000
#
# MIME magic patterns as used by the GnomeVFS library
#
# The format of magic entries is:
#
# offsetStart[:offsetEnd] type pattern [&patternMask] type
#
# offsetStart and offsetEnd are decimal numbers
#
# type is: (byte | short | long | string | date | beshort | belong | bedate | leshort | lelong | ledate")
#
# pattern is an ascii string with non-printable characters escaped as hex or octal numbers,
# spaces and other important whitespace escaped with '\'
# 
# pattern mask is a string of hex digits; pattern mask must be the same length as the pattern
# 
# type is a valid MIME type
#
# Order magic patterns such that ambiguous ones (such as application/x-ms-dos-executable) are
# at the end of the list and therefore get applied last.
# Avoid rules that require a seek deep into the examined file. If you must, locate such rules
# at the end of the list so that they get applied last (as is for example the rule 
# for application/vnd.ms-excel)
# 
# When designing new document formats, make them easily recognizable by defining a sufficiently unique
# magic pattern near the end of the document start. A good pattern is at least four bytes long and
# contains one or two non-printable characters.
#

0	string		%PDF-					application/pdf
0	string		\177ELF					application/x-executable-file
0	string		PK\003\004				application/zip
0	string		\004%!					application/postscript
0	string		\000\000\001\272			video/mpeg
0	string		\000\000\001\263			video/mpeg
0	string		\377\330\377				image/jpeg
0	string		\xed\xab\xee\xdb			application/x-rpm
0	string		Rar!					application/x-rar
0	string		GIF8					image/gif
4	string		moov					video/quicktime
4	string		mdat					video/quicktime
12	string		mdat					video/quicktime
0	string		MThd					audio/midi
2	string		-lh0-					application/x-lha
2	string		-lh1-					application/x-lha
2	string		-lz4-					application/x-lha
2	string		-lz5-					application/x-lha
2	string		-lzs-					application/x-lha
2	string		-lh\40-					application/x-lha
2	string		-lhd-					application/x-lha
2	string		-lh2-					application/x-lha
2	string		-lh3-					application/x-lha
2	string		-lh4-					application/x-lha
2	string		-lh5-					application/x-lha
20      string		\375\304\247\334			application/x-zoo
0	string		diff\ 					text/x-patch
0	string		***\ 					text/x-patch
0	string		Only\ in\ 				text/x-patch
0	string		Common\ subdirectories:\ 		text/x-patch
0	string		FONT					application/x-font-vfont
0	string		IIN1					image/tiff
0	string		MM\x00\x2a				image/tiff
0	string		II\x2a\x00				image/tiff
0	string		\x89PNG					image/png
0	string		8BPS\ \ \000\000\000\000 &0xffffffff0000ffffffff image/x-psd

# special Nautilus link type
0:32	string		\<NAUTILUS_OBJECT\ NAUTILUS_LINK	application/x-nautilus-link

# special GMC link type
0:32	string		\URL:					application/x-gmc-link

# xpm rule needs to go before text/x-c
0	string		/*\ XPM\ */				image/x-xpixmap

# svg rules need to go before html
0:64	string		\<!DOCTYPE\ svg				image/svg
0:64	string		\<svg					image/svg
0:64	string		\<!DOCTYPE\ HTML			text/html
0:64	string		\<!doctype\ html			text/html
0:64	string		\<HEAD					text/html
0:64	string		\<head					text/html
0:64	string		\<TITLE					text/html
0:64	string		\<title					text/html
0:64	string		\<html					text/html
0:64	string		\<HTML					text/html
0	string		{\\rtf					application/rtf
0:32	string		\#include				text/x-c
0:32	string		\#ifndef				text/x-c
0:32	string		\#ifdef					text/x-c
1:16	string		!/bin/sh				text/x-sh
0	string		#!/bin/sh				text/x-sh
0	string		#!/bin/bash				text/x-sh
0	string		#!/bin/csh				text/x-csh
0	string		#!/bin/ksh				text/x-ksh
0	string		#!/bin/perl				text/x-perl
8	string		AVI\ 					video/x-msvideo
0	string		MOVI					video/x-sgi-movie
0	string		.snd					audio/basic
8	string		AIFC					audio/x-aifc
8	string		AIFF					audio/x-aiff
0	string		.ra\375					audio/x-real-audio
0	string		RIFF					audio/x-riff
8	string		WAVE					audio/x-wav
8	string		WAV\ 					audio/x-wav
0	string		SIT! 					application/x-stuffit
0	string		\312\376\272\276			application/x-java-byte-code
0	string		Joy!					application/x-pef-executable
4       string		\x11\xAF				video/x-fli
4       string		\x12\xAF				video/x-flc
0	string		\x31\xbe\x00\x00			application/msword
0       string  	PO^Q`           			application/msword
0	string		FFIL					application/x-font-ttf
65	string		FFIL					application/x-font-ttf
0	string		LWFN					application/x-font-type1
65	string		LWFN					application/x-font-type1
0	string		StartFont				application/x-font-sunos-news
0	string		\x13\x7A\x29				application/x-font-sunos-news
8	string		\x13\x7A\x2B				application/x-font-sunos-news
0	string		%!PS-AdobeFont-1.0			application/x-font-type1
6	string		%!PS-AdobeFont-1.0			application/x-font-type1
0	string		STARTFONT\040				application/x-font-bdf
0	string		\001fcp					application/x-font-pcf
0	string		D1.0\015				application/x-font-speedo
0	string		\x14\x02\x59\x19			application/x-font-libgrx
0	string		\xff\x46\x4f\x4e			application/x-font-dos
7	string		\x00\x45\x47\x41			application/x-font-dos
7	string		\x00\x56\x49\x44			application/x-font-dos
0	string		\<MakerScreenFont			application/x-font-framemaker
0	string		\000\001\000\000\000			application/x-font-ttf
1       string          WPC        		  		application/x-wordperfect
0	string		MZ					application/x-ms-dos-executable
0	string		%!					application/postscript
0	string		/*					text/x-c
0	string		//					text/x-c++
0       string		\037\213				application/x-gzip
0	string		\037\235				application/x-compress
0	string		\367\203				application/x-font-tex
0	string		\367\131				application/x-font-tex
0	string		\367\312				application/x-font-tex
2	string		\000\022				application/x-font-tex-tfm
0	string		\x36\x04				application/x-font-linux-psf
2080	string		Microsoft\ Word\ 6.0\ Document		application/msword
2080	string		Documento\ Microsoft\ Word\ 6		application/msword
2112	string		MSWordDoc				application/msword
2080	string		Microsoft\ Excel\ 5.0\ Worksheet	application/vnd.ms-excel
2114	string		Biff5					application/vnd.ms-excel



