Skip to content

fix: webpub EPUBs #642

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Apr 16, 2025
Merged

fix: webpub EPUBs #642

merged 5 commits into from
Apr 16, 2025

Conversation

ddfreiling
Copy link
Contributor

@ddfreiling ddfreiling commented Apr 15, 2025

Fixes #641

Unlike swift-toolkit, this one did not set the correct positionsServiceFactory for WebPubs which conform to EPUB (regular EPUBs packaged as WebPub).

See https://github.com/readium/swift-toolkit/blob/develop/Sources/Streamer/Parser/Readium/ReadiumWebPubParser.swift#L108-L109

There also seemed to be an issue with FXL being the default layout, if none set via metadata.presentation. This does not seem to be the case with other toolkits and broke CSS/JS injections for our WebPubs. @mickael-menu maybe there is a smarter way to fix this?

Copy link
Member

@mickael-menu mickael-menu left a comment

Choose a reason for hiding this comment

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

Looking good, thank you for fixing this and making the changes Daniel!

@mickael-menu mickael-menu merged commit a7cd0e0 into readium:develop Apr 16, 2025
4 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.

[Bug] WebPubs don't seem to work in v3
2 participants