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 09-06-2014, 11:07 AM   #1
Arkadian
Connoisseur
Arkadian began at the beginning.
 
Posts: 96
Karma: 10
Join Date: Mar 2014
Device: none
How to alter empty lines thickness and indents

Hi there,

I am inserting some empty lines here and there using <br> (crude? perhaps, but I know no better ). This is needed especially when dealing with lists as converting from docx (from LO) to epub they all seem to get a git too crammed. However a full line is a bit too much. Can I insert something like 1/2 or 3/4 line?

The same with indents... I have created an inline ToC within Calibre (the one created using LO got all messed up and got tired wasting time on it), but would like to reduce the indents. Is there an easy way?

TIA
Arkadian is offline   Reply With Quote
Old 09-06-2014, 12:04 PM   #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: 29,839
Karma: 54837878
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
IMHO
It is time to learn some basic HTML and CSS

Assigning a unique set of styling to these problem blocks

margin-top: .75em;
and/or
margin-bottom: .75em;
adjust those margins to 75% of the current font (scales with the viewer zoom)

text-indent: adjusts the indent

I use em values to allow scaling rather than fixed dimensions
theducks is online now   Reply With Quote
Advert
Old 09-06-2014, 12:26 PM   #3
Arkadian
Connoisseur
Arkadian began at the beginning.
 
Posts: 96
Karma: 10
Join Date: Mar 2014
Device: none
Quote:
Originally Posted by theducks View Post
IMHO
It is time to learn some basic HTML and CSS
You are quite right... but I was hoping I wold be able to do it simply altering the existing css... It would take me some time to get the basics (I would think)
Arkadian is offline   Reply With Quote
Old 09-06-2014, 12:32 PM   #4
DrChiper
Bookish
DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.
 
DrChiper's Avatar
 
Posts: 910
Karma: 1803094
Join Date: Jun 2011
Device: PC, t1, t2, t3, aura 2 v1, clara HD, Libra 2, Nxtpaper 11
Time spend on learning is a sound investment for the future. Google can be your friend, and there are of course plenty books for studying.
DrChiper is offline   Reply With Quote
Old 09-06-2014, 01:32 PM   #5
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: 29,839
Karma: 54837878
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 Arkadian View Post
You are quite right... but I was hoping I wold be able to do it simply altering the existing css... It would take me some time to get the basics (I would think)
Most CSS for basic e-book use is butt-simple (compared to a web page) :

class="some_name" is where the real styling work is done


Find some books in the MR Library (3 men in a boat is advanced stuff)
Look at the code for what you like

find the class name in the CSS
fiddle with a SINGLE attribute value and note what happens in the Live Preview pane.

Borrow code snippets from PD/open sources (CSS in other books my be covered by copyrights if using for other than you personal enjoyment)

HTMLdog has good tutorials (remember. Not all CSS applies to EPUB)
theducks is online now   Reply With Quote
Advert
Old 09-07-2014, 07:03 AM   #6
Arkadian
Connoisseur
Arkadian began at the beginning.
 
Posts: 96
Karma: 10
Join Date: Mar 2014
Device: none
Not quite as easy as all that...

1) the varying thickness of empty lines is not always needed (I think there is a problem with LO in the way it deals with this kind of stuff... it has been driving me demented), so I would need a solution that I can apply on an ad hoc basis

2) I am not sure where the indents for the ToC are defined... The only thing I can adjust using the existing css is the first indent. The others seem to be preset. I know they must be set somewhere, but couldn't find where...
Arkadian is offline   Reply With Quote
Old 09-07-2014, 09:14 AM   #7
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,598
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by Arkadian View Post
1) the varying thickness of empty lines is not always needed (I think there is a problem with LO in the way it deals with this kind of stuff... it has been driving me demented), so I would need a solution that I can apply on an ad hoc basis
@Arkadian - are you using LO Styles & Formatting, My rules of thumb for DOCX, include NO Tabs and NO blank paragraphs and use Styles/Formatting for vertical spacing and horizontal alignment?

BR
BetterRed is offline   Reply With Quote
Old 09-07-2014, 09:46 AM   #8
Arkadian
Connoisseur
Arkadian began at the beginning.
 
Posts: 96
Karma: 10
Join Date: Mar 2014
Device: none
Quote:
Originally Posted by BetterRed View Post
@Arkadian - are you using LO Styles & Formatting, My rules of thumb for DOCX, include NO Tabs and NO blank paragraphs and use Styles/Formatting for vertical spacing and horizontal alignment?

BR
Yes, indeed you are right (or at least I think so...). Over time I have changed many things trying to use "styles and formatting", but even then it doesn't always work. Even within the docx itself there are instances where I cannot get what I want in random places, as if there is some underlying style I cannot get rid of.
One example is the blasted ToC. I just canNOT get it to work and I have given up on that (but now I am using the one graciously included in calibre )
Another one is the headings... there are times when they just do what the bl°°dy like

Said that, no... lists have not been defined using S&F, but I don't want to do it now, because I am already deep in correcting the epub and wouldn't want to have to start afresh Instead I just want to get rid of this blasted ebook
Arkadian is offline   Reply With Quote
Old 09-07-2014, 10:53 PM   #9
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: 74,227
Karma: 129333564
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
My solution... don't use Word at all. Use a good text editor like Notepad++. Use text markup to denote styles and other formatting you want. Then import into Sigil and work from there. You'll have very clean code that does what you want.

But since you are into editing the ePub, what I do with a Word sourced ePub that's full of crud is to start off by getting rid of the crap in the CSS and then to clean up the styles so you don't need different styles to do the same thing. Also, go through the text and get rid of any unneeded spans and other garbage from Word. Save often and keep backups. Make the code as clean as you possibly can as that will help you should you need/want to edit anything. Going through all those msonormal type styles is a pain. And then there is the rather long list of fonts and colors and other junk that you can get. keep at it and get rid of anything that's not needed and you will win the battle.

Last edited by JSWolf; 09-07-2014 at 10:57 PM.
JSWolf is online now   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
pdf to epub - Kobo - many empty lines corona Conversion 1 10-03-2013 04:26 PM
Should there be any empty lines or paragraphs fructal Sigil 3 07-13-2012 04:07 AM
Empty lines in epub without apparent reason sinusLog Conversion 6 09-30-2011 01:19 AM
Can Calibre detect empty Lines? gucky Conversion 2 09-25-2011 03:43 AM
Indents and lines between paragraphs James_Wilde ePub 12 12-17-2010 06:21 PM


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


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