diff options
author | Christos Zoulas <christos@zoulas.com> | 2019-11-25 00:31:30 +0000 |
---|---|---|
committer | Christos Zoulas <christos@zoulas.com> | 2019-11-25 00:31:30 +0000 |
commit | d8e929b9eb8208f631341a6214730a9e46cf6d05 (patch) | |
tree | a59c18a5971fc41766ccec60ec6108584dca3bd0 | |
parent | cd96225781e439f1cacd0274712862d00128f300 (diff) | |
download | file-git-d8e929b9eb8208f631341a6214730a9e46cf6d05.tar.gz |
Improve FrameMaker magic (Joerg Jenderek)
-rw-r--r-- | magic/Magdir/frame | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/magic/Magdir/frame b/magic/Magdir/frame index d3f96876..c0fd840a 100644 --- a/magic/Magdir/frame +++ b/magic/Magdir/frame @@ -1,6 +1,6 @@ #------------------------------------------------------------------------------ -# $File: frame,v 1.12 2009/09/19 16:28:09 christos Exp $ +# $File: frame,v 1.14 2019/11/25 00:31:30 christos Exp $ # frame: file(1) magic for FrameMaker files # # This stuff came on a FrameMaker demo tape, most of which is @@ -18,12 +18,24 @@ >11 string 2.0 (2.0 >11 string 1.0 (1.0 >14 byte x %c) +# URL: http://fileformats.archiveteam.org/wiki/Maker_Interchange_Format +# Reference: https://help.adobe.com/en_US/framemaker/mifreference/mifref.pdf +# Update: Joerg Jenderek 2019 Nov 0 string \<MIFFile FrameMaker MIF (ASCII) file -!:mime application/x-mif ->9 string 4.0 (4.0) ->9 string 3.0 (3.0) ->9 string 2.0 (2.0) ->9 string 1.0 (1.x) +# https://www.iana.org/assignments/media-types/application/vnd.mif +!:mime application/vnd.mif +# mif most but also find bookTOC.framemif +!:ext mif/framemif +# followed by space~20h +#>8 ubyte 0x20 \b, space before version +# 3 characters of version number of the MIF language like 1.0, 2.0 ... 2015 ... +>9 string x (%.3s +# if not greater sign then display 4th character of version +>12 ubyte =0x3e \b) +>12 ubyte !0x3e \b%c) +# comment starting with # shows the name+version number of generating program +>13 search/3 # +>>&0 string x "%s" 0 search/1 \<MakerDictionary FrameMaker Dictionary text !:mime application/x-mif >17 string 3.0 (3.0) |