Skip to content

Commit d884ac4

Browse files
authored
Merge pull request #725 from mathjax/update_sre
Updates to latest version of SRE.
2 parents 23906de + 490a606 commit d884ac4

4 files changed

Lines changed: 12 additions & 9 deletions

File tree

package-lock.json

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,6 @@
6565
"esm": "^3.2.25",
6666
"mhchemparser": "^4.1.0",
6767
"mj-context-menu": "^0.6.1",
68-
"speech-rule-engine": "^3.2.0"
68+
"speech-rule-engine": "^3.3.3"
6969
}
7070
}

ts/a11y/explorer.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -628,6 +628,7 @@ const iso: {[locale: string]: string} = {
628628
'en': 'English',
629629
'es': 'Spanish',
630630
'fr': 'French',
631+
'hi': 'Hindi',
631632
'it': 'Italian'
632633
};
633634

ts/a11y/explorer/KeyExplorer.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,10 +252,12 @@ export class SpeechExplorer extends AbstractKeyExplorer<string> {
252252
*/
253253
public Update(force: boolean = false) {
254254
super.Update(force);
255+
let options = this.speechGenerator.getOptions();
256+
SRE.setupEngine({modality: options.modality,
257+
locale: options.locale});
255258
this.region.Update(this.walker.speech());
256259
// This is a necessary in case speech options have changed via keypress
257260
// during walking.
258-
let options = this.speechGenerator.getOptions();
259261
if (options.modality === 'speech') {
260262
this.document.options.sre.domain = options.domain;
261263
this.document.options.sre.style = options.style;

0 commit comments

Comments
 (0)