Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 01-18-2014, 05:53 AM   #1
elef
Junior Member
elef doesn't litterelef doesn't litter
 
Posts: 3
Karma: 110
Join Date: Jan 2014
Device: Kindle paperwhite
How to insert paragraph separators

Hi all, I'm trying to find a way to insert separators into e-books created with the converter (from txt files, mostly into .mobi format).
I have found one way of doing it: Add a line that only contains this:
----------
This is converted into a continuous horizontal line, which is fine for me. But there is a lot of wasted empty space after the line.
Like this:




I would like to pack text more tightly in order to get more text on the screen. So, is there any way to generate a similar horizontal line or other decent-looking separator element that is not followed by what is basically a blank line?
elef is offline   Reply With Quote
Old 01-18-2014, 11:25 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,939
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 elef View Post
Hi all, I'm trying to find a way to insert separators into e-books created with the converter (from txt files, mostly into .mobi format).
I have found one way of doing it: Add a line that only contains this:
----------
This is converted into a continuous horizontal line, which is fine for me. But there is a lot of wasted empty space after the line.
Like this:




I would like to pack text more tightly in order to get more text on the screen. So, is there any way to generate a similar horizontal line or other decent-looking separator element that is not followed by what is basically a blank line?
Those look similar to what Calibre calls soft scene breaks, A special Paragraph (found on the Conversion: Heuristic Process: tab of the conversion starting screen)

IMHO Paragraph Top (and bottom) Margins are the way to adjust the whitespace

To code a ( device robust) 74% width HR, 1/2em whitespace (in book editor)

Code:
usage: <hr class="hr74" />

Stylesheet: .hr74 {display block; margin: 0.5em 12%; text-align: center}
theducks is offline   Reply With Quote
Advert
Old 01-18-2014, 02:16 PM   #3
elef
Junior Member
elef doesn't litterelef doesn't litter
 
Posts: 3
Karma: 110
Join Date: Jan 2014
Device: Kindle paperwhite
Thanks.
Right now all I do is run this in the console:
ebook-convert.exe "inputfile.txt" "outputfile.mobi" [+author, title, language]
Ideally, I need a solution that involves just adding some command line options.

I had a quick look at the documentation at http://manual.calibre-ebook.com/cli/ebook-convert.html
The --remove-paragraph-spacing option seems to do the trick. I don't have my kindle at hand right now, but I think it will look OK. Maybe I will use --remove-paragraph-spacing-indent-size 0 to get rid of indents as well. BTW if I decide I want some spacing, just less than the original, am I out of luck? Because I can't see a command line option to specify paragraph spacing, just to eliminate it.
elef is offline   Reply With Quote
Old 01-18-2014, 05:54 PM   #4
elef
Junior Member
elef doesn't litterelef doesn't litter
 
Posts: 3
Karma: 110
Join Date: Jan 2014
Device: Kindle paperwhite
Update: --remove-paragraph-spacing --remove-paragraph-spacing-indent-size -1 gives exactly the output I was looking for.
elef is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
regex to add books; filenames with only underscores as separators anandkarthikeyan Library Management 8 01-15-2014 11:46 AM
Can't insert SD card channelswimmer Barnes & Noble NOOK 1 07-08-2013 03:50 PM
0.6 best way to insert hyperlinks?? phossler Sigil 16 11-21-2012 09:36 AM
Preference: Paragraph indent or a little paragraph spacing? 1611mac General Discussions 48 11-11-2011 12:43 AM
Insert a Picture? MickeyC Feedback 6 06-13-2011 12:39 PM


All times are GMT -4. The time now is 11:45 AM.


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