home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
World_Of_Computer_Software-02-386-Vol-2of3.iso
/
f
/
filtyp11.zip
/
MAGIC.FT
< prev
next >
Wrap
Text File
|
1991-08-19
|
12KB
|
187 lines
;FTMagic1.1 -- 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.
; For customizing national uppercasing, see the note near the end.
; Magic sequences start here:
"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
'MZ' /
@31F0 'PK'0304 ZIP self-extracting archive (PKZip 1.10)
'MZ' /
@0B76 'PK'0304 ZIP mini self-extracting archive (PKZip 1.10)
'MZ??????????????????????????LZ91' Executable, compressed by LZExe 0.91
'ZOO 2.00 Archive' ZOO archive version 2.0
'ZOO 2.10 Archive' ZOO archive version 2.1
'ZOO ' ZOO archive (pre-2.0)
??'-lh5-' LHA archive (2.12 or later)
??'-lh' LHA archive (pre-2.12)
'MZ' /
@24'LHA\'s SFX ' LHA self-extracting archive
'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, makefile or shell script (?)
'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 (?)
';FTMagic1.0' FType Magic number file (version 1.0)
';FTMagic1.1' FType Magic number file (version 1.1)
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) (?)
;
;
; The following two lines may be used as uppercase translation strings for
; IBM code page 437. Howver, for DOS 3.30+, FileType gets this table directly
; from DOS, using the current country and code page information.
; Note: These lines rely on exact character alignment!
; To use this feature, move next two lines up before the first non-comment line:
vüéâäàåçêëèïîìæôöòûùÿáíóúñ
^ÜEAÄAÅÇEEEIIIÆOÖOUUYAIOUÑ
;
;
; Format of this file: (Advanced concepts are marked with an asterisk.)
;
; - Maximum line length is 255 characters. Lines are CRLF-delimited.
; File must be plain (8 bit) ASCII.
; - Each line consists of a file recognizer pattern, then at least one
; blank, then either a name for the file type thusly identified or
; a continuation marker.
; - 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 ordering
; of these items is required.
; * 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. (Cf. 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; under DOS 3.30+, it
; can also handle (8-bit) national characters according to your
; country code and code page. You can override this knowledge by
; including 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 are necessary. 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.
; * If different places of the file need to be checked for pattern
; matching, there are two ways to do so:
; - If the places are close together, specify *one* sequence and a bit
; mask to ignore the irrelevant bytes by ANDing these with 0.
; - Otherwise, use a multi-line matching: specify one recognizer
; pattern, but instead of a file type name, include a slash (/);
; then, on a new line, specify the next recognizer pattern, this
; time using the file type name. (There may be more than one slash-
; delimited line.) This way, all the slash-delimited lines *and*
; the next one are required to match.
; - The first line of the file is taboo.
;