Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork1.2k
Generate tagged PDF documents for accessibility#6619
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Draft
saecki wants to merge79 commits intomainChoose a base branch frompdf-accessibility
base:main
Could not load branches
Branch not found:{{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline, and old review comments may become outdated.
+2,228 −232
Conversation
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
skip-checks:true
skip-checks:true
skip-checks:true
skip-checks:true# Please enter the commit message for your changes. Lines starting# with '#' will be kept; you may remove them yourself if you want to.# An empty message aborts the commit.## Date: Wed May 28 17:47:35 2025 +0200## On branch pdf-accessibility# Your branch and 'origin/pdf-accessibility' have diverged,# and have 11 and 5 different commits each, respectively.## Changes to be committed:#modified: crates/typst-ide/src/jump.rs#modified: crates/typst-layout/src/flow/distribute.rs#modified: crates/typst-layout/src/modifiers.rs#modified: crates/typst-library/src/foundations/content.rs#modified: crates/typst-library/src/layout/frame.rs#modified: crates/typst-library/src/model/bibliography.rs#modified: crates/typst-library/src/model/footnote.rs#modified: crates/typst-library/src/model/link.rs#modified: crates/typst-library/src/model/outline.rs#modified: crates/typst-library/src/model/reference.rs#modified: crates/typst-pdf/src/convert.rs#modified: crates/typst-pdf/src/link.rs#modified: crates/typst-render/src/lib.rs#modified: crates/typst-svg/src/lib.rs#modified: tests/src/run.rs#
- fix marking repeated headers/footers as artifacts- fix table row grouping with empty cells
if the caption is contained within the figure screen readers might ignore it
It probably should be possible to ensure that at least machine checks always pass, right? |
Yeah, I don't see any other option. I think it just needs to be documented. |
bounding boxes for links are now automatically generated by krilla
Sign up for freeto 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.
Uh oh!
There was an error while loading.Please reload this page.
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-1
flag 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:
Lbl
for numberingTOC
s for different levels of headingsLbl
for numberingTH
tags for table header rowsTHead
,TFoot
, andTBody
row groups.Headers
attributeContents
attribute) is requiredTableCell
andGridCell
tagsPAR
grouping rule