On 13 Mar 2013, at 16:26, Bill McCoy <
whm...@gmail.com> wrote:
> Hi Hadrian,
>
> Right - well my optimal e0 would start from the online presumption and then speak about the packaged scenario second but that's a detail, I'm glad you are thinking through the implications of online.
>
> Of course the first two things you said about the packaged case are still debatable wrt the cost-benefits of deviating from EPUB:
> • a ZIP is good enough, no need for a mimetype file or a manifest that list every resource
> A ZIP is isomorphic to a filesystem directory. So no you don't "need" a manifest, but if you don't have such a data structure there's no easy way to distinguish components of the publication from "junk DNA" that is at best useless and at worst may be vectors for malware. Most systems for handling content don't overload the filesystem directory or ZIP equivalent as their manifest. For example Google Packaged Apps and Mozilla Open Web Apps both define manifests, iTunes has a DB, etc.
Actually, the picture is a more interesting and more varied than you paint it. Especially the work that Mozilla has been doing in creating an app format that doesn't need to be packaged.
Mozilla Open Web apps define a manifest but that manifest isn't like anything in EPUB. In fact, it bears remarkable similarities to e0's index.html
* It defines the name, description, author and other metadata.
* It links to the icons.
* Defines the default language.
* Optionally links to an AppCache manifest as a list of files that should be cached.
* Outlines primary activities, launch paths, and the files for those activities.
* Links to a security policy.
Those are parallels to e0's metadata and ToC. Since the index.html is HTML5/XHTML the AppCache manifest is also an option in e0, you can link to it from your index.html file and include it in the book. What's missing is a content security policy but those could be included as meta http-equiv tags pointing to X-Content-Security-Policy directives.
(Actually, I have a lot of opinions on the security side of ebooks and javascript, but it's a bit too early to start a discussion on that.)
The reason that Mozilla is using json for the app's index is because they can assume that the app installer will provide a human friendly presentation which is an assumption that I don't think we should make with e0. Unlike Chrome, their Open Web Apps are distributed unpacked, just with links to the .webapp json file.
If we recommend that e0 books hosted on the open web should include an AppCache manifest then we get most of the benefits of offline packaged ebooks but in a format that's compatible with existing web standards and widely supported in browsers.
- best
- baldur