home *** CD-ROM | disk | FTP | other *** search
- ;FTMagic1.0 -- Don't change this line!
- ;
- ; Magic Numbers for FType (file type guesser)
- ;
- ; For a description of the file format, see the comments at the end.
- ;
- ; The following two lines are uppercase translation strings for
- ; IBM code page 437. Note: This relies on exact character alignment!
- vüéâäàåçêëèïîìæôöòûùÿáíóúñ
- ^ÜEAÄAÅÇEEEIIIÆOÖOUUYAIOUÑ
- ;
- ; Magic sequences start here:
- ;
- ';FTMagic1.0' FType Magic number file
- "PROGRAM " Pascal source
- " PROGRAM " Fortran source
- '/* ' C source (?)
- '#include ' C source
- '; ' ASM source (?)
- ';\r\n' ASM source (?)
- '\' ' BASIC source (?)
- '\'\t\r' BASIC source (?)
- "REM " Batch file
- "REM\r\n" Batch file
- "ECHO " Batch file
- "@ECHO " Batch file
- 'PK'0304 ZIP archive
- 'ZOO 2.00 Archive' ZOO archive version 2.0
- 'ZOO 2.10 Archive' ZOO archive version 2.1
- 'ZOO ' ZOO archive (pre-2.0)
- 21EE'-lh5-' LHArc archive (2.12 or later)
- 21EE'-lh' LHArc archive (pre-2.12)
- 'begin ' UU-encoded file
- '#! /bin/sh\r\n# This is a shell archive' Shell archive (SHAr)
- '#! /bin/sh' Shell archive (SHAr) (?)
- '#!/bin/sh' Shell archive (SHAr) (?)
- '#! /bin/awk' AWK source
- '#!/bin/awk' AWK source
- '# ' AWK source (?)
- 'PCF:db,' PC-File header
- 'WSSCONfig' WSSIndex configuration file
- 'WSSINDEX\r4' WSSIndex index file, version 4
- 'WSSINDEX\r5' WSSIndex index file, version 5
- 'WSSINDEX\r' WSSIndex index file, pre-version 4
- FF' FONT '00 DOS code page file (CPI)
- FFFFFFFF DOS device driver
- 'GIF87a' CompuShow GIF picture (1987 version)
- 'GIF89a' CompuShow GIF picture (1989 version)
- 'RRTL'0001 ClipArt image
- 'Falc'0000 Harvard Graphics Chart (CHT) (??)
- 'pk\b\bBGI Device Driver' Borland graphics driver (BGI)
- 'PK\b\bBGI Stroked Font' Borland graphics stroked font (CHR)
- 'ca\b\bBGI ' Borland Quattro Pro graphics driver
- 'CB\b\bBGI ' Borland Quattro Pro graphics driver
- '??\b\bBGI ' Borland Graphics Interface file (?)
- 0000020020'Q' Quattro WQ1 file
- 000002000404 Lotus 1-2-3 WKS file (version 1.A)
- 000002000405 Symphony WKS file (version 1.0)
- 0000020004'?' Lotus/Symphony WK1 file (Lotus 2.01+, Symphony 1.1+)
- 01000000 Lotus PIC image (?)
- 'ID;P' SYLK (?)
- '<!SGML' SGML document
- 'F1'8F0001008F00'C2.3' Bitstream Font
- 'STEVE'02'H' Digitized Sound File (SND)
- 'TPU9' TurboPascal unit (TP version 6.0)
- 'II'2A00 TIFF image (Intel format)
- 'MM'002A TIFF image (Motorola format)
- 31BE0000 Microsoft WORD text
- 31BE0100 Microsoft WORD Textbaustein
- 31BE0200 Microsoft WORD printer description file
- 1B')s246W' HP downloadable font
- FF'WPC????'0101 WordPerfect macro file
- FF'WPC????'0102 WordPerfect help file
- FF'WPC????'0103 WordPerfect keyboard definition file
- FF'WPC????'010A WordPerfect document file
- FF'WPC????'010B WordPerfect dictionary file
- FF'WPC????'010C WordPerfect thesaurus file
- FF'WPC????'010D WordPerfect block
- FF'WPC????'010E WordPerfect rectangular block
- FF'WPC????'010F WordPerfect column block
- FF'WPC????'0110 WordPerfect printer resource file (PRS)
- FF'WPC????'0111 WordPerfect setup file
- FF'WPC????'0112 WordPerfect prefix information file
- FF'WPC????'0113 WordPerfect printer resource file (ALL)
- FF'WPC????'0114 WordPerfect display resource file (DRS)
- FF'WPC????'0115 WordPerfect overlay file (WP.FIL)
- FF'WPC????'0116 WordPerfect graphics file (WPG)
- FF'WPC????'0117 WordPerfect hyphenation code module
- FF'WPC????'0118 WordPerfect hyphenation data module
- FF'WPC????'0119 WordPerfect macro resource file (MRS)
- FF'WPC????'011A WordPerfect graphics driver (WPD)
- FF'WPC????'011B WordPerfect hyphenation lex module
- '{rtf' Microsoft Rich Text Format
- '{ rtf' Microsoft Rich Text Format
- '% ' TeX or Postscript source (?)
- '%*' TeX or Postscript source (?)
- '%\r\n' TeX or Postscript source (?)
- 1A08 ARC archive
- 1F9D LZW-compressed (Un*x Z)
- 'MZ' executable (EXE)
- 00010008 GEM Image File (versions 1.x, 2.x)
- FFFF1800 GEM Metafile (versions 1.x, 2.x)
- 'FORM' IFF/LBM image
- 0A00 PCX image (Paintbrush version 2.5)
- 0A02 PCX image (Paintbrush version 2.8, with palette)
- 0A03 PCX image (Paintbrush version 2.8, without palette)
- 0A05 PCX image (Paintbrush version 3.0)
- E9 executable (COM) (?)
- EB executable (COM) (?)
- 02 dBase 2.0 (?)
- 03 dBase 3.0 (no memofield) (?)
- 83 dBase 3.0 (with memofield) (?)
- ;
- ; Format of this file: (Advanced concepts are marked with an asterisk.)
- ;
- ; - Each line consists of a file recognizer pattern, then at least one
- ; blank, then a name for the file type thusly identified.
- ; - The recognizer sequence consists of a file offset (optional), a bit
- ; mask (optional), and a matching sequence (required). These items, if
- ; present, must be separated by at least one blank each.
- ; * The file offset starts with @, then an optional -, followed by
- ; a seqence of hex (!) digits which represent an offset into the file
- ; at which the matching should occur. (No blanks within the file
- ; offset sequence!) Start of file is at 0(!). A negative offset
- ; matches from the end of the file, with the last byte in the file
- ; pointed to by -1. -- Default for offset is 0.
- ; * The bit mask starts with & and is followed by a sequence as
- ; specified for matching sequences (cf. below). This bit mask will be
- ; ANDed bytewise to the bytes found in the file before matching takes
- ; place. Thus, masking with DF would make matching of 7-bit ASCII
- ; characters case-independent. (However, note the use of double quotes
- ; below.) If the bit mask is shorter than the matching sequence, it is
- ; extended with FF (functionally equivalent to no masking at all.) --
- ; Default for the bit mask is all FFs.
- ; - The matching sequence can be any mixture of pairs of hex digits and
- ; ASCII strings enclosed in single (') or double (") quotes.
- ; - Characters in single quotes require an exact match, characters in
- ; double quotes are matched case-independently. Characters in
- ; double quotes must be upper case themselves in order to work at
- ; all. (Cf. the note on case-conversion below.)
- ; - Both subtypes may contain a question mark to stand for any
- ; character. (And I mean 'character', *not* hex digit!)
- ; - ASCII strings may contain escaped sequences: \' and \" for
- ; embedded quotes, \b (backspace), \t (tab), \n (newline), \v
- ; (vertical tab), \f (form feed), \r (carriage return), \? (question
- ; mark), \\ (backslash).
- ; - If a starting sequence in this file is identical to the beginning of
- ; another one, the longer sequence should come first.
- ; - Comment lines may start with semicolon or hash mark.
- ; * For case-independent matchings, FileType knows about the upper-case
- ; equivalents of standard 7-bit ASCII characters. If you also use
- ; additional (8-bit) national characters, you can include a pair of
- ; lines starting with v and ^, respectively. These lines must not
- ; contain any blanks after the line marker and must match character by
- ; character. The 'v' line contains lower-case characters, the '^' line
- ; the corresponding upper-case characters. You need specify only as
- ; many characters as needed. These lines must occur in Magic.FT before
- ; the first recognizer line in which they are needed. -- Note that
- ; two or more pairs of translator lines may be specified, but only the
- ; last one used will be in effect.
- ; - The first line of the file is taboo.
- ;
-