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