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

MathML in the HTML Output to Make it Accessible to Screen Readers #563

Open
mohammad-tau opened this issue Feb 19, 2025 · 2 comments
Open

Comments

@mohammad-tau
Copy link

This tool is a great accessibility tool. Thanks a lot for creating it. It’s a game changer for me as a blind person. I am a blind user who needs these kinds of conversions so the PDF becomes accessible to me when reading it either with HTML or Markdown, especially the LaTeX conversion and the images extraction. I've tried the tool on a PDF document where MathPix service failed to give a useful result, and the output pretty much impressed me. So I am thinking of trying it more on the ArXiv articles I need to read.
The barrier is that the HTML doesn't seem to include the equations written in MathML, so a screen reader can consume and present them properly. I haven’t tried the --use_llm option, but I am not sure it will make any difference. Please correct me if I'm wrong.
Of course, reading the Markdown version is a fallback mechanism, but having the HTML properly constructed is a big plus.
I am sure there are several solutions to convert the math in Markdown to MathML. I can help to investigate and implement them in my spare time.

@mohammad-tau mohammad-tau changed the title MathML in the HTML Output to Make it Accessible to Sc reen Readers MathML in the HTML Output to Make it Accessible to Screen Readers Feb 19, 2025
@VikParuchuri
Copy link
Owner

I'm really glad this is helping you, mohammad! By default, marker will convert all block math to LaTeX. The --use_llm flag will also convert all the inline math to LaTeX. Can screen readers work with LaTeX, or is MathML a requirement? LaTeX to mathml shouldn't be too hard to do.

@loaishawar
Copy link

loaishawar commented Feb 19, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants