Wiris

Documentation

  • Demos
  • Visit our website
  • Contact us
  • MathType

    • WirisQuizzes

      • LearningLemur

        • CalcMe

          • MathPlayer

            • Store FAQ

              • MathFlow

                • BF FAQ

                  • Miscellaneous

                    • Wiris Integrations

                      • 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?

                      Give feedback about this article

                      Related Articles

                      • Symbols
                      • Target Group

                      Empowering STEM education

                      MathType

                      • Office Tools
                      • LMS
                      • XML
                      • HTML

                      WirisQuizzes

                      Learning Lemur

                      Integrations

                      Solutions

                      • Education
                      • Publishing houses – platforms and interactive
                      • Publishing houses – Print and digital
                      • Technical writers

                      Pricing

                      Downloads

                      Blog

                      • Success stories

                      About us

                      • Careers
                      • Partnership

                      Contact Us

                      Contact Sales

                      European union (European Regional Development Fund) and 1EdTech (TrustEd Apps Certified)
                      • Cookie Policy
                      • Terms of Use
                      • Privacy Policy / GDPR
                      • Student Data Privacy
                      • Compliance
                      • Cookie Settings

                      © Wiris 2026

                      Expand