03-04-2012, 07:53 PM | #1 |
Groupie
Posts: 159
Karma: 24430
Join Date: Mar 2012
Location: Australia
Device: Nexus 7"
|
Help needed with codes
I haven't had any replies to a previous thread, maybe because it didn't make much sense to anyone. This one might make things clearer.
My reader shows no indent at the start of a paragraph or dialog line, so I'd like to know how to insert one, as well as force a blank line after each paragraph. I selected the Calibre option to add a blank line, but this does show up in my reader. Studying the calibre converted code, each new paragraph is defined like this: <p class="calibre36"><span class="calibre7"> paragraph text </span></p> A blank line follows the end of the paragraph - ie no code. Can anyone help? Thanks! |
03-04-2012, 08:55 PM | #2 | |
Well trained by Cats
Posts: 29,796
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
Add or edit the following: text-indent: 2em; margin-top: .5em; margin-bottom: .5em; Change the numbers to taste Margin top and botto will affect spacing between paragraphs indent, Doh! |
|
03-05-2012, 12:41 PM | #3 |
reader
Posts: 6,975
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3, Kobo Glo HD
|
Use Extra CSS (Properties ->Conversion - Common Options) to do this to every paragraph during conversion. For example:
Code:
p { text-indent: 2em; margin-top: .5em; margin-bottom: .5em; } Last edited by wallcraft; 03-05-2012 at 12:45 PM. |
03-05-2012, 09:13 PM | #4 |
Groupie
Posts: 159
Karma: 24430
Join Date: Mar 2012
Location: Australia
Device: Nexus 7"
|
Thanks to both of you. I had already tried some Extra CSS codes that Kovid posted in another thread, and tried wallcraft's too, but neither lot works. Adding indents manually to the calibre class as theducks suggested doesn't work either. Free epubbooks epubs show indents perfectly, so I have NO idea what the difference is. I studied the code from both lots of CSS but don't know enough about it (beyond obvious common sense) to decipher a fix.
Interestingly, every time I re-convert a mobi file to epub, alibre assigns a different code preceding the paragraph. As the mobi file is fixed, that's a little strange. Anyway, I will keep messing around until I am TOTALLY demented and see if I can figure something out. Thanks again. |
03-05-2012, 10:04 PM | #5 | |
Well trained by Cats
Posts: 29,796
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
Just to dot the i's Look at the Links section (in CV) on a document and make sure the correct stylesheet is being called (I have yet to see a Calibre conversion stylesheet incorrectly called, but check.) Something is blocking/overriding that code. The attribute last call takes precedence. |
|
03-06-2012, 07:59 AM | #6 | |
Groupie
Posts: 159
Karma: 24430
Join Date: Mar 2012
Location: Australia
Device: Nexus 7"
|
Quote:
The Calibre code after conversion is showing indents, top-bottom margins, what look like correct <p> texttexttext </p> codes etc., so I am truly stumped. Other things that are not being read correctly are drop caps, chapter numbers aren't always centered, no lines/space below the chapter title etc. In other words I am basically looking at no style/formatting other than paragraph breaks. (TOC and chapters are fine.) Free epub ebooks show indents in my reader, so it is a Calibre+Geriatric Operator conversion issue. I really do hate to let something like this beat me, but I'm close to surrender. |
|
03-06-2012, 10:44 AM | #7 | |
Well trained by Cats
Posts: 29,796
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
1) You can reset ALL default Preference using the button in the Upper Right 2) Conversion settings that have been used are stored with the book and can be cleared with the reset (to current defaults) with a button on the conversions form. You can make FURTHER (fine tune) adjust to the settings from preferences, these will only apply to this book. To get the book to again, convert with defaults, you need to do #1 THEN #2 to be back at 'factory default' settings. |
|
03-06-2012, 10:43 PM | #8 | |
Groupie
Posts: 159
Karma: 24430
Join Date: Mar 2012
Location: Australia
Device: Nexus 7"
|
Quote:
|
|
03-07-2012, 06:07 AM | #9 | |
Groupie
Posts: 159
Karma: 24430
Join Date: Mar 2012
Location: Australia
Device: Nexus 7"
|
Quote:
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Hiding codes | Goldenrod | ePub | 2 | 02-28-2012 04:06 PM |
Unutterably Silly language codes | Nate the great | Lounge | 6 | 08-04-2009 04:46 PM |