Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader

Notices

Reply
 
Thread Tools Search this Thread
Old 07-28-2017, 01:47 PM   #31
geek1011
Wizard
geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.
 
Posts: 2,730
Karma: 6675565
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
Quote:
Originally Posted by trekk View Post
I got a "no permission" message in my terminal, so I had to chmod kepubify on my mac. Conversion is very fast, but without the possibility of a batch conversion, Calibre is faster when converting multiple files. Nice tool though!

Edit: I also realized that the new .kepubs don't show a thumbnail of the cover on my KA1.
Covers should be fixed now.
geek1011 is offline   Reply With Quote
Old 07-28-2017, 02:02 PM   #32
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 35,219
Karma: 145277352
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by davidfor View Post
From the very few rules we have for kepubs, every file is supposed to have a ToC entry. In some purchased books, I've seen things like "unnamed chapter" or the first line of text as the title. I think Kobo's publishing routines are adding these as needed. If there are missing entries, you can get some strange things happening with the chapters and page counts. (I might have to check that as it has been a while).
You could apply hidden to those added epub3 nav.xhtml ToC entries though as far as I can tell from reading the epub3 spec, there is no requirement for every file to have a ToC entry though a spine entry is required.

Looking at the kobolabs epub information kobolabs/epub-spec , Kobo's CMS will add files listed in the spine to the ToC for epub2 files if there is no existing toc.ncx file. For epub3, an existing nav.html (should be nav.xhtml) will be used followed followed by toc.ncx and finally, if toc.ncx does not exist, the ToC will be generated from the spine listing.

Given that the epub2 spec requires a toc.ncx and the epub3 spec requires the navigation document, adding spine files to the ToC should never occur for a standards compliant epub.
DNSB is offline   Reply With Quote
Advert
Old 07-28-2017, 04:48 PM   #33
geek1011
Wizard
geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.
 
Posts: 2,730
Karma: 6675565
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
I will be away for about 8 days starting tomorrow.
geek1011 is offline   Reply With Quote
Old 07-28-2017, 10:11 PM   #34
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,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by DNSB View Post
You could apply hidden to those added epub3 nav.xhtml ToC entries though as far as I can tell from reading the epub3 spec, there is no requirement for every file to have a ToC entry though a spine entry is required.

Looking at the kobolabs epub information kobolabs/epub-spec , Kobo's CMS will add files listed in the spine to the ToC for epub2 files if there is no existing toc.ncx file. For epub3, an existing nav.html (should be nav.xhtml) will be used followed followed by toc.ncx and finally, if toc.ncx does not exist, the ToC will be generated from the spine listing.

Given that the epub2 spec requires a toc.ncx and the epub3 spec requires the navigation document, adding spine files to the ToC should never occur for a standards compliant epub.
The kobolabs document is the point. It is the only thing that comes close to giving specs for kepubs. It states there must be a ToC entry for each file. It doesn't really matter what other specs say, it is how Kobo have interpreted them and implemented their readers. And that's a lot of the point as well. A kepub is not actually either an epub 2 or a kepub 3. It is Kobo's interpretation of those two spec plus things that they added. Such as ignoring the widows and orphans in the CSS, and the spans wrapping sentences. And requiring that all files in the book are in the ToC.

The Kobo publishing routine make sure this that the generated kepubs match their standards. But, none of the ways of generating kepubs for sideloading make sure of this. I think they are close, but none make sure the ToC is complete.
davidfor is offline   Reply With Quote
Old 07-28-2017, 11:03 PM   #35
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 35,219
Karma: 145277352
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by davidfor View Post
The kobolabs document is the point. It is the only thing that comes close to giving specs for kepubs. It states there must be a ToC entry for each file. It doesn't really matter what other specs say, it is how Kobo have interpreted them and implemented their readers. And that's a lot of the point as well. A kepub is not actually either an epub 2 or a kepub 3. It is Kobo's interpretation of those two spec plus things that they added. Such as ignoring the widows and orphans in the CSS, and the spans wrapping sentences. And requiring that all files in the book are in the ToC.

The Kobo publishing routine make sure this that the generated kepubs match their standards. But, none of the ways of generating kepubs for sideloading make sure of this. I think they are close, but none make sure the ToC is complete.
That's not the way I read it. It mentions all files in the spine that are not in the toc.ncx being added to the ToC for files that do not possess an epub3 navigation document and also states that this process may be removed in a future release. Since a standards compliant epub3 requires that navigation document, there should be no modifications done a standards compliant epub3 navigation document which suggests that there is no need for all spine items to be in a navigation document.
DNSB is offline   Reply With Quote
Advert
Old 07-28-2017, 11:27 PM   #36
rashkae
Wizard
rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.
 
