View Single Post
Old 10-23-2014, 09:43 PM   #683
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by srichard View Post
Thanks, but the ebooks I download are already Kobo kepub, that come directly from Kobo website (and I checked they have plenty of kobo spans inside the ebook). The Kobo ereader reads them fine, using the kepub renderer (yes some Kobo features are missing, such as the reading time remaining, but that's OK). It is just the thumbnail for the cover that is not displayed and that I miss a bit (but I can live without that). Probably due to synchronisation with Calibre. Was working fine when I was able to use WiFi or Kobo desktop app to synchronise those files. I didn't useCalibre KoboTouchExtended driver yet, I will have to try that.
I had a quick look at the file you sent me. Firstly, I can confirm to the others that it really is a kepub. It does have the spans and other kepub related artifacts.

What it is missing is the attribute 'properties="cover-image"' for the cover image in the OPF file. Editing the content.opf file in the kepub, and changing the line:

Code:
<item id="img1" href="images/img1.jpg" media-type="image/jpeg"></item>
to:

Code:
<item id="img1" href="images/img1.jpg" media-type="image/jpeg" properties="cover-image"></item>
should let the firmware find the cover image and use it.

I suppose it is time to add the code to calibre to handle the metadata in a kepub. Mostly, it is just subclassing the epub handling, but I think the above needs to be done as well.
davidfor is offline