Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates samples with speech enrichment to work with new options. #43

Open
wants to merge 1 commit into
base: v3-tools
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion samples/tex2mml-speech.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,12 @@ import {CHTML} from '../mathjax3/js/output/chtml.js';
EnrichHandler(RegisterHTMLHandler(chooseAdaptor()), new MathML());

let html = mathjax.document('<html></html>', {
enrichSpeech: 'deep',
sre: {
speech: 'deep',
domain: 'clearspeak',
style: 'default',
locale: 'en'
},
InputJax: new TeX({packages: AllPackages}),
OutputJax: new CHTML() // Needed for bussproofs
});
Expand Down
4 changes: 3 additions & 1 deletion samples/tex2svg-speech.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ const adaptor = chooseAdaptor();
EnrichHandler(RegisterHTMLHandler(adaptor), new MathML());

let html = mathjax.document('<html></html>', {
enrichSpeech: 'deep',
sre: {
speech: 'deep'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this include the domain, style, and locate, like the other example?

},
InputJax: new TeX({packages: ['base']}),
OutputJax: new SVG(),
renderActions: {
Expand Down