|
|
Thread Tools | Search this Thread |
09-24-2024, 10:13 AM | #1 |
Junior Member
Posts: 7
Karma: 32220
Join Date: Sep 2024
Device: Kobo Libra
|
EPUB e-book bought on Kobo website - random word spacings when displayed on Calibre
Hi,
I bought this book on the Kobo website, and I'd prefer to read it on my PC as I'm using it to prepare an exam. The layout is great on my reader, but after downloading it from ADE and importing it to Calibre, it's barely readable, the layout is messy, with a lot of unneeded spaces between words. I'm a complete newbie to Calibre, but I tried and checked the HTML code using the editor, and I noticed that whenever there's a word in bold type or some kind of special character, there's a superfluous space before and after. Also these spaces are shown in the code as "<div class="pcalibre1 pcalibre t41">. And this "t41" goes all the way to "T9260" by the end of the book. Any idea how I could fix all that? |
09-24-2024, 11:01 AM | #2 |
Well trained by Cats
Posts: 30,432
Karma: 58055868
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
What is the CSS for those "t###" selectors?
Spacing between words, might be JUSTIFICATION, padding to fill the line. Folk that hate the gaps, usually prefer Left Justification (AKA Ragged Right) Another possibility is the CSS has some weird Letterspacing set (My Kobo does spaces wrong and runs words together. Someone may have tried to force it. Browser based viewers like Calibre process letterspacing correctly) |
Advert | |
|
09-24-2024, 08:51 PM | #3 | ||
Junior Member
Posts: 7
Karma: 32220
Join Date: Sep 2024
Device: Kobo Libra
|
Thanks for your reply.
Changing the alignment requires a conversion, right? I tried converting to EPUB with the option "Left Align" ticked but the resulting file still shows the same defects... The CSS in "stylesheet.css" for the "t" selectors is the the following: Quote:
Quote:
If so, why are there so many of them? |
||
09-24-2024, 09:24 PM | #4 |
Well trained by Cats
Posts: 30,432
Karma: 58055868
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Garbage original code. Somethin is slightly different in each.
Calibre scans the book, building a class list for each unique use. Then it assigns it where called for. I have seen OCR come out with an excess (nothing like yours), were a margin is 1 or 2 pt different as a side effect of the document OCR |
09-24-2024, 09:43 PM | #5 |
Wizard
Posts: 1,348
Karma: 6794938
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
|
Looks like the book needs to be completely re-coded.
|
Advert | |
|
09-24-2024, 10:02 PM | #6 |
creator of calibre
Posts: 44,468
Karma: 24044628
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Convert it to MOBI and then convert the MOBI back to EPUB that will likely discard all the problematic CSS automatically.
|
09-25-2024, 02:30 PM | #7 |
Junior Member
Posts: 7
Karma: 32220
Join Date: Sep 2024
Device: Kobo Libra
|
I've tried converting the EPUB to MOBI, but the resulting file is...empty, it mostly consists of black pages along with a bunch of white ones with some lines...
I'm grateful for your inputs, any other idea? Is there anything I could provide you with to come up with a solution? |
09-25-2024, 03:15 PM | #8 |
Grand Sorcerer
Posts: 12,691
Karma: 74532212
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
How about sharing the name of the book..
|
09-25-2024, 04:24 PM | #9 |
creator of calibre
Posts: 44,468
Karma: 24044628
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Then it will almost certainly be a fixed layout book. These arent supported in calibre
|
09-25-2024, 05:10 PM | #10 |
Resident Curmudgeon
Posts: 76,256
Karma: 136006010
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
09-25-2024, 05:16 PM | #11 | |
Junior Member
Posts: 7
Karma: 32220
Join Date: Sep 2024
Device: Kobo Libra
|
Quote:
Fondamentaux - La Constitution commentée 2023-2024 Hachette Éducation Release Date: August 30, 2023 Imprint: Hachette Éducation ISBN: 9782017235576 Language: French Download options: EPUB 3 (Adobe DRM) Here's also a screenshot of what it looks like in Calibre reader: Last edited by garland667; 09-25-2024 at 05:19 PM. |
|
09-25-2024, 06:05 PM | #12 |
Wizard
Posts: 1,348
Karma: 6794938
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
|
Maybe you could scramble the book... https://www.mobileread.com/forums/sh...d.php?t=267998
Then upload the scrambled version. |
09-25-2024, 06:35 PM | #13 | |
Junior Member
Posts: 7
Karma: 32220
Join Date: Sep 2024
Device: Kobo Libra
|
Quote:
Fondamentaux - La Constitution commentee 2 - Simon-Louis Formery_scrambled.epub |
|
09-25-2024, 08:57 PM | #14 |
Bibliophagist
Posts: 40,267
Karma: 156981944
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
I took a look at a sample of the book I downloaded from Kobo.
Code:
<meta property="rendition:layout">pre-paginated</meta> <meta property="rendition:orientation">auto</meta> <meta property="rendition:spread">auto</meta> Code:
<meta name="viewport" content="width=1508, height=2048"/> Converting it to any other format is not an easy task. You will notice that every page in the book has it's own xhtml file and everything on that page is given a fixed location within that viewport. You can use Thorium on your computer or sending it to a Kobo ereader as a kepub file to read the FLO book. Your scrambled version corrupted quite a bit of the fixed layout information and is unlikely to be viewable on anything. I'm not how well ADE 4.5 will deal with this since it's support for FLO is not state of the art. Last edited by DNSB; 09-25-2024 at 08:59 PM. |
09-25-2024, 10:00 PM | #15 |
Grand Sorcerer
Posts: 12,691
Karma: 74532212
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
Have you thought of using Kobo Desktop to read this on your PC? Kobo Desktop
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
No Book Cover is displayed in the reading mode (on Calibre and Kobo Mini) | Shurup | Calibre | 4 | 01-23-2013 06:06 AM |
How to get a recently bought Kobo book into Calibre for reading | Heathside Boy | Library Management | 2 | 04-02-2012 05:02 AM |
bought a kobo book, can't see it on Calibre | purple_fishy | General Discussions | 2 | 05-30-2011 05:33 PM |
Epub reader - end of book not displayed. | Moonraker | EPUBReader | 11 | 06-28-2010 11:19 AM |