maple 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. #------------------------------------------------------------------------------
  2. # maple: file(1) magic for maple files
  3. # "H. Nanosecond" <aldomel@ix.netcom.com>
  4. # Maple V release 4, a multi-purpose math program
  5. #
  6. # maple library .lib
  7. 0 string \000MVR4\nI MapleVr4 library
  8. # .ind
  9. # no magic for these :-(
  10. # they are compiled indexes for maple files
  11. # .hdb
  12. 0 string \000\004\000\000 Maple help database
  13. # .mhp
  14. # this has the form <PACKAGE=name>
  15. 0 string \<PACKAGE= Maple help file
  16. 0 string \<HELP\ NAME= Maple help file
  17. 0 string \n\<HELP\ NAME= Maple help file with extra carriage return at start (yuck)
  18. #0 string #\ Newton Maple help file, old style
  19. 0 string #\ daub Maple help file, old style
  20. #0 string #=========== Maple help file, old style
  21. # .mws
  22. 0 string \000\000\001\044\000\221 Maple worksheet
  23. #this is anomalous
  24. 0 string WriteNow\000\002\000\001\000\000\000\000\100\000\000\000\000\000 Maple worksheet, but weird
  25. # this has the form {VERSION 2 3 "IBM INTEL NT" "2.3" }\n
  26. # that is {VERSION major_version miunor_version computer_type version_string}
  27. 0 string {VERSION\ Maple worksheet
  28. >9 string >\0 version %.1s.
  29. >>10 string
  30. >>>11 string >\0 %.1s
  31. # .mps
  32. 0 string \0\0\001$ Maple something
  33. # from byte 4 it is either 'nul E' or 'soh R'
  34. # I think 'nul E' means a file that was saved as a different name
  35. # a sort of revision marking
  36. # 'soh R' means new
  37. >4 string \000\105 An old revision
  38. >4 string \001\122 The latest save
  39. # .mpl
  40. # some of these are the same as .mps above
  41. #0000000 000 000 001 044 000 105 same as .mps
  42. #0000000 000 000 001 044 001 122 same as .mps
  43. 0 string #\n##\ <SHAREFILE= Maple something
  44. 0 string \n#\n##\ <SHAREFILE= Maple something
  45. 0 string ##\ <SHAREFILE= Maple something
  46. 0 string #\r##\ <SHAREFILE= Maple something
  47. 0 string \r#\r##\ <SHAREFILE= Maple something
  48. 0 string #\ \r##\ <DESCRIBE> Maple something anomalous.