144 Commits

Author SHA1 Message Date
Tobias Schmitz
b0d3c2dca4
test: table header id generation 2025-07-07 12:28:53 +02:00
Tobias Schmitz
58c6729df4
feat: generate human readable table cell IDs
in almost all real-world cases these IDs require less memory than the binary IDs
used before, and they are also require less storage in PDF files, since binary
data is encoded in hex escape sequences, taking up 4 bytes per byte of data.
2025-07-07 10:52:20 +02:00
Tobias Schmitz
157e0fa142
fix: generate cell id with correct indices 2025-07-04 15:56:39 +02:00
Tobias Schmitz
4dceb7f5ef
refactor: update krilla 2025-07-04 10:37:46 +02:00
Tobias Schmitz
7892a8c726
chore: update krilla 2025-07-03 18:43:20 +02:00
Tobias Schmitz
f324accff9
feat: generate paragraphs 2025-07-03 18:43:20 +02:00
Tobias Schmitz
0bc39338a1
fix: handle some edge cases instead of panicking 2025-07-03 18:43:20 +02:00
Tobias Schmitz
377dc87325
refactor: split up pdf tagging code into multiple modules 2025-07-03 18:43:20 +02:00
Tobias Schmitz
50cd81ee1f
feat: generate headers attribute table cells
- fix marking repeated headers/footers as artifacts
- fix table row grouping with empty cells
2025-07-03 18:43:17 +02:00
Tobias Schmitz
746926c7da
fix: ignore repeated table headers/footers in tag tree 2025-07-03 18:43:15 +02:00
Tobias Schmitz
3404fecd36
feat: tag table headers and footers 2025-07-03 18:43:10 +02:00
Tobias Schmitz
bfcf2bd4cc
feat: support headings with level >= 7 2025-07-03 18:43:08 +02:00
Tobias Schmitz
605681d435
refactor: move link tagging code 2025-07-03 18:43:04 +02:00
Tobias Schmitz
6ebe85d678
fix: don't include outline title in TOC hierarchy 2025-07-03 18:43:02 +02:00
Tobias Schmitz
76d09b5673
fix: only use link annotation quadpoints when exporting a PDF/UA-1 document 2025-07-03 18:43:02 +02:00
Tobias Schmitz
d6307831dd
feat: hierarchical outline tags 2025-07-03 18:42:59 +02:00
Tobias Schmitz
09b2cd6de5
docs: fixup some comments 2025-07-03 18:42:57 +02:00
Tobias Schmitz
6717a18414
feat: mark RepeatElem as artifact 2025-07-03 18:42:54 +02:00
Tobias Schmitz
612aa8fc53
fix: mark table gutter and fill as artifacts 2025-07-03 18:42:52 +02:00
Tobias Schmitz
5bd9accb9c
feat: always write alt text in marked content sequence for images 2025-07-03 18:42:52 +02:00
Tobias Schmitz
0d35ae28ad
feat: add cli args for PDF/UA-1 standard and to disable tagging 2025-07-03 18:42:46 +02:00
Tobias Schmitz
4894a227d2
refactor: revert some changes to FrameItem::Link 2025-07-03 18:42:46 +02:00
Tobias Schmitz
e6341c0fe4
fix: avoid empty marked-content sequences 2025-07-03 18:42:41 +02:00
Tobias Schmitz
8231439b11
feat: generate tags for tables 2025-07-03 18:42:38 +02:00
Tobias Schmitz
8075f551e2
feat: use local krilla version 2025-07-03 18:42:35 +02:00
Tobias Schmitz
ac6b9d6008
feat: pdf.tag function to manually create pdf tags 2025-07-03 18:42:31 +02:00
Tobias Schmitz
00c3b62f1d
feat: write tags for more elements 2025-07-03 18:42:23 +02:00
Tobias Schmitz
6c686bd460
feat: write tags for links and use quadpoints in link annotations 2025-07-03 18:42:10 +02:00
Tobias Schmitz
9e2235dbd8
feat: pdf.artifact element 2025-07-03 18:42:10 +02:00
Tobias Schmitz
1980430578
feat: mark artifacts 2025-07-03 18:41:48 +02:00
Tobias Schmitz
cc70a785dd
feat: [WIP] allow specifying alt text for links
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
#
2025-07-03 15:58:07 +02:00
Tobias Schmitz
e8ea837514
feat: [WIP] include links in tag tree
skip-checks:true
2025-07-03 15:58:07 +02:00
Tobias Schmitz
c6b3b371b0
feat: [WIP] write tags
skip-checks:true
2025-07-03 15:58:07 +02:00
Tobias Schmitz
c5dbd85a81
feat: [draft] generate accessibility tag tree for headings
skip-checks:true
2025-07-03 15:58:07 +02:00
Adrián Delgado
880f56c90d
Fix typo in PDF standard CLI help (#6518) 2025-06-30 08:27:42 +00:00
Tobias Schmitz
70399a94fd
Bump krilla to current Git version (#6488)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2025-06-24 13:23:37 +00:00
Laurenz
fbb02f40d9 Consistent codepoint formatting in HTML and PDF error messages 2025-06-23 14:18:41 +02:00
Max
44d410dd00
Use the shaper in math (#6336) 2025-06-10 14:44:38 +00:00
Tobias Schmitz
26c19a49c8
Use the infer crate to determine if pdf embeds should be compressed (#6256) 2025-05-12 08:07:43 +00:00
Laurenz Stampfl
96dd67e011
Switch PDF backend to krilla (#5420)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2025-04-01 14:42:52 +00:00
Eduardo Sánchez Muñoz
38213ed534
Use u64 instead of usize to store counter and enumeration item numbers, so behavior does not vary from 64-bit to 32-bit platforms (#6026) 2025-03-24 18:16:33 +00:00
Caleb Maclennan
bd531e08dc
Bump rustybuzz (and adjacent crates) (#5407) 2025-03-10 12:45:08 +00:00
Laurenz
69c3f95705
Bump MSRV to 1.83 and Rust in CI to 1.85 (#5946) 2025-02-24 12:28:01 +00:00
Laurenz
12dbb012b1
Revert adding flatten-text to image (#5789) 2025-02-02 19:25:58 +00:00
frozolotl
3eb6e87af1
Include images from raw pixmaps and more (#5632)
Co-authored-by: PgBiel <9021226+PgBiel@users.noreply.github.com>
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2025-01-31 09:56:25 +00:00
Laurenz
6b9b78596a
Don't generate accessors for required fields (#5680) 2025-01-10 16:54:11 +00:00
Laurenz
e2b37fef33
Revamp data loading and deprecate decode functions (#5671) 2025-01-09 09:34:16 +00:00
Niklas Eicker
0a374d2380
Embed files associated with the document as a whole (#5221)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2025-01-08 09:38:34 +00:00
Emmanuel Lesueur
257764181e
New curve element that supersedes path (#5323)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-12-18 15:58:57 +00:00
Zhuofeng Wang
54cee16c31
Add timezone to PDF's default timestamp. (#5564)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-12-17 09:43:01 +00:00