-
MathType
-
WirisQuizzes
-
Nubric
-
CalcMe
-
MathPlayer
-
Store FAQ
-
MathFlow
-
BF FAQ
-
Miscellaneous
-
Wiris Integrations
Accessibility services reference
Reading time: 2minReference for the MathType accessibility services used to convert between MathML and accessible textual representations.
Summary
The accessibility services convert mathematical expressions between Presentation MathML and accessible text. These services are intended for applications that need to generate textual descriptions of mathematical expressions for assistive technologies or reconstruct MathML from accessible text.
Supported services
| Service | Description |
|---|---|
mathml2accessible |
Converts Presentation MathML into accessible text. |
accessible2mathml |
Converts accessible text into Presentation MathML. |
Available interfaces
Accessibility services are available through the following interfaces.
| Interface | Availability |
|---|---|
| HTTP endpoints | Cloud and self-hosted deployments |
| Java API | Self-hosted Java deployments |
| .NET API | Self-hosted .NET deployments |
HTTP endpoints
The endpoint URL depends on your deployment. The endpoint path corresponds to the service name. For example:
| Service | Example endpoint (Java) |
|---|---|
mathml2accessible |
/pluginwiris_engine/app/mathml2accessible |
accessible2mathml |
/pluginwiris_engine/app/accessible2mathml |
Both GET and POST requests are supported. POST is recommended for large MathML expressions.
Request parameters
The accessibility services accept the following request parameters.
| Parameter | Required | Description |
|---|---|---|
mml |
Yes* | Presentation MathML to convert. |
accessible |
Yes* | Accessible text to convert. |
lang |
No | Language used for the generated accessible text, when supported. |
httpstatus |
No | Returns HTTP 5xx status codes when the conversion fails instead of embedding the error in a successful (200 OK) response. |
* The required parameter depends on the selected service:
| Service | Required parameter |
|---|---|
mathml2accessible |
mml |
accessible2mathml |
accessible |
Example request
Convert Presentation MathML into accessible text:
GET /mathml2accessible?mml=<math><mn>1</mn><mo>+</mo><mn>2</mn></math>Service behaviour
mathml2accessible
Generates an accessible textual representation of a mathematical expression from Presentation MathML. The generated text can be used by screen readers or other assistive technologies.
accessible2mathml
Converts a supported accessible textual representation back into Presentation MathML. The resulting MathML can be rendered or edited using MathType.
Error handling
Conversion may fail if:
- The supplied MathML is malformed.
- The accessible text cannot be interpreted.
- The requested language is not supported.
When httpstatus=true is specified, the service returns an appropriate HTTP 5xx status code instead of embedding the error in a successful (200 OK) response.
Notes
- Accessible text is intended for assistive technologies and may vary depending on the selected language.
- The generated text represents the mathematical meaning of the expression rather than its visual appearance.
- These services complement the accessibility features provided by
WIRISplugins.jsand rendered formulas.
Java and .NET APIs
The services described in this article are also available through the Java and .NET APIs. For complete method signatures, return types, and implementation details, see: