1 2#------------------------------------------------------------------------------ 3# $File: palm,v 1.9 2012/01/16 15:16:43 christos Exp $ 4# palm: file(1) magic for PalmOS {.prc,.pdb}: applications, docfiles, and hacks 5# 6# Brian Lalor <blalor@hcirisc.cs.binghamton.edu> 7 8# These are weak, byte 59 is not guaranteed to be 0 and there are 9# 8 character identifiers at byte 60, one I found for appl is BIGb. 10# What are the possibilities and where is this documented? 11 12# appl 13#59 byte \0 14#>60 string appl PalmOS application 15#>0 string >\0 "%s" 16# TEXt 17#59 byte \0 18#>60 belong TEXt AportisDoc file 19#>0 string >\0 "%s" 20# HACK 21#59 byte \0 22#>60 string HACK HackMaster hack 23#>0 string >\0 "%s" 24 25# Variety of PalmOS document types 26# Michael-John Turner <mj@debian.org> 27# Thanks to Hasan Umit Ezerce <humit@tr-net.net.tr> for his DocType 2860 string BVokBDIC BDicty PalmOS document 29>0 string >\0 "%s" 3060 string DB99DBOS DB PalmOS document 31>0 string >\0 "%s" 3260 string vIMGView FireViewer/ImageViewer PalmOS document 33>0 string >\0 "%s" 3460 string PmDBPmDB HanDBase PalmOS document 35>0 string >\0 "%s" 3660 string InfoINDB InfoView PalmOS document 37>0 string >\0 "%s" 3860 string ToGoToGo iSilo PalmOS document 39>0 string >\0 "%s" 4060 string JfDbJBas JFile PalmOS document 41>0 string >\0 "%s" 4260 string JfDbJFil JFile Pro PalmOS document 43>0 string >\0 "%s" 4460 string DATALSdb List PalmOS document 45>0 string >\0 "%s" 4660 string Mdb1Mdb1 MobileDB PalmOS document 47>0 string >\0 "%s" 4860 string PNRdPPrs PeanutPress PalmOS document 49>0 string >\0 "%s" 5060 string DataPlkr Plucker PalmOS document 51>0 string >\0 "%s" 5260 string DataSprd QuickSheet PalmOS document 53>0 string >\0 "%s" 5460 string SM01SMem SuperMemo PalmOS document 55>0 string >\0 "%s" 5660 string TEXtTlDc TealDoc PalmOS document 57>0 string >\0 "%s" 5860 string InfoTlIf TealInfo PalmOS document 59>0 string >\0 "%s" 6060 string DataTlMl TealMeal PalmOS document 61>0 string >\0 "%s" 6260 string DataTlPt TealPaint PalmOS document 63>0 string >\0 "%s" 6460 string dataTDBP ThinkDB PalmOS document 65>0 string >\0 "%s" 6660 string TdatTide Tides PalmOS document 67>0 string >\0 "%s" 6860 string ToRaTRPW TomeRaider PalmOS document 69>0 string >\0 "%s" 70 71# A GutenPalm zTXT etext for use on Palm Pilots (http://gutenpalm.sf.net) 72# For version 1.xx zTXTs, outputs version and numbers of bookmarks and 73# annotations. 74# For other versions, just outputs version. 75# 7660 string zTXT A GutenPalm zTXT e-book 77>0 string >\0 "%s" 78>(0x4E.L) byte 0 79>>(0x4E.L+1) byte x (v0.%02d) 80>(0x4E.L) byte 1 81>>(0x4E.L+1) byte x (v1.%02d) 82>>>(0x4E.L+10) beshort >0 83>>>>(0x4E.L+10) beshort <2 - 1 bookmark 84>>>>(0x4E.L+10) beshort >1 - %d bookmarks 85>>>(0x4E.L+14) beshort >0 86>>>>(0x4E.L+14) beshort <2 - 1 annotation 87>>>>(0x4E.L+14) beshort >1 - %d annotations 88>(0x4E.L) byte >1 (v%d. 89>>(0x4E.L+1) byte x %02d) 90 91# Palm OS .prc file types 9260 string libr Palm OS dynamic library data 93>0 string >\0 "%s" 9460 string ptch Palm OS operating system patch data 95>0 string >\0 "%s" 96 97# Mobipocket (www.mobipocket.com), donated by Carl Witty 9860 string BOOKMOBI Mobipocket E-book 99>0 string >\0 "%s" 100