maple revision 284194
1221431Sjonathan
2221431Sjonathan#------------------------------------------------------------------------------
3224651Sjonathan# $File: maple,v 1.7 2013/01/11 16:45:23 christos Exp $
4221431Sjonathan# maple:  file(1) magic for maple files
5221431Sjonathan# "H. Nanosecond" <aldomel@ix.netcom.com>
6221431Sjonathan# Maple V release 4, a multi-purpose math program
7221431Sjonathan#
8221431Sjonathan
9221431Sjonathan# maple library .lib
10221431Sjonathan0	string	\000MVR4\nI	MapleVr4 library
11221431Sjonathan
12221431Sjonathan# .ind
13221431Sjonathan# no magic for these :-(
14221431Sjonathan# they are compiled indexes for maple files
15221431Sjonathan
16221431Sjonathan# .hdb 
17221431Sjonathan0	string	\000\004\000\000	Maple help database
18221431Sjonathan
19221431Sjonathan# .mhp
20221431Sjonathan# this has the form <PACKAGE=name>
21221431Sjonathan0	string	\<PACKAGE=	Maple help file
22221431Sjonathan0	string	\<HELP\ NAME=	Maple help file
23221431Sjonathan0	string	\n\<HELP\ NAME=	Maple help file with extra carriage return at start (yuck)
24221431Sjonathan#0	string	#\ Newton	Maple help file, old style
25221431Sjonathan0	string	#\ daub	Maple help file, old style
26221431Sjonathan#0	string	#===========	Maple help file, old style
27221431Sjonathan
28221431Sjonathan# .mws
29221431Sjonathan0	string	\000\000\001\044\000\221	Maple worksheet
30221431Sjonathan#this is anomalous
31221431Sjonathan0	string	WriteNow\000\002\000\001\000\000\000\000\100\000\000\000\000\000	Maple worksheet, but weird
32221431Sjonathan# this has the form {VERSION 2 3 "IBM INTEL NT" "2.3" }\n
33224651Sjonathan# that is {VERSION major_version miunor_version computer_type version_string}
34224651Sjonathan0	string	{VERSION\ 	Maple worksheet
35224651Sjonathan>9	string	>\0	version %.1s.
36224778Srwatson>>11	string	>\0	%.1s
37224651Sjonathan
38221431Sjonathan# .mps
39224651Sjonathan0	string	\0\0\001$	Maple something
40224651Sjonathan# from byte 4 it is either 'nul E' or 'soh R'
41221431Sjonathan# I think 'nul E' means a file that was saved as  a different name
42221431Sjonathan# a sort of revision marking
43221431Sjonathan# 'soh R' means new 
44224651Sjonathan>4	string	\000\105	An old revision
45224651Sjonathan>4	string	\001\122	The latest save
46224651Sjonathan
47224651Sjonathan# .mpl
48224651Sjonathan# some of these are the same as .mps above
49224651Sjonathan#0000000 000 000 001 044 000 105 same as .mps
50224651Sjonathan#0000000 000 000 001 044 001 122 same as .mps
51224651Sjonathan
52224989Sjonathan0	string	#\n##\ <SHAREFILE=	Maple something
53224989Sjonathan0	string	\n#\n##\ <SHAREFILE=	Maple something
54224793Sjonathan0	string	##\ <SHAREFILE=	Maple something
55224651Sjonathan0	string	#\r##\ <SHAREFILE=	Maple something
56224651Sjonathan0	string	\r#\r##\ <SHAREFILE=	Maple something
57224784Sjonathan0	string	#\ \r##\ <DESCRIBE>	Maple something anomalous.
58224651Sjonathan