-
Notifications
You must be signed in to change notification settings - Fork 20
Information content of the abstract manifest #12
Comments
I'd also throw in: -- Reading order Re the #1 and #2 just above in Dave's original issue, it seems they may want to be pre-manifest -- defined before the manifest is found, or be the actual path to the manifest (or to a "first file" that can be rendered, but also somehow points to the manifest). |
|
(Wow. I just said the same thing as Garth just in other words. I swear we did not conspire...) |
What is meant by required here? Must always be present or must be accounted for in the design? This is why I wasn't sure at the f2f if navigation constituted a top-level or lower-level consideration. A standardized means of locating the table of contents seems critical to me, even if it's optional to define and there are no epub-like rules on its construction. |
The updated #6 in the first panel says "Locating table of contents or other navigation structure", we should also consider: -- Do we need such a Nav file (likely yes for A11Y) |
See #14
Interesting question. I know Hadrien has proposed including section titles in a JSON manifest, but I have major concerns about possible reader-facing text in JSON (especially given that there's a standard html way to do this stuff). |
IMO the Navigation Document in EPUB 3 is a failed experiment. Most EPUB 3 documents that I've seen end up including at least two HTML table of contents:
Most EPUB 3 reading systems do not render these Navigation Documents either, they simply parse them, extract the info and display things using their own UI. This is a typical example of "spec purity" (the beauty of the Navigation Document) vs real world usage (no one is rendering these documents and we end up with more redundancy instead of less). Readium (1, JS and 2) ended up parsing the info in the Navigation Document and providing a JSON output instead, which is much easier for developers to work with. In the Readium Web Publication Manifest:
|
To go back to the initial question, in Readium we separate clearly the abstract model with the minimal requirements for a manifest. The abstract model has three core concepts:
For each core concept, we make sure that:
The basic requirements for a manifest are then based on that model:
|
Better, an IRI because a) may be a urn (up to the publisher to choose, the Web doesn't care) and b) i18n is important. A URL to the origin is also important but should be another property. |
I would like to add: |
Language and direction (ltr vs rtl) should be two separate metadata. Agree that we need to allow more than one language. |
If we plan to use anything other than a URL (as defined by the HTML spec -
https://www.w3.org/TR/WD-html40-970917/htmlweb.html), then we are going to
need to be willing to jump into the current battle between the W3C and the
IETF on the definition of URL/URI/IRI etc. Here is an old blog entry about
it - http://intertwingly.net/blog/2014/10/02/WHATWG-URL-vs-IETF-URI
…On Mon, Jul 3, 2017 at 8:43 AM, L. Le Meur ***@***.***> wrote:
An identifier for the web publication, which should be a URL
Better, an IRI because a) may be a urn (up to the publisher to choose, the
Web doesn't care) and b) i18n is important. A URL to the origin is also
important but should be another property.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#12 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AE1vNUBV20dmP2MLDyjT0lS3eVlEeU8gks5sKOHjgaJpZM4OGuBw>
.
|
Re. URL vs IRI, after reading https://www.w3.org/International/wiki/IRIStatus, I must admit that this seems like a can of dirty warms. Apart from trying to allow for an extended i18n of publication identifiers, there is still the question of URNs allowed or not as global identifiers. For instance, I spotted that most @HadrienGardeur's Manifest samples use isbn urns as identifiers. |
@llemeurfr you're mixing up two different concept regarding the Readium Web Publication Manifest. Keep in mind that we started this work in the context of BFF and that for Readium-2 we mostly ingest EPUB files. The only requirement in the draft document for the Readium WebPub Manifest is to always provide a Here's a basic example using the Readium WebPub Manifest model: "@context": "http://readium.org/webpub/default.jsonld",
"metadata": {
"title": "The Master and Margarita"
},
"links": [
{"rel": "self", "href": "http://example.com/manifest.json", "type": "application/webpub+json"}
],
"spine": [
{"href": "http://example.com/chapter1", "type": "text/html"}
] If the publication has an additional identifier, this can be provided in its metadata: "metadata": {
"title": "The Master and Margarita",
"identifier": "urn:isbn:9780141180144"
} That second identifier is not a requirement in the Readium model, and we can't expect all Web Publications to have such an identifier either. The reason why most of our current samples have URNs (mostly for ISBNs or UUIDs) is because we ingest EPUB files or provide samples for books where ISBNs are very common. |
My only concern is that HTML already has mechanisms for describing the language(s) of content. What happens when a user agent opens an HTML page declared with language A, finds a rel=manifest link, follows it, and sees language B declared? |
The manifest declares the language for the publication, while HTML is meant to declare the language for that resource. |
That's right. If a Web publication is copied to another website, this value will not be modified. Therefore a possible definition of the self link is "The original location of the Web Publication", which can be aligned with Requirement 8 for Web Publications: "There should be a way to uniquely identify a Web Publication." |
From RFC5988:
|
It's of course true that via |
Actually, I would expect the UA to completely ignore the language settings
(A, in this case) in the manifest - and only concern itself with the actual
resource being processed/rendered (B, in this case). The language (or
languages) in the manifest have no bearing on the actual content - they are
(IMO) informational only.
…On Wed, Jul 5, 2017 at 9:11 AM, Hadrien Gardeur ***@***.***> wrote:
My only concern is that HTML already has mechanisms for describing the
language(s) of content. What happens when a user agent opens an HTML page
declared with language A, finds a rel=manifest link, follows it, and sees
language B declared?
The manifest declares the language for the publication, while HTML is
meant to declare the language for that resource.
The UA would simply set the default to language B but override that option
with language A as it displays or interacts with that HTML page.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#12 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AE1vNbw7uxWapNOfZZN7r09Gmn2AxeqPks5sK4uKgaJpZM4OGuBw>
.
|
If a Web publication is copied to another website, this value will not be modified
That's not necessary true. The new site may well change the link(s) in the
manifest. There is nothing about it that is "off limits" - certainly not
in a WP, and possibly not even in a PWP.
…On Wed, Jul 5, 2017 at 10:04 AM, L. Le Meur ***@***.***> wrote:
you're mixing up two different concept regarding the Readium Web
Publication Manifest.
That's right. If a Web publication is copied to another website, this
value will not be modified. Therefore a possible definition of the self
link is "The original location of the Web Publication", which can be
aligned with Requirement 8 for Web Publications: "There should be a way to
uniquely identify a Web Publication."
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#12 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AE1vNRbejRAPPpj2OsrzKSZptKCwspLPks5sK5gCgaJpZM4OGuBw>
.
|
While rendering content, sure I fully agree. But a UA can provide additional services on top of it, for example dictionaries or search. The publication metadata can be useful in that regard. |
I agree it's informative and must not be used for rendering content (or metadata), but the same question about value has been raised in epub revisions and the case has been made that it does have uses (e.g., pre-loading tts languages, offering access to dictionaries, etc.). |
On Wed, Jul 5, 2017 at 12:21 PM, Hadrien Gardeur ***@***.***> wrote:
But a UA can provide additional services on top of it, for example
dictionaries or search. The publication metadata can be useful in that
regard.
It could indeed be useful - and whether a UA chooses to use it for that or
not is (IMO) out of scope for our work.
|
Defining the UA behavior is out of scope, but making sure that it has relevant info needed is definitely within scope. |
This issue was moved to w3c/wpub#6 |
What information is required for an abstract manifest? [edited to add items from comments]
What else? I think we should distinguish required information from "nice to have" information.
The text was updated successfully, but these errors were encountered: