Repository navigation
test: pin structure and artifact output to its ISO clauses - #761
Merged
Merged
Conversation
Reads the structure tree, the marked content and the parent tree of tagged Layout files back with a reader of its own, and checks them against ISO 32000-1 14.6 to 14.8, ISO/TS 32005 Table 5, ISO 14289-1 clause 7 and ISO 19005-2 6.7. The known gaps are skipped tests that name their issue.
Adds the G3 section of the v2.4 conformance table: 66 clause rows for NoteBlock, Preformatted, Heading and ListItem from runs, header-only tables, cell runs, deep structure trees and running bands. Tests only; nothing under src changes.
Adds the Table 344 BBox gap (#587), the Marked gap on untagged files (#766), the first-heading gap (#767) and the link note (#745). Moves product-behaviour rows out of the clause table, adds the missing rows, corrects five sentences, reads the tree with pdfinfo -struct-text, and covers Scope on a TD in every fixture.
Milestones move: #550 is now in v2.4, so the row that said it was left in v2.5 was false. The rows cite the issues only.
Matterhorn checkpoint 06 was marked compliant by reference to G5, but G5 records gap #748 for a claim saved without a title, and a row with a gap for one construct counts as a gap. The G3 counts become 33 compliant and 19 gap.
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.
What
Group G3 of the v2.4 ISO audit: structure and artifacts. Test-only and docs-only; nothing under
src/changes.ConformanceAuditG3Testsintests/VellumPdf.Kernel.Tests(three test files, a reader and a fixtures file). It reads the structure tree, each page's marked-content sequences and the parent tree back with code of its own, and checks them against ISO 32000-1 14.6 to 14.8, ISO/TS 32005 Table 5, ISO 14289-1 clause 7 and ISO 19005-2 6.7. Fixtures cover aNoteBlock, aPreformattedblock that splits over a page, headings and list items built from runs, a table of header rows only, a table with run cells, string and zoned bands with{chapter}, a logo and a rule, a 20,000-level structure tree, and the untagged claims.docs/conformance-v2.4.md: 68 rows, 33 compliant, 19 gap, 7 not applicable, 9 human-only.Results
344 cases per target framework, 331 pass and 13 are skipped gap tests whose reasons name their issue, on net10.0 and net11.0 in Release with oracles required (veraPDF 1.30.4, qpdf 12.4.2, poppler).
Preformatted.Language), Layout: an empty paragraph, heading, list item or note-block paragraph is written as an empty tagged element (the class of #589) #760 (the empty tagged element an empty paragraph, heading, list item, note-block paragraph, Preformatted or cell writes; the class of Layout: an empty table cell writes an empty P with a marked-content sequence #589), Kernel: an untagged PDF/A-2b or 2u file says /MarkInfo << /Marked true >> and has no structure tree #766 (Marked trueon a file with no structure tree) and Layout: under a PDF/UA-1 claim a first heading below H1, or a skipped heading level, saves a file veraPDF refuses #767 (a first heading below H1 or a skipped level under PDF/UA-1, split out of Conformance: a PDF/A or PDF/UA claim is stamped on a document the library's own preflight rejects #474).Mutations
Eight mutants of
src(note-block box unmarked, ParentTreeNextKey one low, header cell as TD, zoned band unmarked, no Pg, Sect for Div, Code for P, Scope on a TD) each fail between 8 and 99 cases of the class.Not in this PR
No fix to product code. Nested lists past level 2 (#483) and the accessibility issues (#550, #285, #303, #580) are named in the docs under "Not done".