Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 11-10-2013, 10:56 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: 85,544
Karma: 93383099
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
Enhancement request for "remove space between paragraphs"

Hi Kovid,

The "remove space between paragraphs" feature of Calibre is probably the feature that I use most often when converting books. It works extremely well almost all the time, but there would be one "tweak" that would make it perfect for me: would it be feasible to make it a little smarter, such that it didn't indent a paragraph that immediately followed on from a chapter heading, or other title?

I'd be grateful if you could give this request some consideration for future development.

Thanks!
HarryT is offline   Reply With Quote
Old 11-10-2013, 11:29 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: 31,057
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by HarryT View Post
Hi Kovid,

The "remove space between paragraphs" feature of Calibre is probably the feature that I use most often when converting books. It works extremely well almost all the time, but there would be one "tweak" that would make it perfect for me: would it be feasible to make it a little smarter, such that it didn't indent a paragraph that immediately followed on from a chapter heading, or other title?

I'd be grateful if you could give this request some consideration for future development.

Thanks!
Harry
Have you tried using an additional CSS in the conversion?
Something like:

Code:
h3+p,h1+p,h2+p {text-indent: 0; }
theducks is offline   Reply With Quote
Advert
Old 11-10-2013, 11:36 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: 85,544
Karma: 93383099
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
No, I haven't. I'll give that a go - thanks for the suggestion.
HarryT is offline   Reply With Quote
Old 11-10-2013, 02:07 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: 31,057
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by HarryT View Post
No, I haven't. I'll give that a go - thanks for the suggestion.
Note: I assumed H#+P
but some books use DIV instead of P

or

even more difficult
H# followed by a DIV (chapter body) wrapper for the P or DIV paragraphs
In those cases

One of the reasons I just use Sigil to touch up a basic conversion.
Look, then do what is needed for that book
theducks is offline   Reply With Quote
Old 11-10-2013, 08:37 PM   #5
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: 45,351
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
I'm not sure how robust that can be made, without major efforts. As theducks points out, "preceded by" is not well defined in html. For example, all of the following snippets will render as paragraphs immediately preceded by a title:

Code:
<h1>title</h1>
<p>...

<h1>title</h1>
<div><div><p>

<h1>title</h1>
<table><td><p>...

<h1>t</h1>
<div><img src="blank.png"><p>

<h1>title</h1>
<p style="display:none or visibility:hidden"><p>...
So while it could be made to work for the common case of heading tag followed by simple <p> of <div>, it wont be particularly robust. And then there is the problem that it will require a separate option to control, since there will be people that like the current behavior.
kovidgoyal is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to remove white space between paragraphs for iPad? kabloooie Conversion 4 05-28-2012 05:11 AM
Feature Request: configurable space setting for "Insert blank line" in "Look & Feel" therealjoeblow Calibre 15 07-25-2011 03:14 PM
Is there any way to remove space between paragraphs? kabloooie Calibre 6 11-03-2010 08:32 AM
How to reduce indents without "removing space between paragraphs" Skydog Calibre 5 06-05-2010 12:58 AM
remove space between paragraphs-yes the box is checked Blurr Calibre 1 12-23-2009 06:34 AM


All times are GMT -4. The time now is 01:46 AM.


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