Hybrid PDF 2.0 UA-2 math/alt/use or Hybrid PDF 1.7 UA-1 math/setup=mathml-AF ?
#1283
Replies: 2 comments 1 reply
-
|
You are not violating a standard if you add an alt text. But currently I do not know of any PDF reader which will ignore the alt and prefer the mathml. So to make a drastic example: If you add the alt in the following example users will hear something like "LaTeX formula start blub LaTeX formula end".
No not yet. But this has been discussed in various TWG/LWG of the pdf association and there is agreement that mathml-SE should win over mathml-AF and both should win over the alt text. But when implementation will actually do that is unknown.
If you want the best experience for the (blind) user of the PDF use PDF 2.0 and mathml-SE and nothing else. If you only want to improve your score use also Note: TeX-AF (which embed the tex source as associated file) is used by no-one yet, it is irrelevant if you use it or not. |
Beta Was this translation helpful? Give feedback.
-
|
The This approach seems to lead to reasonable outcomes with math alt text, with TeX-AF, and with MathML. By including both math alt text and MathML, today's AT that only knows math alt text or mistakenly prefers it over MathML will still provide an acceptable experience, while future AT that knows and prefers MathML will provide a superb experience. By this reasoning it seems that enabling math alt text at this moment in time (early 2026) is not just about improving Ally scores but also about ensuring the document is accessible both with current AT and with future AT. Am I misunderstanding the situation? My other questions:
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
A colleague asked me about improving Ally scores with
math/alt/use. I hadn't heard of this. A web search forlatex tagging "math/alt/use"does indeed reveal help pages at various institutions combiningpdfstandard=ua-2withmath/alt/use, butthe LaTeX Tagging Project usage instructions do not currently mention
math/alt/use.It seems with
math/alt/useone could produce a potentially conformant PDF 2.0 UA-2 that—in addition to the required MathML—includes the math alt text previously required by PDF 1.7 UA-1. Such a document would then be potentially readable by older assistive technology (AT) that understands alt text but does not understand MathML. Since the alt text is less structured compared to MathML, any newer AT that understands both ought to ignore the alt text (at least certainly ought to do so for a document claiming conformance to UA-2), but I suppose there could exist buggy AT that understands MathML yet erroneously prefers alt text over MathML.Question: Is it a violation of any PDF standard to claim conformance to PDF 2.0 UA-2 (and to validate as such) yet to also embed math alt text along with the MathML?
In other words, is it okay to create a hybrid that is PDF 2.0 UA-2 yet in some sense is also backwards compatible with PDF 1.7 UA-1? The PDF Association guide on conforming to PDF/UA states “PDF 2.0 documents must not [state conformance to] UA-1” but also “PDF 2.0 documents may use PDF 1.7 standard structure tag sets”, whatever that means precisely but loosely speaking it could mean “PDF 2.0 is allowed to include extra stuff that used to be required under older standards”.
Question: Are there any standards for how MathML-capable AT should behave by default (perhaps overridable by user settings) when a document contains both math alt text and MathML? For a document claiming conformance to UA-1 I could imagine it might be okay for AT to prefer math alt text, but for a document claiming conformance to UA-2 I feel AT should prefer MathML.
I understand it might not be good practice in certain situations to create a hybrid PDF, for example if you're targeting a specific AT as part of an accommodation for a specific user and you know their specific AT would do better with a pure PDF 2.0 UA-2 (only MathML, no alt text) or with a pure PDF 1.7 UA-1 (only math alt text, no MathML). But for general document creation for general consumption, it seems there might be several possibilities to consider, listed next.
Four types of potentially accessible PDF
Pure PDF 1.7 UA-1 (only math alt text, no MathML, no TeX-AF)
Seems achievable in TeX Live 2026 with
pdfversion=1.7, pdfstandard=ua-1, tagging-setup={math/setup={}}.Avoid this document type—math alt text doesn't have the rich structure of MathML.
Note that
pdfstandard=ua-1alone leads to an error about downgrading from 2.0 to 1.7, whilepdfversion=1.7, pdfstandard=ua-1avoids the error yet leads to a hybrid PDF 1.7 UA-1 that has the required math alt text but also has TeX-AF. Is the inclusion of TeX-AF even allowed in PDF 1.7 UA-1? pdf4wcag 1.6.1 validated the result as UA-1, but thetagpdfdocumentation (v0.99z, §3.2.8 Math) seems to indicate MathML-SE can go into PDF 1.7 but MathML-AF and TeX-AF can go only into PDF 2.0.Hybrid PDF 1.7 UA-1 (both math alt text and MathML, also TeX-AF)
Seems achievable in TeX Live 2026 with
pdfversion=1.7, pdfstandard=ua-1, tagging-setup={math/setup={mathml-AF,tex-AF}}.Note that I had to specify
mathml-AF, notmathml-SE, otherwise pdf4wcag 1.6.1 reports UA-1 validation errors…Pure PDF 2.0 UA-2 (only MathML, no math alt text, no TeX-AF)
Seems achievable in TeX Live 2026 with
pdfstandard=ua-2, tagging-setup={math/setup={mathml-SE}}.Note that
pdfstandard=ua-2alone results in a PDF 2.0 with TeX-AF but no MathML (specifyingpdfstandard=ua-2, tagging-setup={math/setup={}}also removes the TeX-AF). There's no MathML, yet the document claims conformance to UA-2 and pdf4wcag 1.6.1 even validates it as UA-2. I'm confused. Does UA-2 require MathML for math content?Hybrid PDF 2.0 UA-2 (both MathML and math alt text, also TeX-AF)
pdfstandard=ua-2, tagging-setup={math/setup={mathml-SE,tex-AF},math/alt/use}.Which to use?
At this moment in time (early 2026), I imagine various embedded older AT (such as Ally embedded into various LMS platforms) does not know MathML, thus math alt text is necessary to satisfy the older AT, yet document authors might also want to include MathML for users who might open the document in different current or future AT. This then leaves two possible targets:
Question: In my naïve descriptions here, these both seem to have the same stuff in them, and I believe either is able to represent content that meets WCAG 2.2, so is one better than the other, more capable in some way than the other? I ask this both from the practical perspective of current AT, but also from the more objective perspective of potential future AT, whether the Hybrid 2.0 is merely a different underlying format—the file looks different in a hex editor and contains cool claims like “UA-2” and “WTPDF” that don't exist in PDF 1.7—or actually contains additional AT-related content that could in principle allow (future) AT to do useful things it simply could never possibly do with the Hybrid 1.7?
Beta Was this translation helpful? Give feedback.
All reactions