Register Guidelines E-Books Search Today's Posts Mark Forums Read

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

Notices

Reply
 
Thread Tools Search this Thread
Old 08-07-2011, 07:26 AM   #1
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 65,021
Karma: 43118253
Join Date: Nov 2006
Location: UK
Device: Kindle Voyage, iPad Mini, iPhone 4, MS Surface Pro, N7
Removing space between paragraphs in a Mobi book

I've bought a commercial Amazon eBook, which has all its paragraphs double-spaced. Doing a Mobi-to-Mobi conversion and selecting the "Remove space between paragraphs" option does not change this.

Looking at the HTML code, the problem is self-evident: there is a:

Code:
<br class="calibre4"></br>
between each paragraph.

Is there any way that I can remove this in Calibre?

Thanks!
HarryT is online now   Reply With Quote
Old 08-07-2011, 07:42 AM   #2
itimpi
Wizard
itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.
 
Posts: 4,094
Karma: 780247
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
You could use "Search and Replace" facility under the Conversion settings to replace every occurrence of that sequence with an empty string.
itimpi is offline   Reply With Quote
 
Advertisement
Old 08-07-2011, 07:50 AM   #3
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 65,021
Karma: 43118253
Join Date: Nov 2006
Location: UK
Device: Kindle Voyage, iPad Mini, iPhone 4, MS Surface Pro, N7
Thanks - that worked . Appreciate the help!
HarryT is online now   Reply With Quote
Old 08-07-2011, 07:57 AM   #4
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 65,021
Karma: 43118253
Join Date: Nov 2006
Location: UK
Device: Kindle Voyage, iPad Mini, iPhone 4, MS Surface Pro, N7
What I finished up doing was to replace:

Code:
/p><br/><p
by:

Code:
/p><p
so as to only remove single blanks while leaving the multiple blanks used for scene changes, chapter starts, etc.
HarryT is online now   Reply With Quote
Old 08-07-2011, 10:44 AM   #5
dwig
Guru
dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.
 
dwig's Avatar
 
Posts: 984
Karma: 1382338
Join Date: Dec 2004
Location: Paradise (Key West, FL)
Device: Current:Dell Venue 8 Pro, Kindle 3/WiFi - Retired:Clie UX50, T415, ...
FWIW: I had a similar issue with PG book last night. I wanted a MOBI file and didn't want to mess with my own conversion from their HTML. PG's ePub was a mess so I downloaded the MOBI which had spaces between the paragraphs.

I did a MOBI>EPUB and edited in Sigil to fix several small issues and found the space between paragraphs to be created using a styled paragraph containing a NBSP. It was on 3 lines and Sigil's Search&Replace couldn't handle finding a match (failed to deal with the line ending??) and I wasn't up to creating a successful RegEx.

When I reconverted EPUB>MOBI with Calibre, its legacy "remove spaces between paragraphs" (Look & Feel tab) failed to work. I then tried the new one on the Heuristic Processing tab which did the trick. Apparently the two use somewhat different logic.

Calibre is like a Swiss Army knife. If one blade isn't the right tool another probably is.
dwig is offline   Reply With Quote
Old 08-07-2011, 11:24 AM   #6
ldolse
Wizard
ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.
 
Posts: 1,337
Karma: 123455
Join Date: Apr 2009
Location: Malaysia
Device: PRS-650, iPhone
The option under look and feel only affects css/styles, it doesn't change html. The option under Heuristics is designed to handle dwig's use case, as heuristics does muck with the html. For some documents both can be useful. Harry's use case is not covered by either feature, as abuse of <br> tags is 'relatively' uncommon, though I'm seeing it more frequently in mobi docs.
ldolse is offline   Reply With Quote
Old 08-07-2011, 11:37 AM   #7
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 65,021
Karma: 43118253
Join Date: Nov 2006
Location: UK
Device: Kindle Voyage, iPad Mini, iPhone 4, MS Surface Pro, N7
The annoying thing is that it's a completely unnecessary abuse. Mobi provides a documented method of adjusting paragraph spacing.
HarryT is online now   Reply With Quote
Old 08-07-2011, 11:42 AM   #8
theducks
Grand Sorcerer
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: 15,098
Karma: 5939999
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Quote:
Originally Posted by HarryT View Post
The annoying thing is that it's a completely unnecessary abuse. Mobi provides a documented method of adjusting paragraph spacing.
Amen!
theducks is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
space between paragraphs gatorman Sigil 3 01-07-2011 11:17 AM
Ragged right / space between paragraphs Oldpilot Sigil 5 11-11-2010 08:59 PM
Is there any way to remove space between paragraphs? kabloooie Calibre 6 11-03-2010 09:32 AM
How to reduce indents without "removing space between paragraphs" Skydog Calibre 5 06-05-2010 01:58 AM
Unwanted space between paragraphs superanima Calibre 3 10-14-2009 03:28 PM


All times are GMT -4. The time now is 07:33 AM.


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