09-06-2014, 11:07 AM | #1 |
Connoisseur
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 |
09-06-2014, 12:04 PM | #2 |
Well trained by Cats
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 |
Advert | |
|
09-06-2014, 12:26 PM | #3 |
Connoisseur
Posts: 96
Karma: 10
Join Date: Mar 2014
Device: none
|
|
09-06-2014, 12:32 PM | #4 |
Bookish
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.
|
09-06-2014, 01:32 PM | #5 | |
Well trained by Cats
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:
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) |
|
Advert | |
|
09-07-2014, 07:03 AM | #6 |
Connoisseur
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... |
09-07-2014, 09:14 AM | #7 | |
null operator (he/him)
Posts: 20,598
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
BR |
|
09-07-2014, 09:46 AM | #8 | |
Connoisseur
Posts: 96
Karma: 10
Join Date: Mar 2014
Device: none
|
Quote:
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 |
|
09-07-2014, 10:53 PM | #9 |
Resident Curmudgeon
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. |
|
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 |