Home > OS >  Where can I find all the values I can put in role attribute in XSL FO for an accessible document?
Where can I find all the values I can put in role attribute in XSL FO for an accessible document?

Time:05-19

I am trying to create an accessible document and have a list of requirements. There are some roles that I do not know how to apply to a block of text (caption, formula, etc - I saw the types in Adobe DC when clicking the structure tree and right clicking on an element.) Right now I only know how to add these types: paragraph, headings, artifact, Lbody, Li, lbl, part.

Role attribute I am talking about: https://www.w3.org/TR/xsl11/#role

The only useful information I found is on this link:https://xmlgraphics.apache.org/fop/2.7/accessibility.html under Customized Tagging

Thanks.

CodePudding user response:

The standard tags are defined in the PDF specifications. See the links to the PDF 1.7 spec and the near-equivalent ISO 32000-1 specification at https://www.pdfa.org/resource/iso-32000-1-pdf-1-7/

ISO 14289 (PDF/UA) defines features of accessible PDF beyond just adding tags. See https://www.pdfa.org/resource/iso-14289-pdfua/

The Matterhorn Protocol defines a checklist of ways that a PDF document can fail to conform to ISO 14289. See https://www.pdfa.org/resource/the-matterhorn-protocol/

PAC 2021 from the PDF/UA Foundation (https://pdfua.foundation/en) is a free (Windows-only) tool that checks PDF/UA conformance of a PDF file. It does the 'machine' checks from the Matterhorn Protocol and also tries to check some of the Matterhorn Protocol checks that are defined for being done by a human, with varying success. I haven't used this version much, but previous PAC versions had bugs about handling Ruby tags.

AH Formatter has a default mapping of FOs to PDF tags. The axf:pdftag extension property can override the defaults. For better accessibility, you also need to do things like provide alternate text for graphics, use xml:lang or language to indicate the language, etc. See https://www.antenna.co.jp/AHF/help/en/ahf-pdf.html#taggedpdf

  • Related