Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 09-24-2024, 10:13 AM   #1
garland667
Junior Member
garland667 does all things with Zen-like beautygarland667 does all things with Zen-like beautygarland667 does all things with Zen-like beautygarland667 does all things with Zen-like beautygarland667 does all things with Zen-like beautygarland667 does all things with Zen-like beautygarland667 does all things with Zen-like beautygarland667 does all things with Zen-like beautygarland667 does all things with Zen-like beautygarland667 does all things with Zen-like beautygarland667 does all things with Zen-like beauty
 
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?
garland667 is offline   Reply With Quote
Old 09-24-2024, 11:01 AM   #2
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 30,378
Karma: 58053698
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)
theducks is offline   Reply With Quote
Advert
Old 09-24-2024, 08:51 PM   #3
garland667
Junior Member
garland667 does all things with Zen-like beautygarland667 does all things with Zen-like beautygarland667 does all things with Zen-like beautygarland667 does all things with Zen-like beautygarland667 does all things with Zen-like beautygarland667 does all things with Zen-like beautygarland667 does all things with Zen-like beautygarland667 does all things with Zen-like beautygarland667 does all things with Zen-like beautygarland667 does all things with Zen-like beautygarland667 does all things with Zen-like beauty
 
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:
.t1 {
-moz-font-feature-settings: "liga" 0;
-ms-transform: matrix(0.759826, 0, 0, 0.759826, 0, 0);
-ms-transform-origin: 0 100%;
-webkit-transform: matrix(0.759826, 0, 0, 0.759826, 0, 0);
-webkit-transform-origin: 0 100%;
border-bottom: 0;
border-top: 0;
bottom: 712.386738px;
color: rgb(0, 0, 0);
display: block;
font-family: ff2;
font-size: 1.33333em;
font-style: normal;
font-weight: normal;
height: 31.898749px;
left: 366.766739px;
letter-spacing: 0;
line-height: 1.2;
margin-bottom: 0;
margin-top: 0;
padding-bottom: 0;
padding-top: 0;
position: absolute;
text-indent: 1.5em;
text-shadow: -0.015em 0 transparent, 0 0.015em transparent, 0.015em 0 transparent, 0 -0.015em transparent;
transform: matrix(0.759826, 0, 0, 0.759826, 0, 0);
transform-origin: 0 100%;
visibility: visible;
white-space: pre-wrap;
width: 7545px;
word-spacing: 0;
Similarly, there are 4596 ".pcalibre" entries, which include this stuff:
Quote:
}
.pcalibre4596 {
-moz-font-feature-settings: "liga" 0;
-ms-transform: matrix(0.737031, 0, 0, 0.759826, 0, 0);
-ms-transform-origin: 0 100%;
-webkit-transform: matrix(0.737031, 0, 0, 0.759826, 0, 0);
-webkit-transform-origin: 0 100%;
border-bottom: 0;
border-top: 0;
bottom: 491.460946px;
color: rgb(0, 0, 0);
display: block;
font-family: ffe;
font-size: 1.33333em;
font-style: normal;
font-weight: normal;
height: 31.05px;
left: 990.830985px;
letter-spacing: -0.375px;
line-height: 1.2;
margin-bottom: 0;
margin-top: 0;
padding-bottom: 0;
padding-top: 0;
position: absolute;
text-indent: 1.5em;
text-shadow: -0.015em 0 transparent, 0 0.015em transparent, 0.015em 0 transparent, 0 -0.015em transparent;
transform: matrix(0.737031, 0, 0, 0.759826, 0, 0);
transform-origin: 0 100%;
visibility: visible;
white-space: pre-wrap;
width: 7545px;
word-spacing: 0.825px;
}
If I understand well, those are parameters that define the characteristics of each character in the text, like font, alignement, size...?

