View Single Post
Old 06-05-2020, 01:42 PM   #1
droopy
Guru
droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.
 
Posts: 834
Karma: 2912460
Join Date: Apr 2009
Device: Kobo Forma
[solved] Book has weird line breaks & text-size changes on Kobo but is ok on computer

I'm reading a book on my Kobo Forma and noticed abrupt (read: unnecessary) line breaks as well as weird changes in font size.

I wondered what was going on. So I went to my computer and opened the book. Calibre's ebook viewer didn't show the wierd formatting issues. It looks good on my computer. But it looks horrible on my Kobo Forma ereader.

I exploded/unpacked the ebook in Calibre and noticed that the xhtml file has weird code like
Code:
<a id="page5" / >
in the middle of the paragraph, and this weird code seems to coincide with the weird changes in text size and unneeded line breaks that I see in my Kobo.

See screenshots of Kobo and computer here: https://imgur.com/a/x0UOgTt

I've uploaded the xhtml of this chapter, but had to add ".zip" to the end of the filename, because mobileread wouldn't accept xhtml as a fileextension. If you examine the file, all you have to do is remove " .zip". In other words, the real file name ends in .xhtml.

1. Why does the book have these weird html tags? My theory is that the print book's pages match the "pageX" id. But even if that's the case, why should publisher (in this case HarperCollins) include these weird codes in the ebook? I checked both the ePub version and the Kindle version of the book and both formats have these weird codes.

2. How can I find all other books with the same weird formatting issues (unnecessary line breaks, unnecessary change in font size)

3. What's the best/fastest/easiest/automatic way to fix these formatting issues?

4. Why does my Kobo interpret these codes as a place to change text size or do a line break?
Attached Files
File Type: zip 9780061974151_Chapter_1.xhtml.zip (11.3 KB, 269 views)

Last edited by droopy; 06-09-2020 at 11:20 PM.
droopy is offline   Reply With Quote