[BlindMath] mathpix cli

Rich Caloggero rjc at mit.edu
Mon Jul 10 21:01:49 UTC 2023


Using mathpix CLI, when I submit a pdf and attempt to convert it to 
html, I get backa file which has no MathML in it; it appears to use SVG 
images. It also seems to use mathjax, but there are no script elements 
which load mathjax.


I tried adding one by hand, but didn't seem to do anything.


Looking at the CLI options, there doesn't seem to be any options to 
choose output format.


When a colleague used the desktop app to convert, the output did seem to 
contain mathML, and it was indeed readable via NVDA+mathcat.


What am I missing?


Interestingly, I can use the webapp to upload and convert a pdf to HTML, 
and if I use the "generate speech" option in the settings, then it does 
seem to produce something which is sort of readable, but it is not 
mathML; it is a bunch of math blocks containing various output flavors, 
but all of them hidden except for svg. The svg container has 
aria-label="words representing the math expression as MathSpeak".


What am I missing? Am I supposed to hand code mathjax configuration? Why 
doesn't the CLI allow me to choose this at conversion time?


I must be missing something obvious!


-- 

Rich Caloggero
Accessibility Specialist
Disability and Access Services
Massachusetts Institute of Technology




More information about the BlindMath mailing list