![]() |
#1 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
|
indent control
could the option to set an indent be unlinked from "remove blank lines".
i.e. I'd like to not tick remove blank lines and still be able to change the indent value via that screen? |
![]() |
![]() |
![]() |
#2 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,337
Karma: 123455
Join Date: Apr 2009
Location: Malaysia
Device: PRS-650, iPhone
|
use extra css:
p {text-indent:whatever;} |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
|
|
![]() |
![]() |
![]() |
#4 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,337
Karma: 123455
Join Date: Apr 2009
Location: Malaysia
Device: PRS-650, iPhone
|
It overrides all text-indent styles. It leaves everything else alone.
|
![]() |
![]() |
![]() |
#5 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
|
thanks - getting there slowly- so it overrides all of any xhtml section which has this at the top
<style type="text/css"> ( which seems to be all pages in all books! - can you give me an example of where it would not apply please ( I looked at some stylesheet.css but style types is not defined in there , i just see list of the various .calibreNN style definitions - is that correct ? ) |
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,883
Karma: 59840450
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
![]() p (in a CSS) applies to all <p> tags (contains NO dot) .p is not the same (it is a class selector with a 'trip-you-up' name) h1,h2,h3 { text-align: center } (Notation), applies to all H1 H2 and H3 tags Bottom line: You are overriding a Default, which is why you don't see it in the CSS. |
|
![]() |
![]() |
![]() |
#7 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
|
got it - thanks
|
![]() |
![]() |
![]() |
#8 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
|
does not seem to always work, or something else is overriding.
some books are fine - but the case below is not: I add p { text-indent: 1em} to extra css run epub to mobi ( on a book with no indents) view mobi in calibre viewer - still no indents the book in question has code such as <p class="calibre2">We did.... nothing complex there is however an explicit text-indent 0 in the calibre 2 style for that book - but I though the whole idea of extra CSS was that it overrides what is in stylesheet... I reckon ( albeit based on a sample of 1) that the extra CSS override is fine EXCEPT where I have previously forced a zero indent by editing the specific calibre style used for p tags, in the book's epub stylesheet.css. I can test by removing that 1 line from the css stylesheet.... yep the extra css override works now. so have a found a feature, or a bug, here ? I'll try a related test. put the explicit text-indent: 0 back into my epub, convert to mobi but with remove blank lines ticked & indent set to 1 in conversion options... well that does exactly what it says on the tin. so the issue is only with extra CSS Last edited by cybmole; 02-16-2011 at 05:56 AM. |
![]() |
![]() |
![]() |
#9 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,246
Karma: 16539642
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
|
In the example you quote, if your input html has
Code:
<p class="calibre2">We did.... Code:
p.calibre2 {text-indent:1em} Code:
.calibre2 {text-indent:1em} |
![]() |
![]() |
![]() |
#10 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
|
hmm if the calibre2 style has no explicit text indent value then the basic override works, without adding the calibre2 bit
the idea of using extra css is that it negates the need to inspect epub style sheet - having to specify calibreN means having to examine the epub code after all ? |
![]() |
![]() |
![]() |
#11 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,246
Karma: 16539642
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
|
Quote:
|
|
![]() |
![]() |
![]() |
#12 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
|
the suggestion that I was given was that adding
p { text-indent: 1em} to extra css would work. it does except where countermanded elsewhere, as explained above. I have enough info for work-arounds to meet my own needs. I just seek to understand why the simple catch-all extra css solution does not work as suggested. c/f ticking remove blank lines+ add indents option which DOES override everything. |
![]() |
![]() |
![]() |
#13 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,337
Karma: 123455
Join Date: Apr 2009
Location: Malaysia
Device: PRS-650, iPhone
|
Continuing from your questions on the Sigil forum, a bit more appropriate here. I use something along these lines in extra css:
Code:
p {margin-top:0.3em; margin-bottom:0.3em; text-indent:3%; text-align:justify} h1+p, h2+p, h3+p, p.softbreak+p {margin-top:0.1em; margin-bottom:0.3em; text-indent:0%; text-align:justify} I never noticed a problem with these not working, but perhaps I haven't tried with ebooks where it needed to be over-ridden for some paragraphs, not sure. |
![]() |
![]() |
![]() |
#14 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
|
thanks - I could try that but won't 0.3 em map to 0em in mobi output due to rounding ?
could you see what happens with your code AND use an epub with with a specific text-indent 0 in its main calibre style within the style sheet, to see if you get the same override issues as I did please. I have yet yo test with epub outputs as I did not want to overwrite my sources, I could make backups & then do so though, if you think my fails-to-indent bug is mobi-specific. i don't have an intuitive sense of own an x% indent cxompares to a number of ems in dent. why, may i ask, do you prefer to use % settings , and are they mobi-compatible. |
![]() |
![]() |
![]() |
#15 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
|
0.3em line spacing looks good on Kindle.
for me, I think this settle the blank line or not debate - use something >0 but <1 ! did you settle on .3 after trial & error, or what ? I think that, away from experimentation, I wills et desired values in stylesheets as I treat epub as my master versions- so I want their formatting to be correct + standalone. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
hanging indent | Oldpilot | Sigil | 2 | 11-13-2010 06:20 AM |
Too much left indent! | Barty | Amazon Kindle | 12 | 11-09-2010 02:43 PM |
ligatures and indent questions | speakingtohe | Calibre | 2 | 08-23-2010 07:33 PM |
Paragraphs and indent | mrmikel | Calibre | 33 | 01-10-2009 05:37 PM |
Plucker: Can I indent paragraphs? | alexdouglas | Reading and Management | 3 | 08-07-2006 05:58 PM |