maple 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. >>>11 string >\0 %.1s
  30. # .mps
  31. 0 string \0\0\001$ Maple something
  32. # from byte 4 it is either 'nul E' or 'soh R'
  33. # I think 'nul E' means a file that was saved as a different name
  34. # a sort of revision marking
  35. # 'soh R' means new
  36. >4 string \000\105 An old revision
  37. >4 string \001\122 The latest save
  38. # .mpl
  39. # some of these are the same as .mps above
  40. #0000000 000 000 001 044 000 105 same as .mps
  41. #0000000 000 000 001 044 001 122 same as .mps
  42. 0 string #\n##\ <SHAREFILE= Maple something
  43. 0 string \n#\n##\ <SHAREFILE= Maple something
  44. 0 string ##\ <SHAREFILE= Maple something
  45. 0 string #\r##\ <SHAREFILE= Maple something
  46. 0 string \r#\r##\ <SHAREFILE= Maple something
  47. 0 string #\ \r##\ <DESCRIBE> Maple something anomalous.