rashkae's Avatar
 
Posts: 1,141
Karma: 5061953
Join Date: Jun 2011
Location: Ontario, Canada
Device: Kobo Aura HD
Regardless how how you read it, if this is not done, the books glitch in Kobo.. (For that matter, as of the latest batch of releases, books without a complete ToC also glitch in the Epub reader, but that's a different issue. I can safely call that one a bug.. But Kepub needing a ToC entry for every file has been 'as designed' since forever.)
rashkae is offline   Reply With Quote
Old 07-29-2017, 12:08 AM   #37
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 35,219
Karma: 145277352
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by rashkae View Post
Regardless how how you read it, if this is not done, the books glitch in Kobo.. (For that matter, as of the latest batch of releases, books without a complete ToC also glitch in the Epub reader, but that's a different issue. I can safely call that one a bug.. But Kepub needing a ToC entry for every file has been 'as designed' since forever.)
Interesting. I read mostly epub2 books and I haven't seen a glitch due to an incomplete ToC -- my practice when editing an epub2 is to modify the ToC so the first page of the book contents (i.e., prologue, chapter 1, etc.) is the first entry in the toc.ncx. As for kepub needing a ToC entry for every spine listed file, it is pretty clear that a epub3 with a navigation document will not have all the spine files added into the navigation document. I've quoted the relevant portion of the Kobo documentation below:

**For ePub 2.0.1**, Kobo reading platforms populate the ToC menu in the book with the ToC from the file toc.ncx (which is in navMap). However, if the toc.ncx is not present, the TOC menu is populated by the Spine listing in the OPF.

When an OPF-spine item is not listed in the TOC.ncx, the Kobo CMS will create a listing for it using the filename or the opening words from the section. This listing will be displayed to the user in the TOC Menu across all reading platforms. This process may be removed in a future release. ePubs that use a nav.html TOC will not be impacted.

**For ePub 3.0**, Kobo platforms will read the ToC from the ToC table in the nav.html file. When a ToC table is not present, the next available table will be used. If the nav.html is not present, it will populate the ToC with the toc.ncx. If the toc.ncx is not present, it will populate the ToC with the spine listing in the OPF.


Edit: I generated two kepubs from an epub3 with a complete and incomplete ToC in both the nav.xhtml and toc.ncx files. I did not notice any issue with page counts in the non-listed files as compared to the version with the "complete" ToCs.

Last edited by DNSB; 07-29-2017 at 12:13 AM. Reason: add experimentation results
DNSB is offline   Reply With Quote
Old 07-29-2017, 08:29 AM   #38
Cyfranek
Groupie
Cyfranek does all things with Zen-like beautyCyfranek does all things with Zen-like beautyCyfranek does all things with Zen-like beautyCyfranek does all things with Zen-like beautyCyfranek does all things with Zen-like beautyCyfranek does all things with Zen-like beautyCyfranek does all things with Zen-like beautyCyfranek does all things with Zen-like beautyCyfranek does all things with Zen-like beautyCyfranek does all things with Zen-like beautyCyfranek does all things with Zen-like beauty
 
Cyfranek's Avatar
 
Posts: 163
Karma: 32602
Join Date: Jul 2017
Location: Poland
Device: PocketBok Era, Kindle Oasis 3, Bookeen Diva HD
I can't see any converted kepub files in my Aura H2O (firmware 4.5.9587) as well. Converted under Windows 10 using both 32bit and 64bit curren versions. This free e-book for example: http://zajdel.art.pl/publikacje/zajd...antologia.epub
Cyfranek is offline   Reply With Quote
Old 07-29-2017, 09:04 AM   #39
geek1011
Wizard
geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.
 
Posts: 2,730
Karma: 6675565
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
Quote:
Originally Posted by Cyfranek View Post
I can't see any converted kepub files in my Aura H2O (firmware 4.5.9587) as well. Converted under Windows 10 using both 32bit and 64bit curren versions. This free e-book for example: http://zajdel.art.pl/publikacje/zajd...antologia.epub
That's unusual. It seems to be a windows issue, because all my books converted without an issue on linux. I will be away for the next week, but when I come back, I will look more into this.
geek1011 is offline   Reply With Quote
Old 07-29-2017, 09:10 AM   #40
geek1011
Wizard
geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.
 
Posts: 2,730
Karma: 6675565
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
If anyone has any solid ideas, please feel free to post them here, or open a Pull Request on GitHub. Some places to start mightbe modyfing the generated kepub's TOC. Also, if it is missing a container.xml, please tell me. I have had quite a few instances of missing container.xml s when converting on windows. Also, try converting with the linux version through bash on windows.

Sorry for the inconvenience on windows so far, I will fix this as soon as possible (starting next week).

Last edited by geek1011; 07-29-2017 at 09:13 AM.
geek1011 is offline   Reply With Quote
Old 07-29-2017, 09:24 AM   #41
geek1011
Wizard
geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.
 
Posts: 2,730
Karma: 6675565
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
And if anyone uses Linux, to build this, just install golang, set your GOPATH env variable to a empty folder in your HOME, type 'go get github.com/geek1011/kepubify', and then you can modify the code. To build it, cd to $GOPATH/github.com/geek1011/kepubify and run 'make'. The output will be in '$GOPATH/github.com/geek1011/kepubify/build/kepubify'.

Sent from my XT1527 using Tapatalk
geek1011 is offline   Reply With Quote
Old 07-29-2017, 09:28 AM   #42
geek1011
Wizard
geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.
 
Posts: 2,730
Karma: 6675565
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
I also have another tool I am working on, which I have tested the features so far: https://github.com/geek1011/epubtool. It can pack, unpack, and validate epubs so far, and it may be useful when testing kepubify. I have tested it on Linux.

Example usage:
epubtool unpack /path/to/book.epub
epubtool pack /path/to/epub
epubtool validate /path/to/packed/book.epub

Sent from my XT1527 using Tapatalk
geek1011 is offline   Reply With Quote
Old 07-29-2017, 10:34 AM   #43
volpo
Addict
volpo ought to be getting tired of karma fortunes by now.volpo ought to be getting tired of karma fortunes by now.volpo ought to be getting tired of karma fortunes by now.volpo ought to be getting tired of karma fortunes by now.volpo ought to be getting tired of karma fortunes by now.volpo ought to be getting tired of karma fortunes by now.volpo ought to be getting tired of karma fortunes by now.volpo ought to be getting tired of karma fortunes by now.volpo ought to be getting tired of karma fortunes by now.volpo ought to be getting tired of karma fortunes by now.volpo ought to be getting tired of karma fortunes by now.
 
volpo's Avatar
 
Posts: 205
Karma: 2595216
Join Date: Aug 2011
Device: Clara 2E, Glo HD
Just wondering...is the 32bit version supposed to work with Windows XP? It would not work here. The error message says "...not a valid Win32 application"

(And yes, I know that I am a Luddite)
volpo is offline   Reply With Quote
Old 07-29-2017, 11:02 AM   #44
rashkae
Wizard
rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.
 
rashkae's Avatar
 
Posts: 1,141
Karma: 5061953
Join Date: Jun 2011
Location: Ontario, Canada
Device: Kobo Aura HD
Quote:
Originally Posted by DNSB View Post
Edit: I generated two kepubs from an epub3 with a complete and incomplete ToC in both the nav.xhtml and toc.ncx files. I did not notice any issue with page counts in the non-listed files as compared to the version with the "complete" ToCs.

Ah.. .I've never tested with Epub3, only 2. I did not expect it to make quite that much of a difference, but I should have clarified in my earlier post.

As for the glitchiness I mentioned with epub, it's the search that doesn't work. The search results are unable to 'jump' to the any results that reside in a file not in the ToC.

For testing of Kepub, the Non-toc files have to be inter-spaced with toc listed files. You will not notice the behaviour if there is only a single Toc list for the first file, or first half of book even. Also, you have to display progress for the whole book. There is no issue with Book progress per chapter, other than the little chart of chapter bar graph being off on current reading position.

Last edited by rashkae; 07-29-2017 at 11:06 AM.
rashkae is offline   Reply With Quote
Old 07-29-2017, 12:33 PM   #45
geek1011
Wizard
geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.
 
Posts: 2,730
Karma: 6675565
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
Quote:
Originally Posted by volpo View Post
Just wondering...is the 32bit version supposed to work with Windows XP? It would not work here. The error message says "...not a valid Win32 application"

(And yes, I know that I am a Luddite)
Nope. Only Windows 7 and up.

Sent from my XT1527 using Tapatalk
geek1011 is offline   Reply With Quote
Reply

Tags
conversion, epub, kepub, tool

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Aura H2O Font size mismatch (downloaded epubs via Calibre vs. Kobo epubs & articles) Oolong Kobo Reader 36 01-25-2019 06:00 AM
Tool to automatically download and check epubs skreutzer Workshop 26 12-14-2015 12:28 PM
Touch Problem with all epubs, my epubs, or my kobo? (line clipping) plague006 Kobo Reader 14 12-02-2011 11:32 PM
Epub check tool: ePubs do not pass Portnull Calibre 32 11-04-2009 08:27 AM


All times are GMT -4. The time now is 04:01 PM.


MobileRead.com is a privately owned, operated and funded community.