Comments (11)
Maps to EPUB rendition:spread-portrait
from webpub-manifest.
From the EPUB spec:
Reading Systems SHOULD treat the value “portrait” as a synonym of “both” and create spreads regardless of orientation.
We don't define portrait either in the EPUB extension.
from webpub-manifest.
The fact that they are synonyms does not mean that we should remove one of them, right?
Plus, this is a breaking change:
TypeScript:
case "rendition:spread": {
rendition.Spread = meta.Data;
break;
}
case "rendition:spread-portrait": {
propertiesStruct.Spread = "portrait";
break;
}
Go:
case "rendition:spread":
rendition.Spread = meta.Data
case "rendition:spread-portrait":
propertiesStruct.Spread = "portrait"
Swift:
case "rendition:spread-portrait":
properties.spread = "portrait"
if let renditionSpread = metas.first(where: { $0.attributes["property"] == "rendition:spread" }) {
let spread = renditionSpread.string
metadata.rendition.spread = RenditionSpread(rawValue: spread)
}
Kotlin:
metas.firstOrNull { it.attributes["property"] == "rendition:spread" }?.text?.let {
metadata.rendition.spread = RenditionSpread.fromString(it)
}
when (property) {
"rendition:spread-node" -> "none"
"rendition:spread-auto" -> "auto"
"rendition:spread-landscape" -> "landscape"
"rendition:spread-portrait" -> "portrait"
"rendition:spread-both" -> "both"
else -> null
}?.let { properties.spread = it }
from webpub-manifest.
portrait
is deprecated, we usually don't include deprecated properties or metadata.
from webpub-manifest.
I've looked at the commit history and even all the way back to our initial commit in early 2017, portrait
wasn't included: 4e8bb7c#diff-d2af120839dd0010c08c91e6da2eb346R17
from webpub-manifest.
For tracking purposes:
http://www.idpf.org/epub/31/spec/epub-packages.html#fxl-property-spread-portrait
Use of the portrait value with the rendition:spread property is deprecated. The rendition:spread-portrait spine override is similarly deprecated.
from webpub-manifest.
Conclusion: the JSON Schema is correct, all the Readium2 implementations must be updated, right?
from webpub-manifest.
EPUB 3.2 is more relevant than my above 3.1 link:
https://w3c.github.io/publ-epub-revision/epub32/spec/epub-packages.html#spread-values
The use of spreads only in portrait orientation is deprecated. Authors are advised to use the value "both" instead, as spreads that are readable in portrait orientation are also readable in landscape. Reading Systems SHOULD treat the value "portrait" as a synonym of "both" and create spreads regardless of orientation.
from webpub-manifest.
Conclusion: the JSON Schema is correct, all the Readium2 implementations must be updated, right?
That would be my conclusion as well.
from webpub-manifest.
I fixed the TypeScript implementation:
readium/r2-shared-js@1cbe0a5
I'll file issues for Kotlin Go and Swift.
from webpub-manifest.
Done:
readium/go-toolkit#43
readium/r2-streamer-swift#80
readium/r2-streamer-kotlin#58
from webpub-manifest.
Related Issues (20)
- DiViNa and accessibility HOT 1
- EPUB Module: Landmarks HOT 6
- Default language for.. say metadata.title? HOT 14
- camelCase for all JSON property keys? What's `page-list` then? HOT 4
- Remove roles and MARC relators from contributor
- Editing needed to clarify EPUB presentation+layout HOT 1
- Should a Web Publication be styleable? HOT 8
- TOC entries with no `href` just `title` HOT 4
- Multiple OPDS prices HOT 2
- [Divina] Have Link Object be the default format (rather than a URI) each time a file is expected
- [Divina] A more intuitive order for listing presentation hints
- Adding information about the profile in the manifest HOT 7
- Adding information about the source format and generated metadata HOT 14
- Identify proprietary DRM schemes HOT 11
- Link relation for dark color scheme in alternate links
- RPF : codec / non-codec terminology
- Divina: linkable rectangles in images HOT 2
- Improve Documentation
- OpenId Provider endpoint metadata should be allowed as link rel values HOT 1
- a11y.schema.json is invalid
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webpub-manifest.