[BlindMath] Accessibility of Latex to PDF

White, Jason J jjwhite at ets.org
Tue Jan 12 13:57:13 UTC 2021


A project to add support for the PDF structure tree and associated accessibility features to LaTeX is underway, as described here:
https://tug.org/TUGboat/tb41-1/tb127fischer-accessible.pdf
It won't be generally useful for a while yet, however.

-----Original Message-----
From: BlindMath <blindmath-bounces at nfbnet.org> On Behalf Of Neil Soiffer via BlindMath
Sent: Monday, January 11, 2021 4:38 PM
To: Blind Math list for those interested in mathematics <blindmath at nfbnet.org>
Cc: Neil Soiffer <soiffer at alum.mit.edu>
Subject: Re: [BlindMath] Accessibility of Latex to PDF

To maybe clear up some confusion, let me add a little bit on the technical side about PDF that may help explain why it is often not accessible...

A PDF document is actually structured as a tree, with the main nodes being nodes for each page. The design allows PDF renders such as Adobe Reader to open a 200 page book quickly and go to any page quickly. Each page contains a set of very low level commands that draws graphics and text on the page.
Those commands are often not in the reading order for the document.

Another node in the PDF tree is one that represents a tree and is referred to as the "structure tree". If it is used, it essentially imposes order on the document and is the key to accessibility. It maps mosty to HTML in a straightforward way and points into the various pages to the actual text of the document. As an example, the structure tree has nodes for headings, lists, paragraphs, etc. AT uses the structure tree to read the document. If there is no structure tree, the PDF is likely to be gibberish if read with an AT. A PDF document with a structure tree is often referred to as "tagged PDF". Well tagged PDF should be as accessible as well tagged HTML. At the moment, well tagged PDF is not the norm.

PDF continues to evolve and in 2017, PDF 2.0 came out. That specifically included the MathML namespace as valid in PDF. The PDF/UA committee (the one that says what an accessible PDF document is) is working on updating their spec (ISO 14289) to PDF 2.0. That update includes what to do about math. PDF/UA 1.0 says "add alt text" -- that requires the user to provide the alt text. The update draft says "use MathML", which is something that doesn't require user intervention. It will be a few years before the PDF/UA final version comes out (ISO has a lot of rules about process).
NVDA+MathPlayer has had the ability to read PDF tagged with MathML ever
since it was released, but other than a few sample documents, no tools generate it at the moment.

This discussion thread has been about TeX. Unfortunately, the tools that generate PDF from TeX do not generate a structure tree and so the resulting TeX is not accessible. The good news is that a number of people are working on making the PDF generated from TeX accessible. There are some experimental packages that create a structure tree. I recently tried a few and unfortunately NVDA didn't like them -- apparently they didn't get all the details down right. I'm sure that will improve in the (hopefully near) future. None of the packages do anything about making the math accessible, although I think one may have a way to add alt text.

I hope that clears up some questions about PDF accessibility. Accessible math on the web has become the norm in the last few years. I hope in a few years, the same will be able to be said for PDF. In the meantime, I agree with those who have said get the original TeX, get an HTML version, or get a Word version.

Neil Soiffer
_______________________________________________
BlindMath mailing list
BlindMath at nfbnet.org
https://nam01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fnfbnet.org%2Fmailman%2Flistinfo%2Fblindmath_nfbnet.org&data=04%7C01%7Cjjwhite%40ets.org%7Cff3c69eff3fd421e3d8508d8b6796b58%7C0ba6e9b760b34fae92f37e6ddd9e9b65%7C0%7C0%7C637459979932524992%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=KVQ6IvVSDtKiH%2FxCPnUF8mTyhAKl9%2F1ncFqXht%2FN1Yo%3D&reserved=0
To unsubscribe, change your list options or get your account info for BlindMath:
https://nam01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fnfbnet.org%2Fmailman%2Foptions%2Fblindmath_nfbnet.org%2Fjjwhite%2540ets.org&data=04%7C01%7Cjjwhite%40ets.org%7Cff3c69eff3fd421e3d8508d8b6796b58%7C0ba6e9b760b34fae92f37e6ddd9e9b65%7C0%7C0%7C637459979932524992%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=oxViSZ4lUQkReaWROu1855nt7Dj3IVgH%2FG4XUcQTK3Y%3D&reserved=0
BlindMath Gems can be found at <https://nam01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.blindscience.org%2Fblindmath-gems-home&data=04%7C01%7Cjjwhite%40ets.org%7Cff3c69eff3fd421e3d8508d8b6796b58%7C0ba6e9b760b34fae92f37e6ddd9e9b65%7C0%7C0%7C637459979932534938%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=SYsfeZ8GlB%2Fp7JSsA45ELWBitDwr1n5PUzTLAa5zB5Q%3D&reserved=0>

________________________________

This e-mail and any files transmitted with it may contain privileged or confidential information. It is solely for use by the individual for whom it is intended, even if addressed incorrectly. If you received this e-mail in error, please notify the sender; do not disclose, copy, distribute, or take any action in reliance on the contents of this information; and delete it from your system. Any other use of this e-mail is prohibited.


Thank you for your compliance.

________________________________


More information about the BlindMath mailing list