Want to change the tagging in accessibility tagging

When I tried to create PDFs with accessibility tagging, structure of tagging in the PDF is not meeting the expectation and want to change, could someone share me the steps to achieve this?

Hi! Make sure to read How to post in the Questions category

1 Like

Could you share an example? What is the expected behavior, and what would you like changed? Have you read the accessibility guide?

Accessibility Standards and Legislation

Typst can help you to assert that your document is accessible by checking it against international standards. For PDF export, there are multiple standards for accessible files, most notably the PDF/UA standard. Its first part (PDF/UA-1) is already supported by Typst while support for the second part (PDF/UA-2) is planned for the future. Below, you can find an explanation of all relevant standards:

  • Tagged PDF: Tagged PDFs contain machine-readable data about the semantic structure of a document that AT can parse. Typst will write Tagged PDFs by default, but keep in mind that Typst can only write appropriate tags if it knows about the semantic structure of your document. Refer to the Section Maintaining semantics to learn how to use Typst’s elements to communicate semantics. To provide Universal Access, you are also responsible to provide textual representation of non-text content yourself.

and

Maintaining semantics

To add correct semantic information for AT and repurposing to a file, Typst needs to know what semantic role each part of the file plays. For example, this means that a heading in a compiled PDF should not just be text that is large and bold. Instead, the file should contain the explicit information (known as a tag) that a particular text makes up a heading. A screen reader will then announce it as a heading and allow the user to navigate between headings.

1 Like

Basically, my question is to understand on modifying the tagging structure by adding the parent, changing the tagging name, while creating the tagged PDF, want to follow some tagging structure which my clients preference, any possibility or the method to achieve this?

When run the PAC, no error is found, that’s really great one, kudos to the developers

I don’t think typst supports editing the tags. There are some additional accessibility features such as marking something as an artifact or fine-grained table control, but you would need some sort of third party post-processing for fine-grained control of the PDF tags.

The developers are big on accessibility (see e.g. this blog post), so if you have a valid use case i’d encourage you to open a feature request.