wordprocessors 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321
  1. #------------------------------------------------------------------------------
  2. # $File: wordprocessors,v 1.24 2020/05/22 19:28:47 christos Exp $
  3. # wordprocessors: file(1) magic fo word processors.
  4. #
  5. ####### PWP file format used on Smith Corona Personal Word Processors:
  6. 2 string \040\040\040\040\040\040\040\040\040\040\040ML4D\040'92 Smith Corona PWP
  7. >24 byte 2 \b, single spaced
  8. >24 byte 3 \b, 1.5 spaced
  9. >24 byte 4 \b, double spaced
  10. >25 byte 0x42 \b, letter
  11. >25 byte 0x54 \b, legal
  12. >26 byte 0x46 \b, A4
  13. # URL: http://fileformats.archiveteam.org/wiki/Microsoft_Works_Word_Processor
  14. # reference: http://mark0.net/download/triddefs_xml.7z
  15. # /defs/w/wps-works-dos.trid.xml
  16. # From: Joerg Jenderek
  17. # Note: older non OLE 2 Compound based versions
  18. 0 ubeshort =0x01FE
  19. >112 ubeshort =0x0100 Microsoft Works 1-3 (DOS) or 2 (Windows) document
  20. # title like THE GREAT KHAN GAME
  21. >>0x100 string x %s
  22. !:mime application/vnd-ms-works
  23. #!:mime application/x-msworks
  24. # https://www.macdisk.com/macsigen.php
  25. !:apple ????AWWP
  26. !:ext wps
  27. # Corel/WordPerfect
  28. 0 string \xffWPC
  29. # WordPerfect
  30. >8 byte 1
  31. >>9 byte 1 WordPerfect macro
  32. >>9 byte 2 WordPerfect help file
  33. >>9 byte 3 WordPerfect keyboard file
  34. >>9 byte 10 WordPerfect document
  35. >>9 byte 11 WordPerfect dictionary
  36. >>9 byte 12 WordPerfect thesaurus
  37. >>9 byte 13 WordPerfect block
  38. >>9 byte 14 WordPerfect rectangular block
  39. >>9 byte 15 WordPerfect column block
  40. >>9 byte 16 WordPerfect printer data
  41. >>9 byte 19 WordPerfect printer data
  42. >>9 byte 20 WordPerfect driver resource data
  43. >>9 byte 22 WordPerfect graphic image
  44. >>9 byte 23 WordPerfect hyphenation code
  45. >>9 byte 24 WordPerfect hyphenation data
  46. >>9 byte 25 WordPerfect macro resource data
  47. >>9 byte 27 WordPerfect hyphenation lex
  48. >>9 byte 29 WordPerfect wordlist
  49. >>9 byte 30 WordPerfect equation resource data
  50. >>9 byte 33 WordPerfect spell rules
  51. >>9 byte 34 WordPerfect dictionary rules
  52. >>9 byte 39 WordPerfect spell rules (Microlytics)
  53. >>9 byte 43 WordPerfect settings file
  54. >>9 byte 44 WordPerfect 3.5 document
  55. >>9 byte 45 WordPerfect 4.2 document
  56. >>9 byte 69 WordPerfect dialog file
  57. >>9 byte 76 WordPerfect button bar
  58. >>9 default x
  59. >>>9 byte x Corel WordPerfect: Unknown filetype %d
  60. # Corel Shell
  61. >8 byte 2
  62. >>9 byte 1 Corel shell macro
  63. >>9 byte 10 Corel shell definition
  64. >>9 default x
  65. >>>9 byte x Corel Shell: Unknown filetype %d
  66. # Corel Notebook
  67. >8 byte 3
  68. >>9 byte 1 Corel Notebook macro
  69. >>9 byte 2 Corel Notebook help file
  70. >>9 byte 3 Corel Notebook keyboard file
  71. >>9 byte 10 Corel Notebook definition
  72. >>9 default x
  73. >>>9 byte x Corel Notebook: Unknown filetype %d
  74. # Corel Calculator
  75. >8 byte 4
  76. >>9 byte 2 Corel Calculator help file
  77. >>9 default x
  78. >>>9 byte x Corel Calculator: Unknown filetype %d
  79. # Corel File Manager
  80. >8 byte 5
  81. >>9 default x
  82. >>>9 byte x Corel File Manager: Unknown filetype %d
  83. # Corel Calendar
  84. >8 byte 6
  85. >>9 byte 2 Corel Calendar help file
  86. >>9 byte 10 Corel Calendar data file
  87. >>9 default x
  88. >>>9 byte x Corel Calendar: Unknown filetype %d
  89. # Corel Program Editor/Ed Editor
  90. >8 byte 7
  91. >>9 byte 1 Corel Editor macro
  92. >>9 byte 2 Corel Editor help file
  93. >>9 byte 3 Corel Editor keyboard file
  94. >>9 byte 25 Corel Editor macro resource file
  95. >>9 default x
  96. >>>9 byte x Corel Program Editor/Ed Editor: Unknown filetype %d
  97. # Corel Macro Editor
  98. >8 byte 8
  99. >>9 byte 1 Corel Macro editor macro
  100. >>9 byte 2 Corel Macro editor help file
  101. >>9 byte 3 Corel Macro editor keyboard file
  102. >>9 default x
  103. >>>9 byte x Corel Macro Editor: Unknown filetype %d
  104. # Corel Plan Perfect
  105. >8 byte 9
  106. >>9 default x
  107. >>>9 byte x Corel Plan Perfect: Unknown filetype %d
  108. # Corel DataPerfect
  109. >8 byte 10
  110. # CHECK: Don't these belong into product 9?
  111. >>9 byte 1 Corel PlanPerfect macro
  112. >>9 byte 2 Corel PlanPerfect help file
  113. >>9 byte 3 Corel PlanPerfect keyboard file
  114. >>9 byte 10 Corel PlanPerfect worksheet
  115. >>9 byte 15 Corel PlanPerfect printer definition
  116. >>9 byte 18 Corel PlanPerfect graphic definition
  117. >>9 byte 19 Corel PlanPerfect data
  118. >>9 byte 20 Corel PlanPerfect temporary printer
  119. >>9 byte 25 Corel PlanPerfect macro resource data
  120. >>9 default x
  121. >>>9 byte x Corel DataPerfect: Unknown filetype %d
  122. # Corel Mail
  123. >8 byte 11
  124. >>9 byte 2 Corel Mail help file
  125. >>9 byte 5 Corel Mail distribution list
  126. >>9 byte 10 Corel Mail out box
  127. >>9 byte 11 Corel Mail in box
  128. >>9 byte 20 Corel Mail users archived mailbox
  129. >>9 byte 21 Corel Mail archived message database
  130. >>9 byte 22 Corel Mail archived attachments
  131. >>9 default x
  132. >>>9 byte x Corel Mail: Unknown filetype %d
  133. # Corel Printer
  134. >8 byte 12
  135. >>9 byte 11 Corel Printer temporary file
  136. >>9 default x
  137. >>>9 byte x Corel Printer: Unknown filetype %d
  138. # Corel Scheduler
  139. >8 byte 13
  140. >>9 byte 2 Corel Scheduler help file
  141. >>9 byte 10 Corel Scheduler in file
  142. >>9 byte 11 Corel Scheduler out file
  143. >>9 default x
  144. >>>9 byte x Corel Scheduler: Unknown filetype %d
  145. # Corel WordPerfect Office
  146. >8 byte 14
  147. >>9 byte 10 Corel GroupWise settings file
  148. >>9 byte 17 Corel GroupWise directory services
  149. >>9 byte 43 Corel GroupWise settings file
  150. >>9 default x
  151. >>>9 byte x Corel WordPerfect Office: Unknown filetype %d
  152. # Corel DrawPerfect
  153. >8 byte 15
  154. >>9 default x
  155. >>>9 byte x Corel DrawPerfect: Unknown filetype %d
  156. # Corel LetterPerfect
  157. >8 byte 16
  158. >>9 default x
  159. >>>9 byte x Corel LetterPerfect: Unknown filetype %d
  160. # Corel Terminal
  161. >8 byte 17
  162. >>9 byte 10 Corel Terminal resource data
  163. >>9 byte 11 Corel Terminal resource data
  164. >>9 byte 43 Corel Terminal resource data
  165. >>9 default x
  166. >>>9 byte x Corel Terminal: Unknown filetype %d
  167. # Corel loadable file
  168. >8 byte 18
  169. >>9 byte 10 Corel loadable file
  170. >>9 byte 11 Corel GUI loadable text
  171. >>9 byte 12 Corel graphics resource data
  172. >>9 byte 13 Corel printer settings file
  173. >>9 byte 14 Corel port definition file
  174. >>9 byte 15 Corel print queue parameters
  175. >>9 byte 16 Corel compressed file
  176. >>9 default x
  177. >>>9 byte x Corel loadable file: Unknown filetype %d
  178. >>15 byte 0 \b, optimized for Intel
  179. >>15 byte 1 \b, optimized for Non-Intel
  180. # Network service
  181. >8 byte 20
  182. >>9 byte 10 Corel Network service msg file
  183. >>9 byte 11 Corel Network service msg file
  184. >>9 byte 12 Corel Async gateway login msg
  185. >>9 byte 14 Corel GroupWise message file
  186. >>9 default x
  187. >>>9 byte x Corel Network service: Unknown filetype %d
  188. # GroupWise
  189. >8 byte 31
  190. >>9 byte 20 GroupWise admin domain database
  191. >>9 byte 21 GroupWise admin host database
  192. >>9 byte 23 GroupWise admin remote host database
  193. >>9 byte 24 GroupWise admin ADS deferment data file
  194. >>9 default x
  195. >>>9 byte x GroupWise: Unknown filetype %d
  196. # IntelliTAG
  197. >8 byte 33
  198. >>9 byte 10 IntelliTAG (SGML) compiled DTD
  199. >>9 default x
  200. >>>9 byte x IntelliTAG: Unknown filetype %d
  201. # everything else
  202. >8 default x
  203. >>8 byte x Unknown Corel/Wordperfect product %d,
  204. >>>9 byte x file type %d
  205. >10 byte 0 \b, v5.
  206. >10 byte !0 \b, v%d.
  207. >11 byte x \b%d
  208. # Hangul (Korean) Word Processor File
  209. 0 string HWP\ Document\ File Hangul (Korean) Word Processor File 3.0
  210. # CosmicBook, from Benoit Rouits
  211. 0 string CSBK Ted Neslson's CosmicBook hypertext file
  212. 2 string EYWR AmigaWriter file
  213. # chi: file(1) magic for ChiWriter files
  214. 0 string \\1cw\ ChiWriter file
  215. >5 string >\0 version %s
  216. 0 string \\1cw ChiWriter file
  217. # Quark Express from https://www.garykessler.net/library/file_sigs.html
  218. 2 string IIXPR3 Intel Quark Express Document (English)
  219. 2 string IIXPRa Intel Quark Express Document (Korean)
  220. 2 string MMXPR3 Motorola Quark Express Document (English)
  221. !:mime application/x-quark-xpress-3
  222. 2 string MMXPRa Motorola Quark Express Document (Korean)
  223. # adobe indesign (document, whatever...) from querkan
  224. 0 belong 0x0606edf5 Adobe InDesign
  225. >16 string DOCUMENT Document
  226. #------------------------------------------------------------------------------
  227. # ichitaro456: file(1) magic for Just System Word Processor Ichitaro
  228. #
  229. # Contributor kenzo-:
  230. # Reversed-engineered JS Ichitaro magic numbers
  231. #
  232. 0 string DOC
  233. >43 byte 0x14 Just System Word Processor Ichitaro v4
  234. !:mime application/x-ichitaro4
  235. >144 string JDASH application/x-ichitaro4
  236. 0 string DOC
  237. >43 byte 0x15 Just System Word Processor Ichitaro v5
  238. !:mime application/x-ichitaro5
  239. 0 string DOC
  240. >43 byte 0x16 Just System Word Processor Ichitaro v6
  241. !:mime application/x-ichitaro6
  242. # Type: Freemind mindmap documents
  243. # From: Jamie Thompson <debian-bugs@jamie-thompson.co.uk>
  244. 0 string/w \<map\ version Freemind document
  245. !:mime application/x-freemind
  246. # Type: Freeplane mindmap documents
  247. # From: Felix Natter <fnatter@gmx.net>
  248. 0 string/w \<map\ version="freeplane Freeplane document
  249. !:mime application/x-freeplane
  250. # Type: Scribus
  251. # From: Werner Fink <werner@suse.de>
  252. 0 string \<SCRIBUSUTF8\ Version Scribus Document
  253. 0 string \<SCRIBUSUTF8NEW\ Version Scribus Document
  254. !:mime application/x-scribus
  255. # help files .hlp compiled from html and used by gfxboot added by Joerg Jenderek
  256. # markups page=0x04,label=0x12, followed by strings like "opt" or "main" and title=0x14
  257. 0 ulelong&0x8080FFFF 0x00001204 gfxboot compiled html help file
  258. # From: Joerg Jenderek
  259. # URL: https://en.wikipedia.org/wiki/StarOffice
  260. # Note: used in Star-, Open- and Libre-Office
  261. # named as soffice.StarConfigFile.6 or OpenOffice.org configuration by others
  262. 0 ubeshort 0x0400
  263. #>(2.s+8) ubequad x \b, gap 0x%16.16llx
  264. # test for null value in gap after theme name maybe unreliable
  265. #>(2.s+9) ubyte 0 \b, 0-byte
  266. # look for keyword GALRESRV near the end
  267. # "C:\Program Files (x86)\StarOffice6.0\share\gallery\sg27.thm" Navigation, 238 objects
  268. #>0 search/8415 GALRESRV \b, GALRESRV found
  269. # "neues thema6.thm" MorePictures, 315 objects
  270. #>0 search/19299 GALRESRV \b, GALRESRV FOUND
  271. #>2 uleshort x \b, name length %u
  272. # skip file2147.chk by check for positive name length like for sg16.thm "3D"
  273. >2 uleshort >0 StarOffice Gallery theme
  274. !:mime application/x-stargallery-thm
  275. !:ext thm
  276. # gallery name
  277. >>2 pstring/h x %s
  278. # number of objects
  279. >>(2.s+4) ulelong x \b, %u object
  280. # plural s
  281. >>(2.s+4) ulelong !1 \bs
  282. # if available then display first object name
  283. >>(2.s+4) ulelong >0
  284. # partial file name, URL or internal name like "dd2*" of 1st object or RESRV
  285. >>>(2.s+11) pstring/h x \b, 1st %s
  286. # From: Joerg Jenderek
  287. # URL: http://fileformats.archiveteam.org/wiki/StarOffice_Gallery
  288. # Note: used in Star-, Open- and Libre-Office and found in directories like
  289. # %APPDATA%\Roaming\LibreOffice\4\user\gallery
  290. # $HOME/.config/libreoffice/4/user/gallery
  291. 0 string SGA3 StarOffice Gallery thumbnails
  292. # Unknown like 0x04000?0001000142
  293. #>4 ubequad x \b, UNKNOWN 0x%16.16llx
  294. #!:mime application/x-sdg
  295. !:mime application/x-stargallery-sdg
  296. !:ext sdg
  297. # display image magic for debugging purpose like 'BM'
  298. # looking like PC bitmap, Windows 3.x format with unknown compression
  299. #>11 string x \b, image magic '%-.2s'
  300. # inspect 1st GALLERY thumbnail magic by ./images with 1 space at end
  301. #>11 indirect x \b; contains