Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 11-15-2023, 10:21 AM   #1
stasiana
Junior Member
stasiana began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Nov 2023
Device: Kobo Sage
"Polish Book" causing ToC to disappear in ePub?

I am getting strange behavior when using polished epubs with a Kobo Sage. You access this feature by pressing "P" in Calibre. I've tried many different combinations of options in this menu but the latest is "update metadata", "update cover", "remove book jacket", "upgrade book internals" checked.

I get an original ePub. View it on the Kobo reader. The ToC shows properly.

I polish the ePub and send the polished version to Kobo reader. The ToC is now gone. But the Calibre reader still shows the ToC properly. So it seems like the polish process is corrupting the ToC in the way that fails on the Kobo.

If I then convert the polished ePub to a kepub and send that to the Kobo reader, the ToC shows up properly again.

Polish books does something with the ToC that makes it fail on the Kobo, it seems. Is this a bug? Anyone else seen this?
stasiana is offline   Reply With Quote
Old 11-15-2023, 10:39 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,347
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
dont use upgrade book internals, the kobo is probably having issues with epub 3
kovidgoyal is offline   Reply With Quote
Advert
Old 11-15-2023, 10:44 AM   #3
stasiana
Junior Member
stasiana began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Nov 2023
Device: Kobo Sage
Quote:
Originally Posted by kovidgoyal View Post
dont use upgrade book internals, the kobo is probably having issues with epub 3
Just figured this out too. Thanks for confirming.

What is actually the difference between epub, epub3 and kepub?
stasiana is offline   Reply With Quote
Old 11-15-2023, 12:45 PM   #4
stasiana
Junior Member
stasiana began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Nov 2023
Device: Kobo Sage
After further investigation, it doesn't seem so simple.

The Kobo reader doesn't have any problems with epub3 files I download from https://www.gutenberg.org/ or https://standardebooks.org/. It only has a ToC problem with epub3 generated by "Polish" in Calibre.

So it would seem that epub3 files generated elsewhere are somehow more compatible than epub3 files generated by Calibre.
stasiana is offline   Reply With Quote
Old 11-15-2023, 01:01 PM   #5
Karellen
Wizard
Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.
 
Karellen's Avatar
 
Posts: 1,611
Karma: 9500498
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
Quote:
Originally Posted by stasiana View Post
The Kobo reader doesn't have any problems with epub3 files I download from https://www.gutenberg.org/ or https://standardebooks.org/. It only has a ToC problem with epub3 generated by "Polish" in Calibre.
Would you mind checking the book in the Editor and confirm if either the nav.xhtml or toc.ncx files are present or if both are present in the books that work and don't work.

I've also noticed the missing TOC issue on the Libra2 when using epub3.
Karellen is offline   Reply With Quote
Advert
Old 11-15-2023, 02:50 PM   #6
Quoth
Still reading
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 14,025
Karma: 105092227
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
Quote:
Originally Posted by stasiana View Post
What is actually the difference between epub, epub3 and kepub?
This is a simplified explaination

It's epub2 as epub1 was called OEPS or OEBPS (Open eBook Publication Structure) and dates to about 1998.

The epub3 has many different options and the epub2 ToC is optional for "fully" epub3 based apps, but needed for many ereaders and apps. The native epub has a different system contents file. Also epub3 has many optional features, some of which are multimedia or interactive and thus not needed for "real" ebooks that are simply text and images. Additionally epub3 has a fixed layout option to do paper book replication, but differently to PDF (which is deliberately EXACTLY what a print on paper would be and used to generate paper print).

Likely if you "Polish" and "upgrade" internal you get an epub3 with no fallback epub2 ToC. This can be automatically added in Calibre Editor.

The epub3 from Gutenberg have no "fancy" epub3 features and have also the fallback epub2 ToC file. Both sorts of epub are renamed zip files. If you rename to zip you can extract all the files! Handy to get the images without Calibre.

In theory, if you knew what you were doing you could use a text editor and repack to zip and rename to epub. It's better to use Sigil or Calibre.

The kepub is Kobo's proprietary extension to epub2. It has extra <span> stuff </span> in the HTML files. The epub on a Kobo uses Adobe renderer, Adobe Digital Editions (abbreviated ADE). The kepub files use Kobo's own renderer which allows zooming images and popup footnotes but does the text layout differently. Some people prefer kepub and some prefer epub2.

An epub2 and epub3 can look almost identical, and pretty much will be if the ebook was automatically created from a properly styled docx file and is not fixed layout epub3.

