maple 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. #------------------------------------------------------------------------------
  2. # $File: maple,v 1.7 2013/01/11 16:45:23 christos Exp $
  3. # maple: file(1) magic for maple files
  4. # "H. Nanosecond" <aldomel@ix.netcom.com>
  5. # Maple V release 4, a multi-purpose math program
  6. #
  7. # maple library .lib
  8. 0 string \000MVR4\nI MapleVr4 library
  9. # .ind
  10. # no magic for these :-(
  11. # they are compiled indexes for maple files
  12. # .hdb
  13. 0 string \000\004\000\000 Maple help database
  14. # .mhp
  15. # this has the form <PACKAGE=name>
  16. 0 string \<PACKAGE= Maple help file
  17. 0 string \<HELP\ NAME= Maple help file
  18. 0 string \n\<HELP\ NAME= Maple help file with extra carriage return at start (yuck)
  19. #0 string #\ Newton Maple help file, old style
  20. 0 string #\ daub Maple help file, old style
  21. #0 string #=========== Maple help file, old style
  22. # .mws
  23. 0 string \000\000\001\044\000\221 Maple worksheet
  24. #this is anomalous
  25. 0 string WriteNow\000\002\000\001\000\000\000\000\100\000\000\000\000\000 Maple worksheet, but weird
  26. # this has the form {VERSION 2 3 "IBM INTEL NT" "2.3" }\n
  27. # that is {VERSION major_version miunor_version computer_type version_string}
  28. 0 string {VERSION\ Maple worksheet
  29. >9 string >\0 version %.1s.
  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.