NSoiffer / MathCAT

MathCAT: Math Capable Assistive Technology for generating speech, braille, and navigation.
MIT License
63 stars 35 forks source link

Add a xpath user-defined "replace-all" function #235

Closed NSoiffer closed 11 months ago

NSoiffer commented 11 months ago

The Swedish speech engines seems to make some poor choices for speaking some punctuation in mtext. These don't go through the unicode files, so the only way to correct them is to have a rule in the main files. However, xpath lacks a "replace" function.

Adding a replace-all function would solve this problem.

NSoiffer commented 11 months ago

To consistent with other MathCAT defined functions, it is called ReplaceAll(string, from, to)