2 #------------------------------------------------------------------------------
3 # $File: palm,v 1.7 2009/09/19 16:28:11 christos Exp $
4 # palm: file(1) magic for PalmOS {.prc,.pdb}: applications, docfiles, and hacks
6 # Brian Lalor <blalor@hcirisc.cs.binghamton.edu>
9 60 belong 0x6170706c PalmOS application
12 60 belong 0x54455874 AportisDoc file
15 60 belong 0x4841434b HackMaster hack
18 # Variety of PalmOS document types
19 # Michael-John Turner <mj@debian.org>
20 # Thanks to Hasan Umit Ezerce <humit@tr-net.net.tr> for his DocType
21 60 string BVokBDIC BDicty PalmOS document
23 60 string DB99DBOS DB PalmOS document
25 60 string vIMGView FireViewer/ImageViewer PalmOS document
27 60 string PmDBPmDB HanDBase PalmOS document
29 60 string InfoINDB InfoView PalmOS document
31 60 string ToGoToGo iSilo PalmOS document
33 60 string JfDbJBas JFile PalmOS document
35 60 string JfDbJFil JFile Pro PalmOS document
37 60 string DATALSdb List PalmOS document
39 60 string Mdb1Mdb1 MobileDB PalmOS document
41 60 string PNRdPPrs PeanutPress PalmOS document
43 60 string DataPlkr Plucker PalmOS document
45 60 string DataSprd QuickSheet PalmOS document
47 60 string SM01SMem SuperMemo PalmOS document
49 60 string TEXtTlDc TealDoc PalmOS document
51 60 string InfoTlIf TealInfo PalmOS document
53 60 string DataTlMl TealMeal PalmOS document
55 60 string DataTlPt TealPaint PalmOS document
57 60 string dataTDBP ThinkDB PalmOS document
59 60 string TdatTide Tides PalmOS document
61 60 string ToRaTRPW TomeRaider PalmOS document
64 # A GutenPalm zTXT etext for use on Palm Pilots (http://gutenpalm.sf.net)
65 # For version 1.xx zTXTs, outputs version and numbers of bookmarks and
67 # For other versions, just outputs version.
69 60 string zTXT A GutenPalm zTXT e-book
72 >>(0x4E.L+1) byte x (v0.%02d)
74 >>(0x4E.L+1) byte x (v1.%02d)
75 >>>(0x4E.L+10) beshort >0
76 >>>>(0x4E.L+10) beshort <2 - 1 bookmark
77 >>>>(0x4E.L+10) beshort >1 - %d bookmarks
78 >>>(0x4E.L+14) beshort >0
79 >>>>(0x4E.L+14) beshort <2 - 1 annotation
80 >>>>(0x4E.L+14) beshort >1 - %d annotations
81 >(0x4E.L) byte >1 (v%d.
82 >>(0x4E.L+1) byte x %02d)
84 # Palm OS .prc file types
85 60 string libr Palm OS dynamic library data
87 60 string ptch Palm OS operating system patch data
90 # Mobipocket (www.mobipocket.com), donated by Carl Witty
91 60 string BOOKMOBI Mobipocket E-book