View Single Post
Old 02-20-2011, 09:22 PM   #69
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: 80,212
Karma: 148951761
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by cybmole View Post
h1+p,h2+p, h3+p,blockquote+p{text-indent:0;}

can I combine that with also having p {text-indent: 1em} in the extra css

so that a book with no indents becomes a book with indents except at chapter start.

PS Idolise - do you have a view on why p {text-indent: 1em} fails if there are text-indent 0 entires in the stylesheet as per earlier post. and can you reproduce this bug/feature ?

meatime - testing this new suggestion - using mobi to mobi as the mobi source already has intents (previously added via extra css )...
didn't work in this case but my test book may have extra styling, as the chapter start words are in bold:
the epub looks like this.
typically there is a lot of hard to remove crap in chapter headings
Code:
<body class="calibre6">
  <h2 class="calibreclass2" id="heading_id_11"><span class="calibreclass1"><strong class="calibre7">CHAPTER</strong> 10<br class="calibre8" /></span></h2>

  <p class="calibre2"><strong class="calibre5">Robert Langdon</strong> had entered the Capitol Rotunda many times in his life,
i try a different book ( mobi to mobi again) no joy chapter start is still indented.

I'll have to test with epubs where I can see what is going on.
The CSS style calibre2 is set to have indents. And most likely, most paragraphs are <p class="calibre2">. And if that is the case, what I do is go into the CSS and copy calibre2 and make it into calibre2a with text-indent: 0. The I just go into each XML file and change calibre2 to calibre2a as needed.
JSWolf is offline   Reply With Quote