Upstream contribution · HKUDS/DeepTutor
DeepTutor · Speak LaTeX degree superscripts correctly in DeepTutor
Problem
DeepTutor expanded the circle command as function composition before examining superscripts. A decimal or symbolic angle reached the speech layer as garbled prose.
Engineering response
Recognize the circle command in superscript position before expanding ordinary operators. The same command still means composition when it appears between functions.
Evidence and scope
The pull request reports 45 passing focused speech-processing tests and 68 passing voice service tests. Those checks cover the pre-TTS behavior.