EPUB conformance profile ignored in WebPub manifests

Open
#652 5 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
swift
Domain
mobile-dev

Research direction

Start by tracing how the toolkit handles a WebPub manifest's conformsTo value for the EPUB profile, then follow the code paths for user preferences and location updates. Reproduce with the Moby Dick manifest in the Readium Test App on iOS; done means EPUB-profile publications expose preferences and update locations while scrolling as expected.

Written by the indexing model from the issue text.

Description

Describe the bug

When loading a WebPub manifest that declares conformance to the EPUB profile via "conformsTo": "https://readium.org/webpub-manifest/profiles/epub", the publication does not behave like an EPUB. Instead, it's treated as a standard WebPub with limited functionality.

Issues observed
  1. No user preferences available e.g.: Theme selection, letter spacing, text alignment, etc.
  2. Location tracking behaves like WebPub instead of EPUB:
    • Location updates only trigger on full page changes
    • No location updates during in-page scrolling
Environment
  • Confirmed in: Readium Test App
  • Works correctly in: Throium Web
Example

Moby Dick on the publication server demonstrates the issue:
https://publication-server.readium.org/Z3M6Ly9yZWFkaXVtLXBsYXlncm91bmQtZmlsZXMvZGVtby9tb2J5LWRpY2suZXB1Yg/manifest.json

How to reproduce?
  1. Load a WebPub manifest with the EPUB profile declaration, e.g. download and import https://publication-server.readium.org/Z3M6Ly9yZWFkaXVtLXBsYXlncm91bmQtZmlsZXMvZGVtby9tb2J5LWRpY2suZXB1Yg/manifest.json (streaming won't work as there is and issues with http range support)
  2. Open the publication
  3. Attempt to submit user preferences - it won't work
  4. Observe location update behavior while scrolling
Readium version

3.3.0

OS version

iOS 18.5

Testing device

iPhone 16

Environment
macOS: 15.5
platform: arm64
carthage: 0.40.0
Xcode 16.3
Build version 16E140
Additional context

No response

Dominant language
Swift
Stars
557
Forks
249
Avg merge
3h 52m
Merged PRs (30d)
19

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from readium/swift-toolkit

All issues in readium/swift-toolkit

Similar issues

More Swift issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.