Skip to content

Resolve named inline-image color spaces and preserve reuse ambiguity - #1

Merged
pabszero merged 3 commits into
mainfrom
resolve-resource-color-spaces
Oct 21, 2026
Merged

pabszero merged 3 commits into
mainfrom
resolve-resource-color-spaces

Conversation

@pabszero

Copy link
Copy Markdown
Owner

The inline-heavy regression corpus has 1,684 unknown sample estimates because page resource names such as /CS0 are not resolved. Resolve device and Indexed spaces through the current page/Form color-space resources, including indirect dictionaries and entries. Bound lookup and retain unknown results for unsupported or cyclic spaces. A reused Form with conflicting inherited component counts reports an unknown estimate instead of retaining the first invocation's estimate.

Add four focused regressions for indirect Indexed resources, Form resource precedence, conflicting inherited resources, and cyclic aliases. The same eight public fixture hashes/statuses and 15,453 definitions retain identical encoded-payload statistics; unknown sample estimates fall from 1,684 to zero. Preserve the historical report and add a versioned comparison with reproduction instructions and limitations. No PDFs are redistributed.

Validation: 29 tests pass on Windows CPython 3.12.14 and 3.13.5; all 29 also pass against the built 0.2.0 wheel on 3.13.5. The four new regressions fail on the old implementation. Corpus CLI exit 1 is expected for the same deliberately malformed DCT fixture (seven other files complete).

Developed with OpenAI Codex assistance. These are local tests and an own-project improvement; no upstream endorsement or independent adoption is claimed.

@pabszero
pabszero merged commit 0343d06 into main Oct 21, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant