Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Devices

Notices

Reply
 
Thread Tools Search this Thread
Old Yesterday, 01:40 PM   #1
LenaWolf
Member
LenaWolf began at the beginning.
 
LenaWolf's Avatar
 
Posts: 13
Karma: 10
Join Date: Oct 2025
Device: Sony PRS-1, Kobo Libra Colour
Kobo Libra Colour gets TOC messed up

Hello,

I have a problem when sending ePub files through Calibre to the latest Kobo Libra Colour that I just bought. I am running the latest Calibre 8.15 on Windows 11.

If I just copy that ePub file to Kobo with the File Manager and let Kobo import it and convert it to KePub, everything looks perfect. But if I use the "Send to Device" button in Calibre, the book gets its table of contents messed up: some chapters in the book are being skipped and do not match the same chapters in the table of contents, so when you click on, say, chapter 15 in the TOC, you actually arrive to chapter 5 in the book. The header showing chapters reflects this error (says it's chapter 5 while it is in fact chapter 15).

Now in more detail. I have an ePub file converted from ODT with Calibre. It shows perfectly with the Calibre ePub viewer, it renders perfectly on the Kindle viewer program and on my older Sony eReader, and also if I just copy it to Kobo Libra through the File Manager, it looks perfect there as well. The problem occurs ONLY if I use the "Send to Device" button which makes Calibre convert ePub to KEPub for Kobo.

This book has many images (98 images and 155K words). The TOC begins getting messed up after the images, so it makes me think Calibre misses chapter markers when converting to KEPub. I tried changing the format, such as making sure that each image is displayed on its own page (and in its own XML file), but it makes no difference - every so often a chapter marker is missed. It is not consistent and I could not disover a rule as to when it gets missed, so I could not come up with a universal work-around. Inserting manual page breaks before and after the image does help in some cases, but not always.

My solution for now is not to use "Send to Device" for this eReader but instead copy the file directly, but I thought I'd post about it because this seems to be a bug in Calibre.

I can provide the book for testing purposes.

I hope this helps make Calibre better!
Thank you for your work.
LenaWolf is offline   Reply With Quote
Old Yesterday, 01:44 PM   #2
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: 48,553
Karma: 174510108
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
It would make troubleshooting a lot easier if you could attach the ePub to a message here. One quick suggestion would be to open the ODT file in LibreOffice and then export it as a docx. Import the docx to calibre and convert to ePub to see if that fixes the issue with the ToC.

Just as an aside, a Kobo ereader does not convert to kepub on import.
DNSB is offline   Reply With Quote
Old Yesterday, 06:38 PM   #3
LenaWolf
Member
LenaWolf began at the beginning.
 
LenaWolf's Avatar
 
Posts: 13
Karma: 10
Join Date: Oct 2025
Device: Sony PRS-1, Kobo Libra Colour
Quote:
Originally Posted by DNSB View Post
It would make troubleshooting a lot easier if you could attach the ePub to a message here. One quick suggestion would be to open the ODT file in LibreOffice and then export it as a docx. Import the docx to calibre and convert to ePub to see if that fixes the issue with the ToC.

Just as an aside, a Kobo ereader does not convert to kepub on import.
I am sorry, I cannot attach the book to a message in a public forum because I hope to publish it one day.

As for your suggestion, I do not understand why that would help since the very same epub file looks perfect when it is not converted to Kepub. And again excuse me but something certainly does convert epub to kepub because the Kobo reader shows that file differently. When I use "Send to Device" button, it is stored in Kobo's secret folders and is listed in the book library as a KEPUB. Whereas if I just copy the epub file to the reader with the File Manager, it is converted by the Kobo reader on import and listed as EPUB. It looks differently (not just this file but all others imported via these two routes look differently). So basically EPUB files interpreted by the Kobo reader look correctly but KEPUB files created when pressing "Send to Device" button have this problem.
LenaWolf is offline   Reply With Quote
Old Yesterday, 06:42 PM   #4
Sirtel
Grand Sorcerer
Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.
 
Sirtel's Avatar
 
Posts: 14,071
Karma: 243829945
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
Quote:
Originally Posted by LenaWolf View Post
I am sorry, I cannot attach the book to a message in a public forum because I hope to publish it one day.

As for your suggestion, I do not understand why that would help since the very same epub file looks perfect when it is not converted to Kepub. And again excuse me but something certainly does convert epub to kepub because the Kobo reader shows that file differently. When I use "Send to Device" button, it is stored in Kobo's secret folders and is listed in the book library as a KEPUB. Whereas if I just copy the epub file to the reader with the File Manager, it is converted by the Kobo reader on import and listed as EPUB. It looks differently (not just this file but all others imported via these two routes look differently). So basically EPUB files interpreted by the Kobo reader look correctly but KEPUB files created when pressing "Send to Device" button have this problem.
You obviously have the Kobo driver in Calibre configured to send kepubs.
Sirtel is offline   Reply With Quote
Old Yesterday, 06:45 PM   #5
LenaWolf
Member
LenaWolf began at the beginning.
 
LenaWolf's Avatar
 
Posts: 13
Karma: 10
Join Date: Oct 2025
Device: Sony PRS-1, Kobo Libra Colour
Quote:
Originally Posted by Sirtel View Post
You obviously have the Kobo driver in Calibre configured to send kepubs.
I thought something like this was happening but I could not find where that was set! Do you know how I can disable it?

But anyhow, it seems to be broken for my particular book.
LenaWolf is offline   Reply With Quote
Old Yesterday, 06:47 PM   #6
LenaWolf
Member
LenaWolf began at the beginning.
 
LenaWolf's Avatar
 
Posts: 13
Karma: 10
Join Date: Oct 2025
Device: Sony PRS-1, Kobo Libra Colour
Quote:
Originally Posted by DNSB View Post
It would make troubleshooting a lot easier if you could attach the ePub to a message here. One quick suggestion would be to open the ODT file in LibreOffice and then export it as a docx. Import the docx to calibre and convert to ePub to see if that fixes the issue with the ToC.
I have just tried exporting as DOCX and then converting it with Calibre... Oh gosh, what a mess. I lost ALL TEXT!!! I don't think this will work for me. I may be allergic to Word. Or the other way around.
LenaWolf is offline   Reply With Quote
Old Yesterday, 06:47 PM   #7
Sirtel
Grand Sorcerer
Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.
 
Sirtel's Avatar
 
Posts: 14,071
Karma: 243829945
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
Quote:
Originally Posted by LenaWolf View Post
I thought something like this was happening but I could not find where that was set! Do you know how I can disable it?

But anyhow, it seems to be broken for my particular book.
Do you have the Kobo Utilities plugin installed? It's easiest to access the driver via that. Right-click on the plugin icon -> Configure driver -> Collections, covers and uploads -> uncheck Use Kobo viewer for EPUB books
Sirtel is offline   Reply With Quote
Old Yesterday, 07:12 PM   #8
LenaWolf
Member
LenaWolf began at the beginning.
 
LenaWolf's Avatar
 
Posts: 13
Karma: 10
Join Date: Oct 2025
Device: Sony PRS-1, Kobo Libra Colour
Quote:
Originally Posted by Sirtel View Post
Do you have the Kobo Utilities plugin installed? It's easiest to access the driver via that. Right-click on the plugin icon -> Configure driver -> Collections, covers and uploads -> uncheck Use Kobo viewer for EPUB books
Thank you! No, I don't have Kobo Utilities plugin, I didn't install any plugins really, it's just what Calibre comes with. But I found a pre-installed Kobo Touch plugin and in there I could disable KEPUB.

The result was interesting: the TOC is fixed but the format is still different from when you just copy files with the File Manager. Kobo still shows it as KEPUB, but I think this time it was Kobo itself that did the conversion because it said "importing files" when I disconnected it from the computer.

Anyway, thank you very much - the problem is solved for me!

This means that there is a bug with the driver of Kobo Touch, alas. If the developer wants to debug it, I can send my book for testing via personal message, just let me know.

Many thanks to everyone involved!
LenaWolf is offline   Reply With Quote
Old Yesterday, 07:46 PM   #9
Sirtel
Grand Sorcerer
Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.
 
Sirtel's Avatar
 
Posts: 14,071
Karma: 243829945
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
Quote:
Originally Posted by LenaWolf View Post
Thank you! No, I don't have Kobo Utilities plugin, I didn't install any plugins really, it's just what Calibre comes with. But I found a pre-installed Kobo Touch plugin and in there I could disable KEPUB.

The result was interesting: the TOC is fixed but the format is still different from when you just copy files with the File Manager. Kobo still shows it as KEPUB, but I think this time it was Kobo itself that did the conversion because it said "importing files" when I disconnected it from the computer.

Anyway, thank you very much - the problem is solved for me!

This means that there is a bug with the driver of Kobo Touch, alas. If the developer wants to debug it, I can send my book for testing via personal message, just let me know.

Many thanks to everyone involved!
No, Kobo itself doesn't do any converting. If you still get KEPUB, have you perhaps enabled the kepub format for the device and set it as the first preferred format? In the same Kobo Touch settings, check your file formats and disable kepub. Did you uncheck "Use Kobo viewer..."?
Sirtel is offline   Reply With Quote
Old Yesterday, 08:02 PM   #10
LenaWolf
Member
LenaWolf began at the beginning.
 
LenaWolf's Avatar
 
Posts: 13
Karma: 10
Join Date: Oct 2025
Device: Sony PRS-1, Kobo Libra Colour
Quote:
Originally Posted by Sirtel View Post
No, Kobo itself doesn't do any converting. If you still get KEPUB, have you perhaps enabled the kepub format for the device and set it as the first preferred format? In the same Kobo Touch settings, check your file formats and disable kepub. Did you uncheck "Use Kobo viewer..."?
Hmm... On the Kobo Touch "Customize Plugin" settings on the first tab "File Formats" I have unchecked kepub (definitely unchecked), so the only formats checked are: epub, pdf, txt, cbz and cbr.

I found "Use Kobo viewer..."! Right on the bottom... And yes, it was checked by default. Unchecked it now. Yes! Now I am getting EPUB, exactly the same as if I were to copy the file with the File Manager.

So it appears that the conversion that sits under "Use Kobo viewer" works correctly, but it's the one under the KEPUB file format that messes up the TOC.
LenaWolf is offline   Reply With Quote
Old Yesterday, 08:18 PM   #11
Sirtel
Grand Sorcerer
Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.
 
Sirtel's Avatar
 
Posts: 14,071
Karma: 243829945
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
Quote:
Originally Posted by LenaWolf View Post
So it appears that the conversion that sits under "Use Kobo viewer" works correctly, but it's the one under the KEPUB file format that messes up the TOC.
That's interesting. I didn't even know they were different.
Sirtel is offline   Reply With Quote
Old Yesterday, 08:38 PM   #12
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
Posts: 13,731
Karma: 80104526
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
Might I suggest that you make use of the ScrambleEbook calibre plugin to create a scrambled version of this ePub and post it. That will leave the structure of the eBook as is but ensure that the text is replaced by garbage.
PeterT is offline   Reply With Quote
Old Yesterday, 08:41 PM   #13
LenaWolf
Member
LenaWolf began at the beginning.
 
LenaWolf's Avatar
 
Posts: 13
Karma: 10
Join Date: Oct 2025
Device: Sony PRS-1, Kobo Libra Colour
Quote:
Originally Posted by Sirtel View Post
That's interesting. I didn't even know they were different.
Hmm... I don't know if they are different. I have checked and unchecked it a few times now, restarted Calibre and all that, and the KEPUB is now working correctly for the TOC... but the thing is, that neither the ODT nor the converted EPUB changed in between. Plain EPUB always works, KEPUB... depends on whether Jupiter is in my House or not, it seems. May be I should also reboot the PC for good measure. Also sometimes I am getting giant letters and other time miniscule letters, and if I'm lucky, I might get normal sized letters... on the same book! Something fishy is going on here.

But I can live with this! Thank you for pointing me to the settings!
LenaWolf is offline   Reply With Quote
Old Yesterday, 08:43 PM   #14
LenaWolf
Member
LenaWolf began at the beginning.
 
LenaWolf's Avatar
 
Posts: 13
Karma: 10
Join Date: Oct 2025
Device: Sony PRS-1, Kobo Libra Colour
Quote:
Originally Posted by PeterT View Post
Might I suggest that you make use of the ScrambleEbook calibre plugin to create a scrambled version of this ePub and post it. That will leave the structure of the eBook as is but ensure that the text is replaced by garbage.
I shall look into this, thank you!
LenaWolf is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Is Kobo Libra Colour upgradable? risen Kobo Developer's Corner 7 07-09-2025 07:26 AM
Kobo Libra Colour Support xtin Devices 79 04-07-2025 01:56 AM
Subjective Comparison of Libra 2, Libra Colour and Clara Colour rogerinnyc Kobo Reader 1 01-07-2025 11:17 AM
Kobo Libra Colour sync books from Google Drive to Kobo Web Reader gotis Kobo Reader 3 11-30-2024 08:49 PM
Fonts for kobo libra colour Juan78 Kobo Reader 4 11-18-2024 10:07 AM


All times are GMT -4. The time now is 04:53 AM.


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