1 | This directory contains initial work on: |
---|
2 | |
---|
3 | mpview |
---|
4 | |
---|
5 | a program that can display file.mp, an mp-encoded data file, |
---|
6 | in prefix, infix, or latex form. See testall for the usage. |
---|
7 | The work is imcomplete by far: |
---|
8 | |
---|
9 | (1) displaying annotations has to be addressed |
---|
10 | (2) Many latex constructs to be added |
---|
11 | (3) must be tested and ported on different platforms |
---|
12 | |
---|
13 | The purpose is for mpview to be a viewer for mp data files just like |
---|
14 | a .gif viewer. It can then be used together with MIME mail and |
---|
15 | on the Web. We use application/mp as the MIME document type for mp. |
---|
16 | A simple previewer program for .mp files is found in the |
---|
17 | displaymp script. |
---|
18 | |
---|
19 | To enable MIME mail viewing of MP data modify the following line and |
---|
20 | add to your ~/.mailcap file something like the following |
---|
21 | |
---|
22 | application/mp; LOCAL_BIN_PATH/displaymp %s |
---|
23 | |
---|
24 | where LOCAL_BIN_PATH is the full pathname to where displaymp will |
---|
25 | be installed. For example, |
---|
26 | |
---|
27 | application/mp; /users/research/wang/pwang/cmd/displaymp %s |
---|
28 | |
---|
29 | displaymp is a script which will invoke the mpview program, so you |
---|
30 | will need to modify displaymp to contain the correct path to where |
---|
31 | mpview is to be installed. |
---|
32 | |
---|
33 | This also enables any Web viewer which uses the .mailcap file to |
---|
34 | treat this type of MIME data. |
---|
35 | |
---|
36 | To enable a Web browser such as netscape and xmosaic to display |
---|
37 | a file with .mp extension you need to also add the following line |
---|
38 | to your ~/.mime.types file |
---|
39 | |
---|
40 | application/mp mp |
---|
41 | |
---|
42 | |
---|
43 | Another part of this project is the creation of MP data from |
---|
44 | MAXIMA. This facility is in the file "maxima/mpsend.lsp". See that |
---|
45 | file for details of compilation and use. |
---|
46 | |
---|
47 | |
---|
48 | =============== |
---|
49 | |
---|
50 | Files: |
---|
51 | |
---|
52 | mpview.c -- the main program |
---|
53 | infix.c -- for converting to infix form |
---|
54 | latex.c -- for for converting to latex form |
---|
55 | prefix.c -- for converting to prefix form |
---|
56 | leaf.c -- handling leaf nodes, used by both infix.c and latex.c |
---|
57 | node.c -- this contains knowledge of the .mp binary file structure |
---|
58 | and supplies routines to read a nodes from an mp-tree |
---|
59 | contained in a .mp file. |
---|