xref: /freebsd/contrib/file/magic/Magdir/frame (revision d65cd7a57bf0600b722afc770838a5d0c1c3a8e1)
1
2#------------------------------------------------------------------------------
3# $File: frame,v 1.14 2019/11/25 00:31:30 christos Exp $
4# frame:  file(1) magic for FrameMaker files
5#
6# This stuff came on a FrameMaker demo tape, most of which is
7# copyright, but this file is "published" as witness the following:
8#
9# Note that this is the Framemaker Maker Interchange Format, not the
10# Normal format which would be application/vnd.framemaker.
11#
120	string		\<MakerFile	FrameMaker document
13!:mime	application/x-mif
14>11	string		5.5		 (5.5
15>11	string		5.0		 (5.0
16>11	string		4.0		 (4.0
17>11	string		3.0		 (3.0
18>11	string		2.0		 (2.0
19>11	string		1.0		 (1.0
20>14	byte		x		  %c)
21# URL:		http://fileformats.archiveteam.org/wiki/Maker_Interchange_Format
22# Reference:	https://help.adobe.com/en_US/framemaker/mifreference/mifref.pdf
23# Update:	Joerg Jenderek 2019 Nov
240	string		\<MIFFile	FrameMaker MIF (ASCII) file
25# https://www.iana.org/assignments/media-types/application/vnd.mif
26!:mime	application/vnd.mif
27# mif most but also find bookTOC.framemif
28!:ext	mif/framemif
29# followed by space~20h
30#>8	ubyte		0x20		\b, space before version
31# 3 characters of version number of the MIF language like 1.0, 2.0 ... 2015 ...
32>9	string		x		(%.3s
33# if not greater sign then display 4th character of version
34>12	ubyte		=0x3e		\b)
35>12	ubyte		!0x3e		\b%c)
36# comment starting with # shows the name+version number of generating program
37>13	search/3	#
38>>&0	string		x		"%s"
390	search/1	\<MakerDictionary	FrameMaker Dictionary text
40!:mime	application/x-mif
41>17	string		3.0		 (3.0)
42>17	string		2.0		 (2.0)
43>17	string		1.0		 (1.x)
440	string		\<MakerScreenFont	FrameMaker Font file
45!:mime	application/x-mif
46>17	string		1.01		 (%s)
470	string		\<MML		FrameMaker MML file
48!:mime	application/x-mif
490	string		\<BookFile	FrameMaker Book file
50!:mime	application/x-mif
51>10	string		3.0		 (3.0
52>10	string		2.0		 (2.0
53>10	string		1.0		 (1.0
54>13	byte		x		  %c)
55# XXX - this book entry should be verified, if you find one, uncomment this
56#0	string		\<Book\040 	FrameMaker Book (ASCII) file
57#!:mime	application/x-mif
58#>6	string		3.0		 (3.0)
59#>6	string		2.0		 (2.0)
60#>6	string		1.0		 (1.0)
610	string		\<Maker\040Intermediate\040Print\040File	FrameMaker IPL file
62!:mime	application/x-mif
63