w3c / pwpub

W3C packaged Web Publications
https://w3c.github.io/pwpub/
Other
15 stars 9 forks source link

Add first draft of ocf-lite #30

Closed llemeurfr closed 5 years ago

iherman commented 5 years ago

For a better reference a more readable version is in the html preview

iherman commented 5 years ago

See my separate comment: https://github.com/w3c/pwpub/issues/29#issuecomment-450328771

I.e., we should be careful what title and extension we use.

iherman commented 5 years ago

Worth adding the open but relevant issues to the text:

(I may miss some).


Minor comment: afaik, the MIME registration expects a person as a contact; the current practice in our case has always been to refer to the staff contact. Ie, you should simply put my name & email address.

mattgarrish commented 5 years ago

There also shouldn't be any "former editors" of this document. Even an OCF 4 would start with a blank slate. You can mention ineritance from ocf in the acknowledgements.

mattgarrish commented 5 years ago

Another general comment would be to change the file name from "ocf-lite" to something else, as it's not actually called OCF Lite in the document and it's not really a lite version of any existing OCF - it has the potential to cause unnecessary confusion.

dauwhe commented 5 years ago

This appears to disallow embedded manifests, and thus restricts what types of web publications can be packaged.

murata2makoto commented 5 years ago

What is the difference between OCF and this proposal? Aren't we creating another incompatible spec for fun?

dauwhe commented 5 years ago

Just a reminder that OCF is full of restrictions on filenames, ZIP features, etc. Do we, for example, plan on forbidding BZIP2 compression in OCF Lite?

llemeurfr commented 5 years ago

@dauwhe, re. embedding manifest, this is right. We may consider that the container contains a canonical representation of the WP, where the manifest is external. External vs embedded are preferences, the abstract model doesn't care. Having the manifest external is interesting as a clue that the ZIP contains a WP and fetching/parsing the manifest is much easier for a processor without having to parse an HTML page also. More, the audiobook TF has yet to be convinced that a required entry page is a good thing.

@dauwhe re forbidding the ZIP compression, yes we do, as the corresponding wording of OCF is kept as-is. @murata2makoto OCF can't be used for anything else than EPUB, with required META-INF, container.xml etc. This proposal is aligned with the requirements of WPs, i.e. entry page and manifest.

llemeurfr commented 5 years ago

More details for the record:

Here is what I suppressed from the original OCF spec :

Here is what I added to the specification:

Several items will have to be discussed:

And later we'll have to tackle multiple renditions: this is something visual narratives will put back on the table.

I kept the term OCF-lite as file name only because this is the nickname we employ until now: it will be changed after we choose a proper name for this specification. But we should do such bikeshedding later.

Note: I hesitated introducing the ISO 21320 spec, but decided not to do so in this draft. I spotted two main items to discuss in this spec: 1/ the section about prohibited characters (B.3) only prohibits characters prohibited in the IRI spec and only highlights that OCF prohibits other characters . In the OCF-lite draft I have kept the OCF section associated with allowed characters as-is. 2/ the Table 1 states that the digital signature specified in ZIP is not allowed. there is no mention of this in OCF or this new draft: it may be good to add it.

GarthConboy commented 5 years ago

I generally like @llemeurfr 's direction above. Though, I'd be happy to retain the mimetype file (with a new value).

iherman commented 5 years ago

This issue was discussed in a meeting.

iherman commented 5 years ago

This issue was discussed in a meeting.

llemeurfr commented 5 years ago

The group wanted a lightweight specification: here it is, the new commit makes it really barebone. It says "this is based on ISO 21320, there must be certain files in there, the files are referenced via IRIs, the media-type is ..., the extension is ...n ".

I anticipated here the resolution of:

If the consensus on these issues is not the one I suspect, I'll change the wording in the PR.

I didn't see what could be written as UA conformance requirements. This is to be discussed by the group.

I replaced any mention of PWP by LPF (Lightweight Packaging Format) and used Web Publication Lightweight Package (alias Package) for defining the zip container enhanced with the PEP and WPM.

I let ocf-lite.html as a file name for the moment. I'll change that after the name of the spec has been finally agreed on.

iherman commented 5 years ago

Here is a URL that can be used to see the HTML content:

https://raw.githack.com/w3c/pwpub/b3fe9881043c659c019067a640d78e96ed4faf71/spec/ocf-lite.html

However, for some reasons, respec is pending, ie, one cannot see the final version of the content:-(

iherman commented 5 years ago

I have two minor comments (the user agent conformance is another issue, to be discussed separately):

If both entry.html and manifest.jsonld are present in the package, the former MUST contain a reference to the latter.

I would add something like "...following the rules described by the definition of the PEP."

Person & email address to contact for further information:

I think the rules are that this should be a person, not a general mailing list. Ie, it should be me.

iherman commented 5 years ago

This issue was discussed in a meeting.