File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -54,6 +54,10 @@ def GetSpeech():
5454SetMathMLForMathCAT (mathml )
5555print ("MathML: {}\n Speech: '{}'" .format (mathml , GetSpeech ()))
5656
57+ mathml = "<math display='block'><mi>x</mi><mo>⨯</mo><mi>y</mi></math>"
58+ SetMathMLForMathCAT (mathml )
59+ print ("MathML: {}\n Speech: '{}'" .format (mathml , GetSpeech ()))
60+
5761mathml = "<math><msup> <mi>x</mi> <mn>3</mn> </msup> </math>"
5862SetMathMLForMathCAT (mathml )
5963print ("MathML: {}\n Speech: '{}'" .format (mathml , GetSpeech ()))
@@ -65,3 +69,7 @@ def GetSpeech():
6569mathml = "<math><mrow intent='_(x, $op)'><mo arg='op'>!</mo></mrow></math>"
6670SetMathMLForMathCAT (mathml )
6771print ("MathML: {}\n Speech: '{}'" .format (mathml , GetSpeech ()))
72+
73+ mathml = "<math intent=':structure'><mrow><mo>(</mo><mfrac linethickness='0'><mn arg='n'>7</mn><mn arg='m'>3</mn></mfrac><mo>)</mo></mrow></math>"
74+ SetMathMLForMathCAT (mathml )
75+ print ("MathML: {}\n Speech (no inference): '{}'" .format (mathml , GetSpeech ()))
You can’t perform that action at this time.
0 commit comments