@@ -146,7 +146,7 @@ export class Menu {
146146 speech : true ,
147147 braille : true ,
148148 brailleCode : 'nemeth' ,
149- speechRules : 'mathspeek -default'
149+ speechRules : 'clearspeak -default'
150150 } ,
151151 jax : {
152152 CHTML : null ,
@@ -507,11 +507,20 @@ export class Menu {
507507 this . a11yVar < boolean > ( 'viewBraille' ) ,
508508 this . a11yVar < boolean > ( 'voicing' ) ,
509509 this . a11yVar < string > ( 'locale' , locale => this . setLocale ( locale ) ) ,
510- this . a11yVar < string > ( 'speechRules' , value => {
511- const [ domain , style ] = value . split ( '-' ) ;
512- this . document . options . sre . domain = domain ;
513- this . document . options . sre . style = style ;
514- } ) ,
510+ {
511+ name : 'speechRules' ,
512+ getter : ( ) => {
513+ return this . settings [ 'speechRules' ] ;
514+ } ,
515+ setter : ( value : string ) => {
516+ const [ domain , style ] = value . split ( '-' ) ;
517+ this . settings [ 'speechRules' ] = value ;
518+ this . document . options . sre . domain = domain ;
519+ this . document . options . sre . style = style ;
520+ this . rerender ( STATE . COMPILED ) ;
521+ this . saveUserSettings ( ) ;
522+ }
523+ } ,
515524 this . a11yVar < string > ( 'magnification' ) ,
516525 this . a11yVar < string > ( 'magnify' ) ,
517526 this . a11yVar < boolean > ( 'treeColoring' ) ,
@@ -840,7 +849,7 @@ export class Menu {
840849 options . linebreaks . inline = settings . breakInline ;
841850 if ( ! settings . speechRules ) {
842851 const sre = this . document . options . sre ;
843- settings . speechRules = `${ sre . domain || 'mathspeak ' } -${ sre . style || 'default' } ` ;
852+ settings . speechRules = `${ sre . domain || 'clearspeak ' } -${ sre . style || 'default' } ` ;
844853 }
845854 } ) ;
846855 }
0 commit comments