source: git/MP/mpviewer/README @ 678cfd

spielwiese
Last change on this file since 678cfd was 678cfd, checked in by Olaf Bachmann <obachman@…>, 27 years ago
This commit was generated by cvs2svn to compensate for changes in r337, which included commits to RCS files with non-trunk default branches. git-svn-id: file:///usr/local/Singular/svn/trunk@338 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100644
File size: 1.9 KB
Line 
1This directory contains initial work on:
2
3mpview
4
5a program that can display file.mp, an mp-encoded data file,
6in prefix, infix, or latex form.  See testall for the usage.
7The 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
13The purpose is for mpview to be a viewer for mp data files just like
14a .gif viewer.  It can then be used together with MIME mail and
15on the Web.  We use application/mp as the MIME document type for mp.
16A simple previewer program for .mp files is found in the
17displaymp script.
18
19To enable MIME mail viewing of MP data modify the following line and
20add to your ~/.mailcap file something like the following
21
22application/mp;  LOCAL_BIN_PATH/displaymp %s
23
24where LOCAL_BIN_PATH is the full pathname to where displaymp will
25be installed.  For example,
26
27application/mp;  /users/research/wang/pwang/cmd/displaymp %s
28
29displaymp is a script which will invoke the mpview program, so you
30will need to modify displaymp to contain the correct path to where
31mpview is to be installed.
32
33This also enables any Web viewer which uses the .mailcap file to
34treat this type of MIME data.
35
36To enable a Web browser such as netscape and xmosaic to display
37a file with .mp extension you need to also add the following line
38to your ~/.mime.types file
39
40application/mp     mp
41
42
43Another part of this project is the creation of MP data from
44MAXIMA.  This facility is in the file "maxima/mpsend.lsp".  See that
45file for details of compilation and use.
46
47
48===============
49
50Files:
51
52mpview.c -- the main program
53infix.c -- for converting to infix form
54latex.c -- for for converting to latex form
55prefix.c -- for converting to prefix form
56leaf.c -- handling leaf nodes, used by both infix.c and latex.c
57node.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.
Note: See TracBrowser for help on using the repository browser.