Skip to content
Permalink
Browse files

MDL-15254: move dragmath plugin to a common folder, out of tinymce hi…

…erarchy
  • Loading branch information...
scyrma
scyrma committed Jun 16, 2008
1 parent a425884 commit 112b04c7ce8062c77aec7c878dfd29542efa8ef0

Large diffs are not rendered by default.

@@ -0,0 +1,20 @@
<html>
<head>
<title>DragMath Documentation - About DragMath</title>
</head>
<body>

<font size="2"; style="font-family: Arial;">

<p><h2><span style=" color: #000099;"><strong>About DragMath</strong></span></h2></p>

<p>
DragMath is a simple "drag and drop" equation editor for mathematics. Accepting certain traditional mathematical conventions, the user can build a mathematical expression. This expression can be exported in a number of different formats. DragMath is a simple Java applet, and could be incorporated into web-based applications or other Java applications.
</p>
<p>
DragMath started as a final-year University project at the <a href ="http://www.bham.ac.uk/">University of Birmingham<a/> by <a href="http://www.abillingsley.co.uk">Alex Billingsley</a> under the supervision of <a href ="http://web.mat.bham.ac.uk/C.J.Sangwin/">Chris Sangwin</a>. It's main application is therefore directed toward an educational one.
</p>

</font>
</body>
</html>
@@ -0,0 +1,32 @@
<html>
<head>
<title>DragMath Documentation - License</title>
</head>
<body>

<font size="2"; style="font-family: Arial;">

<h2><span style="color: #000099;"><strong>DragMath copyright information</strong></span></h2>

<p>DragMath is licensed under the GNU General Public License (GPL) (<a href="http://www.gnu.org/copyleft/gpl.html">http://www.gnu.org/copyleft/gpl.html</a>)
</p><p>
All source code in this package is written by <a href="http://www.abillingsley.co.uk">Alex Billingsley</a> except the libraries used. The copyright information for the libaries is included below:</p>
<br>
<p>
<h4>JDOM<br> <a href="http://www.jdom.org">http://www.jdom.org</a></h4>
JDOM is available under an Apache-style open source license, with the acknowledgment clause removed. This license is among the least restrictive license available, enabling developers to use JDOM in creating new products without requiring them to release their own products as open source. This is the license model used by the Apache Project, which created the Apache server. The license is available at the top of every source file and in LICENSE.txt in the root of the distribution.
</p>
<br>
<p>
<h4>JEP<br><a href="https://sourceforge.net/projects/jep/">https://sourceforge.net/projects/jep/</a></h4>
JEP is licensed under the GNU General Public License (GPL) (<a href="http://www.gnu.org/copyleft/gpl.html">http://www.gnu.org/copyleft/gpl.html</a>)</p>
<p>
<br>
<h4>glyFX Common Toolbar Set Icons<br> <a href="http://www.glyfx.com">http://www.glyfx.com</a></h4>
Icons used in software, license found at; <a href="http://www.glyfx.com/license-toolbar.html">http://www.glyfx.com/license-toolbar.html</a></p>


</font>

</body>
</html>
@@ -0,0 +1,85 @@
<html>
<head>
<title>DragMath Documentation - Running applet in web browser</title>
</head>
<body>

<font size="2"; style="font-family: Arial;">

<h2><span style=" color: #000099;"><strong>Running applet in web browser</strong></span></h2>

<p>
Details are given on the file structure of the required files, and &lt;APPLET&gt; tag to enable the applet to run in a web browser.
</p><p>
The applet currently requires Java Runtime Environment (JRE) 1.4 or higher to run, which can be obtained from <A href="http://www.java.com">www.java.com</A>
</p><p>
The recommended file structure is:
</p>

<dl>
<dd>applet.html</dd>
<br>
<dd>\dragmath</dd>
<br>
<dl>
<dd>\Display</dd>
<dl>
<dd>MainApplet.class</dd>
</dl>
<br>
<dd>\lang</dd>
<dl>
<dd>en.xml</dd>
</dl>
<br>
<dd>\formats</dd>
<dl>
<dd>Maple.xml</dd>
<dd>Latex.xml</dd>
<dd>MathML.xml</dd>
<dd>Maxima.xml</dd>
</dl>
<br>
<dd>AbsoluteLayout.jar</dd>
<dd>swing-layouts-1.0.jar</dd>
<dd>jdom.jar</dd>
<dd>jep.jar</dd>
<dd>Project.jar</dd>
</dl>
</dl>
<br>
Using this structure the following &lt;APPLET&gt; tag should be used:
</p>
<p>
<STRONG>
<FONT color=#800080>&lt;applet</FONT>
name=</STRONG>
<FONT color=#0000ff>"dragmath"</FONT>
<STRONG>codebase=</STRONG><FONT
color=#0000ff>"classes"</FONT>
<STRONG>code=</STRONG>
<FONT color=#0000ff>"Display.MainApplet.class"</FONT>
<STRONG>archive=</STRONG>
<FONT color=#0000ff>"Project.jar,AbsoluteLayout.jar,swing-layout-1.0.jar,,jdom.jar,,jep.jar"</FONT>
<STRONG> width=</STRONG>
<FONT color=#0000ff>540</FONT>
<STRONG> height=</STRONG>
<FONT color=#0000ff>300</FONT>
<STRONG>&gt;<BR>
<FONT color=#800080>&lt;param</FONT>
name=</STRONG>
<FONT color=#0000ff>language </FONT>
<STRONG>value=</STRONG>
<FONT color=#0000ff>"en"</FONT>
<STRONG> &gt;<BR>
<FONT color=#800080>&lt;/applet &gt;</FONT>
</STRONG>
</p>

All of the .jar files in the \dragmath directory require digitally signing. A tutorial on how to do this can be viewed at,<br>
<A href="http://java.sun.com/developer/onlineTraining/Programming/JDCBook/signed.html#example">http://java.sun.com/developer/onlineTraining/Programming/JDCBook/signed.html#example</A>

</font>

</body>
</html>
@@ -0,0 +1,209 @@
<html>
<head>
<title>DragMath Documentation - Creating complex expressions</title>
</head>
<body>

<font size="2"; style="font-family: Arial;">

<h2><span style=" color: #000099;"><strong>Creating complex expressions</strong></span></h2>

<p>
To apply an object to multiple objects, you will need to select the multiple objects and then click on the object to apply in the toolbar. Selection is performed as it is in any program, by using the mouse to highlight the desired area.
</p>
<p>
Operators and functions can be entered into text boxes using the keyboard with the following syntax:
</p>
<br>

<table border="1">
<tr>
<th>Name</th>
<th>Syntax</th>
</tr>
<tr>
<td>Addition</td>
<td>+</td>
</tr>
<tr>
<td>Multiplication</td>
<td>*</td>
</tr>
<tr>
<td>Division</td>
<td>/</td>
</tr>
<tr>
<td>Greater than</td>
<td>></td>
</tr>
<tr>
<td>Less than</td>
<td>&lt;</td>
</tr>
<tr>
<td>Equal</td>
<td>=<br>==</td>
</tr>
<tr>
<td>Less than or Equal</td>
<td>&lt;=</td>
</tr>
<tr>
<td>Greater than or Equal</td>
<td>>=</td>
</tr>
<tr>
<td>Power</td>
<td>^</td>
</tr>
<tr>
<td>Sine</td>
<td>sin(x)</td>
</tr>
<tr>
<td>Cosine</td>
<td>cos(x)</td>
</tr>
<tr>
<td>Tangent</td>
<td>tan(x)</td>
</tr>
<tr>
<td>Arc Sine</td>
<td>asin(x)</td>
</tr>
<tr>
<td>Arc Cosine</td>
<td>acos(x)</td>
</tr>
<tr>
<td>Arc Tangent</td>
<td>atan(x)</td>
</tr>
<tr>
<td>Hyperbolic Sine</td>
<td>sinh(x)</td>
</tr>
<tr>
<td>Hyperbolic Cosine</td>
<td>cosh(x)</td>
</tr>
<tr>
<td>Hyperbolic Tangent</td>
<td>tanh(x)</td>
</tr>
<td>Inverse Hyperbolic Sine</td>
<td>asinh(x)</td>
</tr>
<tr>
<td>Inverse Hyperbolic Cosine</td>
<td>acosh(x)</td>
</tr>
<tr>
<td>Inverse Hyperbolic Tangent</td>
<td>atanh(x)</td>
</tr>
<tr>
<td>Natural Logarithm</td>
<td>ln(x)</td>
</tr>
<tr>
<td>Logarithm</td>
<td>log(x)</td>
</tr>
<tr>
<td>Exponential</td>
<td>exp(x)</td>
</tr>
<tr>
<td>Absolute Value</td>
<td>abs(x)</td>
</tr>
<tr>
<td>Square Root</td>
<td>sqrt(x)</td>
</tr>
<tr>
<td>Union</td>
<td>union(a,b)</td>
</tr>
<tr>
<td>Intersection</td>
<td>intersection(a,b)</td>
</tr>
<tr>
<td>Determinant</td>
<td>det(a)</td>
</tr>
<tr>
<td>Trace</td>
<td>trace(a)</td>
</tr>
<tr>
<td>Subset</td>
<td>subset(a,b)</td>
</tr>
<tr>
<td>Integral</td>
<td>integrate(f,x)<br>
int(f,x)</td>
</tr>
<tr>
<td>Definite Integral</td>
<td>integrate(f,x,a,b)<br>
int(f,x,a,b)
</td>
</tr>
<tr>
<td>Differential</td>
<td>diff(f,x)</td>
</tr>
<td>Sum</td>
<td>sum(n^2,n,1,10)</td>
</tr>
<td>Product</td>
<td>product(n^2,n,1,10)</td>
</tr>

</table>

<p>
Once the box that you have been typing in has been left then the text is turned into templates automatically for you.
</p>
<br>
<font size=3>
<b>How to use layout templates</b>
</font>

<p>
There are special templates called layout templates, beause they each take a unique layout. These are:<br>
Fraction<br>
Square Root<br>
N-th Root<br>
Subscript<br>
Superscript<br>
Matrix<br>
Integral<br>
Differential<br>
Product<br>
Sum<br>
Limit<br>
Evaluate at a point<br>
Grouping (round brackets, curly brackets, square brackets, modulus)<br>
</p>
<p>
These layout templates can be used in exactly the same way as the other math templates.
</p>

<br>
<font size=3>
<b>How to add symbols</b>
</font>
<p>
Symbols such as greek letters are added by clicking in the box you wish to insert the symbol, and then clicking on the symbol in the toolbar.
</p>

</font>
</body>
</html>

0 comments on commit 112b04c

Please sign in to comment.
You can’t perform that action at this time.