Skip to content
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

Update EPUB profile documentation #86

Closed
wants to merge 1 commit into from

Conversation

kristojorg
Copy link

This PR adds documentation about the metadata.presentation.layout presentation hint to the EPUB profile. This property is already defined in the EPUB extension schema.

I also removed language suggesting that the property defaults to fixed for images or videos. Since the EPUB extension defines that resources in the readingOrder can only be HTML files, the property will always default to reflowable unless otherwise noted by changing either the metadata.presentation.layout property in the Webpub Manifest, or the properties.layout property on the resource link itself.

One additional question: Fixed layout EPUB resources are required to have a meta tag indicating the viewport size: <meta name="viewport" content="width=1200, height=900"/>. Would it make sense to encourage those creating Webpub Manifests for FXL EPUBS to include a height and width on the link object for the FXL resource?

This PR adds documentation about the `metadata.presentation.layout` presentation hint to the EPUB profile. This property is already defined in the [EPUB extension schema](https://github.com/readium/webpub-manifest/blob/master/schema/extensions/epub/metadata.schema.json). 

I also removed language suggesting that the property defaults to `fixed` for images or videos. Since the EPUB extension defines that resources in the `readingOrder` can only be HTML files, the property will always default to `reflowable` unless otherwise noted by changing either the `metadata.presentation.layout` property in the Webpub Manifest, or the `properties.layout` property on the resource link itself.

One additional question: Fixed layout EPUB resources are required to have a `meta` tag indicating the viewport size: `<meta name="viewport" content="width=1200, height=900"/>`. Would it make sense to encourage those creating Webpub Manifests for FXL EPUBS to include a `height` and `width` on the link object for the FXL resource?
@mickael-menu
Copy link
Member

cc @HadrienGardeur @llemeurfr

@kristojorg
Copy link
Author

Is it possible to merge this? I recently tripped myself up reading the docs and wondering why I had a presentation.layout property in my WebpubManifest... then I came to github and found this PR I made last year. Would be great to have this in the documentation.

@mickael-menu
Copy link
Member

I can't merge this myself, but I'll mention it in one of our calls next week.

@kristojorg
Copy link
Author

Thanks @mickael-menu ! I also asked a related question in a discussion here. The overlap between things things is maybe why this PR hasn't been approved?

@HadrienGardeur
Copy link
Collaborator

Since we're working on the EPUB profile in another branch, I think I'll take the opportunity to cover that topic as well through #95

HadrienGardeur added a commit that referenced this pull request Jun 25, 2024
@HadrienGardeur
Copy link
Collaborator

This has been deprecated by #89

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.

3 participants