Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader > Kobo Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 04-07-2025, 02:10 PM   #1
HappyMilkXD
Junior Member
HappyMilkXD began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Nov 2021
Device: Kobo Libra Colour
Weird whitespace

I've been tweaking an existing .epub file and getting some weird bugs when the file is read by my device. Chiefly, that sometimes a large whitespace is added between words, mainly when a word joiner character is nearby. The weird part is that this isn't consistent. At times the whitespace is of normal length, at other times is twice or thrice as large, and other times is five (or so) times as large. I haven't been able to see why this happens and how can I fix it. These bugs only happen in my Kobo device, not in my laptop's epub reader, which means that the file is fine.
Attached Thumbnails
Click image for larger version

Name:	photo_2025-04-07_12-04-01.jpg
Views:	75
Size:	163.1 KB
ID:	214924   Click image for larger version

Name:	photo_2025-04-07_12-04-19.jpg
Views:	64
Size:	208.9 KB
ID:	214925   Click image for larger version

Name:	photo_2025-04-07_12-04-27.jpg
Views:	71
Size:	194.8 KB
ID:	214926   Click image for larger version

Name:	photo_2025-04-07_12-04-37.jpg
Views:	61
Size:	191.6 KB
ID:	214927   Click image for larger version

Name:	photo_2025-04-07_12-04-45.jpg
Views:	62
Size:	151.3 KB
ID:	214928  
HappyMilkXD is offline   Reply With Quote
Old 04-07-2025, 02:13 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: 46,190
Karma: 168983734
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Are you sending the ebooks as ePub or kepub? If kepub, try switching to ePub to see if the issue still appears. Some of those white spaces appear to be poorly executed justification choices.

If you are using calibre 8+, go into the configuration for the KoboTouch driver and on the 2nd tab (Collections, covers & uploads), remove the checkmark from Use Kobo viewer for EPUB books. This will have your books sent to your Kobo without the conversion to kepub.

Last edited by DNSB; 04-07-2025 at 02:16 PM.
DNSB is offline   Reply With Quote
Advert
Old 04-07-2025, 03:40 PM   #3
HappyMilkXD
Junior Member
HappyMilkXD began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Nov 2021
Device: Kobo Libra Colour
Thanks for your response!
Indeed, the problem only exists on the .kepub.epub version. The plain .epub works just fine.
HappyMilkXD is offline   Reply With Quote
Old 04-07-2025, 03:47 PM   #4
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 DNSB View Post
Are you sending the ebooks as ePub or kepub? If kepub, try switching to ePub to see if the issue still appears. Some of those white spaces appear to be poorly executed justification choices.

If you are using calibre 8+, go into the configuration for the KoboTouch driver and on the 2nd tab (Collections, covers & uploads), remove the checkmark from Use Kobo viewer for EPUB books. This will have your books sent to your Kobo without the conversion to kepub.
There is no hyphenation. That and the default of wider spacing in KePub can make the gaps rather large.
JSWolf is offline   Reply With Quote
Old 04-07-2025, 04:31 PM   #5
HappyMilkXD
Junior Member
HappyMilkXD began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Nov 2021
Device: Kobo Libra Colour
The problem is not many large gaps between words in a single line. The problem is inconsistent spacing. Mostly one big gap between a dash and the next word. I'm pretty certain that, if there were to be hyphenation, the problem would still persist.
HappyMilkXD is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Remove-tag when class contains a whitespace Villard Recipes 4 07-09-2023 03:08 AM
Calibre adds whitespace on epub GianluC03 Conversion 3 05-26-2021 01:29 AM
whitespace eaten by pretty print AlanHK Sigil 14 08-18-2017 12:39 PM
Kindle clippings from pdfs have no whitespace bmf Amazon Kindle 3 09-02-2011 12:27 AM
Touch Paragraph Splitting and Whitespace JD Gumby Kobo Reader 10 08-02-2011 02:24 PM


All times are GMT -4. The time now is 11:44 PM.


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