Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 07-06-2020, 01:58 PM   #1
franklekens
Addict
franklekens ought to be getting tired of karma fortunes by now.franklekens ought to be getting tired of karma fortunes by now.franklekens ought to be getting tired of karma fortunes by now.franklekens ought to be getting tired of karma fortunes by now.franklekens ought to be getting tired of karma fortunes by now.franklekens ought to be getting tired of karma fortunes by now.franklekens ought to be getting tired of karma fortunes by now.franklekens ought to be getting tired of karma fortunes by now.franklekens ought to be getting tired of karma fortunes by now.franklekens ought to be getting tired of karma fortunes by now.franklekens ought to be getting tired of karma fortunes by now.
 
franklekens's Avatar
 
Posts: 398
Karma: 3421956
Join Date: Sep 2009
Device: various Kobo's, Onyx Note2, Pocketbook 360, Kindle Keyboard
spacing between paragraphs added after book conversion

I have a book I bought on Amazon, imported into Calibre, and then converted to epub to read on my Kobo reader.
In the conversion dialogue, the "remove spacing between paragraphs" is checked. Not even necessary in this case, since the book didn't originally contain any.

Yet the resulting epub does have spacing between paragraphs. On my Kobo reader and in Calibre's reader it looks like in the first picture.
However, if I look at the epub, the text is displayed fine, withouth space between the paragraphs, as in the second screenshot.

Is there something in the CSS that could cause this that I should tweak manually? (I've added the contents of the css a a text file, just in case.)

MTIA.
Attached Thumbnails
Click image for larger version

Name:	spacing 1.jpg
Views:	122
Size:	312.0 KB
ID:	180442   Click image for larger version

Name:	spacing 2.jpg
Views:	132
Size:	554.9 KB
ID:	180443  
Attached Files
File Type: txt spacing .txt (5.8 KB, 107 views)
franklekens is offline   Reply With Quote
Old 07-06-2020, 02:27 PM   #2
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,763
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Use the KindleUnpack plugin to shift from KF8 to ePub. Then in the Calibre editor, run epubcheck (if you don't have the plugin, get it) and then fix any errors that show. This will give you as close a conversion as possible.
JSWolf is offline   Reply With Quote
Advert
Old 07-06-2020, 03:12 PM   #3
hobnail
Running with scissors
hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.
 
Posts: 1,587
Karma: 14328510
Join Date: Nov 2019
Device: none
The paragraphs are tagged with the classes s12 and c5. So look for those in the CSS and typically the spacing is caused by setting margin-top and/or margin-bottom to something not 0.
hobnail is offline   Reply With Quote
Old 07-06-2020, 04:54 PM   #4
franklekens
Addict
franklekens ought to be getting tired of karma fortunes by now.franklekens ought to be getting tired of karma fortunes by now.franklekens ought to be getting tired of karma fortunes by now.franklekens ought to be getting tired of karma fortunes by now.franklekens ought to be getting tired of karma fortunes by now.franklekens ought to be getting tired of karma fortunes by now.franklekens ought to be getting tired of karma fortunes by now.franklekens ought to be getting tired of karma fortunes by now.franklekens ought to be getting tired of karma fortunes by now.franklekens ought to be getting tired of karma fortunes by now.franklekens ought to be getting tired of karma fortunes by now.
 
franklekens's Avatar
 
Posts: 398
Karma: 3421956
Join Date: Sep 2009
Device: various Kobo's, Onyx Note2, Pocketbook 360, Kindle Keyboard
Thanks. But it's really weird. All it says for s12 is:

.s12{
-webkit-hyphens: none;


font-size: 87.5000%;
font-style: normal;
font-variant: normal;
font-weight: normal;
hyphens: none;
letter-spacing: 0.0000em;
margin-bottom: 0.0000%;
margin-top: 0.0000%;
padding-left: 0.0000%;
padding-right: 0.0000%;
text-align: left;
text-decoration: none;
text-indent: 3.0285%;
text-transform: none;
}

Seems like a zero margin is specified already.

And for c5 -- it says nothing! Just this:

.c5{

}


Also, incidentally, why the discrepancy in the preview of the epub editor and the epub reader within Calibre?
franklekens is offline   Reply With Quote
Old 07-06-2020, 05:45 PM   #5
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,252
Karma: 16544692
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
Quote:
Originally Posted by franklekens View Post
Is there something in the CSS that could cause this that I should tweak manually? (I've added the contents of the css a a text file, just in case.)
It's hard to be sure without access to the whole book but if it was mine I'd be suspicious of the <div> tag immediately after the <body> tag which has an inline style attribute.

It reads <div class="body" style="white-space: pre-wrap; line-break: strict;">. I can't think of any circumstances where I'd want to keep something like this.
jackie_w is offline   Reply With Quote
Advert
Old 07-07-2020, 04:12 AM   #6
franklekens
Addict
franklekens ought to be getting tired of karma fortunes by now.franklekens ought to be getting tired of karma fortunes by now.franklekens ought to be getting tired of karma fortunes by now.franklekens ought to be getting tired of karma fortunes by now.franklekens ought to be getting tired of karma fortunes by now.franklekens ought to be getting tired of karma fortunes by now.franklekens ought to be getting tired of karma fortunes by now.franklekens ought to be getting tired of karma fortunes by now.franklekens ought to be getting tired of karma fortunes by now.franklekens ought to be getting tired of karma fortunes by now.franklekens ought to be getting tired of karma fortunes by now.
 
franklekens's Avatar
 
Posts: 398
Karma: 3421956
Join Date: Sep 2009
Device: various Kobo's, Onyx Note2, Pocketbook 360, Kindle Keyboard
Thank you both.
I tried both remedies: removing the div tags seemed to help, and reimporting it from the Kindle and using the kindle unpack plugin also gave me a file without spacing between paragraphs.
franklekens is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
There's no spacing between paragraphs Tior500 Conversion 1 12-02-2019 10:18 AM
Touch Extra spacing between paragraphs on my e-books Aiden Barnes & Noble NOOK 8 12-11-2013 11:17 AM
Spacing between paragraphs not converting beccas716 Conversion 4 10-11-2013 10:25 AM
problem with spacing between paragraphs in ADE iain robinson ePub 12 06-23-2011 02:51 AM
Remove spacing between paragraphs doesn't. Djehuty Calibre 6 04-28-2009 04:53 AM


All times are GMT -4. The time now is 08:47 PM.


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