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