1*f0d9efc0Sbeck# 2*f0d9efc0Sbeck# Example magic file for mkhybrid 3*f0d9efc0Sbeck# 4*f0d9efc0Sbeck# The "message" for the offset MUST be 4 characters for the CREATOR 5*f0d9efc0Sbeck# and 4 characters for the TYPE - white space is optional between them. 6*f0d9efc0Sbeck# Any other characters on this line are ignored. Continuation lines (starting 7*f0d9efc0Sbeck# with '>') are also ignored i.e. only the initial offset lines are used. 8*f0d9efc0Sbeck# 9*f0d9efc0Sbeck# The continuation lines are given here, but they do not need to exist. 10*f0d9efc0Sbeck 11*f0d9efc0Sbeck# 12*f0d9efc0Sbeck# James Pearson 20/5/98 13*f0d9efc0Sbeck 14*f0d9efc0Sbeck# off type test message 15*f0d9efc0Sbeck 16*f0d9efc0Sbeck# GIF 17*f0d9efc0Sbeck0 string GIF8 8BIM GIFf 18*f0d9efc0Sbeck>4 string 7a \b, version 8%s, 19*f0d9efc0Sbeck>4 string 9a \b, version 8%s, 20*f0d9efc0Sbeck>6 leshort >0 %hd x 21*f0d9efc0Sbeck>8 leshort >0 %hd, 22*f0d9efc0Sbeck#>10 byte &0x80 color mapped, 23*f0d9efc0Sbeck#>10 byte&0x07 =0x00 2 colors 24*f0d9efc0Sbeck#>10 byte&0x07 =0x01 4 colors 25*f0d9efc0Sbeck#>10 byte&0x07 =0x02 8 colors 26*f0d9efc0Sbeck#>10 byte&0x07 =0x03 16 colors 27*f0d9efc0Sbeck#>10 byte&0x07 =0x04 32 colors 28*f0d9efc0Sbeck#>10 byte&0x07 =0x05 64 colors 29*f0d9efc0Sbeck#>10 byte&0x07 =0x06 128 colors 30*f0d9efc0Sbeck#>10 byte&0x07 =0x07 256 colors 31*f0d9efc0Sbeck 32*f0d9efc0Sbeck# JPEG images 33*f0d9efc0Sbeck# 34*f0d9efc0Sbeck0 ubeshort 0xffd8 8BIM JPEG image data 35*f0d9efc0Sbeck 36*f0d9efc0Sbeck# StuffIt 37*f0d9efc0Sbeck# 38*f0d9efc0Sbeck0 string SIT! SIT!SIT! 39*f0d9efc0Sbeck 40*f0d9efc0Sbeck# standard unix compress 41*f0d9efc0Sbeck0 string \037\235 LZIV ZIVU 42*f0d9efc0Sbeck>2 byte&0x80 >0 block compressed 43*f0d9efc0Sbeck>2 byte&0x1f x %d bits 44*f0d9efc0Sbeck 45*f0d9efc0Sbeck# gzip (GNU zip, not to be confused with Info-ZIP or PKWARE zip archiver) 46*f0d9efc0Sbeck0 string \037\213 GNUz ZIVU gzip compressed data 47*f0d9efc0Sbeck>2 byte <8 \b, reserved method, 48*f0d9efc0Sbeck>2 byte 8 \b, deflated, 49*f0d9efc0Sbeck>3 byte &0x01 ASCII, 50*f0d9efc0Sbeck>3 byte &0x02 continuation, 51*f0d9efc0Sbeck>3 byte &0x04 extra field, 52*f0d9efc0Sbeck>3 byte &0x08 original filename, 53*f0d9efc0Sbeck>3 byte &0x10 comment, 54*f0d9efc0Sbeck>3 byte &0x20 encrypted, 55*f0d9efc0Sbeck>4 ledate x last modified: %s, 56*f0d9efc0Sbeck>8 byte 2 max compression, 57*f0d9efc0Sbeck>8 byte 4 max speed, 58*f0d9efc0Sbeck>9 byte =0x00 os: MS-DOS 59*f0d9efc0Sbeck>9 byte =0x01 os: Amiga 60*f0d9efc0Sbeck>9 byte =0x02 os: VMS 61*f0d9efc0Sbeck>9 byte =0x03 os: Unix 62*f0d9efc0Sbeck>9 byte =0x05 os: Atari 63*f0d9efc0Sbeck>9 byte =0x06 os: OS/2 64*f0d9efc0Sbeck>9 byte =0x07 os: MacOS 65*f0d9efc0Sbeck>9 byte =0x0A os: Tops/20 66*f0d9efc0Sbeck>9 byte =0x0B os: Win/32 67*f0d9efc0Sbeck 68*f0d9efc0Sbeck# Postscript 69*f0d9efc0Sbeck0 string %! ASPSTEXT 70*f0d9efc0Sbeck>2 string PS-Adobe- conforming 71*f0d9efc0Sbeck>>11 string >\0 at level %.3s 72*f0d9efc0Sbeck>>>15 string EPS - type %s 73*f0d9efc0Sbeck>>>15 string Query - type %s 74*f0d9efc0Sbeck>>>15 string ExitServer - type %s 75*f0d9efc0Sbeck# Some PCs have the annoying habit of adding a ^D as a document separator 76*f0d9efc0Sbeck0 string \004%! ASPS TEXT PostScript document text 77*f0d9efc0Sbeck>3 string PS-Adobe- conforming 78*f0d9efc0Sbeck>>12 string >\0 at level %.3s 79*f0d9efc0Sbeck>>>16 string EPS - type %s 80*f0d9efc0Sbeck>>>16 string Query - type %s 81*f0d9efc0Sbeck>>>16 string ExitServer - type %s 82