jaketmp / ePub-quicklook

NOTE: Not working in Mojave and later! ePub quicklook and spotlight plugins for Mac OS X.
BSD 3-Clause "New" or "Revised" License
572 stars 58 forks source link

ePub 3 compatibility #2

Open jaketmp opened 13 years ago

jaketmp commented 13 years ago

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

jaketmp commented 12 years ago

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

chrisridd commented 12 years ago

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?

jaketmp commented 12 years ago

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 commented 12 years ago

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/

chrisridd commented 12 years ago

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.:

`urn:isbn:9780316000000</dc:identifier> 15

Dave Cramer mrk` 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.
jaketmp commented 12 years ago

Commit 757e4092e387e6504eb67157c67b2e571e9d88d2 brings iBooks compatibility.

alessandrodn commented 9 years ago

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