Dark Mode

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Support for Divina in the EPUB navigator#692

Merged
mickael-menu merged 5 commits intodevelopfrom
divina-in-epub-navigator
Jan 12, 2026
Merged

Support for Divina in the EPUB navigator#692
mickael-menu merged 5 commits intodevelopfrom
divina-in-epub-navigator

Conversation

Copy link
Member

mickael-menu commented Jan 12, 2026

Added

Navigator

  • Support for displaying Divina (image-based publications like CBZ) in the fixed-layout EPUB navigator.

mickael-menu requested a review from Copilot January 12, 2026 13:48
mickael-menu temporarily deployed to LCP January 12, 2026 13:48 -- with GitHub Actions Inactive
mickael-menu temporarily deployed to LCP January 12, 2026 13:48 -- with GitHub Actions Inactive
Copilot started reviewing on behalf of mickael-menu January 12, 2026 13:48 View session
Copilot AI reviewed Jan 12, 2026
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request adds support for displaying Divina (image-based publications like CBZ) in the fixed-layout EPUB navigator. The implementation enables the EPUB navigator to handle image-based comics and manga by setting appropriate metadata and layout properties, and by enhancing the navigator's ability to extract image dimensions and display pages correctly.

Changes:

  • ImageParser now sets layout = .fixed and marks the first page and double-page spreads with .center page property for proper display in the navigator
  • Properties struct now has a setter for the page property to allow programmatic modification
  • Fixed-layout navigator updated to extract image dimensions directly from embedded images and handle center pages with full viewport

Reviewed changes

Copilot reviewed 10 out of 11 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
Sources/Streamer/Parser/Image/ImageParser.swift Sets fixed layout metadata and center page properties for Divina publications
Sources/Shared/Publication/Properties.swift Adds setter for page property to enable programmatic modification
Sources/Navigator/EPUB/Scripts/src/fixed-page.js Adds image dimension extraction for images loaded directly in iframes
Sources/Navigator/EPUB/Scripts/src/index-fixed-wrapper-two.js Updates viewport handling to give center pages full viewport instead of half
Sources/Navigator/EPUB/Assets/fxl-spread-two.html Updates CSS for center viewport to use full width
Sources/Navigator/EPUB/Assets/Static/scripts/readium-fixed-wrapper-two.js Minified version of updated two-page wrapper script
Sources/Navigator/EPUB/Assets/Static/scripts/readium-fixed-wrapper-one.js Minified version of updated single-page wrapper script
Tests/StreamerTests/Parser/Image/ImageParserTests.swift Adds test coverage for center page property on first page and double-page spreads
Tests/StreamerTests/Fixtures/test-comicinfo.cbz New test fixture with ComicInfo.xml containing double-page metadata
Tests/NavigatorTests/UITests/NavigatorUITests/XCUIApplication.swift Increases memory deallocation timeout to accommodate image loading
CHANGELOG.md Documents the new Divina support feature

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

mickael-menu merged commit dad9438 into develop Jan 12, 2026
12 checks passed
mickael-menu deleted the divina-in-epub-navigator branch January 12, 2026 14:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

Copilot code review Copilot Copilot left review comments

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants