ePub-quicklook icon indicating copy to clipboard operation
ePub-quicklook copied to clipboard

ePub 3 compatibility

Open jaketmp opened this issue 13 years ago • 7 comments

ePub 3 completely changes the manner in which covers and metadata may be declared.

jaketmp avatar Jul 19 '11 13:07 jaketmp

Need to check where .ibook fits between epub 2 and 3.

jaketmp avatar Jan 24 '12 13:01 jaketmp

I didn't think the metadata was so different between 2 and 3, though the covers might be (hopefully involving fewer heuristics to locate!)

Are there any sample books around?

chrisridd avatar Jan 25 '12 19:01 chrisridd

This is the best epub3 resource I know off hand: http://code.google.com/p/epub-revision/downloads/detail?name=9780316000000_MobyDick_r2.epub

.ibooks seems to follow the epub2 way go doing things pretty closely.

jaketmp avatar Jan 26 '12 09:01 jaketmp

Relevant changes from epub 2 to 3 docs: http://idpf.org/epub/30/spec/epub30-changes.html

The main change will be finding the cover: http://blog.threepress.org/2011/05/26/covers-in-epub3/

jaketmp avatar Feb 23 '12 15:02 jaketmp

We seem to do OK getting most metadata from the "Moby Dick" sample already though I reckon some of that's by luck because that sample hasn't got much metadata.

Some understanding of the meta element's scheme attribute is going to be needed. That seems to define how to interpret some other elements e.g.:

<dc:identifier id="pub-id">urn:isbn:9780316000000</dc:identifier> <meta refines="#pub-id" property="identifier-type" scheme="onix:codelist5">15</meta> <dc:contributor id="contrib1">Dave Cramer</dc:contributor> <meta refines="#contrib1" property="role" scheme="marc:relators">mrk</meta>

So we'd need to interpret ONIX and MARC and ... some open-ended list? Or practically speaking is everyone going to use those two.

But this should mean extracting a real ISBN is more robust than now.

chrisridd avatar Feb 23 '12 17:02 chrisridd

Commit 757e4092e387e6504eb67157c67b2e571e9d88d2 brings iBooks compatibility.

jaketmp avatar Feb 26 '12 11:02 jaketmp

ePub3 allows multiple title tag (see here).

It would be great if you can:

  1. display the book title as the dc:title attribute which has either the main-titleproperty set or the display-seq set to 1 (with the current 1.7 version, the latest dc:title attribute in the file is displayed);
  2. take advantage of the new possibility, displaying the main title and any subtitle accordingly (i.e. using a smaller font for subtitle, edition).

Thanks

alessandrodn avatar Apr 08 '15 05:04 alessandrodn