Skip to content

Commit 9ef9999

Browse files
committed
update example with intent
1 parent 38867f1 commit 9ef9999

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Example/test.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,11 @@ def GetSpeech():
5757
mathml = "<math><msup> <mi>x</mi> <mn>3</mn> </msup> </math>"
5858
SetMathMLForMathCAT(mathml)
5959
print("MathML: {}\nSpeech: '{}'".format(mathml, GetSpeech()))
60+
61+
mathml = "<math><msup intent='transpose:postfix($x)'> <mi arg='x'>x</mi> <mi>T</mi> </msup> </math>"
62+
SetMathMLForMathCAT(mathml)
63+
print("MathML: {}\nSpeech: '{}'".format(mathml, GetSpeech()))
64+
65+
mathml = "<math><mrow intent='_(x, $op)'><mo arg='op'>!</mo></mrow></math>"
66+
SetMathMLForMathCAT(mathml)
67+
print("MathML: {}\nSpeech: '{}'".format(mathml, GetSpeech()))

0 commit comments

Comments
 (0)