ole2compounddocs 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568
  1. #------------------------------------------------------------------------------
  2. # $File: ole2compounddocs,v 1.12 2021/09/04 16:00:38 christos Exp $
  3. # Microsoft OLE 2 Compound Documents : file(1) magic for Microsoft Structured
  4. # storage (https://en.wikipedia.org/wiki/Compound_File_Binary_Format)
  5. # Additional tests for OLE 2 Compound Documents should be under this recipe.
  6. # reference: https://www.openoffice.org/sc/compdocfileformat.pdf
  7. 0 string \320\317\021\340\241\261\032\341
  8. # https://digital-preservation.github.io/droid/
  9. # skip droid skeleton like fmt-39-signature-id-128.doc by valid version
  10. >0x1A ushort !0xABAB OLE 2 Compound Document
  11. #>0x1C uleshort x \b, endnian %#4.4x
  12. # big endian not tested
  13. >>0x1C ubeshort =0xfffe \b, big-endian
  14. >>>546 string jbjb : Microsoft Word Document
  15. !:mime application/msword
  16. !:apple MSWDWDBN
  17. !:ext doc
  18. # Byte Order 0xFFFE means little-endian found in real world applications
  19. #>>0x1C uleshort =0xfffe \b, little-endian
  20. >>0x1C uleshort =0xfffe
  21. # From: Joerg Jenderek
  22. # Major Version 3 or 4
  23. >>>0x1A uleshort x \b, v%u
  24. # Minor Version 32h=50 3Bh=59 3Eh=62
  25. >>>0x18 uleshort x \b.%u
  26. # SecID of first sector of the directory stream is often 1 but high like 3144h
  27. >>>48 ulelong x \b, SecID %#x
  28. # Sector Shift Exponent in short-stream container stream: 6~64 bytes
  29. >>>32 uleshort !6 \b, exponent of short stream %u
  30. # total number of sectors used for the FAT
  31. >>>44 ulelong >1 \b, %u FAT sectors
  32. # SecID of first sector of the short-sector allocation table (Mini FAT)
  33. # or -2 (End Of ChainSecID) if not extant
  34. >>>60 ulelong !0xffFFffFE \b, Mini FAT start sector %#x
  35. # total number of sectors used for the short-sector allocation table
  36. >>>64 ulelong !1 \b, %u Mini FAT sector
  37. # plural s
  38. >>>>64 ulelong >1 \bs
  39. # SecID of first sector of the master sector allocation table (DIFAT)
  40. # or -2 (End Of Chain SecID) if no additional sectors used
  41. >>>68 ulelong !0xffFFffFE \b, DIFAT start sector %#x
  42. # total number of sectors used for the master sector allocation table (DIFAT)
  43. >>>72 ulelong >0 \b, %u DIFAT sectors
  44. # First part of the master sector allocation table (DIFAT) containing 109 SecIDs
  45. #>>>76 ubequad x \b, DIFAT=%#16.16llx
  46. #>>>84 ubequad x \b%16.16llx...
  47. # pointer to root entry only works with standard configuration for SecID ~< 800h
  48. # Red-Carpet-presentation-1.0-1.sdd sg10.sdv 2000_GA_Annual_Review_Data.xls
  49. # "ORLEN Factbook 2017.xls" XnView_metadata.doc
  50. # "Barham, Lisa - Die Shopping-Prinzessinnen.doc" then not recognized
  51. >>>48 ulelong >0x800 too big for FILE_BYTES_MAX = 1 MiB
  52. # Sector Shift Exponent 9~512 for major version 3 or C~4096 for major version 4
  53. >>>0x1E uleshort 0xc \b, blocksize 4096
  54. # jump to one block (4096 bytes per block) before root storage block
  55. >>>>(48.l*4096) ubyte x
  56. >>>>>&4095 use ole2-directory
  57. #>>>0x1E uleshort 9 \b, blocksize 512
  58. >>>0x1E uleshort 9
  59. # jump to one block (512 bytes per block) before root storage block
  60. # in 5.37 only true for offset ~< FILE_BYTES_MAX=7 MiB defined in ../../src/file.h
  61. >>>>(48.l*512) ubyte x
  62. >>>>>&511 use ole2-directory
  63. # check directory entry structure and display types by GUID
  64. 0 name ole2-directory
  65. # directory entry name like "Root Entry"
  66. #>0 lestring16 x \b, 1st %.10s
  67. # type of the entry; 5~Root storage
  68. #>66 ubyte x \b, type %x
  69. # node colour of the entry: 00H ~ Red 01H ~ Black
  70. #>67 ubyte x \b, color %x
  71. # the DirIDs of the child nodes. Should both be -1 in the root storage entry
  72. #>68 bequad !0xffffffffffffffff \b, DirIDs %llx
  73. # second directory entry name like VisioDocument Control000
  74. #>128 lestring16 x \b, 2nd %.20s
  75. # third directory entry like WordDocument
  76. #>256 lestring16 x \b, 3rd %.20s
  77. # forth
  78. #>384 lestring16 x \b, 4th %.10s
  79. # 5th
  80. #>512 lestring16 x \b, 5th %.10s
  81. # 6th
  82. #>640 lestring16 x \b, 6th %.10s
  83. # 7th
  84. #>768 lestring16 x \b, 7th %.10s
  85. # https://wikileaks.org/ciav7p1/cms/page_13762814.html
  86. # https://m.blog.naver.com/superman4u/40047693679
  87. # https://misc.daniel-marschall.de/projects/guid_analysis/guid.txt
  88. # https://toolslick.com/conversion/data/guid
  89. #>80 ubequad !0 \b, clsid %#16.16llx
  90. #>>88 ubequad x \b%16.16llx
  91. # test for "Root Entry" inside directory by type 5 value
  92. >66 ubyte 5
  93. # look for CLSID GUID 0
  94. >>88 ubequad 0x0
  95. >>>80 ubequad 0x0
  96. # - Microstation V8 DGN files (www.bentley.com)
  97. # URL: https://en.wikipedia.org/wiki/MicroStation
  98. # Last update on 10/23/2006 by Lester Hightower
  99. # 07/24/2019 by Joerg Jenderek
  100. # Second directory entry name like Dgn~H Dgn~S
  101. >>>>128 lestring16 Dgn~ : Microstation V8 CAD
  102. #!:mime application/x-ole-storage
  103. !:mime application/x-bentley-dgn
  104. # http://www.q-cad.com/files/samples_cad_files/1344468165.dgn
  105. !:ext dgn
  106. #
  107. # URL: http://fileformats.archiveteam.org/wiki/WordPerfect
  108. # Second directory entry name PerfectOffice_
  109. >>>>128 lestring16 PerfectOffice_ : WordPerfect 7-X3 presentations Master, Document or Graphic
  110. !:mime application/vnd.wordperfect
  111. # https://www.macdisk.com/macsigen.php "WPC2" for Wordperfect 2 *.wpd
  112. !:apple ????WPC7
  113. !:ext mst/wpd/wpg
  114. #
  115. # URL: http://fileformats.archiveteam.org/wiki/Microsoft_Works_Word_Processor
  116. # Second directory entry name MatOST_
  117. >>>>128 lestring16 MatOST : Microsoft Works 3.0 document
  118. !:mime application/vnd.ms-works
  119. !:apple ????AWWP
  120. !:ext wps
  121. #
  122. # URL: http://fileformats.archiveteam.org/wiki/Microsoft_Works_Spreadsheet
  123. # 3rd directory entry name WksSSWorkBook
  124. >>>>256 lestring16 WksSSWorkBook : Microsoft Works 6-9 spreadsheet
  125. !:mime application/vnd.ms-works
  126. !:apple ????AWSS
  127. !:ext xlr
  128. #
  129. # URL: http://fileformats.archiveteam.org/wiki/XLS
  130. # what is the difference to {00020820-0000-0000-c000-000000000046} ?
  131. # Second directory entry name Workbook
  132. >>>>128 lestring16 Workbook
  133. >>>>>256 lestring16 !WksSSWorkBook : Microsoft Excel 97-2003 worksheet 0 clsid
  134. !:mime application/vnd.ms-excel
  135. # https://www.macdisk.com/macsigen.php XLS5 for Excel 5
  136. !:apple ????XLS9
  137. !:ext xls
  138. #
  139. # URL: http://fileformats.archiveteam.org/wiki/PPT
  140. # Second directory entry name Object1 Object12 Object35
  141. >>>>128 lestring16 Object : Microsoft PowerPoint 4 presentation
  142. !:mime application/vnd.ms-powerpoint
  143. # https://www.macdisk.com/macsigen.php
  144. !:apple ????PPT3
  145. !:ext ppt
  146. #
  147. # URL: https://www.msoutlook.info/question/164
  148. # Second directory entry name __CollDataStm
  149. >>>>128 lestring16 __CollDataStm : Microsoft Outlook Send Receive Settings
  150. #!:mime application/vnd.ms-outlook
  151. !:mime application/x-ms-srs
  152. # %APPDATA%\Microsoft\Outlook\Outlook.srs
  153. !:ext srs
  154. #
  155. # URL: https://www.file-extensions.org/cag-file-extension
  156. # Second directory entry name Category
  157. >>>>128 lestring16 Category : Microsoft Clip Art Gallery
  158. #!:mime application/x-ole-storage
  159. !:mime application/x-ms-cag
  160. !:apple MScgCGdb
  161. !:ext cag/
  162. #
  163. # URL: https://www.filesuffix.com/de/extension/rra
  164. # 3rd directory entry name StrIndex_StringTable
  165. >>>>256 lestring16 StrIndex_StringTable : Windows temporarily installer
  166. #!:mime application/x-ole-storage
  167. !:mime application/x-ms-rra
  168. !:ext rra
  169. #
  170. # URL: https://www.forensicswiki.org/wiki/Jump_Lists
  171. # 3rd directory entry name DestList
  172. >>>>256 lestring16 DestList : Windows jump list
  173. #!:mime application/x-ole-storage
  174. !:mime application/x-ms-jumplist
  175. # %APPDATA%\Microsoft\Windows\Recent\AutomaticDestinations\*.automaticDestinations-ms
  176. !:ext automaticDestinations-ms
  177. #
  178. # URL: https://en.wikipedia.org/wiki/Windows_thumbnail_cache
  179. # Second directory entry name 256_
  180. >>>>128 lestring16 256_ : Windows thumbnail database 256
  181. #!:mime application/x-ole-storage
  182. !:mime application/x-ms-thumbnail
  183. # Thumbs.db
  184. !:ext db
  185. >>>>128 lestring16 96_ : Windows thumbnail database 96
  186. !:mime application/x-ms-thumbnail
  187. !:ext db
  188. # 3rd directory entry name Catalog_
  189. >>>>256 lestring16 Catalog : Windows thumbnail database
  190. !:mime application/x-ms-thumbnail
  191. !:ext db
  192. #
  193. # URL: https://support.microsoft.com/en-us/help/300887/how-to-use-system-information-msinfo32-command-line-tool-switches
  194. # Note: older Microsoft Systeminfo (MSInfo Configuration File of msinfo32); newer use xml based
  195. # Second directory entry name Control000
  196. >>>>128 lestring16 Control000 : Microsoft old Systeminfo
  197. #!:mime application/x-ole-storage
  198. !:mime application/x-ms-info
  199. !:ext nfo
  200. #
  201. # URL: http://fileformats.archiveteam.org/wiki/Corel_Print_House
  202. # Second directory entry name Thumbnail
  203. >>>>128 lestring16 Thumbnail : Corel PrintHouse image
  204. #!:mime application/x-ole-storage
  205. !:mime application/x-corel-cph
  206. !:ext cph
  207. # 3rd directory entry name Thumbnail
  208. >>>>256 lestring16 Thumbnail : Corel PrintHouse image
  209. !:mime application/x-corel-cph
  210. !:ext cph
  211. # URL: http://fileformats.archiveteam.org/wiki/Corel_Gallery
  212. # Note: format since Gallery 2; sometimes called Corel Multimedia Manager Album
  213. # third directory entry name _INFO_
  214. >>>>256 lestring16 _INFO_ : Corel Gallery
  215. # second directory entry name _ITEM_ or _DATA_
  216. # later directory entry names: _ALBUM_ _THUMBNAIL_
  217. #!:mime application/x-ole-storage
  218. !:mime application/x-corel-gal
  219. !:ext gal
  220. #
  221. # URL: https://en.wikipedia.org/wiki/Hangul_(word_processor)
  222. # Note: "HWP Document File" signature found in FileHeader
  223. # Second directory entry name FileHeader hint for Thinkfree Office document
  224. >>>>128 lestring16 FileHeader : Hangul (Korean) 5.0 Word Processor File
  225. #!:mime application/haansofthwp
  226. !:mime application/x-hwp
  227. # https://example-files.online-convert.com/document/hwp/example.hwp
  228. !:ext hwp
  229. #
  230. # URL: https://ask.libreoffice.org/en/question/26303/creating-new-themes-for-the-gallery-not-functioning/
  231. # Second directory entry name like dd2000 dd2001 dd2036 dd2060 dd2083
  232. >>>>128 lestring16 dd2 : StarOffice Gallery view
  233. #!:mime application/x-ole-storage
  234. !:mime application/x-star-sdv
  235. !:ext sdv
  236. # URL: https://en.wikipedia.org/wiki/SoftMaker_Office
  237. # second directory entry name Current User
  238. >>>>128 lestring16 Current\ User : SoftMaker
  239. # third directory entry name SMNativeObjData
  240. >>>>>256 lestring16 SMNativeObjData
  241. # 5th directory entry name PowerPoint
  242. >>>>>>512 lestring16 PowerPoint PowerPoint presentation or template
  243. !:mime application/vnd.ms-powerpoint
  244. !:ext ppt/pps/pot
  245. # 4th directory entry name PowerPoint
  246. >>>>>384 lestring16 PowerPoint Presentations or template
  247. # http://extension.nirsoft.net/prv
  248. !:mime application/vnd.softmaker.presentations
  249. !:ext prd/prv
  250. # third directory entry name like Current User
  251. >>>>256 lestring16 Current\ User : SoftMaker
  252. # 5th directory entry name PowerPoint
  253. >>>>>512 lestring16 PowerPoint Presentations or template
  254. # http://extension.nirsoft.net/prd
  255. !:mime application/vnd.softmaker.presentations
  256. !:ext prd/prv
  257. # 2nd directory entry name Pictures
  258. >>>>>>128 lestring16 Pictures with pictures
  259. # remaining null clsid
  260. >>>>128 default x : UNKNOWN
  261. # second directory entry name like VisioDocument Control000
  262. >>>>>128 lestring16 x with names %.20s
  263. # third directory entry like WordDocument
  264. >>>>>256 lestring16 x %.20s
  265. # forth
  266. >>>>>384 lestring16 x %.20s
  267. !:mime application/x-ole-storage
  268. # look for known clsid GUID
  269. # - Visio documents
  270. # URL: http://fileformats.archiveteam.org/wiki/Visio
  271. # Last update on 10/23/2006 by Lester Hightower, 07/20/2019 by Joerg Jenderek
  272. >>88 ubequad 0xc000000000000046 : Microsoft
  273. >>>80 ubequad 0x131a020000000000 Visio 2000-2002 Document, stencil or template
  274. !:mime application/vnd.visio
  275. # VSD~Drawing VSS~Stencil VST~Template
  276. !:ext vsd/vss/vst
  277. >>>80 ubequad 0x141a020000000000 Visio 2003-2010 Document, stencil or template
  278. !:mime application/vnd.visio
  279. !:ext vsd/vss/vst
  280. #
  281. # URL: http://fileformats.archiveteam.org/wiki/Windows_Installer
  282. >>>80 ubequad 0x84100c0000000000 Windows Installer Package
  283. !:mime application/x-msi
  284. #!:mime application/x-ms-win-installer
  285. !:ext msi
  286. >>>80 ubequad 0x86100c0000000000 Windows Installer Patch
  287. # ??
  288. !:mime application/x-wine-extension-msp
  289. #!:mime application/x-ms-msp
  290. !:ext msp
  291. #
  292. # URL: http://fileformats.archiveteam.org/wiki/DOC
  293. >>>80 ubequad 0x0009020000000000 Word 6-95 document or template
  294. !:mime application/msword
  295. # for template MSWDW8TN
  296. !:apple MSWDWDBN
  297. !:ext doc/dot
  298. >>>80 ubequad 0x0609020000000000 Word 97-2003 document or template
  299. !:mime application/msword
  300. !:apple MSWDWDBN
  301. # dot for template; no extension on Macintosh
  302. !:ext doc/dot/
  303. #
  304. # URL: http://fileformats.archiveteam.org/wiki/Microsoft_Works_Word_Processor
  305. >>>80 ubequad 0x0213020000000000 Works 3-4 document or template
  306. !:mime application/vnd.ms-works
  307. !:apple ????AWWP
  308. # ps for template https://filext.com/file-extension/PS bps for backup
  309. !:ext wps/ps/bps
  310. #
  311. # URL: http://fileformats.archiveteam.org/wiki/Microsoft_Works_Database
  312. >>>80 ubequad 0x0313020000000000 Works 3-4 database or template
  313. !:mime application/vnd.ms-works-db
  314. # https://www.macdisk.com/macsigen.php
  315. !:apple ????AWDB
  316. # db for template www.file-extensions.org/db-file-extension-microsoft-works-data bdb for backup
  317. !:ext wdb/db/bdb
  318. #
  319. # URL: https://en.wikipedia.org/wiki/Microsoft_Excel
  320. >>>80 ubequad 0x1008020000000000 Excel 5-95 worksheet, addin or template
  321. !:mime application/vnd.ms-excel
  322. # https://www.macdisk.com/macsigen.php
  323. !:apple ????XLS5
  324. # worksheet/addin/template/no extension on Macintosh
  325. !:ext xls/xla/xlt/
  326. #
  327. >>>80 ubequad 0x2008020000000000 Excel 97-2003
  328. !:mime application/vnd.ms-excel
  329. # https://www.macdisk.com/macsigen.php XLS5 for Excel 5
  330. !:apple ????XLS9
  331. # 3rd directory entry name
  332. >>>>256 lestring16 _VBA_PROJECT_CUR addin
  333. !:ext xla/
  334. # 4th directory entry name
  335. >>>>384 lestring16 _VBA_PROJECT_CUR addin
  336. !:ext xla
  337. #!:ext xla/
  338. >>>>256 default x worksheet or template
  339. !:ext xls/xlt
  340. #!:ext xls/xlt/
  341. #
  342. # URL: http://fileformats.archiveteam.org/wiki/OLE2
  343. >>>80 ubequad 0x0b0d020000000000 Outlook 97-2003 item
  344. #>>>80 ubequad 0x0b0d020000000000 Outlook 97-2003 Message
  345. #!:mime application/vnd.ms-outlook
  346. !:mime application/x-ms-msg
  347. !:ext msg
  348. # URL: https://wiki.fileformat.com/email/oft/
  349. >>>80 ubequad 0x46f0060000000000 Outlook 97-2003 item template
  350. #!:mime application/vnd.ms-outlook
  351. !:mime application/x-ms-oft
  352. !:ext oft
  353. #
  354. # URL: http://fileformats.archiveteam.org/wiki/PPT
  355. >>>80 ubequad 0x5148040000000000 PowerPoint 4.0 presentation
  356. !:mime application/vnd.ms-powerpoint
  357. # https://www.macdisk.com/macsigen.php
  358. !:apple ????PPT3
  359. !:ext ppt
  360. #??
  361. # URL: http://www.checkfilename.com/view-details/Microsoft-Works/RespageIndex/0/sTab/2/
  362. >>88 ubequad 0xa29a00aa004a1a72 : Microsoft
  363. # URL: http://fileformats.archiveteam.org/wiki/Microsoft_Works_Word_Processor
  364. >>>80 ubequad 0xc2dbcd28e20ace11 Works 4 document
  365. !:mime application/vnd.ms-works
  366. !:apple ????AWWP
  367. !:ext wps
  368. #
  369. # URL: http://fileformats.archiveteam.org/wiki/Microsoft_Works_Database
  370. >>>80 ubequad 0xc3dbcd28e20ace11 Works 4 database
  371. !:mime application/vnd.ms-works-db
  372. !:apple ????AWDB
  373. !:ext wdb/bdb
  374. #??
  375. >>88 ubequad 0xa40700c04fb932ba : Microsoft
  376. # URL: http://fileformats.archiveteam.org/wiki/Microsoft_Works_Word_Processor
  377. >>>80 ubequad 0xb25aa40e0a9ed111 Works 5-6 document
  378. !:mime application/vnd.ms-works
  379. !:apple ????AWWP
  380. !:ext wps
  381. # From: Joerg Jenderek
  382. # URL: https://en.wikipedia.org/wiki/Microsoft_Works
  383. # Reference: http://fileformats.archiveteam.org/wiki/Microsoft_Compound_File
  384. # Note: probably version 6 and 7
  385. # organize pictures like JPFG images in streams __cf1 with names like
  386. # 001.JPG, 002.JPG ... in streams __fname
  387. >>88 ubequad 0xa1c800c04f612452 : Microsoft
  388. >>>80 ubequad 0xc0c7266eb98cd311 Works portfolio
  389. # 2nd directory entry name PfOrder, 3rd __LastID and 4th __SizeUsed
  390. #!:mime application/x-ole-storage
  391. # https://www.iana.org/assignments/media-types/application/vnd.ms-works
  392. !:mime application/vnd.ms-works
  393. # https://extension.nirsoft.net/wsb
  394. # like: wsbsamp.wsb WORKS2003_CD:\MSWorks\Common\Sammlung.wsb
  395. !:ext wsb
  396. #??
  397. # URL: http://fileformats.archiveteam.org/wiki/Microsoft_Publisher
  398. >>88 ubequad 0x00c0000000000046 : Microsoft
  399. >>>80 ubequad 0x0112020000000000 Publisher
  400. !:mime application/vnd.ms-publisher
  401. !:ext pub
  402. #
  403. # URL: http://fileformats.archiveteam.org/wiki/PPT
  404. #??
  405. >>88 ubequad 0xa90300aa00510ea3 : Microsoft
  406. >>>80 ubequad 0x70ae7bea3bfbcd11 PowerPoint 95 presentation
  407. !:mime application/vnd.ms-powerpoint
  408. # https://www.macdisk.com/macsigen.php
  409. !:apple ????PPT3
  410. !:ext ppt/pot
  411. #??
  412. >>88 ubequad 0x86ea00aa00b929e8 : Microsoft
  413. >>>80 ubequad 0x108d81649b4fcf11 PowerPoint 97-2003 presentation or template
  414. !:mime application/vnd.ms-powerpoint
  415. !:apple ????PPT3
  416. # /autostart/template
  417. !:ext ppt/pps/pot
  418. #
  419. # URL: https://en.wikipedia.org/wiki/Microsoft_Project
  420. #??
  421. >>88 ubequad 0xbe1100c04fb6faf1 : Microsoft
  422. >>>80 ubequad 0x3a8fb774c8c8d111 Project
  423. !:mime application/vnd.ms-project
  424. !:ext mpp
  425. #
  426. # URL: http://fileformats.archiveteam.org/wiki/WordPerfect
  427. # Reference: http://fileformats.archiveteam.org/wiki/Microsoft_Compound_File
  428. # https://github.com/OneWingedShark/WordPerfect/
  429. # blob/master/doc/SDK_Help/FileFormats/WPFF_DocumentStructure.htm
  430. # From: Joerg Jenderek
  431. # Note: internal version x.2 or 2.2 like in embedded ole6-PerfectOffice_MAIN.wpd
  432. # 3rd directory entry name PerfectOffice_OBJECT and 2nd PerfectOffice_MAIN,
  433. # which contains WordPerfect document \xffWPC signature handled by ./wordprocessors
  434. >>88 ubequad 0x19370000929679cd : WordPerfect 7
  435. >>>80 ubequad 0xff739851ad2d2002 Document
  436. !:mime application/vnd.wordperfect
  437. #!:apple ????WPC?
  438. # https://fossies.org/linux/wp2latex/test/ole6.wpd
  439. !:ext wpd
  440. #>>>>0 search/0xc01/s \xffWPC \b, WPC SIGNATURE
  441. # inspect embedded WordPerfect document by ./wordprocessors with 1 space at end
  442. #>>>>>&0 indirect x \b; contains
  443. # GRR: the above expression does not work correctly
  444. #
  445. # URL: http://fileformats.archiveteam.org/wiki/SHW_(Corel)
  446. #???
  447. >>88 ubequad 0x99ae04021c007002 : WordPerfect
  448. >>>80 ubequad 0x62fe2e4099191b10 7-X3 presentation
  449. !:mime application/x-corelpresentations
  450. #!:mime application/x-shw-viewer
  451. #!:mime image/x-presentations
  452. !:ext shw
  453. #
  454. # URL: http://www.checkfilename.com/view-details/WordPerfect-Office-X3/RespageIndex/0/sTab/2/
  455. >>>80 ubequad 0x60fe2e4099191b10 9 Graphic
  456. #!:mime application/x-wpg
  457. #!:mime image/x-wordperfect-graphics
  458. !:mime image/x-wpg
  459. # https://www.macdisk.com/macsigen.php "WPC2" for Wordperfect 2 *.wpd
  460. !:apple ????WPC9
  461. !:ext wpg
  462. #
  463. # URL: http://fileformats.archiveteam.org/wiki/StarOffice_binary_formats
  464. >>88 ubequad 0x996104021c007002 : StarOffice
  465. >>>80 ubequad 0x407e5cdc5cb31b10 StarWriter 3.0 document or template
  466. # https://www.openoffice.org/framework/documentation/mimetypes/mimetypes.html
  467. !:mime application/x-starwriter
  468. !:ext sdw/vor
  469. #
  470. >>>80 ubequad 0xa03f543fa6b61b10 StarCalc 3.0 spreadsheet or template
  471. !:mime application/x-starcalc
  472. !:ext sdc/vor
  473. #
  474. >>>80 ubequad 0xe0aa10af6db31b10 StarDraw 3.0 drawing or template
  475. !:mime application/x-starimpress
  476. #!:mime application/x-stardraw
  477. # sda ??
  478. !:ext sdd/sda/vor
  479. #??
  480. >>88 ubequad 0x89cb008029e4b0b1 : StarOffice
  481. >>>80 ubequad 0x41d461633542d011 StarCalc 4.0 spreadsheet or template
  482. !:mime application/x-starcalc
  483. !:ext sdc/vor
  484. #
  485. >>>80 ubequad 0x61b8a5c6d685d111 StarCalc 5.0 spreadsheet or template
  486. !:mime application/vnd.stardivision.cal
  487. !:ext sdc/vor
  488. #
  489. >>>80 ubequad 0xc03c2d011642d011 StarImpress 4.0 presentation or template
  490. !:mime application/x-starimpress
  491. !:ext sdd/vor
  492. #??
  493. >>88 ubequad 0xb12a04021c007002 : StarOffice
  494. >>>80 ubequad 0x600459d4fd351c10 StarMath 3.0
  495. !:mime application/x-starmath
  496. !:ext smf
  497. #??
  498. >>88 ubequad 0x8e2c00001b4cc711 : StarOffice
  499. >>>80 ubequad 0xe0999cfb6d2c1c10 StarChart 3.0
  500. !:mime application/x-starchart
  501. !:ext sds
  502. #??
  503. >>88 ubequad 0xa45e00a0249d57b1 : StarOffice
  504. >>>80 ubequad 0xb0e9048b0e42d011 StarWriter 4.0 document or template
  505. !:mime application/x-starwriter
  506. !:ext sdw/vor
  507. #??
  508. >>88 ubequad 0x89ca008029e4b0b1 : StarOffice
  509. >>>80 ubequad 0xe1b7b3022542d011 StarMath 4.0
  510. !:mime application/x-starmath
  511. !:ext smf
  512. #
  513. >>>80 ubequad 0xe0b7b3022542d011 StarChart 4.0
  514. !:mime application/x-starchart
  515. !:ext sds
  516. #??
  517. >>88 ubequad 0xa53f00a0249d57b1 : StarOffice
  518. >>>80 ubequad 0x70c90a340de3d011 Master 4.0 document
  519. !:mime application/x-starwriter-global
  520. !:ext sgl
  521. #??
  522. >>88 ubequad 0x89d0008029e4b0b1 : StarOffice
  523. >>>80 ubequad 0x40e6b5ffde85d111 StarMath 5.0
  524. !:mime application/vnd.stardivision.math
  525. !:ext smf
  526. #
  527. >>>80 ubequad 0xa005892ebd85d111 StarDraw 5.0 drawing or template
  528. !:mime application/vnd.stardivision.draw
  529. !:ext sda/vor
  530. #
  531. >>>80 ubequad 0x21725c56bc85d111 StarImpress 5.0 presentation or template
  532. !:mime application/vnd.stardivision.impress
  533. # sda is used for what?
  534. !:ext sdd/vor/sda
  535. #
  536. >>>80 ubequad 0x214388bfdd85d111 StarChart 5.0
  537. !:mime application/vnd.stardivision.chart
  538. !:ext sds
  539. # ??
  540. >>88 ubequad 0xaab4006097da561a : StarOffice
  541. >>>80 ubequad 0xd1f90cc2ae85d111 StarWriter 5.0 document or template
  542. !:mime application/vnd.stardivision.writer
  543. !:ext sdw/vor
  544. #
  545. >>>80 ubequad 0xd3f90cc2ae85d111 Master 5.0 document
  546. !:mime application/vnd.stardivision.writer-global
  547. !:ext sgl
  548. #??
  549. # URL: http://fileformats.archiveteam.org/wiki/FlashPix
  550. >>88 ubequad 0x855300aa00a1f95b : Kodak
  551. >>>80 ubequad 0x0067615654c1ce11 FlashPIX Image
  552. !:mime image/vnd.fpx
  553. !:apple ????FPix
  554. !:ext fpx
  555. # URL: https://en.wikipedia.org/wiki/SoftMaker_Office
  556. >>88 ubequad 0x95f600a0cc3cca14 : PlanMaker
  557. >>>80 ubequad 0x9174088a6452d411 document or template
  558. !:mime application/vnd.softmaker.planmaker
  559. # pmv for template https://www.file-extensions.org/pmv-file-extension
  560. !:ext pmd/pmv
  561. # remaining non null clsid
  562. >>88 default x : UNKNOWN
  563. !:mime application/x-ole-storage
  564. >>>80 ubequad !0 \b, clsid %#16.16llx
  565. >>>88 ubequad x \b%16.16llx