You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So I'm using this package in hopes of producing an SVG that will be readable with VoiceOver. Essentially, we want to VoiceOver to read the alt text for the SVG the same way that it would if it were MathML. When we generate an SVG for a E = MC2 (pardon the lack of superscript) TeX input, it gets read as "E equals em cee two" by VoiceOver. We've tested this on both Safari and Chrome.
My main question is whether-or-not it's possible to display the SVG with the MathML alt text. I'm not sure if we're misunderstanding the main capabilities of the package or if we're just approaching this wrong. I've attached a code snippet below. Thanks!
constexpress=require("express");constapp=express();constport=3000;// a simple TeX-input examplevarmjAPI=require("mathjax-node");mjAPI.config({MathJax: {// traditional MathJax configuration}});mjAPI.start();varyourMath="E = mc^2";mjAPI.typeset({math: yourMath,format: "TeX",// or "inline-TeX", "MathML"svg: true// or svg:true, or html:true},function(data){if(!data.errors){console.log(data.mml);app.use(express.static("./"));app.get("/render",(req,res)=>res.send(data));app.listen(port,()=>console.log(`Example app listening on port ${port}!`));}});
Hey all,
So I'm using this package in hopes of producing an SVG that will be readable with VoiceOver. Essentially, we want to VoiceOver to read the alt text for the SVG the same way that it would if it were MathML. When we generate an SVG for a E = MC2 (pardon the lack of superscript) TeX input, it gets read as "E equals em cee two" by VoiceOver. We've tested this on both Safari and Chrome.
My main question is whether-or-not it's possible to display the SVG with the MathML alt text. I'm not sure if we're misunderstanding the main capabilities of the package or if we're just approaching this wrong. I've attached a code snippet below. Thanks!
We've also played around with it to get the MathML output like so:
This gives us the alt text that we want but doesn't solve the problem of us wanting an SVG to be produced with the same accessibility values.
The text was updated successfully, but these errors were encountered: