![]() |
#1 |
Junior Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8
Karma: 100000
Join Date: Jan 2013
Device: Kobo H2O
|
EPUB metadata not read on Kobo devices
I've developed a library to create epub files from collections of images (source code at https://github.com/Aftnet/CPubLib if anyone's interested).
The files generated are epub3 compliant (validator passes them) and so far work as they should on - Edge on Windows 10 - iOS and macOS's Books app - Lithium on Android - Kobo app on Android Kobo devices however ignore some metadata: cover and, more importantly, chapters index. Is this a known issue with Kobo ereaders? Any chance of getting them to fix it? If anyone wants to test for themselves, here (https://drive.google.com/open?id=12e...Fgg75qQuRBe1ZI) is a sample. It has a cover and a chapter for each page. P.S. For those asking why bother making this vs just using CBZ/CBR, those formats are not supported by native (as in, built into the OS) apps on any platform and they do not have metadata, making organization a pain on Kobo devices. |
![]() |
![]() |
![]() |
#2 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
I don't see any issues with the metadata or cover. When I sideloaded the book, the metadata was read and the cover is the first page. Kobo is only handling the comments, publisher, title and author. It doesn't read the tags. The ToC didn't work. I think that is because it is an epub3 and there is no NCX to fallback to.
Sideloading as a kepub (rename to use ".kepub.epub" as the extension) and it all works. The kepub renderer handles epub3 better than the RMSDK based renderer used for epubs. Another difference in the epub and kepub handling is the cover. For epubs, Kobo renders the first page of the book and uses that. For kepubs, it looks for an image with the appropriate properties in the OPF. The yellow image with the word "Cover" has these properties. If you want to use CBR/CBZ and you use calibre, my Kobo Utilities plugin can set all the metadata correctly once the book has been imported on the device. It will do this for any book format. You send the book to the device, disconnect and let the import happen. Then connect and use the plugin. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,631
Karma: 12595249
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
|
Too late to answer (better answer over this message)
![]() |
![]() |
![]() |
![]() |
#4 |
absolute beginner
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 323
Karma: 1750999
Join Date: May 2017
Location: Go with the wind (43°19'17.7"N 2°00'19.4"W)
Device: ka1
|
cover -> You don't mark any file as cover (usualy the first one, but...).
Calibre's solution: Spoiler:
chapters index -> You don't create a toc.ncx as davidfor said before. display: flex; -> consider adding -webkit-display: flex; object-fit: contain; -> perhaps object-fit: cover;? I like Calibre's solution: Spoiler:
I prefer rotated images. Two-scale images are pretty... well, I dislike them. Good luck. Last edited by jcn363; 09-28-2018 at 04:02 AM. |
![]() |
![]() |
![]() |
#5 |
Junior Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8
Karma: 100000
Join Date: Jan 2013
Device: Kobo H2O
|
You guys are seriously awesome.
I'm going to give your solutions a shot as soon as I can. A couple of questions for jcn363 How does that help? That is definitely not part of the epub standard. I thought toc.ncx was deprecated in epub3 and one was meant to use nav.xhtml instead. Wrong? Finally, what are two-scale images? You mean images with a modified aspect ratio from their native one (stretched)? |
![]() |
![]() |
Advert | |
|
![]() |
#6 | ||
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
Code:
properties="cover-image" Quote:
|
||
![]() |
![]() |
![]() |
#7 | |
absolute beginner
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 323
Karma: 1750999
Join Date: May 2017
Location: Go with the wind (43°19'17.7"N 2°00'19.4"W)
Device: ka1
|
Quote:
The second one. Two-scale image is an image with two different scales, one for horizontal and a different one for vertical. I mean, I like proportionality. Good luck. |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Marvin and Aldiko Can't Read ePub Metadata or Cover Page | mjdz | Marvin | 2 | 06-24-2017 10:05 PM |
Calibre can't read metadata from epub | matonkiki | Library Management | 2 | 12-18-2015 07:44 AM |
How to Sync Read Progress between kobo devices using calibre? | lambstone | Kobo Reader | 9 | 09-07-2015 10:57 PM |
All Kobo devices are 'With Offers' devices | murg | Kobo Reader | 14 | 11-28-2012 10:49 AM |
epub files on two different devices? Sony and kobo? | gbloom182 | ePub | 9 | 01-09-2011 06:38 PM |