File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
NVDA-addon/addon/globalPlugins/MathCAT Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -250,8 +250,9 @@ def OnRelativeSpeedChanged( self, event ):
250250 def OnPauseFactorChanged ( self , event ):
251251 from .MathCAT import ConvertSSMLTextForNVDA
252252 from speech import speak
253+ rate = self .m_sliderRelativeSpeed .GetValue ()
253254 pausefactor = self .m_sliderPauseFactor .GetValue ()
254- text = _ (f"the fraction with numerator <break time='{ 300 * pausefactor // 100 } ms'/> <mark name='M63i335o-4'/> <say-as interpret-as='characters'>x</say-as> to the <mark name='M63i335o-5'/> <say-as interpret-as='characters'>n</say-as> <phoneme alphabet='ipa' ph='θ'>-th</phoneme> power <break time='{ 128 * pausefactor // 100 } ms'/> <mark name='M63i335o-6'/> plus <mark name='M63i335o-7'/> 1 <break time='{ 300 * pausefactor // 100 } ms'/> and denominator <mark name='M63i335o-10'/> <say-as interpret-as='characters'>x</say-as> to the <mark name='M63i335o-11'/> <say-as interpret-as='characters'>n</say-as> <phoneme alphabet='ipa' ph='θ'>-th</phoneme> power <break time='{ 128 * pausefactor // 100 } ms'/> <mark name='M63i335o-12'/> minus <mark name='M63i335o-13'/> 1 <break time='{ 600 * pausefactor // 100 } ms'/>end fraction <break time='{ 150 * pausefactor // 100 } ms'/>" )
255+ text = _ (f"<prosody rate=' { rate } %'> the fraction with numerator <break time='{ 300 * pausefactor // 100 } ms'/> <mark name='M63i335o-4'/> <say-as interpret-as='characters'>x</say-as> to the <mark name='M63i335o-5'/> <say-as interpret-as='characters'>n</say-as> <phoneme alphabet='ipa' ph='θ'>-th</phoneme> power <break time='{ 128 * pausefactor // 100 } ms'/> <mark name='M63i335o-6'/> plus <mark name='M63i335o-7'/> 1 <break time='{ 300 * pausefactor // 100 } ms'/> and denominator <mark name='M63i335o-10'/> <say-as interpret-as='characters'>x</say-as> to the <mark name='M63i335o-11'/> <say-as interpret-as='characters'>n</say-as> <phoneme alphabet='ipa' ph='θ'>-th</phoneme> power <break time='{ 128 * pausefactor // 100 } ms'/> <mark name='M63i335o-12'/> minus <mark name='M63i335o-13'/> 1 <break time='{ 600 * pausefactor // 100 } ms'/>end fraction <break time='{ 150 * pausefactor // 100 } ms'/>" )
255256 speak ( ConvertSSMLTextForNVDA (text ) )
256257
257258 def OnClickOK (self ,event ):
You can’t perform that action at this time.
0 commit comments