mirror of
https://github.com/moodle/moodle.git
synced 2025-02-19 07:41:02 +01:00
MDL-15254: move dragmath plugin to a common folder, out of tinymce hierarchy
This commit is contained in:
parent
a4258842d3
commit
112b04c7ce
341
lib/editor/common/dragmath/LICENSE-gpl.txt
Normal file
341
lib/editor/common/dragmath/LICENSE-gpl.txt
Normal file
@ -0,0 +1,341 @@
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
Version 2, June 1991
|
||||
|
||||
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
|
||||
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
Preamble
|
||||
|
||||
The licenses for most software are designed to take away your
|
||||
freedom to share and change it. By contrast, the GNU General Public
|
||||
License is intended to guarantee your freedom to share and change free
|
||||
software--to make sure the software is free for all its users. This
|
||||
General Public License applies to most of the Free Software
|
||||
Foundation's software and to any other program whose authors commit to
|
||||
using it. (Some other Free Software Foundation software is covered by
|
||||
the GNU Library General Public License instead.) You can apply it to
|
||||
your programs, too.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not
|
||||
price. Our General Public Licenses are designed to make sure that you
|
||||
have the freedom to distribute copies of free software (and charge for
|
||||
this service if you wish), that you receive source code or can get it
|
||||
if you want it, that you can change the software or use pieces of it
|
||||
in new free programs; and that you know you can do these things.
|
||||
|
||||
To protect your rights, we need to make restrictions that forbid
|
||||
anyone to deny you these rights or to ask you to surrender the rights.
|
||||
These restrictions translate to certain responsibilities for you if you
|
||||
distribute copies of the software, or if you modify it.
|
||||
|
||||
For example, if you distribute copies of such a program, whether
|
||||
gratis or for a fee, you must give the recipients all the rights that
|
||||
you have. You must make sure that they, too, receive or can get the
|
||||
source code. And you must show them these terms so they know their
|
||||
rights.
|
||||
|
||||
We protect your rights with two steps: (1) copyright the software, and
|
||||
(2) offer you this license which gives you legal permission to copy,
|
||||
distribute and/or modify the software.
|
||||
|
||||
Also, for each author's protection and ours, we want to make certain
|
||||
that everyone understands that there is no warranty for this free
|
||||
software. If the software is modified by someone else and passed on, we
|
||||
want its recipients to know that what they have is not the original, so
|
||||
that any problems introduced by others will not reflect on the original
|
||||
authors' reputations.
|
||||
|
||||
Finally, any free program is threatened constantly by software
|
||||
patents. We wish to avoid the danger that redistributors of a free
|
||||
program will individually obtain patent licenses, in effect making the
|
||||
program proprietary. To prevent this, we have made it clear that any
|
||||
patent must be licensed for everyone's free use or not licensed at all.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow.
|
||||
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||
|
||||
0. This License applies to any program or other work which contains
|
||||
a notice placed by the copyright holder saying it may be distributed
|
||||
under the terms of this General Public License. The "Program", below,
|
||||
refers to any such program or work, and a "work based on the Program"
|
||||
means either the Program or any derivative work under copyright law:
|
||||
that is to say, a work containing the Program or a portion of it,
|
||||
either verbatim or with modifications and/or translated into another
|
||||
language. (Hereinafter, translation is included without limitation in
|
||||
the term "modification".) Each licensee is addressed as "you".
|
||||
|
||||
Activities other than copying, distribution and modification are not
|
||||
covered by this License; they are outside its scope. The act of
|
||||
running the Program is not restricted, and the output from the Program
|
||||
is covered only if its contents constitute a work based on the
|
||||
Program (independent of having been made by running the Program).
|
||||
Whether that is true depends on what the Program does.
|
||||
|
||||
1. You may copy and distribute verbatim copies of the Program's
|
||||
source code as you receive it, in any medium, provided that you
|
||||
conspicuously and appropriately publish on each copy an appropriate
|
||||
copyright notice and disclaimer of warranty; keep intact all the
|
||||
notices that refer to this License and to the absence of any warranty;
|
||||
and give any other recipients of the Program a copy of this License
|
||||
along with the Program.
|
||||
|
||||
You may charge a fee for the physical act of transferring a copy, and
|
||||
you may at your option offer warranty protection in exchange for a fee.
|
||||
|
||||
2. You may modify your copy or copies of the Program or any portion
|
||||
of it, thus forming a work based on the Program, and copy and
|
||||
distribute such modifications or work under the terms of Section 1
|
||||
above, provided that you also meet all of these conditions:
|
||||
|
||||
a) You must cause the modified files to carry prominent notices
|
||||
stating that you changed the files and the date of any change.
|
||||
|
||||
b) You must cause any work that you distribute or publish, that in
|
||||
whole or in part contains or is derived from the Program or any
|
||||
part thereof, to be licensed as a whole at no charge to all third
|
||||
parties under the terms of this License.
|
||||
|
||||
c) If the modified program normally reads commands interactively
|
||||
when run, you must cause it, when started running for such
|
||||
interactive use in the most ordinary way, to print or display an
|
||||
announcement including an appropriate copyright notice and a
|
||||
notice that there is no warranty (or else, saying that you provide
|
||||
a warranty) and that users may redistribute the program under
|
||||
these conditions, and telling the user how to view a copy of this
|
||||
License. (Exception: if the Program itself is interactive but
|
||||
does not normally print such an announcement, your work based on
|
||||
the Program is not required to print an announcement.)
|
||||
|
||||
These requirements apply to the modified work as a whole. If
|
||||
identifiable sections of that work are not derived from the Program,
|
||||
and can be reasonably considered independent and separate works in
|
||||
themselves, then this License, and its terms, do not apply to those
|
||||
sections when you distribute them as separate works. But when you
|
||||
distribute the same sections as part of a whole which is a work based
|
||||
on the Program, the distribution of the whole must be on the terms of
|
||||
this License, whose permissions for other licensees extend to the
|
||||
entire whole, and thus to each and every part regardless of who wrote it.
|
||||
|
||||
Thus, it is not the intent of this section to claim rights or contest
|
||||
your rights to work written entirely by you; rather, the intent is to
|
||||
exercise the right to control the distribution of derivative or
|
||||
collective works based on the Program.
|
||||
|
||||
In addition, mere aggregation of another work not based on the Program
|
||||
with the Program (or with a work based on the Program) on a volume of
|
||||
a storage or distribution medium does not bring the other work under
|
||||
the scope of this License.
|
||||
|
||||
3. You may copy and distribute the Program (or a work based on it,
|
||||
under Section 2) in object code or executable form under the terms of
|
||||
Sections 1 and 2 above provided that you also do one of the following:
|
||||
|
||||
a) Accompany it with the complete corresponding machine-readable
|
||||
source code, which must be distributed under the terms of Sections
|
||||
1 and 2 above on a medium customarily used for software interchange; or,
|
||||
|
||||
b) Accompany it with a written offer, valid for at least three
|
||||
years, to give any third party, for a charge no more than your
|
||||
cost of physically performing source distribution, a complete
|
||||
machine-readable copy of the corresponding source code, to be
|
||||
distributed under the terms of Sections 1 and 2 above on a medium
|
||||
customarily used for software interchange; or,
|
||||
|
||||
c) Accompany it with the information you received as to the offer
|
||||
to distribute corresponding source code. (This alternative is
|
||||
allowed only for noncommercial distribution and only if you
|
||||
received the program in object code or executable form with such
|
||||
an offer, in accord with Subsection b above.)
|
||||
|
||||
The source code for a work means the preferred form of the work for
|
||||
making modifications to it. For an executable work, complete source
|
||||
code means all the source code for all modules it contains, plus any
|
||||
associated interface definition files, plus the scripts used to
|
||||
control compilation and installation of the executable. However, as a
|
||||
special exception, the source code distributed need not include
|
||||
anything that is normally distributed (in either source or binary
|
||||
form) with the major components (compiler, kernel, and so on) of the
|
||||
operating system on which the executable runs, unless that component
|
||||
itself accompanies the executable.
|
||||
|
||||
If distribution of executable or object code is made by offering
|
||||
access to copy from a designated place, then offering equivalent
|
||||
access to copy the source code from the same place counts as
|
||||
distribution of the source code, even though third parties are not
|
||||
compelled to copy the source along with the object code.
|
||||
|
||||
4. You may not copy, modify, sublicense, or distribute the Program
|
||||
except as expressly provided under this License. Any attempt
|
||||
otherwise to copy, modify, sublicense or distribute the Program is
|
||||
void, and will automatically terminate your rights under this License.
|
||||
However, parties who have received copies, or rights, from you under
|
||||
this License will not have their licenses terminated so long as such
|
||||
parties remain in full compliance.
|
||||
|
||||
5. You are not required to accept this License, since you have not
|
||||
signed it. However, nothing else grants you permission to modify or
|
||||
distribute the Program or its derivative works. These actions are
|
||||
prohibited by law if you do not accept this License. Therefore, by
|
||||
modifying or distributing the Program (or any work based on the
|
||||
Program), you indicate your acceptance of this License to do so, and
|
||||
all its terms and conditions for copying, distributing or modifying
|
||||
the Program or works based on it.
|
||||
|
||||
6. Each time you redistribute the Program (or any work based on the
|
||||
Program), the recipient automatically receives a license from the
|
||||
original licensor to copy, distribute or modify the Program subject to
|
||||
these terms and conditions. You may not impose any further
|
||||
restrictions on the recipients' exercise of the rights granted herein.
|
||||
You are not responsible for enforcing compliance by third parties to
|
||||
this License.
|
||||
|
||||
7. If, as a consequence of a court judgment or allegation of patent
|
||||
infringement or for any other reason (not limited to patent issues),
|
||||
conditions are imposed on you (whether by court order, agreement or
|
||||
otherwise) that contradict the conditions of this License, they do not
|
||||
excuse you from the conditions of this License. If you cannot
|
||||
distribute so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you
|
||||
may not distribute the Program at all. For example, if a patent
|
||||
license would not permit royalty-free redistribution of the Program by
|
||||
all those who receive copies directly or indirectly through you, then
|
||||
the only way you could satisfy both it and this License would be to
|
||||
refrain entirely from distribution of the Program.
|
||||
|
||||
If any portion of this section is held invalid or unenforceable under
|
||||
any particular circumstance, the balance of the section is intended to
|
||||
apply and the section as a whole is intended to apply in other
|
||||
circumstances.
|
||||
|
||||
It is not the purpose of this section to induce you to infringe any
|
||||
patents or other property right claims or to contest validity of any
|
||||
such claims; this section has the sole purpose of protecting the
|
||||
integrity of the free software distribution system, which is
|
||||
implemented by public license practices. Many people have made
|
||||
generous contributions to the wide range of software distributed
|
||||
through that system in reliance on consistent application of that
|
||||
system; it is up to the author/donor to decide if he or she is willing
|
||||
to distribute software through any other system and a licensee cannot
|
||||
impose that choice.
|
||||
|
||||
This section is intended to make thoroughly clear what is believed to
|
||||
be a consequence of the rest of this License.
|
||||
|
||||
8. If the distribution and/or use of the Program is restricted in
|
||||
certain countries either by patents or by copyrighted interfaces, the
|
||||
original copyright holder who places the Program under this License
|
||||
may add an explicit geographical distribution limitation excluding
|
||||
those countries, so that distribution is permitted only in or among
|
||||
countries not thus excluded. In such case, this License incorporates
|
||||
the limitation as if written in the body of this License.
|
||||
|
||||
9. The Free Software Foundation may publish revised and/or new versions
|
||||
of the General Public License from time to time. Such new versions will
|
||||
be similar in spirit to the present version, but may differ in detail to
|
||||
address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the Program
|
||||
specifies a version number of this License which applies to it and "any
|
||||
later version", you have the option of following the terms and conditions
|
||||
either of that version or of any later version published by the Free
|
||||
Software Foundation. If the Program does not specify a version number of
|
||||
this License, you may choose any version ever published by the Free Software
|
||||
Foundation.
|
||||
|
||||
10. If you wish to incorporate parts of the Program into other free
|
||||
programs whose distribution conditions are different, write to the author
|
||||
to ask for permission. For software which is copyrighted by the Free
|
||||
Software Foundation, write to the Free Software Foundation; we sometimes
|
||||
make exceptions for this. Our decision will be guided by the two goals
|
||||
of preserving the free status of all derivatives of our free software and
|
||||
of promoting the sharing and reuse of software generally.
|
||||
|
||||
NO WARRANTY
|
||||
|
||||
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
|
||||
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
|
||||
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
|
||||
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
|
||||
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
|
||||
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
|
||||
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
|
||||
REPAIR OR CORRECTION.
|
||||
|
||||
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
|
||||
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
|
||||
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
|
||||
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
|
||||
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
|
||||
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
|
||||
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGES.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
How to Apply These Terms to Your New Programs
|
||||
|
||||
If you develop a new program, and you want it to be of the greatest
|
||||
possible use to the public, the best way to achieve this is to make it
|
||||
free software which everyone can redistribute and change under these terms.
|
||||
|
||||
To do so, attach the following notices to the program. It is safest
|
||||
to attach them to the start of each source file to most effectively
|
||||
convey the exclusion of warranty; and each file should have at least
|
||||
the "copyright" line and a pointer to where the full notice is found.
|
||||
|
||||
<one line to give the program's name and a brief idea of what it does.>
|
||||
Copyright (C) <year> <name of author>
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, write to the Free Software
|
||||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
If the program is interactive, make it output a short notice like this
|
||||
when it starts in an interactive mode:
|
||||
|
||||
Gnomovision version 69, Copyright (C) year name of author
|
||||
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||
This is free software, and you are welcome to redistribute it
|
||||
under certain conditions; type `show c' for details.
|
||||
|
||||
The hypothetical commands `show w' and `show c' should show the appropriate
|
||||
parts of the General Public License. Of course, the commands you use may
|
||||
be called something other than `show w' and `show c'; they could even be
|
||||
mouse-clicks or menu items--whatever suits your program.
|
||||
|
||||
You should also get your employer (if you work as a programmer) or your
|
||||
school, if any, to sign a "copyright disclaimer" for the program, if
|
||||
necessary. Here is a sample; alter the names:
|
||||
|
||||
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
|
||||
`Gnomovision' (which makes passes at compilers) written by James Hacker.
|
||||
|
||||
<signature of Ty Coon>, 1 April 1989
|
||||
Ty Coon, President of Vice
|
||||
|
||||
This General Public License does not permit incorporating your program into
|
||||
proprietary programs. If your program is a subroutine library, you may
|
||||
consider it more useful to permit linking proprietary applications with the
|
||||
library. If this is what you want to do, use the GNU Library General
|
||||
Public License instead of this License.
|
||||
|
20
lib/editor/common/dragmath/doc/about.html
Normal file
20
lib/editor/common/dragmath/doc/about.html
Normal file
@ -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>
|
32
lib/editor/common/dragmath/doc/acknowledgments.html
Normal file
32
lib/editor/common/dragmath/doc/acknowledgments.html
Normal file
@ -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>
|
85
lib/editor/common/dragmath/doc/browser.html
Normal file
85
lib/editor/common/dragmath/doc/browser.html
Normal file
@ -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 <APPLET> 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 <APPLET> tag should be used:
|
||||
</p>
|
||||
<p>
|
||||
<STRONG>
|
||||
<FONT color=#800080><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>><BR>
|
||||
<FONT color=#800080><param</FONT>
|
||||
name=</STRONG>
|
||||
<FONT color=#0000ff>language </FONT>
|
||||
<STRONG>value=</STRONG>
|
||||
<FONT color=#0000ff>"en"</FONT>
|
||||
<STRONG> ><BR>
|
||||
<FONT color=#800080></applet ></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>
|
209
lib/editor/common/dragmath/doc/complex.html
Normal file
209
lib/editor/common/dragmath/doc/complex.html
Normal file
@ -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><</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Equal</td>
|
||||
<td>=<br>==</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Less than or Equal</td>
|
||||
<td><=</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>
|
73
lib/editor/common/dragmath/doc/cvs.html
Normal file
73
lib/editor/common/dragmath/doc/cvs.html
Normal file
@ -0,0 +1,73 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>DragMath Documentation - Setting up DragMath CVS in NetBeans</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<font size="2"; style="font-family: Arial;">
|
||||
|
||||
<h2><span style=" color: #000099;"><strong>Setting up DragMath CVS in NetBeans</strong></span></h2>
|
||||
|
||||
<p>
|
||||
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).</p>
|
||||
<p>
|
||||
1. Install NetBeans<br>
|
||||
2. Get source code from DragMath CVS repository<br>
|
||||
3. Update and Commiting your local source code copy
|
||||
</p>
|
||||
<br>
|
||||
|
||||
<font size=3><b>
|
||||
1. Install NetBeans
|
||||
</b></font>
|
||||
<br>
|
||||
<p>
|
||||
NetBeans is the integrated development environment (IDE) used for DragMath.
|
||||
It is open source and can be downloaded from http://www.netbeans.org.
|
||||
</p>
|
||||
<br>
|
||||
|
||||
<font size=3><b>
|
||||
2. Get source code from DragMath CVS repository
|
||||
</b></font>
|
||||
<p>
|
||||
Start NetBeans and do the following to get the DragMath source code:<br>
|
||||
<p>
|
||||
1. File -> New Project
|
||||
</p><p>
|
||||
2. Choose the 'General' category, and then 'Java Application' under Projects, then click Next.
|
||||
</p><p>
|
||||
3. Set the Project Name as "ddma". Click Browse to choose the location where you would like the code stored. Then click Next.
|
||||
</p><p>
|
||||
4. CVS -> Checkout. The click Edit.
|
||||
</p><p>
|
||||
5. Fill in the location information identifying the DragMath CVS repository and click OK.<br>
|
||||
<b>Access Method:</b> pserver for anonymous, ext for developer accounts<br>
|
||||
<b>User:</b> "anonymous" or your DragMath developer account at SourceForge<br>
|
||||
<b>Host:</b> dragmath.cvs.sourceforge.net<br>
|
||||
<b>Repository Path:</b> /cvsroot/dragmath
|
||||
</p><p>
|
||||
6. Enter your password, none for anonymous login, then click Next
|
||||
</p><p>
|
||||
7. Set the Module as "ddma", and the Local Folder to the same location the Project was created. Then click Finish.
|
||||
</p><p>
|
||||
8. Once the source code has been downloaded, click Close to the popup message about opening the project.
|
||||
</p><p>
|
||||
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.
|
||||
</p><p>
|
||||
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.
|
||||
</p><p>
|
||||
11. The code is now ready to work on.
|
||||
</p>
|
||||
<br>
|
||||
<font size=3><b>
|
||||
3. Update and Commiting your local source code copy
|
||||
</b></font>
|
||||
<p>
|
||||
The code can be updated and commited using the Update and Commit options under the CVS menu in NetBeans.
|
||||
</p>
|
||||
|
||||
</font>
|
||||
|
||||
</body>
|
||||
</html>
|
47
lib/editor/common/dragmath/doc/editing.html
Normal file
47
lib/editor/common/dragmath/doc/editing.html
Normal file
@ -0,0 +1,47 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>DragMath Documentation - Editing an expression</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<font size="2"; style="font-family: Arial;">
|
||||
|
||||
<h2><span style=" color: #000099;"><strong>Editing an expression</strong></span></h2>
|
||||
|
||||
<p>
|
||||
Basic editing options are supplied to edit the expression:
|
||||
</p>
|
||||
|
||||
<ul>
|
||||
<li><p>
|
||||
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.
|
||||
</p>
|
||||
<li><p>
|
||||
Cut – Select the desired area to cut, then either click the Cut button or use Ctrl+X on the keyboard.
|
||||
</p>
|
||||
<li><p>
|
||||
Copy – Select the desired area to copy, then either click the Copy button or use Ctrl+C on the keyboard.
|
||||
</p>
|
||||
<li><p>
|
||||
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.
|
||||
</p>
|
||||
<li><p>
|
||||
Delete – Delete is performed by selecting the area to delete and pressing delete on the keyboard.
|
||||
</p>
|
||||
<li><p>
|
||||
Undo – You can perform an undo by clicking the Undo button
|
||||
</p>
|
||||
<li><p>
|
||||
Redo – You can perform a redo by clicking the Redo button
|
||||
</p>
|
||||
<li><p>
|
||||
Open – Saved expressions can be opened from a file using the Open button
|
||||
</p>
|
||||
<li><p>
|
||||
Save – Expressions can be saved to a file using the Save button
|
||||
</p>
|
||||
</ul>
|
||||
</font>
|
||||
|
||||
</body>
|
||||
</html>
|
16
lib/editor/common/dragmath/doc/index.html
Normal file
16
lib/editor/common/dragmath/doc/index.html
Normal file
@ -0,0 +1,16 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>DragMath Documentation</title>
|
||||
</head>
|
||||
|
||||
|
||||
<frameset cols="330,*">
|
||||
|
||||
<frame src="navframe.html">
|
||||
<frame src="simple.html"
|
||||
name="showframe">
|
||||
|
||||
</frameset>
|
||||
|
||||
|
||||
</html>
|
41
lib/editor/common/dragmath/doc/integrations.html
Normal file
41
lib/editor/common/dragmath/doc/integrations.html
Normal file
@ -0,0 +1,41 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>DragMath Documentation - Integrations</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<font size="2"; style="font-family: Arial;">
|
||||
|
||||
<h2><span style=" color: #000099;"><strong>Integrations</strong></span></h2>
|
||||
|
||||
<p>
|
||||
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.
|
||||
</p>
|
||||
<br>
|
||||
|
||||
<font size=3>
|
||||
<b><a href ="http://www.moodle.org/">Moodle</a></b>
|
||||
</font>
|
||||
<p>
|
||||
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 <a href ="http://docs.moodle.org/en/DragMath_equation_editor">installation instructions</a>.
|
||||
</p>
|
||||
<br>
|
||||
|
||||
<font size=3>
|
||||
<b><a href ="http://stack.bham.ac.uk/">STACK</a></b>
|
||||
</font>
|
||||
<p>
|
||||
STACK is a computer aided assessment (CAA) package for mathematics. It was mainly developed by <a href ="http://web.mat.bham.ac.uk/C.J.Sangwin/">Chris Sangwin</a> (a developer of DragMath).
|
||||
</p>
|
||||
<br>
|
||||
|
||||
<font size=3>
|
||||
<b><a href ="http://www.yourmathstutor.info/">YourMathsTutor Website</a></b>
|
||||
</font>
|
||||
<p>
|
||||
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 <a href ="http://www.simplemachines.org/">Simple Machines Forum</a> (SMF), which is a powerful open source forum. More information on how it was <a href ="http://yourmathstutor.blogspot.com/2007/08/dragmath.html">integrated</a> and how it is <a href ="http://www.yourmathstutor.info/forum/index.php?topic=4.0">used</a> in the forum.
|
||||
</p>
|
||||
</font>
|
||||
|
||||
</body>
|
||||
</html>
|
31
lib/editor/common/dragmath/doc/language.html
Normal file
31
lib/editor/common/dragmath/doc/language.html
Normal file
@ -0,0 +1,31 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>DragMath Documentation - Adding a language</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<font size="2"; style="font-family: Arial;">
|
||||
|
||||
<h2><span style=" color: #000099;"><strong>Adding a language</strong></span></h2>
|
||||
|
||||
<p>
|
||||
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.
|
||||
</p>
|
||||
<p>
|
||||
For example consider the error message when a file cannot be read,
|
||||
</p><p>
|
||||
<strong>
|
||||
<font color=#800080><ReadingFile></font>
|
||||
Error reading format file: Check file is valid
|
||||
<font color=#800080></ReadingFile></font>
|
||||
</strong>
|
||||
</p><p>
|
||||
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.
|
||||
</p><p>
|
||||
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 <A href="options.html">Options</A> section or the <A href="parameters.html">Changing applet parameters</A> section.
|
||||
</p>
|
||||
|
||||
</font>
|
||||
|
||||
</body>
|
||||
</html>
|
34
lib/editor/common/dragmath/doc/navframe.html
Normal file
34
lib/editor/common/dragmath/doc/navframe.html
Normal file
@ -0,0 +1,34 @@
|
||||
<html>
|
||||
<body>
|
||||
<br>
|
||||
<DIV><FONT face=Arial color=#000080
|
||||
size=5><STRONG>DragMath</STRONG></FONT></DIV>
|
||||
<br>
|
||||
<FONT face=Arial>
|
||||
<dl>
|
||||
<dt><b>Basic Usage</b><br></dt>
|
||||
<dd><a href ="simple.html" target ="showframe">Creating simple expressions</a><br></dd>
|
||||
<dd><a href ="complex.html" target ="showframe">Creating complex expressions</a><br></dd>
|
||||
<dd><a href ="editing.html" target ="showframe">Editing an expression</a><br></dd>
|
||||
<dd><a href ="options.html" target ="showframe">Options</a><br></dd>
|
||||
<br>
|
||||
<dt><b>Advanced Usage</b><br></dt>
|
||||
<dd><a href ="language.html" target ="showframe">Adding a language</a><br></dd>
|
||||
<dd><a href ="newformat.html" target ="showframe">Adding an output format</a><br></dd>
|
||||
<dd><a href ="parameters.html" target ="showframe">Changing applet parameters</a></dd>
|
||||
<dd><a href ="integrations.html" target ="showframe">Integrations</a><br></dd>
|
||||
<br>
|
||||
<dt><b>Developer Usage</b><br></dt>
|
||||
<dd><a href ="cvs.html" target ="showframe">Setting up DragMath CVS in NetBeans</a><br></dd>
|
||||
<dd><a href ="browser.html" target ="showframe">Running applet in web browser</a><br></dd>
|
||||
<dd><a href ="newobject.html" target ="showframe">Adding a function/operator</a><br></dd>
|
||||
<br>
|
||||
<dt><b>About</b><br></dt>
|
||||
<dd><a href ="acknowledgments.html" target ="showframe">License</a><br></dd>
|
||||
<dd><a href ="about.html" target ="showframe">About DragMath</a><br></dd>
|
||||
</dl>
|
||||
<br><br/>
|
||||
<b><center><a href ="http://www.dragmath.bham.ac.uk" target ="_top">www.dragmath.bham.ac.uk</a></center></b>
|
||||
</FONT>
|
||||
</body>
|
||||
</html>
|
227
lib/editor/common/dragmath/doc/newformat.html
Normal file
227
lib/editor/common/dragmath/doc/newformat.html
Normal file
@ -0,0 +1,227 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<HTML><HEAD><TITLE>DragMath Documentation - Adding an output format</TITLE>
|
||||
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
|
||||
<META content="MSHTML 6.00.6000.16525" name=GENERATOR></HEAD>
|
||||
<BODY>
|
||||
<DIV><FONT face=Arial color=#000080 size=5><STRONG>Adding an output format</STRONG></FONT></DIV>
|
||||
<DIV><FONT face=Arial size=2>
|
||||
<DIV><FONT face=Arial size=2><FONT face=Arial><FONT size=2>
|
||||
<p>
|
||||
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.</p>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.</FONT></FONT></FONT></DIV>
|
||||
<DIV><FONT face=Arial size=2><FONT face=Arial><FONT size=2><BR>N-ary operators
|
||||
have a single ‘output’ element e.g. for addition this
|
||||
is <BR> <STRONG><FONT
|
||||
color=#800080><Add></FONT><BR>
|
||||
<FONT color=#800080><output></FONT>+<FONT
|
||||
color=#800080></output><BR></FONT> <FONT
|
||||
color=#800080></Add><BR></FONT></STRONG><BR>Binary Operators have 3
|
||||
‘output’ elements e.g. for fraction in Latex this is<BR> <FONT
|
||||
color=#800080><STRONG><Divide</STRONG> <FONT
|
||||
color=#000000>brackets=</FONT><FONT
|
||||
color=#0000ff>"false"</FONT><STRONG>></STRONG></FONT><BR>
|
||||
<STRONG><FONT color=#800080><output1></FONT>\frac<FONT color=#800080><FONT
|
||||
color=#000000>{</FONT></output1></FONT><BR>
|
||||
<FONT color=#800080><output2></FONT>}{<FONT
|
||||
color=#800080></output2><BR></FONT>
|
||||
<FONT color=#800080><output3></FONT>}<FONT
|
||||
color=#800080></output3><BR></FONT> <FONT
|
||||
color=#800080></Divide></FONT><BR></STRONG><BR>Functions have 2 ‘output’
|
||||
elements e.g. for square root in Latex this is<BR> <STRONG>
|
||||
</STRONG><FONT color=#800080><STRONG><SquareRoot</STRONG> <FONT
|
||||
color=#000000>brackets=</FONT><FONT
|
||||
color=#0000ff>"false"</FONT><STRONG>><BR>
|
||||
<output1><FONT
|
||||
color=#000000>\sqrt{</FONT></output1><BR>
|
||||
<output2><FONT
|
||||
color=#000000>}</FONT></output2><BR>
|
||||
</SquareRoot></STRONG></FONT><BR><BR></FONT></FONT></FONT></DIV>
|
||||
<DIV><FONT face=Arial size=2><FONT face=Arial><FONT size=2><FONT face=Arial
|
||||
size=2><FONT face=Arial><FONT size=2>N-ary functions have 'n' output elements
|
||||
e.g. for definite integral in Latex it has
|
||||
5</FONT></FONT></FONT></FONT></FONT></FONT></DIV>
|
||||
<DIV><FONT face=Arial size=2><FONT face=Arial><FONT size=2>
|
||||
<FONT color=#800080><STRONG><DefiniteIntegral</STRONG> <FONT
|
||||
color=#000000>reverse=</FONT><FONT
|
||||
color=#0000ff>"true"</FONT><STRONG>><BR>
|
||||
<output1> <FONT
|
||||
color=#000000>\int_{</FONT></output1><BR>
|
||||
<output2><FONT
|
||||
color=#000000>}^{</FONT></output2><BR>
|
||||
<output3><FONT
|
||||
color=#000000>}</FONT></output3><BR>
|
||||
<output4><FONT
|
||||
color=#000000>\,\mathrm{d</FONT></output4><BR>
|
||||
<output5><FONT
|
||||
color=#000000>}</FONT></output5><BR>
|
||||
</DefiniteIntegral></STRONG></FONT></FONT></FONT></FONT></DIV>
|
||||
<DIV><FONT face=Arial size=2><FONT face=Arial><FONT size=2><FONT face=Arial
|
||||
size=2><FONT face=Arial><FONT
|
||||
size=2></FONT></FONT></FONT></FONT></FONT></FONT> </DIV></DIV>
|
||||
<DIV>
|
||||
<DIV><FONT face=Arial size=2><FONT face=Arial><FONT size=2><FONT face=Arial
|
||||
size=2><FONT face=Arial><FONT size=2>Symbols have 1 ‘output’ element e.g. for
|
||||
Infinity in Latex this is<BR> <STRONG> <FONT color=#800080>
|
||||
<Infinity><BR>
|
||||
<output><FONT
|
||||
color=#000000>\infty</FONT></output><BR>
|
||||
</Infinity></FONT></STRONG><BR><BR>Groupings have 2 ‘output’ elements e.g.
|
||||
for square brackets in Latex this is<BR> <FONT
|
||||
color=#800080><STRONG><BracketsSq><BR>
|
||||
<output1><FONT
|
||||
color=#000000>\left[</FONT></output1><BR>
|
||||
<output2><FONT
|
||||
color=#000000>\right]</FONT></output2><BR>
|
||||
</BracketsSq></STRONG><BR></FONT><BR>Matrix in Latex is as
|
||||
follows:<BR> <STRONG><FONT
|
||||
color=#800080><Matrix><BR>
|
||||
<matrixStart><FONT color=#000000>\left(
|
||||
\begin{array}{ccc}</FONT></matrixStart><BR>
|
||||
<rowStart /><BR>
|
||||
<elementStart /><BR>
|
||||
<elementEnd /><BR>
|
||||
<elementSeparator><FONT color=#808000><![CDATA[ &
|
||||
]]></FONT></elementSeparator><BR>
|
||||
<rowEnd> <FONT
|
||||
color=#000000>\\</FONT> </rowEnd><BR>
|
||||
<rowSeparator /><BR>
|
||||
<matrixEnd><FONT color=#000000>\end{array}
|
||||
\right)</FONT></matrixEnd><BR>
|
||||
</Matrix></FONT></STRONG><BR><BR><BR>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.<BR><BR>There are various options
|
||||
that can be set to allow more control over the
|
||||
output.</FONT></FONT></FONT></FONT></FONT></FONT></DIV>
|
||||
<DIV><FONT face=Arial size=2><FONT face=Arial><FONT size=2><FONT face=Arial
|
||||
size=2><FONT face=Arial><FONT
|
||||
size=2></FONT></FONT></FONT></FONT></FONT></FONT> </DIV>
|
||||
<DIV><FONT face=Arial size=2><FONT face=Arial><FONT size=2><FONT face=Arial
|
||||
size=2><FONT face=Arial><FONT size=2><U>Reverse</U><BR>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,<BR> <FONT
|
||||
color=#800080><STRONG><NthRoot</STRONG> <FONT
|
||||
color=#000000>reverse=</FONT><FONT color=#0000ff>"true"</FONT> <FONT
|
||||
color=#000000>brackets=</FONT><FONT
|
||||
color=#0000ff>"false"</FONT><STRONG>><BR>
|
||||
<output1><FONT color=#000000>\sqrt[</FONT>
|
||||
</output1><BR>
|
||||
<output2><FONT
|
||||
color=#000000>]{</FONT></output2><BR>
|
||||
<output3><FONT
|
||||
color=#000000>}</FONT></output3><BR>
|
||||
</NthRoot></STRONG></FONT><BR><U></U></FONT></FONT></FONT></FONT></FONT></FONT></DIV>
|
||||
<DIV><FONT face=Arial size=2><FONT face=Arial><FONT size=2><FONT face=Arial
|
||||
size=2><FONT face=Arial><FONT
|
||||
size=2><U></U></FONT></FONT></FONT></FONT></FONT></FONT> </DIV>
|
||||
<DIV><U>Argument Order</U></DIV>
|
||||
<DIV>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.<BR> <FONT
|
||||
color=#800080><STRONG><Sum</STRONG> <FONT color=#000000>order=</FONT><FONT
|
||||
color=#0000ff>"1,2,3,0"</FONT><STRONG>><BR>
|
||||
<output1> <FONT
|
||||
color=#000000>\sum_{{</FONT></output1><BR>
|
||||
<output2><FONT
|
||||
color=#000000>}={</FONT></output2><BR>
|
||||
<output3><FONT
|
||||
color=#000000>}}^{</FONT></output3><BR>
|
||||
<output4><FONT
|
||||
color=#000000>}</FONT></output4><BR>
|
||||
<output5></output5><BR>
|
||||
</Sum></STRONG></FONT><BR></DIV><br>
|
||||
<DIV><FONT face=Arial size=2><FONT face=Arial><FONT size=2><FONT face=Arial
|
||||
size=2><FONT face=Arial><FONT size=2><U>AutoBrackets</U><BR>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,</FONT></FONT></FONT></FONT></FONT></FONT></DIV>
|
||||
<DIV><FONT face=Arial size=2><FONT face=Arial><FONT size=2><FONT face=Arial
|
||||
size=2><FONT face=Arial><FONT size=2> <FONT
|
||||
color=#800080><STRONG><name</STRONG> <FONT
|
||||
color=#000000>AutoBrackets=</FONT><FONT
|
||||
color=#0000ff>"false"</FONT><STRONG>><FONT
|
||||
color=#000000>Latex</FONT></name></STRONG></FONT><BR><U></U></FONT></FONT></FONT></FONT></FONT></FONT></DIV>
|
||||
<DIV><FONT face=Arial size=2><FONT face=Arial><FONT size=2><FONT face=Arial
|
||||
size=2><FONT face=Arial><FONT
|
||||
size=2><U></U></FONT></FONT></FONT></FONT></FONT></FONT> </DIV>
|
||||
<DIV><FONT face=Arial size=2><FONT face=Arial><FONT size=2><FONT face=Arial
|
||||
size=2><FONT face=Arial><FONT size=2><U>Brackets on Functions<BR></U>Brackets
|
||||
are added by default around the argument of a function. For example Sine in
|
||||
Latex is,<BR> <STRONG><FONT
|
||||
color=#800080><Sine><BR>
|
||||
<output1><FONT color=#000000>\sin</FONT>
|
||||
</output1><BR> <output2
|
||||
/><BR> </Sine></FONT></STRONG><BR><BR>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,<BR> <STRONG> </STRONG><FONT
|
||||
color=#800080><STRONG><SquareRoot</STRONG> <FONT
|
||||
color=#000000>brackets=</FONT><FONT
|
||||
color=#0000ff>"false"</FONT><STRONG>><BR>
|
||||
<output1><FONT
|
||||
color=#000000>\sqrt{</FONT></output1><BR>
|
||||
<output2><FONT
|
||||
color=#000000>}</FONT></output2><BR>
|
||||
</SquareRoot></STRONG></FONT><BR><U></U></FONT></FONT></FONT></FONT></FONT></FONT></DIV>
|
||||
<DIV><FONT face=Arial size=2><FONT face=Arial><FONT size=2><FONT face=Arial
|
||||
size=2><FONT face=Arial><FONT
|
||||
size=2><U></U></FONT></FONT></FONT></FONT></FONT></FONT> </DIV>
|
||||
<DIV><FONT face=Arial size=2><FONT face=Arial><FONT size=2><FONT face=Arial
|
||||
size=2><FONT face=Arial><FONT size=2><U>Initial</U><BR>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.<BR> <STRONG><FONT
|
||||
color=#800080><Add> <BR>
|
||||
<initial><FONT
|
||||
color=#000000><times/></FONT></initial><BR>
|
||||
<output</output> <BR>
|
||||
</Add><BR></FONT></STRONG><BR> ‘a x b x c’ would then be converted
|
||||
to,<BR>
|
||||
<times/><BR>
|
||||
<ci>a</ci><BR>
|
||||
<ci>b</ci><BR>
|
||||
<ci>c</ci> </FONT></FONT></FONT></FONT></FONT></FONT></DIV>
|
||||
<DIV><FONT face=Arial size=2><FONT face=Arial><FONT size=2><FONT face=Arial
|
||||
size=2><U><FONT face=Arial
|
||||
size=2></FONT></U></FONT></FONT></FONT></FONT> </DIV>
|
||||
<DIV><FONT face=Arial size=2><FONT face=Arial><FONT size=2><FONT face=Arial
|
||||
size=2><U><FONT face=Arial
|
||||
size=2>Final</FONT></U></FONT></FONT></FONT></FONT></DIV>
|
||||
<DIV><FONT face=Arial size=2><FONT face=Arial><FONT size=2><FONT face=Arial
|
||||
size=2><FONT face=Arial size=2>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.</FONT></FONT></FONT></FONT></FONT></DIV>
|
||||
<DIV><FONT face=Arial size=2><FONT face=Arial><FONT size=2><FONT face=Arial
|
||||
size=2> <STRONG><FONT
|
||||
color=#800080><Union><BR>
|
||||
<initial><FONT
|
||||
color=#000000>union(</FONT></initial><BR>
|
||||
<output><FONT
|
||||
color=#000000>,</FONT></output><BR>
|
||||
<final><FONT color=#000000>)</FONT></final><BR>
|
||||
</Union></FONT></STRONG></FONT></FONT></FONT></FONT></DIV></DIV></FONT></FONT></DIV></FONT></DIV></FONT></DIV></FONT></DIV>
|
||||
<DIV><FONT face=Arial size=2><FONT face=Arial size=2><FONT face=Arial
|
||||
size=2><FONT face=Arial size=2><FONT face=Arial><FONT size=2><FONT face=Arial
|
||||
size=2><FONT face=Arial><FONT size=2><FONT face=Arial size=2><SPAN
|
||||
class=875382513-08082007> </DIV></SPAN></FONT></FONT></FONT></FONT></FONT></FONT></FONT></FONT></FONT></FONT></BODY></HTML>
|
43
lib/editor/common/dragmath/doc/newobject.html
Normal file
43
lib/editor/common/dragmath/doc/newobject.html
Normal file
@ -0,0 +1,43 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>DragMath Documentation - Adding a function/operator</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<font size="2"; style="font-family: Arial;">
|
||||
|
||||
<h2><span style=" color: #000099;"><strong>Adding a function/operator</strong></span></h2>
|
||||
|
||||
<p>
|
||||
The code can be easily modified and recompiled to add additional operators and functions.
|
||||
</p><p>
|
||||
However, they must adhere to the standard display layout shown below:
|
||||
</p><p>
|
||||
Operator:
|
||||
<br>
|
||||
<IMG alt="" hspace=0 src="img/plus.jpg" align=bottom border=0>
|
||||
</p><p>
|
||||
Function:
|
||||
<br>
|
||||
<IMG alt="" hspace=0 src="img/sin.jpg" align=bottom border=0>
|
||||
</p><p>
|
||||
The steps to adding one:
|
||||
</p>
|
||||
<ol>
|
||||
|
||||
<LI>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:
|
||||
<br> N-ary operator - 1
|
||||
<br> Binary Operator - 2
|
||||
<br> Function - 3
|
||||
<br> The name of the GIF file that holds a transparent image of the object, of size 16x16, 24x24 or 32x32 pixels.<BR> The text of the element should hold the
|
||||
characters that represent the object.
|
||||
<LI>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'.
|
||||
<LI>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.
|
||||
<LI>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.
|
||||
<LI>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.
|
||||
<LI>An entry in each format XML file will be required for the new object. For details on how to do this see <A href="newformat.html">here</A>.
|
||||
|
||||
</font>
|
||||
|
||||
</body>
|
||||
</html>
|
38
lib/editor/common/dragmath/doc/options.html
Normal file
38
lib/editor/common/dragmath/doc/options.html
Normal file
@ -0,0 +1,38 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>DragMath Documentation - Options</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<font size="2"; style="font-family: Arial;">
|
||||
|
||||
<h2><span style=" color: #000099;"><strong>Options</strong></span></h2>
|
||||
|
||||
<p>
|
||||
<font size=3>
|
||||
<b>Exporting an expression</b>
|
||||
</font>
|
||||
</p>
|
||||
<p>
|
||||
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.
|
||||
</p>
|
||||
<br>
|
||||
<font size=3>
|
||||
<b>Changing the language</b>
|
||||
</font>
|
||||
<p>
|
||||
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.
|
||||
</p>
|
||||
|
||||
<br>
|
||||
<font size=3>
|
||||
<b>Help</b>
|
||||
</font>
|
||||
<p>
|
||||
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.
|
||||
</p>
|
||||
</font>
|
||||
</body>
|
||||
</html>
|
77
lib/editor/common/dragmath/doc/parameters.html
Normal file
77
lib/editor/common/dragmath/doc/parameters.html
Normal file
@ -0,0 +1,77 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>DragMath Documentation - Changing applet parameters</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<font size="2"; style="font-family: Arial;">
|
||||
|
||||
<h2><span style=" color: #000099;"><strong>Changing Applet parameters</strong></span></h2>
|
||||
|
||||
<p>
|
||||
There are various parameters that can be set inside the <APPLET> tag, to change particular options of the applet.
|
||||
</p>
|
||||
|
||||
<font size=3>
|
||||
<b>Language</b>
|
||||
</font>
|
||||
<p>
|
||||
<strong>
|
||||
<font color=#800080><param</font>
|
||||
name=
|
||||
</strong>
|
||||
<font color=#0000ff>language</font>
|
||||
<strong>
|
||||
value=
|
||||
</strong>
|
||||
<font color=#0000ff>"en"</font>
|
||||
<strong>
|
||||
<font color=#800080>></font>
|
||||
</strong>
|
||||
<br>
|
||||
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".
|
||||
</p>
|
||||
|
||||
<font size=3>
|
||||
<b>Output Format</b>
|
||||
</font>
|
||||
<p>
|
||||
<strong>
|
||||
<font color=#800080><param</font>
|
||||
name=
|
||||
</strong>
|
||||
<font color=#0000ff>outputFormat</font>
|
||||
<strong>
|
||||
value=
|
||||
</strong>
|
||||
<font color=#0000ff>"MathML"</font>
|
||||
<strong>
|
||||
<font color=#800080>></font>
|
||||
</strong>
|
||||
<br>
|
||||
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.
|
||||
</p>
|
||||
|
||||
<font size=3>
|
||||
<b>Open applet with an expression</b>
|
||||
</font>
|
||||
<p>
|
||||
<strong>
|
||||
<font color=#800080><param</font>
|
||||
name=
|
||||
</strong>
|
||||
<font color=#0000ff>openWithExpression</font>
|
||||
<strong>
|
||||
value=
|
||||
</strong>
|
||||
<font color=#0000ff>"sin(1+x)"</font>
|
||||
<strong>
|
||||
<font color=#800080>></font>
|
||||
</strong>
|
||||
<br>
|
||||
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.
|
||||
</p>
|
||||
|
||||
</font>
|
||||
</body>
|
||||
</html>
|
BIN
lib/editor/common/dragmath/doc/simple.html
Normal file
BIN
lib/editor/common/dragmath/doc/simple.html
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user