xref: /freebsd/contrib/file/magic/Magdir/wordprocessors (revision ae316d1d1cffd71ab7751f94e10118777a88e027)
1b6cee71dSXin LI
2b6cee71dSXin LI#------------------------------------------------------------------------------
3*ae316d1dSXin LI# $File: wordprocessors,v 1.39 2024/11/09 23:26:33 christos Exp $
4b6cee71dSXin LI# wordprocessors:  file(1) magic fo word processors.
5b6cee71dSXin LI#
6b6cee71dSXin LI####### PWP file format used on Smith Corona Personal Word Processors:
7b6cee71dSXin LI2	string	\040\040\040\040\040\040\040\040\040\040\040ML4D\040'92	Smith Corona PWP
8b6cee71dSXin LI>24	byte	2	\b, single spaced
9b6cee71dSXin LI>24	byte	3	\b, 1.5 spaced
10b6cee71dSXin LI>24	byte	4	\b, double spaced
11b6cee71dSXin LI>25	byte	0x42	\b, letter
12b6cee71dSXin LI>25	byte	0x54	\b, legal
13b6cee71dSXin LI>26	byte	0x46	\b, A4
14b6cee71dSXin LI
15d38c30c0SXin LI# URL:	http://fileformats.archiveteam.org/wiki/Microsoft_Works_Word_Processor
16d38c30c0SXin LI# reference:	http://mark0.net/download/triddefs_xml.7z
17d38c30c0SXin LI#		/defs/w/wps-works-dos.trid.xml
18d38c30c0SXin LI# From:	Joerg Jenderek
19d38c30c0SXin LI# Note:	older non OLE 2 Compound based versions
20d38c30c0SXin LI0	ubeshort	=0x01FE
21d38c30c0SXin LI>112	ubeshort	=0x0100		Microsoft Works 1-3 (DOS) or 2 (Windows) document
22d38c30c0SXin LI# title like THE GREAT KHAN GAME
23d38c30c0SXin LI>>0x100	string		x		%s
24d38c30c0SXin LI!:mime	application/vnd-ms-works
25d38c30c0SXin LI#!:mime	application/x-msworks
26d38c30c0SXin LI# https://www.macdisk.com/macsigen.php
27d38c30c0SXin LI!:apple	????AWWP
28d38c30c0SXin LI!:ext	wps
29d38c30c0SXin LI
30*ae316d1dSXin LI# From:		Joerg Jenderek
31*ae316d1dSXin LI# URL:		https://en.wikipedia.org/wiki/Microsoft_Publisher
32*ae316d1dSXin LI# Reference:	http://fileformats.archiveteam.org/wiki/Microsoft_Publisher
33*ae316d1dSXin LI# Note:		older non OLE 2 (./ole2compounddocs) Compound based version
34*ae316d1dSXin LI0	ubelong		=0xE7AC2C00	Microsoft Publisher (1.0)
35*ae316d1dSXin LI#!:mime	application/x-mspublisher
36*ae316d1dSXin LI# Not registered at IANA but
37*ae316d1dSXin LI# https://web.archive.org/web/20200930085807/https://reposcope.com/mimetype/application/vnd.ms-publisher
38*ae316d1dSXin LI!:mime	application/vnd.ms-publisher
39*ae316d1dSXin LI!:ext	pub
40*ae316d1dSXin LI
41*ae316d1dSXin LI# From:		Joerg Jenderek
42*ae316d1dSXin LI# URL:		http://fileformats.archiveteam.org/wiki/COSMI_MultiMedia
43*ae316d1dSXin LI#		https://en.wikipedia.org/wiki/Cosmi_Corporation
44*ae316d1dSXin LI# Reference:	http://mark0.net/download/triddefs_xml.7z/defs/c/cosmi.trid.xml
45*ae316d1dSXin LI# Note:		called "COSMI document (generic)" by TrID
46*ae316d1dSXin LI0	string/b	LCP		COSMI document
47*ae316d1dSXin LI#!:mime		application/octet-stream
48*ae316d1dSXin LI!:mime	application/x-cosmi
49*ae316d1dSXin LI# BCD~Business Card Maker BRO~Brochure Magic CRD~Greeting Card Magic DTP~Print Perfect PUB~Desktop Publisher
50*ae316d1dSXin LI!:ext		bcd/bro/crd/dtp/pub/
51*ae316d1dSXin LI
523e41d09dSXin LI# Corel/WordPerfect
53a2dfb722SXin LI# URL:		https://en.wikipedia.org/wiki/WordPerfect
54a2dfb722SXin LI# Reference:	https://github.com/OneWingedShark/WordPerfect/blob/master/doc/SDK_Help/FileFormats/WPFF_DocumentStructure.htm
55a2dfb722SXin LI#		http://mark0.net/download/triddefs_xml.7z/defs/w/wp-generic.trid.xml
563e41d09dSXin LI0	string	\xffWPC
573e41d09dSXin LI# WordPerfect
583e41d09dSXin LI>8	byte	1
59a2dfb722SXin LI# Reference:	http://mark0.net/download/triddefs_xml.7z/defs/w/wpm-macro.trid.xml
60a2dfb722SXin LI# Note:		there exist other macro variants
613e41d09dSXin LI>>9	byte	1	WordPerfect macro
62a2dfb722SXin LI#!:mime		application/octet-stream
63a2dfb722SXin LI!:mime		application/x-wordperfect-wpm
64a2dfb722SXin LI# like: ALTD.WPM ENDFOOT.WPM FOOTEND.WPM LABELS.WPM REVEALTX.WPM
65a2dfb722SXin LI!:ext		wpm
66a2dfb722SXin LI# Note:		used in WordPerfect 5.1; there exist other FIL variants
673e41d09dSXin LI>>9	byte	2	WordPerfect help file
68a2dfb722SXin LI#!:mime		application/octet-stream
69a2dfb722SXin LI!:mime		application/x-wordperfect-help
70a2dfb722SXin LI# like: WPHELP.FIL
71a2dfb722SXin LI!:ext		fil
72a2dfb722SXin LI# pointer to document area like: 10h
73a2dfb722SXin LI>>>4		ulelong	!0x10	\b, at %#x document area
743e41d09dSXin LI>>9	byte	3	WordPerfect keyboard file
75a2dfb722SXin LI#!:mime		application/octet-stream
76a2dfb722SXin LI!:mime		application/x-wordperfect-keyboard
77a2dfb722SXin LI!:ext		wpk
78a2dfb722SXin LI# no document area, so point to end of file; so this is file size like: 23381 2978 32835 3355 3775 919
79a2dfb722SXin LI>>>4		ulelong	x	\b, %u bytes
80a2dfb722SXin LI>>9	byte	4	WordPerfect VAX keyboard definition
81a2dfb722SXin LI#!:mime	application/octet-stream
82a2dfb722SXin LI!:mime	application/x-wordperfect-keyboard
83a2dfb722SXin LI#!:ext	foo
84a2dfb722SXin LI# URL:		http://fileformats.archiveteam.org/wiki/WordPerfect
85a2dfb722SXin LI# Reference:	http://mark0.net/download/triddefs_xml.7z/defs/w/wpd-doc-gen.trid.xml
863e41d09dSXin LI>>9	byte	10	WordPerfect document
87a2dfb722SXin LI# https://www.iana.org/assignments/media-types/application/vnd.wordperfect
88a2dfb722SXin LI!:mime		application/vnd.wordperfect
89a2dfb722SXin LI#!:apple		????WPC2
90a2dfb722SXin LI# TODO: distinguish different suffix
91a2dfb722SXin LI!:ext		wpd/wpt/wkb/icr/tut/sty/tst/crs
923e41d09dSXin LI>>9	byte	11	WordPerfect dictionary
933e41d09dSXin LI>>9	byte	12	WordPerfect thesaurus
943e41d09dSXin LI>>9	byte	13	WordPerfect block
953e41d09dSXin LI>>9	byte	14	WordPerfect rectangular block
963e41d09dSXin LI>>9	byte	15	WordPerfect column block
973e41d09dSXin LI>>9	byte	16	WordPerfect printer data
98a2dfb722SXin LI#!:mime		application/octet-stream
99a2dfb722SXin LI!:mime		application/x-wordperfect-prs
100a2dfb722SXin LI# like: STANDARD.PRS WORKBOOK.PRS
101a2dfb722SXin LI!:ext		prs
102a2dfb722SXin LI# like: "Standard Printer" "Workbook Printer"
103a2dfb722SXin LI>>>0x64		pstring/B	>A	"%s"
104a2dfb722SXin LI#>>9	byte	18	WordPerfect Prefix information file
105a2dfb722SXin LI# printer resource .ALL
1063e41d09dSXin LI>>9	byte	19	WordPerfect printer data
107a2dfb722SXin LI#!:mime		application/octet-stream
108a2dfb722SXin LI!:mime		application/x-wordperfect-all
109a2dfb722SXin LI!:ext		all
110a2dfb722SXin LI# display Resource
1113e41d09dSXin LI>>9	byte	20	WordPerfect driver resource data
112a2dfb722SXin LI#!:mime		application/octet-stream
113a2dfb722SXin LI!:mime		application/x-wordperfect-drs
114a2dfb722SXin LI# like: WPSMALL.DRS
115a2dfb722SXin LI!:ext		drs
116a2dfb722SXin LI# pointer to index area with string "smalldrs" like: 46h
117a2dfb722SXin LI>>>4		uleshort	!0x46	\b, at %#x index area
118a2dfb722SXin LI>>9	byte	21	WordPerfect Overlay file
119a2dfb722SXin LI#!:mime		application/octet-stream
120a2dfb722SXin LI!:mime		application/x-wordperfect-fil
121a2dfb722SXin LI# like: WP.FIL
122a2dfb722SXin LI!:ext		fil
123a2dfb722SXin LI# URL:		http://fileformats.archiveteam.org/wiki/WordPerfect_Graphics
124a2dfb722SXin LI# Reference:	http://mark0.net/download/triddefs_xml.7z/defs/b/bitmap-wpg.trid.xml
125a2dfb722SXin LI# Note:		called "WordPerfect Graphics bitmap" by TrID and
126a2dfb722SXin LI#		"WordPerfect Graphics Metafile" by DROID via x-fmt/395 fmt/1042
127a2dfb722SXin LI#		"WPG (Word Perfect Graphics)" by ImageMagick `identify -verbose BUTTRFLY.WPG`
1283e41d09dSXin LI>>9	byte	22	WordPerfect graphic image
129a2dfb722SXin LI# TODO: skip DROID x-fmt-395-signature-id-132.wpg by check for existing document area
130a2dfb722SXin LI#>>>4		ulelong	>15	WordPerfect_graphic_OK
131a2dfb722SXin LI#!:mime		application/octet-stream
132a2dfb722SXin LI# http://extension.nirsoft.net/wpg
133a2dfb722SXin LI!:mime		image/x-wordperfect-graphics
134a2dfb722SXin LI# https://reposcope.com/mimetype/application/x-wpg
135a2dfb722SXin LI#!:mime		application/x-wpg
136a2dfb722SXin LI# like: BUTTRFLY.WPG STAR-5.WPG input.wpg WORDPFCT.WPG
137a2dfb722SXin LI!:ext		wpg
138a2dfb722SXin LI# pointer to document area like: 10h 1Ah
139a2dfb722SXin LI>>>4		ulelong		!0x1A	\b, at %#x document area
1403e41d09dSXin LI>>9	byte	23	WordPerfect hyphenation code
1413e41d09dSXin LI>>9	byte	24	WordPerfect hyphenation data
1423e41d09dSXin LI>>9	byte	25	WordPerfect macro resource data
143a2dfb722SXin LI#!:mime		application/octet-stream
144a2dfb722SXin LI!:mime		application/x-wordperfect-mrs
145a2dfb722SXin LI# like: WP.MRS
146a2dfb722SXin LI!:ext		mrs
1473e41d09dSXin LI>>9	byte	27	WordPerfect hyphenation lex
1483e41d09dSXin LI>>9	byte	29	WordPerfect wordlist
1493e41d09dSXin LI>>9	byte	30	WordPerfect equation resource data
150a2dfb722SXin LI#!:mime		application/octet-stream
151a2dfb722SXin LI!:mime		application/x-wordperfect-qrs
152a2dfb722SXin LI# like: WQ.QRS wpDE.qrs wpen.qrs
153a2dfb722SXin LI!:ext		qrs
154a2dfb722SXin LI# jump to document area with some marker and equation
155a2dfb722SXin LI>>>(4.l)	ubyte	x
156a2dfb722SXin LI# equation like: "Fraction:  x OVER y"
157a2dfb722SXin LI>>>>&1		string	>A	(...%-.19s...)
158a2dfb722SXin LI# pointer to document area like: 17C4h
159a2dfb722SXin LI>>>4		ulelong	x	\b, at %#x document area
160a2dfb722SXin LI#>>9	byte	31	reserved
161a2dfb722SXin LI#>>9	byte	32	WordPerfect VAX .SET
1623e41d09dSXin LI>>9	byte	33	WordPerfect spell rules
1633e41d09dSXin LI>>9	byte	34	WordPerfect dictionary rules
164a2dfb722SXin LI#>>9	byte	35	reserved
165a2dfb722SXin LI# video resource device driver
166a2dfb722SXin LI# Note:		 filetype 26 for VRS and filetype 36 for WPD apparently is wrong
167a2dfb722SXin LI>>9	byte	36	WordPerfect Video Resource
168a2dfb722SXin LI#!:mime		application/octet-stream
169a2dfb722SXin LI!:mime		application/x-wordperfect-vrs
170a2dfb722SXin LI# like: STANDARD.VRS
171a2dfb722SXin LI!:ext		vrs
172a2dfb722SXin LI# like: "IBM CGA (& compatibles)"
173a2dfb722SXin LI>>>0x20		string	>A	"%.23s"
1743e41d09dSXin LI>>9	byte	39	WordPerfect spell rules (Microlytics)
175a2dfb722SXin LI#>>9	byte	40	reserved
176a2dfb722SXin LI>>9	byte	41	WordPerfect Install options
177a2dfb722SXin LI#!:mime		application/octet-stream
178a2dfb722SXin LI!:mime		application/x-wordperfect-ins
179a2dfb722SXin LI# like: WP51.INS
180a2dfb722SXin LI!:ext		ins
181a2dfb722SXin LI# probably default directory name like: "C:\WP51\"
182a2dfb722SXin LI>>>0x12		string	>A	"%.8s"
183a2dfb722SXin LI# maybe mouse driver for WP5.1
184a2dfb722SXin LI>>9	byte	42	WordPerfect Resource
185a2dfb722SXin LI#!:mime		application/octet-stream
186a2dfb722SXin LI!:mime		application/x-wordperfect-irs
187a2dfb722SXin LI# like: STANDARD.IRS
188a2dfb722SXin LI!:ext		irs
189a2dfb722SXin LI# like: "Mouse Driver (MOUSE.COM)"
190a2dfb722SXin LI>>>0x28		string	>A	"%.24s"
1913e41d09dSXin LI>>9	byte	43	WordPerfect settings file
192a2dfb722SXin LI# maybe Macintosh WP2.0 document
1933e41d09dSXin LI>>9	byte	44	WordPerfect 3.5 document
194a2dfb722SXin LI!:mime		application/vnd.wordperfect
195a2dfb722SXin LI!:apple		????WPD3
196a2dfb722SXin LI# like: WP3.wpd
197a2dfb722SXin LI!:ext		wpd
1983e41d09dSXin LI>>9	byte	45	WordPerfect 4.2 document
199a2dfb722SXin LI# External spell code module (WP5.1)
200a2dfb722SXin LI#>>9	byte	46	WordPerfect external spell
201a2dfb722SXin LI# external spell dictionary .LEX
202a2dfb722SXin LI#>>9	byte	47	WordPerfect external spell dictionary
203a2dfb722SXin LI# Macintosh SOFT graphics file (SOFT (Sequential Object Format)
204a2dfb722SXin LI#>>9	byte	48	WordPerfect SOFT graphics
205a2dfb722SXin LI#>>9	byte	49	reserved
206a2dfb722SXin LI#>>9	byte	50	reserved
207a2dfb722SXin LI# WPWin 5.1 Application Resource Library added for WPWin 5.1
208a2dfb722SXin LI#>>9	byte	51	WordPerfect application resource library
2093e41d09dSXin LI>>9	byte	69	WordPerfect dialog file
210a2dfb722SXin LI# From:		Joerg Jenderek
211a2dfb722SXin LI# Note:		found in sub directory WritingTools inside WordPerfect 2021 program directory
212a2dfb722SXin LI>>9	byte	70	WordPerfect Writing Tools
213a2dfb722SXin LI#!:mime	application/octet-stream
214a2dfb722SXin LI!:mime	application/x-wordperfect-cbt
215a2dfb722SXin LI# like: Wt13cbede.cbt Wt13cbeit.cbt Wt13cbefr.cbt WT21cbede.cbt Wt13cbeEN.CBD WT21cbeEN.CBD
216a2dfb722SXin LI!:ext	cbd/cbt
2173e41d09dSXin LI>>9	byte	76	WordPerfect button bar
2183e41d09dSXin LI>>9	default x
2193e41d09dSXin LI>>>9	byte	x	Corel WordPerfect: Unknown filetype %d
2203e41d09dSXin LI# Corel Shell
2213e41d09dSXin LI>8	byte	2
2223e41d09dSXin LI>>9	byte	1	Corel shell macro
2233e41d09dSXin LI>>9	byte	10	Corel shell definition
2243e41d09dSXin LI>>9	default x
2253e41d09dSXin LI>>>9	byte	x	Corel Shell: Unknown filetype %d
2263e41d09dSXin LI# Corel Notebook
2273e41d09dSXin LI>8	byte	3
2283e41d09dSXin LI>>9	byte	1	Corel Notebook macro
2293e41d09dSXin LI>>9	byte	2	Corel Notebook help file
2303e41d09dSXin LI>>9	byte	3	Corel Notebook keyboard file
2313e41d09dSXin LI>>9	byte	10	Corel Notebook definition
2323e41d09dSXin LI>>9	default	x
2333e41d09dSXin LI>>>9	byte	x	Corel Notebook: Unknown filetype %d
2343e41d09dSXin LI# Corel Calculator
2353e41d09dSXin LI>8	byte	4
2363e41d09dSXin LI>>9	byte	2	Corel Calculator help file
2373e41d09dSXin LI>>9	default	x
2383e41d09dSXin LI>>>9	byte	x	Corel Calculator: Unknown filetype %d
2393e41d09dSXin LI# Corel File Manager
2403e41d09dSXin LI>8	byte	5
2413e41d09dSXin LI>>9	default	x
2423e41d09dSXin LI>>>9	byte	x	Corel File Manager: Unknown filetype %d
2433e41d09dSXin LI# Corel Calendar
2443e41d09dSXin LI>8	byte	6
2453e41d09dSXin LI>>9	byte 	2	Corel Calendar help file
2463e41d09dSXin LI>>9	byte 	10	Corel Calendar data file
2473e41d09dSXin LI>>9	default	x
2483e41d09dSXin LI>>>9	byte	x	Corel Calendar: Unknown filetype %d
2493e41d09dSXin LI# Corel Program Editor/Ed Editor
2503e41d09dSXin LI>8	byte	7
2513e41d09dSXin LI>>9	byte	1	Corel Editor macro
2523e41d09dSXin LI>>9	byte	2	Corel Editor help file
2533e41d09dSXin LI>>9	byte	3	Corel Editor keyboard file
2543e41d09dSXin LI>>9	byte	25	Corel Editor macro resource file
2553e41d09dSXin LI>>9	default	x
2563e41d09dSXin LI>>>9	byte	x	Corel Program Editor/Ed Editor: Unknown filetype %d
2573e41d09dSXin LI# Corel Macro Editor
2583e41d09dSXin LI>8	byte	8
2593e41d09dSXin LI>>9	byte 	1	Corel Macro editor macro
2603e41d09dSXin LI>>9	byte 	2	Corel Macro editor help file
2613e41d09dSXin LI>>9	byte	3	Corel Macro editor keyboard file
2623e41d09dSXin LI>>9	default	x
2633e41d09dSXin LI>>>9	byte	x	Corel Macro Editor: Unknown filetype %d
2643e41d09dSXin LI# Corel Plan Perfect
2653e41d09dSXin LI>8	byte	9
2663e41d09dSXin LI>>9	default	x
2673e41d09dSXin LI>>>9	byte	x	Corel Plan Perfect: Unknown filetype %d
2683e41d09dSXin LI# Corel DataPerfect
2693e41d09dSXin LI>8	byte	10
2703e41d09dSXin LI# CHECK: Don't these belong into product 9?
2713e41d09dSXin LI>>9	byte	1	Corel PlanPerfect macro
2723e41d09dSXin LI>>9	byte	2	Corel PlanPerfect help file
2733e41d09dSXin LI>>9	byte	3	Corel PlanPerfect keyboard file
2743e41d09dSXin LI>>9	byte	10	Corel PlanPerfect worksheet
2753e41d09dSXin LI>>9	byte	15	Corel PlanPerfect printer definition
2763e41d09dSXin LI>>9	byte	18	Corel PlanPerfect graphic definition
2773e41d09dSXin LI>>9	byte	19	Corel PlanPerfect data
2783e41d09dSXin LI>>9	byte	20	Corel PlanPerfect temporary printer
2793e41d09dSXin LI>>9	byte	25	Corel PlanPerfect macro resource data
2803e41d09dSXin LI>>9	default	x
2813e41d09dSXin LI>>>9	byte	x	Corel DataPerfect: Unknown filetype %d
2823e41d09dSXin LI# Corel Mail
2833e41d09dSXin LI>8	byte	11
2843e41d09dSXin LI>>9	byte	2	Corel Mail help file
2853e41d09dSXin LI>>9	byte	5	Corel Mail distribution list
2863e41d09dSXin LI>>9	byte	10	Corel Mail out box
2873e41d09dSXin LI>>9	byte	11	Corel Mail in box
2883e41d09dSXin LI>>9	byte	20	Corel Mail users archived mailbox
2893e41d09dSXin LI>>9	byte	21	Corel Mail archived message database
2903e41d09dSXin LI>>9	byte	22	Corel Mail archived attachments
2913e41d09dSXin LI>>9	default	x
2923e41d09dSXin LI>>>9	byte	x	Corel Mail: Unknown filetype %d
2933e41d09dSXin LI# Corel Printer
2943e41d09dSXin LI>8	byte	12
2953e41d09dSXin LI>>9	byte	11	Corel Printer temporary file
2963e41d09dSXin LI>>9	default	x
2973e41d09dSXin LI>>>9	byte	x	Corel Printer: Unknown filetype %d
2983e41d09dSXin LI# Corel Scheduler
2993e41d09dSXin LI>8	byte	13
3003e41d09dSXin LI>>9	byte	2	Corel Scheduler help file
3013e41d09dSXin LI>>9	byte	10	Corel Scheduler in file
3023e41d09dSXin LI>>9	byte	11	Corel Scheduler out file
3033e41d09dSXin LI>>9	default	x
3043e41d09dSXin LI>>>9	byte	x	Corel Scheduler: Unknown filetype %d
3053e41d09dSXin LI# Corel WordPerfect Office
3063e41d09dSXin LI>8	byte	14
3073e41d09dSXin LI>>9	byte	10	Corel GroupWise settings file
3083e41d09dSXin LI>>9	byte	17	Corel GroupWise directory services
3093e41d09dSXin LI>>9	byte	43	Corel GroupWise settings file
3103e41d09dSXin LI>>9	default	x
3113e41d09dSXin LI>>>9	byte	x	Corel WordPerfect Office: Unknown filetype %d
3123e41d09dSXin LI# Corel DrawPerfect
313898496eeSXin LI# URL:		http://fileformats.archiveteam.org/wiki/Corel_Presentations
314898496eeSXin LI# Update:	Joerg Jenderek
3153e41d09dSXin LI>8	byte	15
316898496eeSXin LI# Reference:	http://mark0.net/download/triddefs_xml.7z/defs/s/shw-wp-2.trid.xml
317898496eeSXin LI# Note:		called "WordPerfect Presentations (v2)" by TrID and
318898496eeSXin LI#		"Corel Presentation" with version "7-8-9" by DROID via PUID fmt/877
319898496eeSXin LI>>9	byte	10	WordPerfect Presentation
320898496eeSXin LI#!:mime		application/octet-stream
321898496eeSXin LI#!:mime		application/vnd.wordperfect
322898496eeSXin LI!:mime		application/x-drawperfect-shw
323898496eeSXin LI# like: BENEFITS.SHW chartbar.shw chartbul.shw chartgal.shw chartorg.shw fig-demo.shw figurgal.shw mastrgal.shw scuba.shw tutorial.shw
324898496eeSXin LI!:ext		shw
325898496eeSXin LI# pointer to document area like: 10h
326898496eeSXin LI>>>4	ulelong	!0x10	\b, at %#x document area
327898496eeSXin LI# according to TrID this is nil
328898496eeSXin LI>>>12	ulelong	!0	\b, at 0xC %#x
329898496eeSXin LI# search for embedded WP file like in tutorial.shw
330898496eeSXin LI#>>>16	search/638/sb	\xffWPC	WPC_MAGIC_FOUND
331898496eeSXin LI# GRR: indirect call leads to recursion! WHY?
332898496eeSXin LI#>>>>&0	indirect	x	\b; contains
333898496eeSXin LI# Reference:	http://mark0.net/download/triddefs_xml.7z/defs/s/shw-wp-3.trid.xml
334898496eeSXin LI# Note:		called "WordPerfect/Corel Presentations (v3)" by TrID and
335898496eeSXin LI#		"Corel Presentation" with version "3" by DROID via PUID fmt/878
336898496eeSXin LI>>9	byte	15	Corel Presentation
337898496eeSXin LI#!:mime		application/octet-stream
338898496eeSXin LI#!:mime		application/vnd.wordperfect
339898496eeSXin LI!:mime		application/x-drawperfect-shw
340898496eeSXin LI# like: FIG_ANIM.SHW presenta.shw
341898496eeSXin LI!:ext		shw
342898496eeSXin LI# pointer to document area like: 1ah
343898496eeSXin LI>>>4	ulelong	!0x1a	\b, at %#x document area
344898496eeSXin LI# according to TrID this is nil
345898496eeSXin LI>>>12	ulelong	!0	\b, at 0xC %#x
346898496eeSXin LI# reserved like: 3
347898496eeSXin LI>>>16	ulelong	!0x3	\b, at 0x10 %#x
348898496eeSXin LI# file size, not including pad characters at EOF
349898496eeSXin LI>>>0x14	ulelong x	\b, %u bytes
350898496eeSXin LI# search for embedded WP file like in foo
351898496eeSXin LI#>>>24	search/638/sb	\xffWPC	WPC_MAGIC_FOUND
352898496eeSXin LI# GRR: indirect call leads to recursion! WHY?
353898496eeSXin LI#>>>>&0	indirect	x	\b; contains
354898496eeSXin LI# embedded inside Compound Document variant handled by ./ole2compounddocs
355898496eeSXin LI>>9	byte	16	Corel Presentation (embeded)
356898496eeSXin LI#!:mime		application/octet-stream
357898496eeSXin LI#!:mime		application/vnd.wordperfect
358898496eeSXin LI!:mime		application/x-corelpresentations
359898496eeSXin LI# like: PerfectOffice_MAIN
360898496eeSXin LI!:ext		/
361898496eeSXin LI# pointer to document area like: 1ah
362898496eeSXin LI>>>4	ulelong	!0x1a	\b, at %#x document area
363898496eeSXin LI>>>12	ulelong	!0	\b, at 0xC %#x
364898496eeSXin LI# reserved like: 3
365898496eeSXin LI>>>16	ulelong	!0x3	\b, at 0x10 %#x
366898496eeSXin LI# file size, not including pad characters at EOF
367898496eeSXin LI>>>0x14	ulelong x	\b, %u bytes
368898496eeSXin LI# search for embedded WP file
369898496eeSXin LI#>>>24	search/638/sb	\xffWPC	WPC_MAGIC_FOUND
370898496eeSXin LI# GRR: indirect call leads to recursion! WHY?
371898496eeSXin LI#>>>>&0	indirect	x	\b; contains
3723e41d09dSXin LI>>9	default	x
3733e41d09dSXin LI>>>9	byte	x	Corel DrawPerfect: Unknown filetype %d
3743e41d09dSXin LI# Corel LetterPerfect
3753e41d09dSXin LI>8	byte	16
3763e41d09dSXin LI>>9	default	x
3773e41d09dSXin LI>>>9	byte	x	Corel LetterPerfect: Unknown filetype %d
3783e41d09dSXin LI# Corel Terminal
3793e41d09dSXin LI>8	byte	17
3803e41d09dSXin LI>>9	byte	10	Corel Terminal resource data
3813e41d09dSXin LI>>9	byte	11	Corel Terminal resource data
3823e41d09dSXin LI>>9	byte	43	Corel Terminal resource data
3833e41d09dSXin LI>>9	default	x
3843e41d09dSXin LI>>>9	byte	x	Corel Terminal: Unknown filetype %d
3853e41d09dSXin LI# Corel loadable file
3863e41d09dSXin LI>8	byte	18
3873e41d09dSXin LI>>9	byte	10	Corel loadable file
3883e41d09dSXin LI>>9	byte	11	Corel GUI loadable text
3893e41d09dSXin LI>>9	byte	12	Corel graphics resource data
3903e41d09dSXin LI>>9	byte	13	Corel printer settings file
3913e41d09dSXin LI>>9	byte	14	Corel port definition file
3923e41d09dSXin LI>>9	byte	15	Corel print queue parameters
3933e41d09dSXin LI>>9	byte	16	Corel compressed file
3943e41d09dSXin LI>>9	default	x
3953e41d09dSXin LI>>>9	byte	x	Corel loadable file: Unknown filetype %d
3963e41d09dSXin LI>>15	byte	0	\b, optimized for Intel
3973e41d09dSXin LI>>15	byte	1	\b, optimized for Non-Intel
3983e41d09dSXin LI# Network service
3993e41d09dSXin LI>8	byte	20
4003e41d09dSXin LI>>9	byte	10	Corel Network service msg file
4013e41d09dSXin LI>>9	byte	11	Corel Network service msg file
4023e41d09dSXin LI>>9	byte	12	Corel Async gateway login msg
4033e41d09dSXin LI>>9	byte	14	Corel GroupWise message file
4043e41d09dSXin LI>>9	default	x
4053e41d09dSXin LI>>>9	byte	x	Corel Network service: Unknown filetype %d
4063e41d09dSXin LI# GroupWise
4073e41d09dSXin LI>8	byte	31
4083e41d09dSXin LI>>9	byte	20	GroupWise admin domain database
4093e41d09dSXin LI>>9	byte	21	GroupWise admin host database
4103e41d09dSXin LI>>9	byte	23	GroupWise admin remote host database
4113e41d09dSXin LI>>9	byte	24	GroupWise admin ADS deferment data file
4123e41d09dSXin LI>>9	default	x
4133e41d09dSXin LI>>>9	byte	x	GroupWise: Unknown filetype %d
414a2dfb722SXin LI# Corel Writing Tools WT*.*
415a2dfb722SXin LI# From:		Joerg Jenderek
416a2dfb722SXin LI# URL:		https://support.corel.com/hc/en-us/articles/215876258-Writing-Tools-Spell-Check-Dictionary-does-not-work-in-WordPerfect-X5
417a2dfb722SXin LI#		http://wordperfect.helpmax.net/en/editing-and-formatting-documents/using-the-writing-tools/working-with-user-word-lists/
418a2dfb722SXin LI# Reference:	http://mark0.net/download/triddefs_xml.7z/defs/u/uwl-wp.trid.xml
419a2dfb722SXin LI>8	byte	32
420a2dfb722SXin LI>>9	byte	10	Corel Writing Tools User Word List
421a2dfb722SXin LI#!:mime	application/octet-stream
422a2dfb722SXin LI!:mime	application/x-wordperfect-wordlist
423a2dfb722SXin LI# personal user word list UWL under user directory like: WTDE.UWL WTUS.UWL WT21DE.UWL WT21US.UWL WT13DE.UWL ...
424a2dfb722SXin LI# and "template" SAV/HWL variant under program directory like: wt13en.hwl Wt13de.sav Wt13it.sav wt13ru.sav WT21us.sav Wtcz.sav ...
425a2dfb722SXin LI!:ext	uwl/hwl/sav
426a2dfb722SXin LI# jump to document area with some marker and word list
427a2dfb722SXin LI>>>(4.l)	ubyte	x
428a2dfb722SXin LI# look for beginning of word list starting mostly with letter a as UTF-16 like: Wt13es.sav
429a2dfb722SXin LI# but not found in russian wt13ru.sav
430a2dfb722SXin LI>>>>&0	search/91/sb	a\0
431a2dfb722SXin LI# word list starting like: "acsesory\022accessory.\001\026acomodate\026accommodate4\001"
432a2dfb722SXin LI>>>>>&0		lestring16	x	(...%-.33s...)
433a2dfb722SXin LI# pointer to document area like: 200h
434a2dfb722SXin LI>>>4	ulelong	!0x200	\b, at %#x document area
435a2dfb722SXin LI# file size, not including pad characters at EOF
436a2dfb722SXin LI>>>0x14	uleshort x	\b, %u bytes
4373e41d09dSXin LI# IntelliTAG
4383e41d09dSXin LI>8	byte	33
4393e41d09dSXin LI>>9	byte	10	IntelliTAG (SGML) compiled DTD
4403e41d09dSXin LI>>9	default	x
4413e41d09dSXin LI>>>9	byte	x	IntelliTAG: Unknown filetype %d
442a2dfb722SXin LI# Summary:	Corel WordPerfect WritingTools advise part
443a2dfb722SXin LI# From:		Joerg Jenderek
444a2dfb722SXin LI# Reference:	http://mark0.net/download/triddefs_xml.7z/defs/a/adv-wp.trid.xml
445a2dfb722SXin LI>8	byte	34
446a2dfb722SXin LI>>9	byte	11	Corel WordPerfect dictionary advise
447a2dfb722SXin LI#!:mime	application/octet-stream
448a2dfb722SXin LI!:mime	application/x-wordperfect-adv
449a2dfb722SXin LI#!:mime	application/vnd.wordperfect.adv
450a2dfb722SXin LI# like: WT21de.adv Wt13de.adv Wt13es.adv Wt13fr.adv wt13us.adv
451a2dfb722SXin LI!:ext	adv
452a2dfb722SXin LI# advise text part often start with tag like: 580A
453a2dfb722SXin LI#>>>(16.s)	ubequad	x	ADVISE PART %#llx
454a2dfb722SXin LI# part of advise text like: "This is too informal for most writing."
455a2dfb722SXin LI>>>(16.s+16)	string	x	(...%-.33s...)
4563e41d09dSXin LI# everything else
4573e41d09dSXin LI>8	default x
4583e41d09dSXin LI>>8	byte	x	Unknown Corel/Wordperfect product %d,
4593e41d09dSXin LI>>>9	byte	x	file type %d
4603e41d09dSXin LI>10	byte	0	\b, v5.
461898496eeSXin LI# version of WP file; 2.1~WP 8.0
462898496eeSXin LI# major version of WP file like: 1 2
4633e41d09dSXin LI>10	byte	!0	\b, v%d.
464898496eeSXin LI# minor version of WP file like: 0 1
4653e41d09dSXin LI>11	byte	x	\b%d
466b6cee71dSXin LI
467898496eeSXin LI# Hancom HWP (Hangul Word Processor)
468898496eeSXin LI# Hangul Word Processor 3.0 through 97 used HWP 3.0 format.
469898496eeSXin LI# URL: https://www.hancom.com/etc/hwpDownload.do
470898496eeSXin LI0	string	HWP\ Document\ File     Hancom HWP (Hangul Word Processor) file, version 3.0
471898496eeSXin LI!:ext	hwp
472b6cee71dSXin LI
473b6cee71dSXin LI# CosmicBook, from Benoit Rouits
474b6cee71dSXin LI0       string  CSBK    Ted Neslson's CosmicBook hypertext file
475b6cee71dSXin LI
476b6cee71dSXin LI2       string  EYWR    AmigaWriter file
477b6cee71dSXin LI
478b6cee71dSXin LI# chi:  file(1) magic for ChiWriter files
479b6cee71dSXin LI0       string          \\1cw\          ChiWriter file
480b6cee71dSXin LI>5      string          >\0             version %s
481b6cee71dSXin LI0       string          \\1cw           ChiWriter file
482b6cee71dSXin LI
48348c779cdSXin LI# Quark Express from https://www.garykessler.net/library/file_sigs.html
484b6cee71dSXin LI2	string	IIXPR3			Intel Quark Express Document (English)
485b6cee71dSXin LI2	string	IIXPRa			Intel Quark Express Document (Korean)
486b6cee71dSXin LI2	string	MMXPR3			Motorola Quark Express Document (English)
487b6cee71dSXin LI!:mime	application/x-quark-xpress-3
488b6cee71dSXin LI2	string	MMXPRa			Motorola Quark Express Document (Korean)
489b6cee71dSXin LI
490a4d6d3b8SXin LI# From:		Joerg Jenderek
491a4d6d3b8SXin LI# URL:		http://fileformats.archiveteam.org/wiki/PageMaker
492a4d6d3b8SXin LI#		https://en.wikipedia.org/wiki/Adobe_PageMaker
493a4d6d3b8SXin LI# Reference:	http://mark0.net/download/triddefs_xml.7z/defs/p
494a4d6d3b8SXin LI#		pm4-pagemaker.trid.xml
495a4d6d3b8SXin LI#		pm5-pagemaker.trid.xml
496a4d6d3b8SXin LI# Note:		since version 6 in 1995 called Adobe PageMaker and
497a4d6d3b8SXin LI#		embedded in Compound Document handled by ./ole2compounddocs
498a4d6d3b8SXin LI#		mainly tested little endian variant
499a4d6d3b8SXin LI4	ubelong		=0x0000FF99
500a4d6d3b8SXin LI>0	use		PageMaker
501a4d6d3b8SXin LI# big endian variant
502a4d6d3b8SXin LI4	ubelong		=0x000099FF
503a4d6d3b8SXin LI>0	use		\^PageMaker
504a4d6d3b8SXin LI#	display information of Aldus/Adobe PageMaker document/publication
505a4d6d3b8SXin LI0	name		PageMaker
506a4d6d3b8SXin LI>110	uleshort	<0x0600			Aldus
507a4d6d3b8SXin LI>110	uleshort	>0x05FF			Adobe
508a4d6d3b8SXin LI>110	uleshort	x			PageMaker
509a4d6d3b8SXin LI# "MP" marker for newer version 4 and above according to TrID
510a4d6d3b8SXin LI#>108	string		x			\b, MARKER "%.2s"
511a4d6d3b8SXin LI# http://www.nationalarchives.gov.uk/pronom/fmt/876
512a4d6d3b8SXin LI!:mime		application/vnd.pagemaker
513a4d6d3b8SXin LI#!:mime		application/x-pagemaker
514a4d6d3b8SXin LI# different file name extensions are used depending on version
515a4d6d3b8SXin LI# older version like 3
516a4d6d3b8SXin LI>110	uleshort/256	=0			document
517a4d6d3b8SXin LI# https://www.macdisk.com/macsigen.php
518a4d6d3b8SXin LI!:apple	ALB3ALD3
519898496eeSXin LI# PT3 for template and no example for PageMaker document/publication with PM3 extension
520a4d6d3b8SXin LI!:ext	pm3/pt3
521a4d6d3b8SXin LI>110	uleshort/256	=4			document
522a4d6d3b8SXin LI!:apple	ALD4ALB4
523a4d6d3b8SXin LI# no example for PT4 template
524a4d6d3b8SXin LI!:ext	pm4/pt4
525a4d6d3b8SXin LI>110	uleshort/256	=5			document
526a4d6d3b8SXin LI!:apple	ALD5ALB5
527a4d6d3b8SXin LI# no example for PT5 template
528a4d6d3b8SXin LI!:ext	pm5/pt5
529a4d6d3b8SXin LI>110	uleshort	=0x0600			document
530a4d6d3b8SXin LI!:apple	ALD6ALB6
531a4d6d3b8SXin LI# PT6 for template
532a4d6d3b8SXin LI!:ext	pm6/pt6
533a4d6d3b8SXin LI# HOWTO to distinguish version 7 from 6.5 ?
534a4d6d3b8SXin LI>110	uleshort	=0x0632			document
535a4d6d3b8SXin LI!:apple	AD65AB65
536a4d6d3b8SXin LI# no example for T65 template
537a4d6d3b8SXin LI!:ext	p65/t65/pmd/pmt
538a4d6d3b8SXin LI# version 7 with PMT extension for template
539a4d6d3b8SXin LI#!:ext	pmd/pmt
540a4d6d3b8SXin LI#!:apple	????PUBF
541a4d6d3b8SXin LI# endian marker FF 99 for little endian
542a4d6d3b8SXin LI>6	ubyte	=0xFF			\b, little-endian
543a4d6d3b8SXin LI>6	ubyte	=0x99			\b, big-endian
544a4d6d3b8SXin LI# newer numeric version like: 4 5 6 6.50
545a4d6d3b8SXin LI#>110	uleshort	x			\b, VERSION=%#x
546a4d6d3b8SXin LI>110	uleshort	>0x03FF
547a4d6d3b8SXin LI>>110	uleshort/256	x			\b, version %u
548a4d6d3b8SXin LI>>110	uleshort%256	>0			\b.%u
549a4d6d3b8SXin LI# older version like 3
550a4d6d3b8SXin LI>110	uleshort	<0x0400			\b, maybe version 3
551a4d6d3b8SXin LI
552b6cee71dSXin LI# adobe indesign (document, whatever...) from querkan
553b6cee71dSXin LI0	belong	0x0606edf5		Adobe InDesign
554b6cee71dSXin LI>16	string	DOCUMENT		Document
555b6cee71dSXin LI
556b6cee71dSXin LI#------------------------------------------------------------------------------
557b6cee71dSXin LI# ichitaro456: file(1) magic for Just System Word Processor Ichitaro
558b6cee71dSXin LI#
559b6cee71dSXin LI# Contributor kenzo-:
560b6cee71dSXin LI# Reversed-engineered JS Ichitaro magic numbers
561b6cee71dSXin LI#
562b6cee71dSXin LI
563b6cee71dSXin LI0	string		DOC
564b6cee71dSXin LI>43	byte		0x14	Just System Word Processor Ichitaro v4
565b6cee71dSXin LI!:mime	application/x-ichitaro4
566b6cee71dSXin LI>43	byte		0x15	Just System Word Processor Ichitaro v5
567b6cee71dSXin LI!:mime	application/x-ichitaro5
568b6cee71dSXin LI>43	byte		0x16	Just System Word Processor Ichitaro v6
569b6cee71dSXin LI!:mime	application/x-ichitaro6
570*ae316d1dSXin LI>144	string	JDASH		application/x-ichitaro4
571b6cee71dSXin LI
572b6cee71dSXin LI# Type: Freemind mindmap documents
573b6cee71dSXin LI# From: Jamie Thompson <debian-bugs@jamie-thompson.co.uk>
574b6cee71dSXin LI0	string/w	\<map\ version	Freemind document
575b6cee71dSXin LI!:mime	application/x-freemind
576b6cee71dSXin LI
577b6cee71dSXin LI# Type: Freeplane mindmap documents
578b6cee71dSXin LI# From: Felix Natter <fnatter@gmx.net>
579b6cee71dSXin LI0       string/w        \<map\ version="freeplane  Freeplane document
580b6cee71dSXin LI!:mime  application/x-freeplane
581b6cee71dSXin LI
582b6cee71dSXin LI# Type:        Scribus
583b6cee71dSXin LI# From:        Werner Fink <werner@suse.de>
584b6cee71dSXin LI0	string	\<SCRIBUSUTF8\ Version		Scribus Document
585b6cee71dSXin LI0	string	\<SCRIBUSUTF8NEW\ Version	Scribus Document
586b6cee71dSXin LI!:mime	application/x-scribus
587b6cee71dSXin LI
588b6cee71dSXin LI# help files .hlp compiled from html and used by gfxboot added by Joerg Jenderek
589*ae316d1dSXin LI# URL: 		https://en.opensuse.org/Gfxboot
590*ae316d1dSXin LI# Reference:	https://github.com/openSUSE/gfxboot/blob/master/gfxboot
591*ae316d1dSXin LI#		http://mark0.net/download/triddefs_xml.7z/defs/h/hlp-gfxboot-main.trid.xml,hlp-gfxboot-opt.trid.xml
592*ae316d1dSXin LI# Note:		called "gfxboot compiled html help" (main),(opt) by TrID
593*ae316d1dSXin LI#		verified by command like `gfxboot --help-show en.hlp > en.html`
594b6cee71dSXin LI# markups page=0x04,label=0x12, followed by strings like "opt" or "main" and title=0x14
595*ae316d1dSXin LI0	ulelong&0x8080FFFF	0x00001204
596*ae316d1dSXin LI# display "gfxboot compiled html help file" (strength=70) after one "TeX font metric data" (tri10u.tfm strength=71=50+21) handled by ./tex
597*ae316d1dSXin LI#!:strength +0
598*ae316d1dSXin LI>2	regex			\^(main|opt)	gfxboot compiled html help file, label %s
599*ae316d1dSXin LI#!:mime	application/octet-stream
600*ae316d1dSXin LI!:mime	application/x-gfxboot-hlp
601*ae316d1dSXin LI!:ext	hlp
602*ae316d1dSXin LI# check for title token \x14
603*ae316d1dSXin LI>>&0	ubyte			0x14		\b, title
604*ae316d1dSXin LI# title text ends with \x10
605*ae316d1dSXin LI>>>&0	regex			\^[[:print:]]+	'%s'
606d38c30c0SXin LI
607d38c30c0SXin LI# From:		Joerg Jenderek
608d38c30c0SXin LI# URL:		https://en.wikipedia.org/wiki/StarOffice
60943a5ec4eSXin LI# Reference:	http://mark0.net/download/triddefs_xml.7z
61043a5ec4eSXin LI#		/defs/t/thm-staroffice.trid.xml
611d38c30c0SXin LI# Note:		used in Star-, Open- and Libre-Office
612d38c30c0SXin LI# named as soffice.StarConfigFile.6 or OpenOffice.org configuration by others
613d38c30c0SXin LI0		ubeshort	0x0400
61443a5ec4eSXin LI# non nil gap
61543a5ec4eSXin LI#>(2.s+8)	ubequad		x		\b, gap %#16.16llx
616d38c30c0SXin LI# test for null value in gap after theme name maybe unreliable
617d38c30c0SXin LI#>(2.s+9)	ubyte		0		\b, 0-byte
618d38c30c0SXin LI# look for keyword GALRESRV near the end
619d38c30c0SXin LI# "C:\Program Files (x86)\StarOffice6.0\share\gallery\sg27.thm" Navigation, 238 objects
620d38c30c0SXin LI#>0		search/8415	GALRESRV	\b, GALRESRV found
621d38c30c0SXin LI# "neues thema6.thm" MorePictures, 315 objects
622d38c30c0SXin LI#>0		search/19299	GALRESRV	\b, GALRESRV FOUND
623d38c30c0SXin LI#>2		uleshort	x		\b, name length %u
624d38c30c0SXin LI# skip file2147.chk by check for positive name length like for sg16.thm "3D"
62543a5ec4eSXin LI>2		uleshort	>0
62643a5ec4eSXin LI# skip dBase printer form T6.PRF with misidentified gallery
62743a5ec4eSXin LI# name :\DBASE\IV\T6.txts by check for 1st object name or RESRV keyword
62843a5ec4eSXin LI# https://www.clicketyclick.dk/databases/xbase/xbase/dbase_ex.zip
62943a5ec4eSXin LI# template/t6/with_data/T6.PRF
63043a5ec4eSXin LI# by first char of object name or RESRV part of keyword GALRESRV
63143a5ec4eSXin LI>>(2.s+13)	ubyte		>0x1F		StarOffice Gallery theme
632d38c30c0SXin LI!:mime		application/x-stargallery-thm
63343a5ec4eSXin LI# thm is also used for JPEG thumbnail images
634d38c30c0SXin LI!:ext		thm
63543a5ec4eSXin LI# gallery name often 1 word like: 3D sounds Diagrams Flussdiagramme Fotos
63643a5ec4eSXin LI# or like private://gallery/hidden/imgppt "Cisco - WAN - LAN"
63743a5ec4eSXin LI>>>2		pstring/h	x		%s
638d38c30c0SXin LI# number of objects
63943a5ec4eSXin LI>>>(2.s+4)	ulelong		x		\b, %u object
640d38c30c0SXin LI# plural s
64143a5ec4eSXin LI>>>(2.s+4)	ulelong		!1		\bs
642d38c30c0SXin LI# if available then display first object name
64343a5ec4eSXin LI>>>(2.s+4)	ulelong		>0
644d38c30c0SXin LI# partial file name, URL or internal name like "dd2*" of 1st object or RESRV
64543a5ec4eSXin LI>>>>(2.s+11)	pstring/h	x		\b, 1st %s
646d38c30c0SXin LI
6472726a701SXin LI# From:	Joerg Jenderek
6482726a701SXin LI# URL:	http://fileformats.archiveteam.org/wiki/StarOffice_Gallery
6492726a701SXin LI# Note:	used in Star-, Open- and Libre-Office and found in directories like
6502726a701SXin LI#	%APPDATA%\Roaming\LibreOffice\4\user\gallery
6512726a701SXin LI#	$HOME/.config/libreoffice/4/user/gallery
6522726a701SXin LI0	string		SGA3	StarOffice Gallery thumbnails
6532726a701SXin LI# Unknown like 0x04000?0001000142
65443a5ec4eSXin LI#>4	ubequad		x	\b, UNKNOWN %#16.16llx
6552726a701SXin LI#!:mime	application/x-sdg
6562726a701SXin LI!:mime	application/x-stargallery-sdg
6572726a701SXin LI!:ext	sdg
6582726a701SXin LI# display image magic for debugging purpose like 'BM'
6592726a701SXin LI# looking like PC bitmap, Windows 3.x format with unknown compression
6602726a701SXin LI#>11	string		x	\b, image magic '%-.2s'
6612726a701SXin LI# inspect 1st GALLERY thumbnail magic by ./images with 1 space at end
6622726a701SXin LI#>11	indirect	x	\b; contains
6632726a701SXin LI
664*ae316d1dSXin LI# Atari ST Hypertext files
665*ae316d1dSXin LI0	string	HDOC\0	ST-Guide file
666*ae316d1dSXin LI0	string	HREF\0	ST-Guide reference file
667