A tagged, accessible document
A document that says what each run of ink stands for, and which runs are only trimmings. Its text and its table describe themselves, a paragraph and a cell at a time. Validates as PDF/A-3a and PDF/UA-1.
Two things are drawn on every page: the content, and the trimmings. The content is marked and numbered, and a plan of the document points at those numbers in reading order, so software reading the document aloud reads it in the order it was written rather than the order it was drawn.
The trimmings — the running head, the page number — are marked as such, carry no number, and are invisible to anything following that plan. The page and the part of the plan describing it are built together, by one function, from one counter, which is what keeps the two from ever drifting apart. It validates as PDF/A-3a and PDF/UA-1.
What this example shows
- A plan of the document in reading order, not in the order things were drawn.
- Running heads and page numbers marked as trimmings.
- Validated against PDF/A-3a and PDF/UA-1 by veraPDF.
The code, in full
The same document is written twice, once in each language. Both files are shown in full, with the code coloured on the server, and can be copied in one click.
The document itself
The same document is written in each of these languages. Open the one you want to look at.
Open the document in English
Open the document in French
Read the Rust source
Read the Python source