# Format of library's data:
# Text-like headers section:
#   one-byte length of this entry (0=no more entries)
#   one-byte flags
#     bit   meaning if set
#     0     match case-insensitively
#     1-4   category
#            0  none
#            1  image
#            2  audio
#            3  movie
#   one byte offset (-1=255)
#   one byte length of string, followed by string
#   zero-terminated description
#   zero-terminated mime type
#   two-byte file type (-1=65535)
# Binary headers section:
#   same as text-like headers section
# Filename suffixes section:
#   one-byte length of this entry (0=no more entries)
#   one-byte flags
#     bit   meaning if set
#     1-4   category
#            0  none
#            1  image
#            2  audio
#            3  movie
#   zero-terminated suffix
#   zero-terminated description
#   zero-terminated mime type
#   two-byte file type (-1=65535)

# Format of text-like header search string entries:
#   <offset>,<string>,<description>,<mime type>,<category>,<filetype>

# Offset:      Offset in file to search for string, -1 means search
#              first 256 bytes
# String:      String to search for
# Description: Description of file type
# Mime type:   Mime Content-Type
# Category:    0 = none, 1 = image, 2 = audio, 3 = movie
# Filetype:    RISC OS filetype of file, -1 for none

0,ARMovie,Acorn Replay movie,,0,&AE7
0,xbtoa,btoa encoded data,,0,&FFF
0,---FCET---,FCET encoded data,,0,&FFF
-1,^<html>,HTML,text/html,0,&FAF
-1,^<head>,HTML,text/html,0,&FAF
-1,^<title>,HTML,text/html,0,&FAF
-1,^<h1>,HTML,text/html,0,&FAF
-1,^<h2>,HTML,text/html,0,&FAF
-1,^<h3>,HTML,text/html,0,&FAF
-1,^<a href=,HTML,text/html,0,&FAF
-1,^<body>,HTML,text/html,0,&FAF
-1,^<img ,HTML,text/html,0,&FAF
-1,^<em>,HTML,text/html,0,&FAF
-1,^<!-,HTML,text/html,0,&FAF
-1,^<!DOCTYPE,HTML,text/html,0,&FAF
0,P1,PBM 1 (black & white),,1,&69E
0,P2,PBM 2 (grey scales),,1,&69E
0,P3,PBM 3 (full colour),,1,&69E
Done

# Format of binary header search string entries:
#   <offset>,<string>,<description>,<mime type>,<category>,<filetype>

# Offset:      Offset in file to search for string, -1 means search
#              first 256 bytes
# String:      String to search for
# Description: Description of file type
# Mime type:   Mime Content-Type
# Category:    0 = none, 1 = image
# Filetype:    RISC OS filetype of file, -1 for none

0,Draw\xC9\x00\x00\x00\x00\x00\x00\x00,Draw,,0,&AFF
2,Oak_P_D_T_Drawing,PDT drawing,,0,&CAD
0,DISSCODE,Diss external code,,0,&3F5
0,DISSLABL,Diss labels,,0,&3F5
0,ARMovie,Acorn Replay movie,,0,&AE7
0,Archive,archive,,0,&3FB
0,Top!,ArtWorks drawing,,0,&D94
0,MCAD,CADet drawing,,0,&C33
0,AutoSketch Drawing,AutoSketch drawing,,0,&DE9
0,AutoCAD Slide,AutoCAD slide,,0,&DEC
0,ILLA,Illusions Article,,0,&7FF
0,SQSH,squashed,,0,&FCA
0,Game,Hacker saved game,,0,&3F7
0,List,Hacker list,,0,&0D1
0,OFil,OffLite filter,,0,&FFC
0,Termite1,Termite protocol,,0,&FFD
0,Termite2,Termite protocol startup data,,0,&FFD
0,ABI,ABI templates,,0,&D8E
0,TMod,ArtWorks module,,0,&D95
0,FONT,(outline) font,,0,&FF6
0,Font,font cache,,0,&FCF
0,Ovation,Ovation document,,0,&CDD
0,DTPI,Acorn DTP document,,0,&AF9
0,PGCF,Pinpoint,,0,&C6C
0,Maestro\x0A,Maestro tune,,0,&AF1
0,MUSX,Tracker tune,,0,&CB6
0,DskT,Desktop Tracker tune,,0,&CB6
0,ALRM,Alarm,,0,&AE9
6,JFIF,JPEG picture,image/jpeg,1,&C85
0,GIF87a,GIF picture v87,image/gif,1,&695
0,GIF89a,GIF picture v89,image/gif,1,&695
8,ILBM,IFF picture,,1,&693
0,Translator,Translator Clear picture,,1,&690
0,AV_VO,.PIC picture,,1,-1
0,SIMPLE,F.I.T.S. picture,,1,-1
0,\x1A,archive,,0,&DDC
0,\x1A,archive,,0,&DDC
0,\x1A,archive,,0,&DDC
0,\x1A,archive,,0,&DDC
0,\x1A,archive,,0,&DDC
0,\x1A\x08,archive,,0,&DDC
0,`,ARJ archive,,0,&DDC
0,PK,PKZip archive,,0,&DDC
0,%OP,Pipedream document,,0,&DDE
0,%CO,Pipedream document,,0,&DDE
0,PD,PenDown document,,0,&D40
0,SV-,Schema spreadsheet,,0,&AEF
0,macro,Schema macro,,0,&AED
0,II*,TIFF picture,image/tiff,1,&FF0
0,MM,TIFF picture,image/tiff,1,&FF0
0,BM,.BMP picture,,1,&69C
0,P4,PBM 4 (black & white) binary picture,,1,&69E
0,P5,PBM 5 (grey scales) binary picture,,1,&69E
0,P6,PBM 6 (full colour) binary picture,,1,&69E
0,R,UNIX 'rle' picture,,1,-1
0,\x1F\x8B,GZIPped,,0,&DDC
0,%!,PostScript,application/postscript,0,&FF5
0,.snd,audio data,audio/basic,2,&ED0
0,dns.,audio data,audio/basic,2,&ED0
0,\x0D\x00,BASIC,,0,&FFB
Done

# Format of filename suffix string entries:
#   <suffix>,<description>,<mime type>,<category>,<filetype>

# Suffix:      Filename suffix
# Description: Description of file type
# Mime type:   Mime Content-Type
# Category:    0 = none, 1 = image
# Filetype:    RISC OS filetype of file, -1 for none

arc,archive,,0,&DDC
gz,archive,,0,&DDC
zip,archive,,0,&DDC
z,archive,,0,&DDC
tar,TAR archive,,0,&C46
shtml,HTML,text/html,0,&FAF
html,HTML,text/html,0,&FAF
htm,HTML,text/html,0,&FAF
snd,audio data,audio/basic,2,&ED0
au,audio data,audio/basic,2,&ED0
wav,audio data,audio/basic,2,&ED0
ps,PostScript,application/postscript,0,&FF5
eps,PostScript,application/postscript,0,&FF5
xbm,XBM picture,image/x-xbitmap,1,-1
xpm,XPM picture,image/x-xpixmap,1,-1
mpeg,MPEG movie,video/mpeg,3,&BF8
mpg,MPEG movie,video/mpeg,3,&BF8
mpe,MPEG movie,video/mpeg,3,&BF8
qt,QuickTime movie,video/quicktime,3,&FB2
qtm,QuickTime movie,video/quicktime,3,&FB2
mov,QuickTime movie,video/quicktime,3,&FB2
txt,text,text/plain,0,&FFF
Done
