Documentation

MathText (WIRIS)

Description

MathText (WIRIS) is an addon that allows the use of MathType for Office Tools packages and WirisQuizzes.

With MathType for Office Tools packages it is possible to create or edit mathematical equations using a special WYSIWYG formula editor, also known as equation editor. In the WIRIS editor, it is possible to use method known as Hand - input method for writing mathematics in handwriting mode, which is provided by WIRIS. The resulting output of Hand is the equivalent presentation MathML of the formula handwritten by the user. Depending on the type selected in the addon's settings, math equations in the player can be edited or available only in SVG form.

Properties

Property name Description
Initial text The initial MathML content of the editor. Used to set the content at initialization time of the editor.
Correct answer MathML content that will be used as correct answer. Equations defined in this field will be validated with the user's response. Editor in this field has a built-in settings panel. For example, it allows to specify error tolerance on a user's response.
Type Table with available types and their descriptions:
Type Description The popup option is available Is activity
text In player, equations written in property 'Initial text' are available in SVG format and cannot be edited. Restrictions on minimum height and width are lifted. No No
editor In player, equations written in property 'Initial text' are editable in editor. Yes No
activity In player, equations written in property 'Initial text' are editable in editor. This type allows a user's answer to be compared and scored against the model content defined in the property 'Correct answer'. Yes Yes
, where:
  • The popup option is available - Determines whether the addon supports 'popup' mode if the 'Math editor in popup' property is checked.
  • Is activity - Determines whether the addon is an activity or not. When it is not an activity, the answer given in 'Correct answer' property is not taken into account in the overall result.
Is disabled Allows disabling the addon so that it won't be able to interact.
Language Language of the editor.
List of supported languages:
  • English
  • Polish
  • French
  • Arabic
  • Spanish
Default language: English
Formula color Defines the color of the whole formula.
A color with the form #RGB or #RRGGBB.
Default: #000000 (black)
Background color Defines the background color of the whole formula.
A color with the form #RRGGBB.
Default: #FFFFFF (white)
Math editor in popup Determines whether the editor is opened in a popup. The editor in the basic view is replaced by the content from the editor saved in SVG format, like when type 'text' is chosen. A click on SVG will open the popup.
popup texts Editor where it is possible to change the name of the save and cancel button. The mentioned buttons are available in a popup.

Supported commands

Command name Params Description
show --- Shows the addon.
hide --- Hides the addon.
showAnswers --- Shows the addon answers.
hideAnswers --- Hides the addon answers.
enable --- Enables the addon.
disable --- Disables the addon.

Events

Events are only available if the 'type' property has the 'activity' value chosen.

The MathText addon sends ValueChanged event when the user answer changed and state of scores is updated.

Field name Description
Item 0
Value 1
Score 1 when the addon has a correct answer, otherwise 0

Advanced Connector integration

Each command supported by MathText addon can be used in the Advanced Connector addon scripts. The below example shows how to show or hide the addon according to the Double State Button module's state.

EVENTSTART
Source:DoubleStateButton1
Value:1
SCRIPTSTART
    var module = presenter.playerController.getModule('MathText1');
    module.show();
SCRIPTEND
EVENTEND

EVENTSTART
Source:DoubleStateButton1
Value:0
SCRIPTSTART
    var module = presenter.playerController.getModule('MathText1');
    module.hide();
SCRIPTEND
EVENTEND

CSS classes

Class name Description
.mathtext-editor-wrapper Class for the div wrapping addon editor or div wrapping SVG.
.mathtext-editor-wrapper .wrong Class for the addon solved incorrectly.
.mathtext-editor-wrapper .correct Class for the addon solved correctly.
.mathtext-editor-popup-wrapper Class for the div wrapping contents of popup.
.mathtext-editor-popup-editor Class for the div wrapping editor in popup.
.mathtext-editor-popup-buttons Class for the div wrapping buttons in popup.
.mathtext-editor-popup-buttons .cancel-button Class for the cancel button in popup.
.mathtext-editor-popup-buttons .save-button Class for the save button in popup.

Demo presentation

N/A