The epub3 has better support for semantic based HTML that isn't recognised by epub2, but the onscreen appearance may be identical. Epub3 is better for textbooks with support for equations and javascript.
Quoth is offline   Reply With Quote
Old 11-15-2023, 05:45 PM   #7
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: 46,190
Karma: 168983734
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by Quoth View Post
The kepub is Kobo's proprietary extension to epub2. It has extra <span> stuff </span> in the HTML files. The epub on a Kobo uses Adobe renderer, Adobe Digital Editions (abbreviated ADE). The kepub files use Kobo's own renderer which allows zooming images and popup footnotes but does the text layout differently. Some people prefer kepub and some prefer epub2.
Minor nit is that kepub is usable with either ePub2 or ePub3 but it's main use was to trigger using the ePub3 renderer (Kobo's ereaders have an RMSDK renderer which supports Adobe's ADEPT DRM and a Webkit based renderer which supports quite a bit more ePub3 features).
DNSB is offline   Reply With Quote
Old 11-16-2023, 06:18 AM   #8
Quoth
Still reading
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 14,025
Karma: 105092227
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
Quote:
Originally Posted by DNSB View Post
Minor nit is that kepub is usable with either ePub2 or ePub3 but it's main use was to trigger using the ePub3 renderer (Kobo's ereaders have an RMSDK renderer which supports Adobe's ADEPT DRM and a Webkit based renderer which supports quite a bit more ePub3 features).
I did write it was a simplified explanation and though I used kepub at first on my original H20, I don't know specific details of compatibility. At a simplistic level you can rename file to use the kepub renderer?
Quoth is offline   Reply With Quote
Old 11-16-2023, 09:41 AM   #9
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,750
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by Quoth View Post
I did write it was a simplified explanation and though I used kepub at first on my original H20, I don't know specific details of compatibility. At a simplistic level you can rename file to use the kepub renderer?
You can do the rename. But not everything works such as highlighting.
JSWolf is offline   Reply With Quote
Old 11-16-2023, 05:57 PM   #10
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: 46,190
Karma: 168983734
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
The rename was more for use by authors so they could check for any formatting differences between the two renderers on various platforms.

From the KoboLabs epub-spec page:

Quote:
Sideloading for Testing Purposes

Kobo encourages the testing of content on all its reading platforms by sideloading. Content should display identically whether sideloaded or downloaded to a device from the Kobo store. Instances where this is not the case can be reported to renderingissues@kobo.com and the EPUB in question will be logged for investigation.

Here’s how to sideload content on Kobo's reading platforms:

eInk

Connect the device to your computer via USB.
Find the drive on your computer in Finder or Windows Explorer.
Drag your EPUB onto the device. To trigger the Kobo WebKit, change the file extension to .kepub.epub. To trigger the Kobo WebKit for a Fixed Layout title, change the extension to .fxl.kepub.epub. (If the extension is left unchanged it will render using the Adobe Digital Editions WebKit. This is the default display engine for sideloaded content to enable bookmarking, searching and highlighting.)
Disconnect your device. The file will automatically appear in your library.

Sideloaded EPUBs with the ".fxl.kepub.epub" or ".kepub.epub" will disable bookmarking and note keeping. Thumbnails for covers may not display. Otherwise the reading experience and content display will be identical to how the file would display when loaded through the store. Leaving the extension as ".epub" will enable bookmarking and note keeping and will trigger the ADE display engine.
DNSB is offline   Reply With Quote
Old 11-17-2023, 05:15 AM   #11
Quoth
Still reading
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 14,025
Karma: 105092227
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
I extensively use annotation by touch keyboard. Just a short note made intelligible by a big highlight, so obviously renaming an epub would be bad for me. The kepubs created on the fly by the Extended Kobo driver (or pre converted and loaded by USB or Wifi from Kobo do allow bookmarks and annotations).

Calibre (either conversion in advance to kepub) or extended driver on the fly conversion to kepub makes the inferior renaming feature obsolete.

Last edited by Quoth; 11-17-2023 at 05:18 AM.
Quoth is offline   Reply With Quote
Old 11-17-2023, 08:16 PM   #12
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: 46,190
Karma: 168983734
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by Quoth View Post
I extensively use annotation by touch keyboard. Just a short note made intelligible by a big highlight, so obviously renaming an epub would be bad for me. The kepubs created on the fly by the Extended Kobo driver (or pre converted and loaded by USB or Wifi from Kobo do allow bookmarks and annotations).

Calibre (either conversion in advance to kepub) or extended driver on the fly conversion to kepub makes the inferior renaming feature obsolete.
While you and I may be happy using calibre, kepubify, etc., there are a lot of people out there who are not running those programs and have no interest in running them, often a class of user for whom renaming a file is scary enough and don't mention the CLI.
DNSB is offline   Reply With Quote
Old 11-18-2023, 09:22 AM   #13
Quoth
Still reading
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 14,025
Karma: 105092227
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
Quote:
Originally Posted by DNSB View Post
… often a class of user for whom renaming a file is scary enough and don't mention the CLI.
A console is a Nintendo, PS5 or xbox.
What's a Windows Console?

Some of us antiques started before WIMPs existed

I was at an antique fair for 1st time in years. I'm now older than most of what's on sale.
"No, sir, that's not a 1970s telephone you're selling, it's 1960s!"

Granddaughter looks at thing with marble handle, no dial and two cords. "What's that?"
Much younger grandson, "It might be a telephone?"
Quoth is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Embed the functions of "TOC Edit" into "TOC Tab"? hhtmp88 Plugins 2 08-20-2020 02:09 PM
Cover pages disappear when I "remove book from device" morty92222 Editor 1 12-28-2019 09:43 PM
"Polish" doesn't carry over from epub to mobi beachboybogart Conversion 4 06-03-2019 05:45 PM
hyperlinks disappear when "opening" a book with Sigil Bookripper Sigil 11 01-23-2013 05:33 AM
Bug in Kobo processing of epub files causing hang in "Processing content" BensonBear Kobo Reader 21 12-21-2012 05:47 AM


All times are GMT -4. The time now is 06:02 AM.


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