Open mcgratay opened 4 years ago
Our footnote routine produces <li>
elements that contain footnote content and a
elements: https://github.com/pressbooks/pressbooks/blob/92bb307be76a5ee20a88e246459cac4b30403fce/inc/shortcodes/footnotes/class-footnotes.php#L147. Apparently, creating accessible lists requires different tag structure for PDFs than are expected for HTML.
The PDF specification defines list structure in section 14.8.4.3.3 (List Elements). The structure types for lists in PDF documents are: L - the List tag, which contains one or more LI tags. LI - the List Item tag. List item tags can contain Lbl and LBody tags. Lbl - the list item label. Contains distinguishing information such as a item number or bullet character. LBody - the list item body. Contains list item content, or in the case of a nested list, it may contain additional List tag trees. Source: https://www.w3.org/TR/WCAG20-TECHS/PDF21.html
See also:
Source: https://www.w3.org/TR/WCAG20-TECHS/PDF21.html
See also https://medium.com/@bruce_39084/making-accessible-tagged-pdfs-with-prince-ad7fd7a48711
Prince creates Footnotes with the following structure:
Reference
Lbl
[footnote call]
Note
Lbl
[footnote marker]
[footnote body]
There isn't enough information about rules for References with a Lbl. I wrote to the Prince forums to get more related help:https://www.princexml.com/forum/topic/4454/accessibility-in-footnotes?p=1#22288 They will review the Footnotes structure.
@SteelWagstaff in short term I can see 2 options for this task:
I would recommend wait for a official solution.
Interest in a solution for this expressed by Penn State (for PB internal reference: https://pressbooks.zendesk.com/agent/tickets/13978)
Description
The PDF accessibility guidelines set out in the Adobe Acrobat User Guide state that
While created via the visual editor tools for ordered and unordered lists do pass this requirement, lists created automatically via the Footnotes feature do not. The Adobe accessibility checker flags footnotes as LBL and LBody errors.
View the Adobe User Guide: https://helpx.adobe.com/acrobat/using/create-verify-pdf-accessibility.html?trackingid=KACNN#LblLBody
Steps to Reproduce
Expected behavior: Digital PDFs meet all known accessibility requirements
Actual behavior: Footnotes currently fail accessibility checks in the PDF format.