If so, why are there so many of them?
garland667 is offline   Reply With Quote
Old 09-24-2024, 09:24 PM   #4
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 30,378
Karma: 58053698
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
theducks is offline   Reply With Quote
Old 09-24-2024, 09:43 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,312
Karma: 6700864
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
Looks like the book needs to be completely re-coded.
Karellen is offline   Reply With Quote
Advert
Old 09-24-2024, 10:02 PM   #6
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: 44,356
Karma: 23708270
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.
kovidgoyal is online now   Reply With Quote
Old 09-25-2024, 02:30 PM   #7
garland667
Junior Member
garland667 does all things with Zen-like beautygarland667 does all things with Zen-like beautygarland667 does all things with Zen-like beautygarland667 does all things with Zen-like beautygarland667 does all things with Zen-like beautygarland667 does all things with Zen-like beautygarland667 does all things with Zen-like beautygarland667 does all things with Zen-like beautygarland667 does all things with Zen-like beautygarland667 does all things with Zen-like beautygarland667 does all things with Zen-like beauty
 
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?
garland667 is offline   Reply With Quote
Old 09-25-2024, 03:15 PM   #8
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.
 
PeterT's Avatar
 
Posts: 12,613
Karma: 74358024
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
How about sharing the name of the book..
PeterT is offline   Reply With Quote
Old 09-25-2024, 04:24 PM   #9
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: 44,356
Karma: 23708270
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Then it will almost certainly be a fixed layout book. These arent supported in calibre
kovidgoyal is online now   Reply With Quote
Old 09-25-2024, 05:10 PM   #10
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: 75,917
Karma: 134368292
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 kovidgoyal View Post
Then it will almost certainly be a fixed layout book. These arent supported in calibre
I agree that it's a fixed layout ePub.
JSWolf is offline   Reply With Quote
Old 09-25-2024, 05:16 PM   #11
garland667
Junior Member
garland667 does all things with Zen-like beautygarland667 does all things with Zen-like beautygarland667 does all things with Zen-like beautygarland667 does all things with Zen-like beautygarland667 does all things with Zen-like beautygarland667 does all things with Zen-like beautygarland667 does all things with Zen-like beautygarland667 does all things with Zen-like beautygarland667 does all things with Zen-like beautygarland667 does all things with Zen-like beautygarland667 does all things with Zen-like beauty
 
Posts: 7
Karma: 32220
Join Date: Sep 2024
Device: Kobo Libra
Quote:
How about sharing the name of the book..
Of course! I didn't think it could help.

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:
Click image for larger version

Name:	Screenshot_2024-09-25_18-04-25.png
Views:	28
Size:	228.5 KB
ID:	211022

Last edited by garland667; 09-25-2024 at 05:19 PM.
garland667 is offline   Reply With Quote
Old 09-25-2024, 06:05 PM   #12
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,312
Karma: 6700864
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.
Karellen is offline   Reply With Quote
Old 09-25-2024, 06:35 PM   #13
garland667
Junior Member
garland667 does all things with Zen-like beautygarland667 does all things with Zen-like beautygarland667 does all things with Zen-like beautygarland667 does all things with Zen-like beautygarland667 does all things with Zen-like beautygarland667 does all things with Zen-like beautygarland667 does all things with Zen-like beautygarland667 does all things with Zen-like beautygarland667 does all things with Zen-like beautygarland667 does all things with Zen-like beautygarland667 does all things with Zen-like beauty
 
Posts: 7
Karma: 32220
Join Date: Sep 2024
Device: Kobo Libra
Quote:
Originally Posted by Karellen View Post
Maybe you could scramble the book... https://www.mobileread.com/forums/sh...d.php?t=267998
Then upload the scrambled version.
Done! Here's the scrambled version of the book.

Fondamentaux - La Constitution commentee 2 - Simon-Louis Formery_scrambled.epub
garland667 is offline   Reply With Quote
Old 09-25-2024, 08:57 PM   #14
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: 39,523
Karma: 154108302
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>
I found the above lines in the content.opf file which says that this is a ePub 3 fixed layout book.

Code:
<meta name="viewport" content="width=1508, height=2048"/>
This viewport size declaration in each of the xhtml files tells you the same thing.

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.
DNSB is offline   Reply With Quote
Old 09-25-2024, 10:00 PM   #15
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.
 
PeterT's Avatar
 
Posts: 12,613
Karma: 74358024
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
PeterT is offline   Reply With Quote
Reply


Forum Jump

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


All times are GMT -4. The time now is 03:21 AM.


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