frame 2.2 KB

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