Documentation

  • Demos
  • Visit our website
  • Contact us
  • MathType

    • Wiris Quizzes

      • Learning Lemur

        • CalcMe

          • MathPlayer

            • Store FAQ

              • VPAT for the electronic documentation

                • MathFlow

                  • BF FAQ

                    • Home
                    • MathPlayer
                    • Getting Started on a Translation
                    • Some info about the files
                    • Some info about the files

                    Some info about the files

                    Reading time: 1min

                    The speech rules are invoked by a pattern matcher. The pattern matcher has four phases, but only two phases are language specific. One of these phases matches MathML (the language used on web pages for math) and produces phrase templates. The next phase matches these phrase templates and fills in the actual text to speak -- that is where you will do most of your work. Matching the MathML is mostly shared by all languages and (of course), matching the phrase templates is language-specific.

                    If there are language specific patterns/math notations that need to be matched for your language that are not already handled, they can be added to simple-speech-xx.tdl in the new directory you created. For example, in the Spanish file (simple-speech-es.tdl), there are rules for matching "sen" (sin) and for saying "un" and "y un" in certain cases.

                    The general rules are in the parent directory of the language rules. The general rules are broken apart into related rule sets such as those for money, units, and geometry. There are corresponding files to these in the language-specific directors where the words get filled in for the match. For example, in your new directory, there should be files money.tdl, units.tdl, and geometry.tdl.

                    The main files are simple-speech-en.tdl and simple-speech.tdl. These files have statements in them that include other files such as money.tdl. "Simple speech" is one speech that we have developed, but MathPlayer allows for others such as the MathSpeak style (based on Nemeth code) and a new style being co-developed with ETS called "ClearSpeak". Both of these other styles will reuse some other existing parts (such as money.tdl) so that new speech styles do not have to duplicate all of the work done for Simple Speech.

                    Was this article helpful?

                    Yes
                    No
                    Give feedback about this article

                    Related Articles

                    • Symbols
                    • Constants
                    • Brackets
                    • Target Group

                    Making people’s STEM work more meaningful

                    MathType

                    • MathType for Office Tools
                    • MathType for Mac
                    • MathType for Microsoft 365
                    • MathType for Google Workspace
                    • MathType for LMS
                    • MathType for XML Editors
                    • Arabic notation
                    • Our products accessibility
                    • MathType is online

                    WirisQuizzes

                    Learning Lemur

                    Solutions for Education

                    • Blackboard Learn
                    • Brightspace by D2L
                    • Canvas
                    • Google Classroom
                    • Moodle
                    • Schoology

                    Solutions for Publishing Houses

                    Solutions for Technical Writers

                    Solutions for Chemistry

                    Integrations

                    • HTML Editors
                    • MathType in WordPress

                    Pricing

                    Company

                    Careers

                    Blog

                    Contact Us

                    Buy Now

                    Plugin Downloads

                    © Wiris 2025

                    • Cookie Settings
                    • Cookie Policy
                    • Terms of Use
                    • Privacy Policy / GDPR
                    • Student Data Privacy
                    • Compliance
                    • Powered by Helpjuice
                    Expand