xref: /freebsd/contrib/file/magic/Magdir/wordprocessors (revision 8ef24a0d4b28fe230e20637f56869cc4148cd2ca)
1
2#------------------------------------------------------------------------------
3# $File: wordprocessors,v 1.19 2015/10/16 15:11:07 christos Exp $
4# wordprocessors:  file(1) magic fo word processors.
5#
6####### PWP file format used on Smith Corona Personal Word Processors:
72	string	\040\040\040\040\040\040\040\040\040\040\040ML4D\040'92	Smith Corona PWP
8>24	byte	2	\b, single spaced
9>24	byte	3	\b, 1.5 spaced
10>24	byte	4	\b, double spaced
11>25	byte	0x42	\b, letter
12>25	byte	0x54	\b, legal
13>26	byte	0x46	\b, A4
14
15# Corel/WordPerfect
160	string	\xffWPC
17# WordPerfect
18>8	byte	1
19>>9	byte	1	WordPerfect macro
20>>9	byte	2	WordPerfect help file
21>>9	byte	3	WordPerfect keyboard file
22>>9	byte	10	WordPerfect document
23>>9	byte	11	WordPerfect dictionary
24>>9	byte	12	WordPerfect thesaurus
25>>9	byte	13	WordPerfect block
26>>9	byte	14	WordPerfect rectangular block
27>>9	byte	15	WordPerfect column block
28>>9	byte	16	WordPerfect printer data
29>>9	byte	19	WordPerfect printer data
30>>9	byte	20	WordPerfect driver resource data
31>>9	byte	22	WordPerfect graphic image
32>>9	byte	23	WordPerfect hyphenation code
33>>9	byte	24	WordPerfect hyphenation data
34>>9	byte	25	WordPerfect macro resource data
35>>9	byte	27	WordPerfect hyphenation lex
36>>9	byte	29	WordPerfect wordlist
37>>9	byte	30	WordPerfect equation resource data
38>>9	byte	33	WordPerfect spell rules
39>>9	byte	34	WordPerfect dictionary rules
40>>9	byte	39	WordPerfect spell rules (Microlytics)
41>>9	byte	43	WordPerfect settings file
42>>9	byte	44	WordPerfect 3.5 document
43>>9	byte	45	WordPerfect 4.2 document
44>>9	byte	69	WordPerfect dialog file
45>>9	byte	76	WordPerfect button bar
46>>9	default x
47>>>9	byte	x	Corel WordPerfect: Unknown filetype %d
48# Corel Shell
49>8	byte	2
50>>9	byte	1	Corel shell macro
51>>9	byte	10	Corel shell definition
52>>9	default x
53>>>9	byte	x	Corel Shell: Unknown filetype %d
54# Corel Notebook
55>8	byte	3
56>>9	byte	1	Corel Notebook macro
57>>9	byte	2	Corel Notebook help file
58>>9	byte	3	Corel Notebook keyboard file
59>>9	byte	10	Corel Notebook definition
60>>9	default	x
61>>>9	byte	x	Corel Notebook: Unknown filetype %d
62# Corel Calculator
63>8	byte	4
64>>9	byte	2	Corel Calculator help file
65>>9	default	x
66>>>9	byte	x	Corel Calculator: Unknown filetype %d
67# Corel File Manager
68>8	byte	5
69>>9	default	x
70>>>9	byte	x	Corel File Manager: Unknown filetype %d
71# Corel Calendar
72>8	byte	6
73>>9	byte 	2	Corel Calendar help file
74>>9	byte 	10	Corel Calendar data file
75>>9	default	x
76>>>9	byte	x	Corel Calendar: Unknown filetype %d
77# Corel Program Editor/Ed Editor
78>8	byte	7
79>>9	byte	1	Corel Editor macro
80>>9	byte	2	Corel Editor help file
81>>9	byte	3	Corel Editor keyboard file
82>>9	byte	25	Corel Editor macro resource file
83>>9	default	x
84>>>9	byte	x	Corel Program Editor/Ed Editor: Unknown filetype %d
85# Corel Macro Editor
86>8	byte	8
87>>9	byte 	1	Corel Macro editor macro
88>>9	byte 	2	Corel Macro editor help file
89>>9	byte	3	Corel Macro editor keyboard file
90>>9	default	x
91>>>9	byte	x	Corel Macro Editor: Unknown filetype %d
92# Corel Plan Perfect
93>8	byte	9
94>>9	default	x
95>>>9	byte	x	Corel Plan Perfect: Unknown filetype %d
96# Corel DataPerfect
97>8	byte	10
98# CHECK: Don't these belong into product 9?
99>>9	byte	1	Corel PlanPerfect macro
100>>9	byte	2	Corel PlanPerfect help file
101>>9	byte	3	Corel PlanPerfect keyboard file
102>>9	byte	10	Corel PlanPerfect worksheet
103>>9	byte	15	Corel PlanPerfect printer definition
104>>9	byte	18	Corel PlanPerfect graphic definition
105>>9	byte	19	Corel PlanPerfect data
106>>9	byte	20	Corel PlanPerfect temporary printer
107>>9	byte	25	Corel PlanPerfect macro resource data
108>>9	default	x
109>>>9	byte	x	Corel DataPerfect: Unknown filetype %d
110# Corel Mail
111>8	byte	11
112>>9	byte	2	Corel Mail help file
113>>9	byte	5	Corel Mail distribution list
114>>9	byte	10	Corel Mail out box
115>>9	byte	11	Corel Mail in box
116>>9	byte	20	Corel Mail users archived mailbox
117>>9	byte	21	Corel Mail archived message database
118>>9	byte	22	Corel Mail archived attachments
119>>9	default	x
120>>>9	byte	x	Corel Mail: Unknown filetype %d
121# Corel Printer
122>8	byte	12
123>>9	byte	11	Corel Printer temporary file
124>>9	default	x
125>>>9	byte	x	Corel Printer: Unknown filetype %d
126# Corel Scheduler
127>8	byte	13
128>>9	byte	2	Corel Scheduler help file
129>>9	byte	10	Corel Scheduler in file
130>>9	byte	11	Corel Scheduler out file
131>>9	default	x
132>>>9	byte	x	Corel Scheduler: Unknown filetype %d
133# Corel WordPerfect Office
134>8	byte	14
135>>9	byte	10	Corel GroupWise settings file
136>>9	byte	17	Corel GroupWise directory services
137>>9	byte	43	Corel GroupWise settings file
138>>9	default	x
139>>>9	byte	x	Corel WordPerfect Office: Unknown filetype %d
140# Corel DrawPerfect
141>8	byte	15
142>>9	default	x
143>>>9	byte	x	Corel DrawPerfect: Unknown filetype %d
144# Corel LetterPerfect
145>8	byte	16
146>>9	default	x
147>>>9	byte	x	Corel LetterPerfect: Unknown filetype %d
148# Corel Terminal
149>8	byte	17
150>>9	byte	10	Corel Terminal resource data
151>>9	byte	11	Corel Terminal resource data
152>>9	byte	43	Corel Terminal resource data
153>>9	default	x
154>>>9	byte	x	Corel Terminal: Unknown filetype %d
155# Corel loadable file
156>8	byte	18
157>>9	byte	10	Corel loadable file
158>>9	byte	11	Corel GUI loadable text
159>>9	byte	12	Corel graphics resource data
160>>9	byte	13	Corel printer settings file
161>>9	byte	14	Corel port definition file
162>>9	byte	15	Corel print queue parameters
163>>9	byte	16	Corel compressed file
164>>9	default	x
165>>>9	byte	x	Corel loadable file: Unknown filetype %d
166>>15	byte	0	\b, optimized for Intel
167>>15	byte	1	\b, optimized for Non-Intel
168# Network service
169>8	byte	20
170>>9	byte	10	Corel Network service msg file
171>>9	byte	11	Corel Network service msg file
172>>9	byte	12	Corel Async gateway login msg
173>>9	byte	14	Corel GroupWise message file
174>>9	default	x
175>>>9	byte	x	Corel Network service: Unknown filetype %d
176# GroupWise
177>8	byte	31
178>>9	byte	20	GroupWise admin domain database
179>>9	byte	21	GroupWise admin host database
180>>9	byte	23	GroupWise admin remote host database
181>>9	byte	24	GroupWise admin ADS deferment data file
182>>9	default	x
183>>>9	byte	x	GroupWise: Unknown filetype %d
184# IntelliTAG
185>8	byte	33
186>>9	byte	10	IntelliTAG (SGML) compiled DTD
187>>9	default	x
188>>>9	byte	x	IntelliTAG: Unknown filetype %d
189# everything else
190>8	default x
191>>8	byte	x	Unknown Corel/Wordperfect product %d,
192>>>9	byte	x	file type %d
193>10	byte	0	\b, v5.
194>10	byte	!0	\b, v%d.
195>11	byte	x	\b%d
196
197# Hangul (Korean) Word Processor File
1980	string	HWP\ Document\ File	Hangul (Korean) Word Processor File 3.0
199# From: Won-Kyu Park <wkpark@kldp.org>
200512	string		R\0o\0o\0t\0	Hangul (Korean) Word Processor File 2000
201!:mime	application/x-hwp
202
203# CosmicBook, from Benoit Rouits
2040       string  CSBK    Ted Neslson's CosmicBook hypertext file
205
2062       string  EYWR    AmigaWriter file
207
208# chi:  file(1) magic for ChiWriter files
2090       string          \\1cw\          ChiWriter file
210>5      string          >\0             version %s
2110       string          \\1cw           ChiWriter file
212
213# Quark Express from http://www.garykessler.net/library/file_sigs.html
2142	string	IIXPR3			Intel Quark Express Document (English)
2152	string	IIXPRa			Intel Quark Express Document (Korean)
2162	string	MMXPR3			Motorola Quark Express Document (English)
217!:mime	application/x-quark-xpress-3
2182	string	MMXPRa			Motorola Quark Express Document (Korean)
219
220# adobe indesign (document, whatever...) from querkan
2210	belong	0x0606edf5		Adobe InDesign
222>16	string	DOCUMENT		Document
223
224#------------------------------------------------------------------------------
225# ichitaro456: file(1) magic for Just System Word Processor Ichitaro
226#
227# Contributor kenzo-:
228# Reversed-engineered JS Ichitaro magic numbers
229#
230
2310	string		DOC
232>43	byte		0x14	Just System Word Processor Ichitaro v4
233!:mime	application/x-ichitaro4
234>144	string	JDASH		application/x-ichitaro4
235
2360	string		DOC
237>43	byte		0x15	Just System Word Processor Ichitaro v5
238!:mime	application/x-ichitaro5
239
2400	string		DOC
241>43	byte		0x16	Just System Word Processor Ichitaro v6
242!:mime	application/x-ichitaro6
243
244# Type: Freemind mindmap documents
245# From: Jamie Thompson <debian-bugs@jamie-thompson.co.uk>
2460	string/w	\<map\ version	Freemind document
247!:mime	application/x-freemind
248
249# Type: Freeplane mindmap documents
250# From: Felix Natter <fnatter@gmx.net>
2510       string/w        \<map\ version="freeplane  Freeplane document
252!:mime  application/x-freeplane
253
254# Type:        Scribus
255# From:        Werner Fink <werner@suse.de>
2560	string	\<SCRIBUSUTF8\ Version		Scribus Document
2570	string	\<SCRIBUSUTF8NEW\ Version	Scribus Document
258!:mime	application/x-scribus
259
260# help files .hlp compiled from html and used by gfxboot added by Joerg Jenderek
261# markups page=0x04,label=0x12, followed by strings like "opt" or "main" and title=0x14
2620	ulelong&0x8080FFFF	0x00001204	gfxboot compiled html help file
263