pub fn intent_from_mathml<'m>(
mathml: Element<'_>,
doc: Document<'m>,
) -> Result<Element<'m>>Expand description
The main external call, intent_from_mathml returns a string for the speech associated with the mathml.
It matches against the rules that are computed by user prefs such as “Language” and “SpeechStyle”.
The speech rules assume mathml has been “cleaned” via the canonicalization step.
If the preferences change (and hence the speech rules to use change), or if the rule file changes,
intent_from_mathml will detect that and (re)load the proper rules.
A string is returned in call cases. If there is an error, the speech string will indicate an error.