Implement bounded deterministic fixed-layout EPUB generation (#417) - #435
Merged
Merged
Conversation
Pull Request Summary by devActivityMetricsAchievements
|
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.
Closes #417. Parent #414; builds on #415.
Implementation
ebook.generate.epub.fixed-layoutroute for a homogeneous, explicitly ordered local PNG or JPEG collection. Planning requires frozen IDs, digests, page geometry, a first-member cover, reviewed per-page descriptions, publication metadata, and explicit page/input/output byte bounds.mimetype, fixed member order and timestamps, EPUB 3 OPF/XHTML, fixed viewports, spine, cover image, navigation, page list, LTR/RTL progression, and declared accessibility metadata. Original image bytes and sources remain unchanged.ebook capabilitiesadvertisement and independent EPUB 3.3 conformance stay with [Checkpoint 414.3] Validate fixed-layout EPUB and publish capability truth #418.Local validation
cargo test --workspace --locked --offline --quietpassed (1,218 tests; 12 existing ignored). The final additive focused cases then passed:fixed_layout_epub10/10 andfixed_layout_epub_cli1/1.cargo clippy --workspace --all-targets --locked --offline -- -D warningspassed.cargo fmt --all --check, schema/reference regeneration,git diff --check, and strict MkDocs build passed.The Git Data published tree was fetched back and matches the validated local tree
d6acf84b2aaccf926dc1c3e0e8e3a10ac1562575.