From: skodak Date: Mon, 6 Jul 2009 21:18:49 +0000 (+0000) Subject: MDL-19725 latest dragmath 0.7.8.1 imported X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=aef0bc4830cbe53d6b3aca41e765e1f32ba1d543;p=moodle.git MDL-19725 latest dragmath 0.7.8.1 imported --- diff --git a/lib/dragmath/COPYRIGHT.html b/lib/dragmath/COPYRIGHT.html index 6a64688000..4d133d0db0 100644 --- a/lib/dragmath/COPYRIGHT.html +++ b/lib/dragmath/COPYRIGHT.html @@ -1,30 +1,30 @@ - - -DragMath Documentation - License - - - -DragMath copyright information - - - -

DragMath is licensed under the GNU General Public License (GPL) (http://www.gnu.org/copyleft/gpl.html) -

-All source code in this package is written by Alex Billingsley except the libraries used. The copyright information for the libaries is included below:

-
-

-

JDOM
http://www.jdom.org

-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. -

-
-

-

JEP
https://sourceforge.net/projects/jep/

-JEP is licensed under the GNU General Public License (GPL) (http://www.gnu.org/copyleft/gpl.html)

-

-
-

glyFX Common Toolbar Set Icons
http://www.glyfx.com

-Icons used in software, license found at; http://www.glyfx.com/license-toolbar.html

-
- - + + +DragMath Documentation - License + + + +DragMath copyright information + + + +

DragMath is licensed under the GNU General Public License (GPL) (http://www.gnu.org/copyleft/gpl.html) +

+All source code in this package is written by Alex Billingsley except the libraries used. The copyright information for the libaries is included below:

+
+

+

JDOM
http://www.jdom.org

+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. +

+
+

+

JEP
https://sourceforge.net/projects/jep/

+JEP is licensed under the GNU General Public License (GPL) (http://www.gnu.org/copyleft/gpl.html)

+

+
+

glyFX Common Toolbar Set Icons
http://www.glyfx.com

+Icons used in software, license found at; http://www.glyfx.com/license-toolbar.html

+
+ + \ No newline at end of file diff --git a/lib/dragmath/README.html b/lib/dragmath/README.html index b15017842b..7f21b1f10c 100644 --- a/lib/dragmath/README.html +++ b/lib/dragmath/README.html @@ -57,7 +57,7 @@ SoureForge.net Project:http:/

-
applet/classes/ +
applet/
formats/
Export formats
diff --git a/lib/dragmath/Version History.html b/lib/dragmath/Version History.html index d6b96def1d..8d82e48f6b 100644 --- a/lib/dragmath/Version History.html +++ b/lib/dragmath/Version History.html @@ -12,6 +12,16 @@ DragMath - Version History
+DragMath 0.7.8.1 released 06/07/2009 +

+Bugs fixed: +

+
    +
  1. Error with library file locations (not fixed in 0.7.8)
  2. +
  3. Error with XML Parser
  4. +
+
+ DragMath 0.7.8 released 06/06/2009

New Languages: diff --git a/lib/dragmath/applet/Display/MainApplet.class b/lib/dragmath/applet/Display/MainApplet.class index 65848dd3ec..abb81af7e1 100644 Binary files a/lib/dragmath/applet/Display/MainApplet.class and b/lib/dragmath/applet/Display/MainApplet.class differ diff --git a/lib/dragmath/applet/DragMath.jar b/lib/dragmath/applet/DragMath.jar new file mode 100644 index 0000000000..765fc12646 Binary files /dev/null and b/lib/dragmath/applet/DragMath.jar differ diff --git a/lib/dragmath/applet/HotEqn/HotEqn.class b/lib/dragmath/applet/HotEqn/HotEqn.class deleted file mode 100644 index 2d494e858c..0000000000 Binary files a/lib/dragmath/applet/HotEqn/HotEqn.class and /dev/null differ diff --git a/lib/dragmath/applet/HotEqn/HotEqn.jar b/lib/dragmath/applet/HotEqn/HotEqn.jar deleted file mode 100644 index 70825cc09e..0000000000 Binary files a/lib/dragmath/applet/HotEqn/HotEqn.jar and /dev/null differ diff --git a/lib/dragmath/applet/Project.jar b/lib/dragmath/applet/Project.jar deleted file mode 100644 index 763f28f03a..0000000000 Binary files a/lib/dragmath/applet/Project.jar and /dev/null differ diff --git a/lib/dragmath/doc/about.html b/lib/dragmath/doc/about.html index f82898dd64..3dc208b047 100644 --- a/lib/dragmath/doc/about.html +++ b/lib/dragmath/doc/about.html @@ -1,20 +1,20 @@ - - -DragMath Documentation - About DragMath - - - - - -

About DragMath

- -

-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. -

-

-DragMath started as a final-year University project at the University of Birmingham by Alex Billingsley under the supervision of Chris Sangwin. It's main application is therefore directed toward an educational one. -

- -
- + + +DragMath Documentation - About DragMath + + + + + +

About DragMath

+ +

+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. +

+

+DragMath started as a final-year University project at the University of Birmingham by Alex Billingsley under the supervision of Chris Sangwin. It's main application is therefore directed toward an educational one. +

+ +
+ \ No newline at end of file diff --git a/lib/dragmath/doc/acknowledgments.html b/lib/dragmath/doc/acknowledgments.html index 4c70f247ce..8fc1ff597e 100644 --- a/lib/dragmath/doc/acknowledgments.html +++ b/lib/dragmath/doc/acknowledgments.html @@ -1,32 +1,32 @@ - - -DragMath Documentation - License - - - - - -

DragMath copyright information

- -

DragMath is licensed under the GNU General Public License (GPL) (http://www.gnu.org/copyleft/gpl.html) -

-All source code in this package is written by Alex Billingsley except the libraries used. The copyright information for the libaries is included below:

-
-

-

JDOM
http://www.jdom.org

-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. -

-
-

-

JEP
https://sourceforge.net/projects/jep/

-JEP is licensed under the GNU General Public License (GPL) (http://www.gnu.org/copyleft/gpl.html)

-

-
-

glyFX Common Toolbar Set Icons
http://www.glyfx.com

-Icons used in software, license found at; http://www.glyfx.com/license-toolbar.html

- - -
- - + + +DragMath Documentation - License + + + + + +

DragMath copyright information

+ +

DragMath is licensed under the GNU General Public License (GPL) (http://www.gnu.org/copyleft/gpl.html) +

+All source code in this package is written by Alex Billingsley except the libraries used. The copyright information for the libaries is included below:

+
+

+

JDOM
http://www.jdom.org

+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. +

+
+

+

JEP
https://sourceforge.net/projects/jep/

+JEP is licensed under the GNU General Public License (GPL) (http://www.gnu.org/copyleft/gpl.html)

+

+
+

glyFX Common Toolbar Set Icons
http://www.glyfx.com

+Icons used in software, license found at; http://www.glyfx.com/license-toolbar.html

+ + +
+ + \ No newline at end of file diff --git a/lib/dragmath/doc/browser.html b/lib/dragmath/doc/browser.html index 585d74f25c..5d4b75056f 100644 --- a/lib/dragmath/doc/browser.html +++ b/lib/dragmath/doc/browser.html @@ -1,85 +1,91 @@ - - -DragMath Documentation - Running applet in web browser - - - - - -

Running applet in web browser

- -

-Details are given on the file structure of the required files, and <APPLET> tag to enable the applet to run in a web browser. -

-The applet currently requires Java Runtime Environment (JRE) 1.4 or higher to run, which can be obtained from www.java.com -

-The recommended file structure is: -

- -
-
applet.html
-
-
\dragmath
-
-
-
\Display
-
-
MainApplet.class
-
-
-
\lang
-
-
en.xml
-
-
-
\formats
-
-
Maple.xml
-
Latex.xml
-
MathML.xml
-
Maxima.xml
-
-
-
AbsoluteLayout.jar
-
swing-layouts-1.0.jar
-
jdom.jar
-
jep.jar
-
Project.jar
-
-
-
-Using this structure the following <APPLET> tag should be used: -

-

- -<applet -name= -"dragmath" -codebase="classes" -code= -"Display.MainApplet.class" - archive= -"Project.jar,AbsoluteLayout.jar,swing-layout-1.0.jar,,jdom.jar,,jep.jar" - width= -540 - height= -300 ->
-<param -name=
-language -value= -"en" - >
-</applet > -
-

- -All of the .jar files in the \dragmath directory require digitally signing. A tutorial on how to do this can be viewed at,
-http://java.sun.com/developer/onlineTraining/Programming/JDCBook/signed.html#example - -
- - + + +DragMath Documentation - Running applet in web browser + + + + + +

Running applet in web browser

+ +

+Details are given on the file structure of the required files, and <APPLET> tag to enable the applet to run in a web browser. +

+The applet currently requires Java Runtime Environment (JRE) 1.4 or higher to run, which can be obtained from www.java.com +

+The recommended file structure is: +

+ +
+
applet.html
+
+
\dragmath
+
+
+
\Display
+
+
MainApplet.class
+
+
+
\lang
+
+
en.xml
+
+
+
\formats
+
+
Maple.xml
+
Latex.xml
+
MathML.xml
+
Maxima.xml
+
+
+
\lib
+
+
AbsoluteLayout.jar
+
swing-layouts-1.0.jar
+
jdom.jar
+
jep.jar
+
Project.jar
+
+
+
Config.xml
+
DragMath.jar
+
+
+
+Using this structure the following <APPLET> tag should be used: +

+

+ +<applet +name= +"dragmath" +codebase="dragmath" +code= +"Display.MainApplet.class" + archive= +"DragMath.jar" + width= +540 + height= +300 +>
+<param +name=
+language +value= +"en" + >
+</applet > +
+

+ +All of the .jar files in the \dragmath directory require digitally signing. A tutorial on how to do this can be viewed at,
+http://java.sun.com/developer/onlineTraining/Programming/JDCBook/signed.html#example + +
+ + \ No newline at end of file diff --git a/lib/dragmath/doc/complex.html b/lib/dragmath/doc/complex.html index 98317bffd5..9a443c65e6 100644 --- a/lib/dragmath/doc/complex.html +++ b/lib/dragmath/doc/complex.html @@ -1,209 +1,209 @@ - - -DragMath Documentation - Creating complex expressions - - - - - -

Creating complex expressions

- -

-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. -

-

-Operators and functions can be entered into text boxes using the keyboard with the following syntax: -

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameSyntax
Addition+
Multiplication*
Division/
Greater than>
Less than<
Equal=
==
Less than or Equal<=
Greater than or Equal>=
Power^
Sinesin(x)
Cosinecos(x)
Tangenttan(x)
Arc Sineasin(x)
Arc Cosineacos(x)
Arc Tangentatan(x)
Hyperbolic Sinesinh(x)
Hyperbolic Cosinecosh(x)
Hyperbolic Tangenttanh(x)
Inverse Hyperbolic Sineasinh(x)
Inverse Hyperbolic Cosineacosh(x)
Inverse Hyperbolic Tangentatanh(x)
Natural Logarithmln(x)
Logarithmlog(x)
Exponentialexp(x)
Absolute Valueabs(x)
Square Rootsqrt(x)
Unionunion(a,b)
Intersectionintersection(a,b)
Determinantdet(a)
Tracetrace(a)
Subsetsubset(a,b)
Integralintegrate(f,x)
-int(f,x)
Definite Integralintegrate(f,x,a,b)
-int(f,x,a,b) -
Differentialdiff(f,x)
Sumsum(n^2,n,1,10)
Productproduct(n^2,n,1,10)
- -

-Once the box that you have been typing in has been left then the text is turned into templates automatically for you. -

-
- -How to use layout templates - - -

-There are special templates called layout templates, beause they each take a unique layout. These are:
-Fraction
-Square Root
-N-th Root
-Subscript
-Superscript
-Matrix
-Integral
-Differential
-Product
-Sum
-Limit
-Evaluate at a point
-Grouping (round brackets, curly brackets, square brackets, modulus)
-

-

-These layout templates can be used in exactly the same way as the other math templates. -

- -
- -How to add symbols - -

-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. -

- -
- - + + +DragMath Documentation - Creating complex expressions + + + + + +

Creating complex expressions

+ +

+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. +

+

+Operators and functions can be entered into text boxes using the keyboard with the following syntax: +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameSyntax
Addition+
Multiplication*
Division/
Greater than>
Less than<
Equal=
==
Less than or Equal<=
Greater than or Equal>=
Power^
Sinesin(x)
Cosinecos(x)
Tangenttan(x)
Arc Sineasin(x)
Arc Cosineacos(x)
Arc Tangentatan(x)
Hyperbolic Sinesinh(x)
Hyperbolic Cosinecosh(x)
Hyperbolic Tangenttanh(x)
Inverse Hyperbolic Sineasinh(x)
Inverse Hyperbolic Cosineacosh(x)
Inverse Hyperbolic Tangentatanh(x)
Natural Logarithmln(x)
Logarithmlog(x)
Exponentialexp(x)
Absolute Valueabs(x)
Square Rootsqrt(x)
Unionunion(a,b)
Intersectionintersection(a,b)
Determinantdet(a)
Tracetrace(a)
Subsetsubset(a,b)
Integralintegrate(f,x)
+int(f,x)
Definite Integralintegrate(f,x,a,b)
+int(f,x,a,b) +
Differentialdiff(f,x)
Sumsum(n^2,n,1,10)
Productproduct(n^2,n,1,10)
+ +

+Once the box that you have been typing in has been left then the text is turned into templates automatically for you. +

+
+ +How to use layout templates + + +

+There are special templates called layout templates, beause they each take a unique layout. These are:
+Fraction
+Square Root
+N-th Root
+Subscript
+Superscript
+Matrix
+Integral
+Differential
+Product
+Sum
+Limit
+Evaluate at a point
+Grouping (round brackets, curly brackets, square brackets, modulus)
+

+

+These layout templates can be used in exactly the same way as the other math templates. +

+ +
+ +How to add symbols + +

+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. +

+ +
+ + diff --git a/lib/dragmath/doc/cvs.html b/lib/dragmath/doc/cvs.html index dc9f60795b..dc984939f0 100644 --- a/lib/dragmath/doc/cvs.html +++ b/lib/dragmath/doc/cvs.html @@ -1,73 +1,73 @@ - - -DragMath Documentation - Setting up DragMath CVS in NetBeans - - - - - -

Setting up DragMath CVS in NetBeans

- -

-Below are the instructions on how to get active as a developer of DragMath and set up NetBeans with the DragMath code versioning system (CVS).

-

-1. Install NetBeans
-2. Get source code from DragMath CVS repository
-3. Update and Commiting your local source code copy -

-
- - -1. Install NetBeans - -
-

-NetBeans is the integrated development environment (IDE) used for DragMath. -It is open source and can be downloaded from http://www.netbeans.org. -

-
- - -2. Get source code from DragMath CVS repository - -

-Start NetBeans and do the following to get the DragMath source code:
-

-1. File -> New Project -

-2. Choose the 'General' category, and then 'Java Application' under Projects, then click Next. -

-3. Set the Project Name as "ddma". Click Browse to choose the location where you would like the code stored. Then click Next. -

-4. CVS -> Checkout. The click Edit. -

-5. Fill in the location information identifying the DragMath CVS repository and click OK.
- Access Method: pserver for anonymous, ext for developer accounts
- User: "anonymous" or your DragMath developer account at SourceForge
- Host: dragmath.cvs.sourceforge.net
- Repository Path: /cvsroot/dragmath -

-6. Enter your password, none for anonymous login, then click Next -

-7. Set the Module as "ddma", and the Local Folder to the same location the Project was created. Then click Finish. -

-8. Once the source code has been downloaded, click Close to the popup message about opening the project. -

-9. The different packages containing the source code can now be seen in the projects window. The package 'ddma' containing the Main.java class can be deleted, as it was created for the new Project and is not part of the DragMath source code. -

-10. The libraries used by DragMath must now be added to the Project. Right click on Libraries in the Project window, and go to 'Add JAR/Folder...'. Navigate to the ddma -> lib folder and add all the .jar files from this folder. -

-11. The code is now ready to work on. -

-
- -3. Update and Commiting your local source code copy - -

-The code can be updated and commited using the Update and Commit options under the CVS menu in NetBeans. -

- -
- - + + +DragMath Documentation - Setting up DragMath CVS in NetBeans + + + + + +

Setting up DragMath CVS in NetBeans

+ +

+Below are the instructions on how to get active as a developer of DragMath and set up NetBeans with the DragMath code versioning system (CVS).

+

+1. Install NetBeans
+2. Get source code from DragMath CVS repository
+3. Update and Commiting your local source code copy +

+
+ + +1. Install NetBeans + +
+

+NetBeans is the integrated development environment (IDE) used for DragMath. +It is open source and can be downloaded from http://www.netbeans.org. +

+
+ + +2. Get source code from DragMath CVS repository + +

+Start NetBeans and do the following to get the DragMath source code:
+

+1. File -> New Project +

+2. Choose the 'General' category, and then 'Java Application' under Projects, then click Next. +

+3. Set the Project Name as "ddma". Click Browse to choose the location where you would like the code stored. Then click Next. +

+4. CVS -> Checkout. The click Edit. +

+5. Fill in the location information identifying the DragMath CVS repository and click OK.
+ Access Method: pserver for anonymous, ext for developer accounts
+ User: "anonymous" or your DragMath developer account at SourceForge
+ Host: dragmath.cvs.sourceforge.net
+ Repository Path: /cvsroot/dragmath +

+6. Enter your password, none for anonymous login, then click Next +

+7. Set the Module as "ddma", and the Local Folder to the same location the Project was created. Then click Finish. +

+8. Once the source code has been downloaded, click Close to the popup message about opening the project. +

+9. The different packages containing the source code can now be seen in the projects window. The package 'ddma' containing the Main.java class can be deleted, as it was created for the new Project and is not part of the DragMath source code. +

+10. The libraries used by DragMath must now be added to the Project. Right click on Libraries in the Project window, and go to 'Add JAR/Folder...'. Navigate to the ddma -> lib folder and add all the .jar files from this folder. +

+11. The code is now ready to work on. +

+
+ +3. Update and Commiting your local source code copy + +

+The code can be updated and commited using the Update and Commit options under the CVS menu in NetBeans. +

+ +
+ + \ No newline at end of file diff --git a/lib/dragmath/doc/editing.html b/lib/dragmath/doc/editing.html index ee79b40b34..3a7de2cddd 100644 --- a/lib/dragmath/doc/editing.html +++ b/lib/dragmath/doc/editing.html @@ -1,47 +1,47 @@ - - -DragMath Documentation - Editing an expression - - - - - -

Editing an expression

- -

-Basic editing options are supplied to edit the expression: -

- -
    -
  • -Select - Selection is performed similar to any program, by dragging the mouse to highlight the desired area. Objects can also be selected by double clicking on them. You can select all the objects on the workspace by using Select All on the menu, or Ctrl+A on the keyboard. -

    -
  • -Cut – Select the desired area to cut, then either click the Cut button or use Ctrl+X on the keyboard. -

    -
  • -Copy – Select the desired area to copy, then either click the Copy button or use Ctrl+C on the keyboard. -

    -
  • -Paste – Once a selection has been copied, it can be pasted into any box, by clicking on the box to select it, and then either clicking the Paste button or using Ctrl+V on the keyboard. -

    -
  • -Delete – Delete is performed by selecting the area to delete and pressing delete on the keyboard. -

    -
  • -Undo – You can perform an undo by clicking the Undo button -

    -
  • -Redo – You can perform a redo by clicking the Redo button -

    -
  • -Open – Saved expressions can be opened from a file using the Open button -

    -
  • -Save – Expressions can be saved to a file using the Save button -

    -
-
- - + + +DragMath Documentation - Editing an expression + + + + + +

Editing an expression

+ +

+Basic editing options are supplied to edit the expression: +

+ +
    +
  • +Select - Selection is performed similar to any program, by dragging the mouse to highlight the desired area. Objects can also be selected by double clicking on them. You can select all the objects on the workspace by using Select All on the menu, or Ctrl+A on the keyboard. +

    +
  • +Cut – Select the desired area to cut, then either click the Cut button or use Ctrl+X on the keyboard. +

    +
  • +Copy – Select the desired area to copy, then either click the Copy button or use Ctrl+C on the keyboard. +

    +
  • +Paste – Once a selection has been copied, it can be pasted into any box, by clicking on the box to select it, and then either clicking the Paste button or using Ctrl+V on the keyboard. +

    +
  • +Delete – Delete is performed by selecting the area to delete and pressing delete on the keyboard. +

    +
  • +Undo – You can perform an undo by clicking the Undo button +

    +
  • +Redo – You can perform a redo by clicking the Redo button +

    +
  • +Open – Saved expressions can be opened from a file using the Open button +

    +
  • +Save – Expressions can be saved to a file using the Save button +

    +
+
+ + \ No newline at end of file diff --git a/lib/dragmath/doc/index.html b/lib/dragmath/doc/index.html index adcc364d6a..ee180f8af5 100644 --- a/lib/dragmath/doc/index.html +++ b/lib/dragmath/doc/index.html @@ -1,16 +1,16 @@ - - -DragMath Documentation - - - - - - - - - - - - + + +DragMath Documentation + + + + + + + + + + + + diff --git a/lib/dragmath/doc/integrations.html b/lib/dragmath/doc/integrations.html index 662e14af7b..5e4fc96869 100644 --- a/lib/dragmath/doc/integrations.html +++ b/lib/dragmath/doc/integrations.html @@ -1,49 +1,49 @@ - - -DragMath Documentation - Integrations - - - - - -

Integrations

- -

-DragMath has been successfully integrated with a number of different systems. The main method used for extracting the expression in the desired format is by using the getMathExpression() method called from JavaScript within a web page. This method returns the expression in the format specified. -

-
- - -Moodle - -

-Moodle is a free, open source course management system (CMS). Also know as a Learning Managment System (LMS) or Virtual Learning Environment (VLE). For further details please see the specific Moodle installation instructions. -

-
- - -STACK - -

-STACK is a computer aided assessment (CAA) package for mathematics. It was mainly developed by Chris Sangwin (a developer of DragMath). -

-
- - -YourMathsTutor Website - -

-YourMathsTutor is a website created primarily to help students studying the for the UK's Key Stage 3, GCSE, AS and A Level mathematics and physics exams. DragMath has been integrated into the forum on this website. The forum is a Simple Machines Forum (SMF), which is a powerful open source forum. More information on how it was integrated and how it is used in the forum. -

-
- - -http://www.diambars.org/ - -

-The Diambars institute is a training structure embracing sports and education located in Saly, Senegal. -

-
- - + + +DragMath Documentation - Integrations + + + + + +

Integrations

+ +

+DragMath has been successfully integrated with a number of different systems. The main method used for extracting the expression in the desired format is by using the getMathExpression() method called from JavaScript within a web page. This method returns the expression in the format specified. +

+
+ + +Moodle + +

+Moodle is a free, open source course management system (CMS). Also know as a Learning Managment System (LMS) or Virtual Learning Environment (VLE). For further details please see the specific Moodle installation instructions. +

+
+ + +STACK + +

+STACK is a computer aided assessment (CAA) package for mathematics. It was mainly developed by Chris Sangwin (a developer of DragMath). +

+
+ + +YourMathsTutor Website + +

+YourMathsTutor is a website created primarily to help students studying the for the UK's Key Stage 3, GCSE, AS and A Level mathematics and physics exams. DragMath has been integrated into the forum on this website. The forum is a Simple Machines Forum (SMF), which is a powerful open source forum. More information on how it was integrated and how it is used in the forum. +

+
+ + +http://www.diambars.org/ + +

+The Diambars institute is a training structure embracing sports and education located in Saly, Senegal. +

+
+ + \ No newline at end of file diff --git a/lib/dragmath/doc/language.html b/lib/dragmath/doc/language.html index 88ea0057d2..2832ec6c3c 100644 --- a/lib/dragmath/doc/language.html +++ b/lib/dragmath/doc/language.html @@ -1,31 +1,31 @@ - - -DragMath Documentation - Adding a language - - - - - -

Adding a language

- -

-The software is supplied with an English language file, ‘en.xml’. This can be used as a template for creating other language files. To change the language data simply change the text within the tags in XML file. -

-

-For example consider the error message when a file cannot be read, -

- -<ReadingFile> -Error reading format file: Check file is valid -</ReadingFile> - -

-To change the language of this message, simply change the message between the tags (the bold text). The tags should not be changed, otherwise the language file will not work. -

-Once a new language file has been created it should be placed in the \lang folder where the English file was found, and then an entry corresponding to that file entered in the Config.xml file. To change which language file the software uses see the Options section or the Changing applet parameters section. -

- -
- - + + +DragMath Documentation - Adding a language + + + + + +

Adding a language

+ +

+The software is supplied with an English language file, ‘en.xml’. This can be used as a template for creating other language files. To change the language data simply change the text within the tags in XML file. +

+

+For example consider the error message when a file cannot be read, +

+ +<ReadingFile> +Error reading format file: Check file is valid +</ReadingFile> + +

+To change the language of this message, simply change the message between the tags (the bold text). The tags should not be changed, otherwise the language file will not work. +

+Once a new language file has been created it should be placed in the \lang folder where the English file was found, and then an entry corresponding to that file entered in the Config.xml file. To change which language file the software uses see the Options section or the Changing applet parameters section. +

+ +
+ + \ No newline at end of file diff --git a/lib/dragmath/doc/navframe.html b/lib/dragmath/doc/navframe.html index 4ab7ca4dc5..f8018a3010 100644 --- a/lib/dragmath/doc/navframe.html +++ b/lib/dragmath/doc/navframe.html @@ -1,34 +1,34 @@ - - -
-
DragMath
-
- -
-
Basic Usage
-
Creating simple expressions
-
Creating complex expressions
-
Editing an expression
-
Options
-
-
Advanced Usage
-
Adding a language
-
Adding an output format
-
Changing applet parameters
-
Integrations
-
-
Developer Usage
-
Setting up DragMath CVS in NetBeans
-
Running applet in web browser
-
Adding a function/operator
-
-
About
-
License
-
About DragMath
-
-

-
www.dragmath.bham.ac.uk
-
- + + +
+
DragMath
+
+ +
+
Basic Usage
+
Creating simple expressions
+
Creating complex expressions
+
Editing an expression
+
Options
+
+
Advanced Usage
+
Adding a language
+
Adding an output format
+
Changing applet parameters
+
Integrations
+
+
Developer Usage
+
Setting up DragMath CVS in NetBeans
+
Running applet in web browser
+
Adding a function/operator
+
+
About
+
License
+
About DragMath
+
+

+
www.dragmath.bham.ac.uk
+
+ \ No newline at end of file diff --git a/lib/dragmath/doc/newformat.html b/lib/dragmath/doc/newformat.html index 20a19a026c..443863f8fb 100644 --- a/lib/dragmath/doc/newformat.html +++ b/lib/dragmath/doc/newformat.html @@ -1,227 +1,227 @@ - -DragMath Documentation - Adding an output format - - - -
Adding an output format
-
-
-

-The formats supplied -are Maple, Latex, MathML and Maxima, with the corresponding files found in -the \formats folder. These files can be edited to reflect the syntax you prefer. These -files can also be used as templates for creating files for different formats. -There are a number of rules and options that you need to be aware of to -successfully create an XML file for a new format.

Each math object has -its own element in the XML document, with a familiar name describing it, for -example “Add”. Within this element there are a number of sub-elements depending -upon how many arguments the object has.
-

N-ary operators -have a single ‘output’ element e.g. for addition this -is 
     <Add>
        -<output>+</output>
    </Add>

Binary Operators have 3 -‘output’ elements e.g. for fraction in Latex this is
    <Divide brackets="false">
        -<output1>\frac{</output1>
        -<output2>}{</output2>
        -<output3>}</output3>
    </Divide>

Functions have 2 ‘output’ -elements e.g. for square root in Latex this is
    -<SquareRoot brackets="false">
        -<output1>\sqrt{</output1>
        -<output2>}</output2>
    -</SquareRoot>


-
N-ary functions have 'n' output elements -e.g. for definite integral in Latex it has -5
-
    -<DefiniteIntegral reverse="true">
        -<output1>  \int_{</output1>
        -<output2>}^{</output2>
        -<output3>}</output3>
        -<output4>\,\mathrm{d</output4>
        -<output5>}</output5>
    -</DefiniteIntegral>
-
 
-
-
Symbols have 1 ‘output’ element e.g. for -Infinity in Latex this is
    -<Infinity>
        -<output>\infty</output>
    -</Infinity>


Groupings have 2 ‘output’ elements e.g. -for square brackets in Latex this is
    <BracketsSq>
        -<output1>\left[</output1>
        -<output2>\right]</output2>
    -</BracketsSq>


Matrix in Latex is as -follows:
    <Matrix>
        -<matrixStart>\left( -\begin{array}{ccc}</matrixStart>
        -<rowStart />
        -<elementStart />
        -<elementEnd />
        -<elementSeparator><![CDATA[ & -]]></elementSeparator>
        -<rowEnd> \\ </rowEnd>
        -<rowSeparator />
        -<matrixEnd>\end{array} -\right)</matrixEnd>
    -</Matrix>



The syntax within these tags is used -when converting an expression to that particular format. The actual arguments of -the objects appear in the syntax between each pair of tags. For example consider -½ in Latex format.  It has 3 ‘output’ elements. So the first part will be -‘\frac{‘, then the first argument will be appended to the string giving us, -‘\frac{1’, then the 2nd output will be appended, ‘\frac{1}{‘, then the 2nd -argment, \frac{1}{2’ and then the final output, ‘\frac{1}{2}’. A similar process -takes place with all the object types of objects, with the argument being -appended between each pair of output elements.

There are various options -that can be set to allow more control over the -output.
-
 
-
Reverse
If you find the arguments -of a binary operator being output in the wrong order for a format, you can -reverse the order of them by setting, reverse=”true”. An example of this is with -the N-th root in Latex,
    <NthRoot reverse="true" brackets="false">
        -<output1>\sqrt[ -</output1>
        -<output2>]{</output2>
        -<output3>}</output3>
    -</NthRoot>

-
 
-
Argument Order
-
If you find the arguments of an N-ary Function being output in the wrong -order for a format, you can re-arrange the order of them by setting, -order=”#1,#2,#3,...,#n”. An example of this is with the Sum in Latex. -Obviously, the default order for this is 0,1,2,3, and it is being -changed to 1,2,3,0.
    <Sum order="1,2,3,0">
        -<output1> \sum_{{</output1>
        -<output2>}={</output2>
        -<output3>}}^{</output3>
        -<output4>}</output4>
        -<output5></output5>
    -</Sum>


-
AutoBrackets
By default, round -brackets are placed around n-ary operators and binary operators where necessary -to ensure operator precedence is preserved. For presentational formats, such as -Latex this is often unnecessary, so there is the option to turn automatic -placing of brackets on/off. This is set in the element that specifies the name -of the format. An example of this is shown for -Latex,
-
    <name AutoBrackets="false">Latex</name>
-
 
-
Brackets on Functions
Brackets -are added by default around the argument of a function. For example Sine in -Latex is,
    <Sine>
        -<output1>\sin -</output1>
        <output2 -/>
    </Sine>


Brackets are -automatically added after the ‘\sin’ and after the 2nd output, resulting in -"\sin(arg)". This is often the desired result but if you need to turn the -brackets off, they can be set for each individual function. An example of -turning them off is shown here for Square root in -Latex,
    <SquareRoot brackets="false">
        -<output1>\sqrt{</output1>
        -<output2>}</output2>
    -</SquareRoot>

-
 
-
Initial
As well as the structured -number of output elements for each type of object, there is the option of having -an ‘initial’ element. The data in this element is added to the string before any -other output element is. An example of its use for describing multiplication in -MathML Content is shown below.
    <Add>        
        -<initial><times/></initial>
        -<output</output> 
    -</Add>

 ‘a x b x c’ would then be converted -to,
    -<times/>
        -<ci>a</ci>
        -<ci>b</ci>
        -<ci>c</ci>
-
 
-
Final
-
N-ary operators can also have an optional 'final' -element for adding data after everything else. An example of this is with Union -in Maxima.
-
    <Union>
        -<initial>union(</initial>
        -<output>,</output>
        -<final>)</final>
    -</Union>
-
 
+ +DragMath Documentation - Adding an output format + + + +
Adding an output format
+
+
+

+The formats supplied +are Maple, Latex, MathML and Maxima, with the corresponding files found in +the \formats folder. These files can be edited to reflect the syntax you prefer. These +files can also be used as templates for creating files for different formats. +There are a number of rules and options that you need to be aware of to +successfully create an XML file for a new format.

Each math object has +its own element in the XML document, with a familiar name describing it, for +example “Add”. Within this element there are a number of sub-elements depending +upon how many arguments the object has.
+

N-ary operators +have a single ‘output’ element e.g. for addition this +is 
     <Add>
        +<output>+</output>
    </Add>

Binary Operators have 3 +‘output’ elements e.g. for fraction in Latex this is
    <Divide brackets="false">
        +<output1>\frac{</output1>
        +<output2>}{</output2>
        +<output3>}</output3>
    </Divide>

Functions have 2 ‘output’ +elements e.g. for square root in Latex this is
    +<SquareRoot brackets="false">
        +<output1>\sqrt{</output1>
        +<output2>}</output2>
    +</SquareRoot>


+
N-ary functions have 'n' output elements +e.g. for definite integral in Latex it has +5
+
    +<DefiniteIntegral reverse="true">
        +<output1>  \int_{</output1>
        +<output2>}^{</output2>
        +<output3>}</output3>
        +<output4>\,\mathrm{d</output4>
        +<output5>}</output5>
    +</DefiniteIntegral>
+
 
+
+
Symbols have 1 ‘output’ element e.g. for +Infinity in Latex this is
    +<Infinity>
        +<output>\infty</output>
    +</Infinity>


Groupings have 2 ‘output’ elements e.g. +for square brackets in Latex this is
    <BracketsSq>
        +<output1>\left[</output1>
        +<output2>\right]</output2>
    +</BracketsSq>


Matrix in Latex is as +follows:
    <Matrix>
        +<matrixStart>\left( +\begin{array}{ccc}</matrixStart>
        +<rowStart />
        +<elementStart />
        +<elementEnd />
        +<elementSeparator><![CDATA[ & +]]></elementSeparator>
        +<rowEnd> \\ </rowEnd>
        +<rowSeparator />
        +<matrixEnd>\end{array} +\right)</matrixEnd>
    +</Matrix>



The syntax within these tags is used +when converting an expression to that particular format. The actual arguments of +the objects appear in the syntax between each pair of tags. For example consider +½ in Latex format.  It has 3 ‘output’ elements. So the first part will be +‘\frac{‘, then the first argument will be appended to the string giving us, +‘\frac{1’, then the 2nd output will be appended, ‘\frac{1}{‘, then the 2nd +argment, \frac{1}{2’ and then the final output, ‘\frac{1}{2}’. A similar process +takes place with all the object types of objects, with the argument being +appended between each pair of output elements.

There are various options +that can be set to allow more control over the +output.
+
 
+
Reverse
If you find the arguments +of a binary operator being output in the wrong order for a format, you can +reverse the order of them by setting, reverse=”true”. An example of this is with +the N-th root in Latex,
    <NthRoot reverse="true" brackets="false">
        +<output1>\sqrt[ +</output1>
        +<output2>]{</output2>
        +<output3>}</output3>
    +</NthRoot>

+
 
+
Argument Order
+
If you find the arguments of an N-ary Function being output in the wrong +order for a format, you can re-arrange the order of them by setting, +order=”#1,#2,#3,...,#n”. An example of this is with the Sum in Latex. +Obviously, the default order for this is 0,1,2,3, and it is being +changed to 1,2,3,0.
    <Sum order="1,2,3,0">
        +<output1> \sum_{{</output1>
        +<output2>}={</output2>
        +<output3>}}^{</output3>
        +<output4>}</output4>
        +<output5></output5>
    +</Sum>


+
AutoBrackets
By default, round +brackets are placed around n-ary operators and binary operators where necessary +to ensure operator precedence is preserved. For presentational formats, such as +Latex this is often unnecessary, so there is the option to turn automatic +placing of brackets on/off. This is set in the element that specifies the name +of the format. An example of this is shown for +Latex,
+
    <name AutoBrackets="false">Latex</name>
+
 
+
Brackets on Functions
Brackets +are added by default around the argument of a function. For example Sine in +Latex is,
    <Sine>
        +<output1>\sin +</output1>
        <output2 +/>
    </Sine>


Brackets are +automatically added after the ‘\sin’ and after the 2nd output, resulting in +"\sin(arg)". This is often the desired result but if you need to turn the +brackets off, they can be set for each individual function. An example of +turning them off is shown here for Square root in +Latex,
    <SquareRoot brackets="false">
        +<output1>\sqrt{</output1>
        +<output2>}</output2>
    +</SquareRoot>

+
 
+
Initial
As well as the structured +number of output elements for each type of object, there is the option of having +an ‘initial’ element. The data in this element is added to the string before any +other output element is. An example of its use for describing multiplication in +MathML Content is shown below.
    <Add>        
        +<initial><times/></initial>
        +<output</output> 
    +</Add>

 ‘a x b x c’ would then be converted +to,
    +<times/>
        +<ci>a</ci>
        +<ci>b</ci>
        +<ci>c</ci>
+
 
+
Final
+
N-ary operators can also have an optional 'final' +element for adding data after everything else. An example of this is with Union +in Maxima.
+
    <Union>
        +<initial>union(</initial>
        +<output>,</output>
        +<final>)</final>
    +</Union>
+
 
diff --git a/lib/dragmath/doc/newobject.html b/lib/dragmath/doc/newobject.html index a5b8897556..15a453afab 100644 --- a/lib/dragmath/doc/newobject.html +++ b/lib/dragmath/doc/newobject.html @@ -1,43 +1,43 @@ - - -DragMath Documentation - Adding a function/operator - - - - - -

Adding a function/operator

- -

-The code can be easily modified and recompiled to add additional operators and functions. -

-However, they must adhere to the standard display layout shown below: -

-Operator: -
- -

-Function: -
- -

-The steps to adding one: -

-
    - -
  1. A new element in the CompConfig.xml, which is located in the Display package. The element must be given a unique name as the name of the object. A unique ID number, by simply choosing the next available ID number. A group number as follows: -
     N-ary operator - 1 -
     Binary Operator - 2 -
     Function - 3 -
     The name of the GIF file that holds a transparent image of the object, of size  16x16, 24x24 or 32x32 pixels.
     The text of the element should hold the - characters that represent the object. -
  2. A new JButton placed on one of the tabs, in the MainApplet.java file. This button can have Text or an Icon to inform the user what it is. The JButton must have the name field set to 'ID-Name' e.g. for Addition this is '2-Add'. -
  3. A new element in the language file you intend to use, with the same element name as in the CompConfig.xml file. The text of the element should be a description of the object for use in the status bar of the program. -
  4. The array ‘inputComponents’ should be initialised to the size of the highest ID number now in CompConfig.xml. This line of code is found near the start of the init() method in the MainApplet.java file, in the Display package. -
  5. The Precedence.java file in the Tree package should be adjusted, so the ‘value’ array is initialised to the size of the highest ID number now in CompConfig.xml, and the precedence of the new object should be set if required. -
  6. An entry in each format XML file will be required for the new object. For details on how to do this see here. - - - - + + +DragMath Documentation - Adding a function/operator + + + + + +

    Adding a function/operator

    + +

    +The code can be easily modified and recompiled to add additional operators and functions. +

    +However, they must adhere to the standard display layout shown below: +

    +Operator: +
    + +

    +Function: +
    + +

    +The steps to adding one: +

    +
      + +
    1. A new element in the CompConfig.xml, which is located in the Display package. The element must be given a unique name as the name of the object. A unique ID number, by simply choosing the next available ID number. A group number as follows: +
       N-ary operator - 1 +
       Binary Operator - 2 +
       Function - 3 +
       The name of the GIF file that holds a transparent image of the object, of size  16x16, 24x24 or 32x32 pixels.
       The text of the element should hold the + characters that represent the object. +
    2. A new JButton placed on one of the tabs, in the MainApplet.java file. This button can have Text or an Icon to inform the user what it is. The JButton must have the name field set to 'ID-Name' e.g. for Addition this is '2-Add'. +
    3. A new element in the language file you intend to use, with the same element name as in the CompConfig.xml file. The text of the element should be a description of the object for use in the status bar of the program. +
    4. The array ‘inputComponents’ should be initialised to the size of the highest ID number now in CompConfig.xml. This line of code is found near the start of the init() method in the MainApplet.java file, in the Display package. +
    5. The Precedence.java file in the Tree package should be adjusted, so the ‘value’ array is initialised to the size of the highest ID number now in CompConfig.xml, and the precedence of the new object should be set if required. +
    6. An entry in each format XML file will be required for the new object. For details on how to do this see here. + + + + \ No newline at end of file diff --git a/lib/dragmath/doc/options.html b/lib/dragmath/doc/options.html index dbc72e3db2..c160c945e8 100644 --- a/lib/dragmath/doc/options.html +++ b/lib/dragmath/doc/options.html @@ -1,46 +1,46 @@ - - -DragMath Documentation - Options - - - - - -

      Options

      - -

      - -Exporting an expression - -

      -

      -To choose which format to export to click 'Set export format' under the Options menu, and select a file from the list. The files available will be those in the \formats folder. If no format is specified in an applet paramater the default is LaTeX. -To export an expression click the Export button. Once exported the syntax will be copied to the clipboard, so you can simply paste it into any other program you desire. -

      -
      - -Changing the language - -

      -The language can be changed by clicking 'Set language' under the Options menu, and selected a file from the list. The files available will be those in the \lang folder. If no language is specified in an applet parameter the default is English. -

      - -
      - -Help - -

      -If there appears to be a problem with the way the software is behaving it can be useful to use the two tools under the Debug menu, which is under the Help menu. These can show the current expression as a tree, and outline the borders of all the objects on the workspace. -Under the Help menu there is also a link to the Online Documentation. -

      - -
      - -Implicit Multiplication - -

      -Under the Options menu, there is a check box for turning implicit multiplication on/off. By default it is set to off, if you wish to set the default to on, see the 'Changing applet parameters' page. With implicit multiplication on the 'dot' notation is not displayed in the DragMath display in any expressions which are exported. -

      -
      - + + +DragMath Documentation - Options + + + + + +

      Options

      + +

      + +Exporting an expression + +

      +

      +To choose which format to export to click 'Set export format' under the Options menu, and select a file from the list. The files available will be those in the \formats folder. If no format is specified in an applet paramater the default is LaTeX. +To export an expression click the Export button. Once exported the syntax will be copied to the clipboard, so you can simply paste it into any other program you desire. +

      +
      + +Changing the language + +

      +The language can be changed by clicking 'Set language' under the Options menu, and selected a file from the list. The files available will be those in the \lang folder. If no language is specified in an applet parameter the default is English. +

      + +
      + +Help + +

      +If there appears to be a problem with the way the software is behaving it can be useful to use the two tools under the Debug menu, which is under the Help menu. These can show the current expression as a tree, and outline the borders of all the objects on the workspace. +Under the Help menu there is also a link to the Online Documentation. +

      + +
      + +Implicit Multiplication + +

      +Under the Options menu, there is a check box for turning implicit multiplication on/off. By default it is set to off, if you wish to set the default to on, see the 'Changing applet parameters' page. With implicit multiplication on the 'dot' notation is not displayed in the DragMath display in any expressions which are exported. +

      +
      + \ No newline at end of file diff --git a/lib/dragmath/doc/parameters.html b/lib/dragmath/doc/parameters.html index 7e5539f5aa..8cd9a1a1a2 100644 --- a/lib/dragmath/doc/parameters.html +++ b/lib/dragmath/doc/parameters.html @@ -1,190 +1,190 @@ - - -DragMath Documentation - Changing applet parameters - - - - - -

      Changing Applet parameters

      - -

      -There are various parameters that can be set inside the <APPLET> tag, to change particular options of the applet. -

      - - -Language - -

      - -<param -name= - -language - -value= - -"en" - -> - -
      -The value is the name of the XML file, so this example refers to language file en.xml in the \lang folder. If the parameter is not used the default value is "en". -

      - - -Output Format - -

      - -<param -name= - -outputFormat - -value= - -"MathML" - -> - -
      -The value is the name of the XML file, so this example refers to output format file MathML.xml in the \formats folder. The purpose of setting this is to have the default format to use automatically set when the software loads. -

      - - -Open applet with an expression - -

      - -<param -name= - -openWithExpression - -value= - -"sin(1+x)" - -> - -
      -The value can be any expression you would like the applet to be opened with. The Maxima example on the DragMath website gives an example of this being used. -

      - - -Hide the menu - -

      - -<param -name= - -hideMenu - -value= - -"true" - -> - -
      -By default the drop-down menus are shown. To hide them set the value of the parameter to "True" or "true". -

      - - -Hide the toolbar - -

      - -<param -name= - -hideToolbar - -value= - -"true" - -> - -
      -By default the toolbar is shown. To hide it set the value of the parameter to "True" or "true". -

      - - -Implicit multiplication - -

      - -<param -name= - -implicitMultiplication - -value= - -"true" - -> - -
      -By default implicit multiplication is set to off. To turn it on set the value of the parameter to "True" or "true". -

      - - -Decimal Numbers - -

      - -<param -name= - -displayDecimalNumbers - -value= - -"true" - -> - -
      -By default decimal numbers which can be expressed as integers are converted. e.g. 1.0 becomes 1, and 1.5 remains as 1.5. If you wish all numbers to be displayed as decimal numbers set the value of the parameter to "True" or "true". Therefore, 1 becomes 1.0, and 1.5 remains as 1.5. -

      - - -Customise toolbar - -

      - -<param -name= - -customToolbar - -value= - -"0 1 2 | 3 4 | 5 6 7 | 8" - -> - -
      -This parameter can be used to customise which buttons are shown and they order they are shown in. Each button has a numeric value as shown below -

      -0 = Clear workspace
      -1 = Load Expression from file
      -2 = Save expression to file
      -3 = Undo
      -4 = Redo
      -5 = Cut
      -6 = Copy
      -7 = Paste
      -8 = Export
      -| = Separator -

      - -The default is set to "0 1 2 | 3 4 | 5 6 7 | 8" - -
      - + + +DragMath Documentation - Changing applet parameters + + + + + +

      Changing Applet parameters

      + +

      +There are various parameters that can be set inside the <APPLET> tag, to change particular options of the applet. +

      + + +Language + +

      + +<param +name= + +language + +value= + +"en" + +> + +
      +The value is the name of the XML file, so this example refers to language file en.xml in the \lang folder. If the parameter is not used the default value is "en". +

      + + +Output Format + +

      + +<param +name= + +outputFormat + +value= + +"MathML" + +> + +
      +The value is the name of the XML file, so this example refers to output format file MathML.xml in the \formats folder. The purpose of setting this is to have the default format to use automatically set when the software loads. +

      + + +Open applet with an expression + +

      + +<param +name= + +openWithExpression + +value= + +"sin(1+x)" + +> + +
      +The value can be any expression you would like the applet to be opened with. The Maxima example on the DragMath website gives an example of this being used. +

      + + +Hide the menu + +

      + +<param +name= + +hideMenu + +value= + +"true" + +> + +
      +By default the drop-down menus are shown. To hide them set the value of the parameter to "True" or "true". +

      + + +Hide the toolbar + +

      + +<param +name= + +hideToolbar + +value= + +"true" + +> + +
      +By default the toolbar is shown. To hide it set the value of the parameter to "True" or "true". +

      + + +Implicit multiplication + +

      + +<param +name= + +implicitMultiplication + +value= + +"true" + +> + +
      +By default implicit multiplication is set to off. To turn it on set the value of the parameter to "True" or "true". +

      + + +Decimal Numbers + +

      + +<param +name= + +displayDecimalNumbers + +value= + +"true" + +> + +
      +By default decimal numbers which can be expressed as integers are converted. e.g. 1.0 becomes 1, and 1.5 remains as 1.5. If you wish all numbers to be displayed as decimal numbers set the value of the parameter to "True" or "true". Therefore, 1 becomes 1.0, and 1.5 remains as 1.5. +

      + + +Customise toolbar + +

      + +<param +name= + +customToolbar + +value= + +"0 1 2 | 3 4 | 5 6 7 | 8" + +> + +
      +This parameter can be used to customise which buttons are shown and they order they are shown in. Each button has a numeric value as shown below +

      +0 = Clear workspace
      +1 = Load Expression from file
      +2 = Save expression to file
      +3 = Undo
      +4 = Redo
      +5 = Cut
      +6 = Copy
      +7 = Paste
      +8 = Export
      +| = Separator +

      + +The default is set to "0 1 2 | 3 4 | 5 6 7 | 8" + +
      + \ No newline at end of file diff --git a/lib/editor/tinymce/plugins/dragmath/dragmath.php b/lib/editor/tinymce/plugins/dragmath/dragmath.php index 017f7d17c1..69766e3dd0 100644 --- a/lib/editor/tinymce/plugins/dragmath/dragmath.php +++ b/lib/editor/tinymce/plugins/dragmath/dragmath.php @@ -42,12 +42,11 @@ if (!file_exists("$CFG->dirroot/lib/dragmath/applet/lang/$lang.xml")) { name="dragmath" codebase="httpswwwroot.'/lib/dragmath/applet' ?>" code="Display/MainApplet.class" - archive="Project.jar,lib/AbsoluteLayout.jar,lib/swing-layout-1.0.jar,lib/jdom.jar,lib/jep.jar" + archive="DragMath.jar,lib/AbsoluteLayout.jar,lib/swing-layout-1.0.jar,lib/jdom.jar,lib/jep.jar" width="540" height="300" > - Java.com')?>