@@ -203,7 +203,7 @@ export function ExplorerMathDocumentMixin<B extends MathDocumentConstructor<HTML
203203 align : 'top' , // placement of magnified expression
204204 backgroundColor : 'Blue' , // color for background of selected sub-expression
205205 backgroundOpacity : 20 , // opacity for background of selected sub-expression
206- braille : false , // switch on Braille output
206+ braille : true , // switch on Braille output
207207 flame : false , // color collapsible sub-expressions
208208 foregroundColor : 'Black' , // color to use for text of selected sub-expression
209209 foregroundOpacity : 100 , // opacity for text of selected sub-expression
@@ -219,7 +219,7 @@ export function ExplorerMathDocumentMixin<B extends MathDocumentConstructor<HTML
219219 speech : true , // switch on speech output
220220 subtitles : true , // show speech as a subtitle
221221 treeColoring : false , // tree color expression
222- viewBraille : false , // display Braille output as subtitles
222+ viewBraille : true , // display Braille output as subtitles
223223 voicing : false , // switch on speech output
224224 }
225225 } ;
@@ -257,7 +257,6 @@ export function ExplorerMathDocumentMixin<B extends MathDocumentConstructor<HTML
257257 * @return {ExplorerMathDocument } The MathDocument (so calls can be chained)
258258 */
259259 public explorable ( ) : ExplorerMathDocument {
260- this . options . enableSpeech = true ;
261260 if ( ! this . processed . isSet ( 'explorer' ) ) {
262261 if ( this . options . enableExplorer ) {
263262 if ( ! this . explorerRegions ) {
@@ -320,18 +319,13 @@ export function setA11yOptions(document: HTMLDOCUMENT, options: {[key: string]:
320319 for ( let key in options ) {
321320 if ( document . options . a11y [ key ] !== undefined ) {
322321 setA11yOption ( document , key , options [ key ] ) ;
323- if ( key === 'locale' ) {
324- document . options . sre [ key ] = options [ key ] ;
325- }
326- continue ;
327- }
328- if ( sreOptions [ key ] !== undefined ) {
322+ } else if ( sreOptions [ key ] !== undefined ) {
329323 document . options . sre [ key ] = options [ key ] ;
330324 }
331325 }
332326 // Reinit explorers
333327 for ( let item of document . math ) {
334- ( item as ExplorerMathItem ) . explorers . attach ( ) ;
328+ ( item as ExplorerMathItem ) ? .explorers ? .attach ( ) ;
335329 }
336330}
337331
@@ -387,6 +381,10 @@ export function setA11yOption(document: HTMLDOCUMENT, option: string, value: str
387381 break ;
388382 }
389383 break ;
384+ case 'locale' :
385+ document . options . sre . locale = value ;
386+ document . options . a11y . locale = value ;
387+ break ;
390388 default :
391389 document . options . a11y [ option ] = value ;
392390 }
0 commit comments