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 >
Text File  |  1991-08-19  |  12KB  |  187 lines

  1. ;FTMagic1.1                       -- Don't change this line!
  2. ; Magic Numbers for FType (file type guesser)
  3. ; For a description of the file format, see the comments at the end.
  4. ; For customizing national uppercasing, see the note near the end.
  5. ; Magic sequences start here:
  6. "PROGRAM "                              Pascal source
  7. "      PROGRAM "                        Fortran source
  8. '/* '                                   C source (?)
  9. '#include '                             C source
  10. '; '                                    ASM source (?)
  11. ';\r\n'                                 ASM source (?)
  12. '\' '                                   BASIC source (?)
  13. '\'\t\r'                                BASIC source (?)
  14. "REM "                                  Batch file
  15. "REM\r\n"                               Batch file
  16. "ECHO "                                 Batch file
  17. "@ECHO "                                Batch file
  18. 'PK'0304                                ZIP archive
  19. 'MZ'                                   /
  20. @31F0 'PK'0304                          ZIP self-extracting archive (PKZip 1.10)
  21. 'MZ'                                   /
  22. @0B76 'PK'0304                          ZIP mini self-extracting archive (PKZip 1.10)
  23. 'MZ??????????????????????????LZ91'      Executable, compressed by LZExe 0.91
  24. 'ZOO 2.00 Archive'                      ZOO archive version 2.0
  25. 'ZOO 2.10 Archive'                      ZOO archive version 2.1
  26. 'ZOO '                                  ZOO archive (pre-2.0)
  27. ??'-lh5-'                               LHA archive (2.12 or later)
  28. ??'-lh'                                 LHA archive (pre-2.12)
  29. 'MZ'                                   /
  30. @24'LHA\'s SFX '                        LHA self-extracting archive
  31. 'begin '                                UU-encoded file
  32. '#! /bin/sh\r\n# This is a shell archive' Shell archive (SHAr)
  33. '#! /bin/sh'                            Shell archive (SHAr) (?)
  34. '#!/bin/sh'                             Shell archive (SHAr) (?)
  35. '#! /bin/awk'                           AWK source
  36. '#!/bin/awk'                            AWK source
  37. '# '                                    AWK source, makefile or shell script (?)
  38. 'PCF:db,'                               PC-File header
  39. 'WSSCONfig'                             WSSIndex configuration file
  40. 'WSSINDEX\r4'                           WSSIndex index file, version 4
  41. 'WSSINDEX\r5'                           WSSIndex index file, version 5
  42. 'WSSINDEX\r'                            WSSIndex index file, pre-version 4
  43. FF' FONT   '00                          DOS code page file (CPI)
  44. FFFFFFFF                                DOS device driver
  45. 'GIF87a'                                CompuShow GIF picture (1987 version)
  46. 'GIF89a'                                CompuShow GIF picture (1989 version)
  47. 'RRTL'0001                              ClipArt image
  48. 'Falc'0000                              Harvard Graphics Chart (CHT) (??)
  49. 'pk\b\bBGI Device Driver'               Borland graphics driver (BGI)
  50. 'PK\b\bBGI Stroked Font'                Borland graphics stroked font (CHR)
  51. 'ca\b\bBGI '                            Borland Quattro Pro graphics driver
  52. 'CB\b\bBGI '                            Borland Quattro Pro graphics driver
  53. '??\b\bBGI '                            Borland Graphics Interface file (?)
  54. 0000020020'Q'                           Quattro WQ1 file
  55. 000002000404                            Lotus 1-2-3 WKS file (version 1.A)
  56. 000002000405                            Symphony WKS file (version 1.0)
  57. 0000020004'?'                           Lotus/Symphony WK1 file (Lotus 2.01+, Symphony 1.1+)
  58. 01000000                                Lotus PIC image (?)
  59. 'ID;P'                                  SYLK (?)
  60. '<!SGML'                                SGML document
  61. 'F1'8F0001008F00'C2.3'                  Bitstream Font
  62. 'STEVE'02'H'                            Digitized Sound File (SND)
  63. 'TPU9'                                  TurboPascal unit (TP version 6.0)
  64. 'II'2A00                                TIFF image (Intel format)
  65. 'MM'002A                                TIFF image (Motorola format)
  66. 31BE0000                                Microsoft WORD text
  67. 31BE0100                                Microsoft WORD Textbaustein
  68. 31BE0200                                Microsoft WORD printer description file
  69. 1B')s246W'                              HP downloadable font
  70. FF'WPC????'0101                         WordPerfect macro file
  71. FF'WPC????'0102                         WordPerfect help file
  72. FF'WPC????'0103                         WordPerfect keyboard definition file
  73. FF'WPC????'010A                         WordPerfect document file
  74. FF'WPC????'010B                         WordPerfect dictionary file
  75. FF'WPC????'010C                         WordPerfect thesaurus file
  76. FF'WPC????'010D                         WordPerfect block
  77. FF'WPC????'010E                         WordPerfect rectangular block
  78. FF'WPC????'010F                         WordPerfect column block
  79. FF'WPC????'0110                         WordPerfect printer resource file (PRS)
  80. FF'WPC????'0111                         WordPerfect setup file
  81. FF'WPC????'0112                         WordPerfect prefix information file
  82. FF'WPC????'0113                         WordPerfect printer resource file (ALL)
  83. FF'WPC????'0114                         WordPerfect display resource file (DRS)
  84. FF'WPC????'0115                         WordPerfect overlay file (WP.FIL)
  85. FF'WPC????'0116                         WordPerfect graphics file (WPG)
  86. FF'WPC????'0117                         WordPerfect hyphenation code module
  87. FF'WPC????'0118                         WordPerfect hyphenation data module
  88. FF'WPC????'0119                         WordPerfect macro resource file (MRS)
  89. FF'WPC????'011A                         WordPerfect graphics driver (WPD)
  90. FF'WPC????'011B                         WordPerfect hyphenation lex module
  91. '{rtf'                                  Microsoft Rich Text Format
  92. '{ rtf'                                 Microsoft Rich Text Format
  93. '% '                                    TeX or Postscript source (?)
  94. '%*'                                    TeX or Postscript source (?)
  95. '%\r\n'                                 TeX or Postscript source (?)
  96. ';FTMagic1.0'                           FType Magic number file (version 1.0)
  97. ';FTMagic1.1'                           FType Magic number file (version 1.1)
  98. 1A08                                    ARC archive
  99. 1F9D                                    LZW-compressed (Un*x Z)
  100. 'MZ'                                    executable (EXE)
  101. 00010008                                GEM Image File (versions 1.x, 2.x)
  102. FFFF1800                                GEM Metafile (versions 1.x, 2.x)
  103. 'FORM'                                  IFF/LBM image
  104. 0A00                                    PCX image (Paintbrush version 2.5)
  105. 0A02                                    PCX image (Paintbrush version 2.8, with palette)
  106. 0A03                                    PCX image (Paintbrush version 2.8, without palette)
  107. 0A05                                    PCX image (Paintbrush version 3.0)
  108. E9                                      executable (COM) (?)
  109. EB                                      executable (COM) (?)
  110. 02                                      dBase 2.0 (?)
  111. 03                                      dBase 3.0 (no memofield) (?)
  112. 83                                      dBase 3.0 (with memofield) (?)
  113. ;
  114. ;
  115. ; The following two lines may be used as uppercase translation strings for
  116. ; IBM code page 437. Howver, for DOS 3.30+, FileType gets this table directly
  117. ; from DOS, using the current country and code page information.
  118. ; Note: These lines rely on exact character alignment!
  119. ; To use this feature, move next two lines up before the first non-comment line:
  120. vüéâäàåçêëèïîìæôöòûùÿáíóúñ 
  121. ^ÜEAÄAÅÇEEEIIIÆOÖOUUYAIOUÑ 
  122. ;
  123. ;
  124. ; Format of this file: (Advanced concepts are marked with an asterisk.)
  125. ;
  126. ; - Maximum line length is 255 characters. Lines are CRLF-delimited.
  127. ;   File must be plain (8 bit) ASCII.
  128. ; - Each line consists of a file recognizer pattern, then at least one
  129. ;   blank, then either a name for the file type thusly identified or
  130. ;   a continuation marker.
  131. ; - The recognizer sequence consists of a file offset (optional), a bit
  132. ;   mask (optional), and a matching sequence (required). These items, if
  133. ;   present, must be separated by at least one blank each; the ordering
  134. ;   of these items is required.
  135. ; * The file offset starts with @, then an optional -, followed by
  136. ;   a seqence of hex (!) digits which represent an offset into the file
  137. ;   at which the matching should occur. (No blanks within the file
  138. ;   offset sequence!) Start of file is at 0(!). A negative offset
  139. ;   matches from the end of the file, with the last byte in the file
  140. ;   pointed to by -1. -- Default for offset is 0.
  141. ; * The bit mask starts with & and is followed by a sequence as
  142. ;   specified for matching sequences (cf. below). This bit mask will be
  143. ;   ANDed bytewise to the bytes found in the file before matching takes
  144. ;   place. Thus, masking with DF would make matching of 7-bit ASCII
  145. ;   characters case-independent. (However, note the use of double quotes
  146. ;   below.) If the bit mask is shorter than the matching sequence, it is
  147. ;   extended with FF (functionally equivalent to no masking at all.) --
  148. ;   Default for the bit mask is all FFs.
  149. ; - The matching sequence can be any mixture of pairs of hex digits and
  150. ;   ASCII strings enclosed in single (') or double (") quotes.
  151. ; - Characters in single quotes require an exact match, characters in double
  152. ;   quotes are matched case-independently. (Cf. note on case-conversion below.)
  153. ; - Both subtypes may contain a question mark to stand for any
  154. ;   character. (And I mean 'character', *not* hex digit!)
  155. ; - ASCII strings may contain escaped sequences: \' and \" for
  156. ;   embedded quotes, \b (backspace), \t (tab), \n (newline), \v
  157. ;   (vertical tab), \f (form feed), \r (carriage return), \? (question
  158. ;   mark), \\ (backslash).
  159. ; - If a starting sequence in this file is identical to the beginning of
  160. ;   another one, the longer sequence should come first.
  161. ; - Comment lines may start with semicolon or hash mark.
  162. ; * For case-independent matchings, FileType knows about the upper-case
  163. ;   equivalents of standard 7-bit ASCII characters; under DOS 3.30+, it
  164. ;   can also handle (8-bit) national characters according to your
  165. ;   country code and code page. You can override this knowledge by
  166. ;   including a pair of lines starting with v and ^, respectively. These
  167. ;   lines must not contain any blanks after the line marker and must
  168. ;   match character by character. The 'v' line contains lower-case
  169. ;   characters, the '^' line the corresponding upper-case characters.
  170. ;   You need specify only as many characters as are necessary. These
  171. ;   lines must occur in Magic.FT before the first recognizer line in
  172. ;   which they are needed. -- Note that two or more pairs of translator
  173. ;   lines may be specified, but only the last one used will be in
  174. ;   effect.
  175. ; * If different places of the file need to be checked for pattern
  176. ;   matching, there are two ways to do so:
  177. ;   - If the places are close together, specify *one* sequence and a bit
  178. ;     mask to ignore the irrelevant bytes by ANDing these with 0.
  179. ;   - Otherwise, use a multi-line matching: specify one recognizer
  180. ;     pattern, but instead of a file type name, include a slash (/);
  181. ;     then, on a new line, specify the next recognizer pattern, this
  182. ;     time using the file type name. (There may be more than one slash-
  183. ;     delimited line.) This way, all the slash-delimited lines *and*
  184. ;     the next one are required to match.
  185. ; - The first line of the file is taboo.
  186. ;
  187.