|
WIRIS Formula Editor Formula and CAS plugins
WIRIS CAS WIRIS Quizzes |
The WIRIS Formula Editor is comprised of the Formula Image Service and Applet Editor. This document explains how to install and use such components. You will normally use the WIRIS Formula Editor with a Formula plugin but there are occasions where the WIRIS Formula Editor can be use alone. For example, a learning platform could provide a quizzes system and the students could type the answer of the mathematical questions with the WIRIS Formula Editor. Formula Image Service and Applet EditorTesting and using the formula editor applet Testing and using the image service WIRIS Formula Editor is comprised of the following components
In the server side, to run the image service, the following requirements are needed:
The clients that need to edit formulas will require:
Do the following steps
Note. In linux or unix servers, when the X libraries are not available the image service might be unable to generate any image. To fix it, the Java property java.awt.headless must be set to true. See http://www.jguru.com/faq/view.jsp?EID=222296 or http://java.sun.com/developer/technicalArticles/J2SE/Desktop/headless/
Testing and using the formula editor appletTo test the formula editor, open the URL http://<server>/formula/editor.html where <server> is the server and port of the application server. You should see the following:
This Web page (editor.html and util.js) is an example of how using the formula editor. To get or set the MathML from/to the editor the following methods are available from JavaScript String getContent() Applet parametersThe applet supports the following parameters
The page http://<domain:port>/formula/parameters.html (former http://<domain:port>/formula/codebase/parameters-editor.html) can be used to test the above parameters. Enter http://<domain:port>/formula/ to see the main page of the formula editor. The link formula/render points to where the image service is located (it will not work unless the mml parameter with the formula is set). To see a full example, go to Test page. The image service generates PNG images from xml documents representing a formula. The xml code must be in the MathML format. To generate an image you must send the corresponding parameters using the HTTP GET or POST method to the image service URL. There is only one required parameter, which is the xml code representing the formula; this parameter is called mml. Image service parametersIn addition to mml, the image service supports all the following parameters:
|