Skip to content

Commit

Permalink
Merge branch 'master' of github.com:arnog/mathlive
Browse files Browse the repository at this point in the history
  • Loading branch information
arnog committed Feb 13, 2019
2 parents 77d7bf9 + 96c5b9a commit 46c9140
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/addons/outputSpokenText.js
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,7 @@ MathAtom.toSpeakableText = function(atoms, options) {
options.textToSpeechRulesOptions = options.textToSpeechRulesOptions || {};
options.textToSpeechRulesOptions.markup = options.textToSpeechMarkup;
if (options.textToSpeechRulesOptions.markup === 'ssml') {
options.textToSpeechRulesOptions.markup = 'arno';
options.textToSpeechRulesOptions.markup = 'ssml_step';
}
options.textToSpeechRulesOptions.rate = options.speechEngineRate;
}
Expand Down
4 changes: 2 additions & 2 deletions src/editor/editor-mathfield.js
Original file line number Diff line number Diff line change
Expand Up @@ -2576,7 +2576,7 @@ MathField.prototype.speakSelectionWithSynchronizedHighlighting_ = function() {
window.mathlive.readAloudMathField = this;
this._render({forHighlighting: true});
const options = this.config;
options.textToSpeechMarkup = 'ssml';
options.textToSpeechMarkup = (window.sre && options.textToSpeechRules === 'sre') ? 'ssml_step' : 'ssml';
const text = MathAtom.toSpeakableText(this.mathlist.extractContents(), options)
this._speakWithSynchronizedHighlighting(text);
} else {
Expand Down Expand Up @@ -2659,7 +2659,7 @@ MathField.prototype.speakAllWithSynchronizedHighlighting_ = function() {
window.mathlive.readAloudMathField = this;
this._render({forHighlighting: true});
const options = this.config;
options.textToSpeechMarkup = 'ssml';
options.textToSpeechMarkup = (window.sre && options.textToSpeechRules === 'sre') ? 'ssml_step' : 'ssml';
const text = MathAtom.toSpeakableText(this.mathlist.root, options)
this._speakWithSynchronizedHighlighting(text);
return false;
Expand Down

0 comments on commit 46c9140

Please sign in to comment.