Register Guidelines E-Books Search Today's Posts Mark Forums Read

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

Notices

Reply
 
Thread Tools Search this Thread
Old 02-14-2011, 02:30 AM   #1
cybmole
Wizard
cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.
 
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?
cybmole is offline   Reply With Quote
Old 02-14-2011, 04:49 AM   #2
ldolse
Wizard
ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.
 
Posts: 1,337
Karma: 123455
Join Date: Apr 2009
Location: Malaysia
Device: PRS-650, iPhone
use extra css:
p {text-indent:whatever;}
ldolse is offline   Reply With Quote
Old 02-14-2011, 05:24 AM   #3
cybmole
Wizard
cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.
 
Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
Quote:
Originally Posted by ldolse View Post
use extra css:
p {text-indent:whatever;}
OK thanks -

how is that applied, if the epub has many different calibre styles & indent settings - does it override all styles ?
cybmole is offline   Reply With Quote
Old 02-14-2011, 05:27 AM   #4
ldolse
Wizard
ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.
 
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.
ldolse is offline   Reply With Quote
Old 02-14-2011, 06:14 AM   #5
cybmole
Wizard
cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.
 
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 ? )
cybmole is offline   Reply With Quote
Old 02-14-2011, 11:46 AM   #6
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,772
Karma: 54401244
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 cybmole View Post
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 ? )
most XHTML tags have defaults and need not be specified (if that meets your needs) . Not all devices implemented the defaults properly , leading to Stylesheets full of verbose entries and workarounds

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.
theducks is online now   Reply With Quote
Old 02-14-2011, 12:52 PM   #7
cybmole
Wizard
cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.
 
Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
got it - thanks
cybmole is offline   Reply With Quote
Old 02-16-2011, 05:40 AM   #8
cybmole
Wizard
cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.
 
Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
Quote:
Originally Posted by ldolse View Post
use extra css:
p {text-indent:whatever;}
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.
cybmole is offline   Reply With Quote
Old 02-16-2011, 10:24 AM   #9
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,206
Karma: 16228558
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
In the example you quote, if your input html has
Code:
<p class="calibre2">We did....
then your ExtraCSS would need to be
Code:
p.calibre2 {text-indent:1em}
or
Code:
.calibre2 {text-indent:1em}
to override the CSS in the original.
jackie_w is offline   Reply With Quote
Old 02-16-2011, 02:43 PM   #10
cybmole
Wizard
cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.
 
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 ?
cybmole is offline   Reply With Quote
Old 02-16-2011, 03:07 PM   #11
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,206
Karma: 16228558
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
Quote:
Originally Posted by cybmole View Post
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 ?
I don't think that's true. I believe the idea of using ExtraCSS is that it negates the need to EDIT the epub stylesheet before conversion. It does the edit in the output epub as part of the conversion.
jackie_w is offline   Reply With Quote
Old 02-17-2011, 06:19 AM   #12
cybmole
Wizard
cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.
 
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.
cybmole is offline   Reply With Quote
Old 02-17-2011, 11:03 AM   #13
ldolse
Wizard
ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.
 
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}
That sticks indents everywhere except for the places you'd not want them for commonly formatted books.

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.
ldolse is offline   Reply With Quote
Old 02-17-2011, 12:49 PM   #14
cybmole
Wizard
cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.
 
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.
cybmole is offline   Reply With Quote
Old 02-17-2011, 04:06 PM   #15
cybmole
Wizard
cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.
 
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.
cybmole is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 10:56 AM.


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