Generate tagged PDF documents for accessibility#6619
Merged
laurmaedje merged 52 commits intomainfrom Oct 2, 2025
Merged
Conversation
Collaborator
It probably should be possible to ensure that at least machine checks always pass, right? |
Member
Author
Yeah, I don't see any other option. I think it just needs to be documented. |
71a9cbb to
b7ccf97
Compare
370e6b8 to
e5fcc3b
Compare
bd318de to
1bd7617
Compare
8689f04 to
943c621
Compare
1 task
79d35c5 to
62f05ec
Compare
reknih
added a commit
that referenced
this pull request
Sep 11, 2025
This guide is intended as a companion for the work in #6619. It explains to the user what they must pay attention to in order to create an accessible file.
55ff761 to
fea13eb
Compare
Contributor
|
BTW, I created Russian translation: #6926. |
reknih
added a commit
that referenced
this pull request
Sep 23, 2025
This guide is intended as a companion for the work in #6619. It explains to the user what they must pay attention to in order to create an accessible file.
c208dab to
020109f
Compare
70cea26 to
9b6dfe0
Compare
9b6dfe0 to
562000b
Compare
`Tagged` elements will be assigned a location and will generate introspection tags, but they won't be available in the introspector.
All contiguos marked content sequences insdie grouping element are wrapped inside Span structure elements. And all ILSE inside grouping element will be assigned block placement.
Ran `cargo-sort-derives` with the following `.sort-derives.toml` config:
```
order = [
"Debug",
"Default",
"Copy",
"Clone",
"Eq",
"PartialEq",
"Ord",
"PartialOrd",
"Hash",
"Cast",
"Serialize",
"Deserialize",
]
```
Instead of: - `EcoString::to_string` - `String::from` - `|s| s.to_string()`
562000b to
b14c08e
Compare
Member
|
It is done. |
reknih
added a commit
that referenced
this pull request
Oct 3, 2025
This guide is intended as a companion for the work in #6619. It explains to the user what they must pay attention to in order to create an accessible file.
reknih
added a commit
that referenced
this pull request
Oct 3, 2025
This guide is intended as a companion for the work in #6619. It explains to the user what they must pay attention to in order to create an accessible file.
Bugg4
added a commit
to Bugg4/typst
that referenced
this pull request
Oct 7, 2025
Add Italian translation for terms introduced in typst#6619.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This will be the first PR in a larger effort to make PDF documents generated by typst compliant with PDF/UA-1 and more accessible in general. Tagging of PDF documents will be enabled by default to ensure a baseline of accessibility and
the
--pdf-standard=ua-1flag can be used in the CLI to enable further checks demanded by the PDF/UA-1 specification. Note however that this cannot guarantee full compliance, since some parts can only reasonably be validated by a human.Here is a check list currently used for development. Some of the elements are only here for completeness sake and may not require any implementation:
Lblfor numbering (doesn't work well with screen readers)TOCs for different levels of headingsLblfor numberingTHtags for table header rowsTHead,TFoot, andTBodyrow groups.pdf.header-cellandpdf.data-cellHeadersattributeBBoxBBoxtypographicscriptsBBoxContentsattribute) is requiredLocationandPositionLinkTargetsTableCellandGridCelltagsPARgrouping rule