Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 01-10-2009, 09:06 AM   #31
llasram
Reticulator of Tharn
llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.
 
llasram's Avatar
 
Posts: 618
Karma: 400000
Join Date: Jan 2007
Location: EST
Device: Sony PRS-505
Quote:
Originally Posted by llasram View Post
Oh, I misunderstood what you were trying to do. Change your CSS selector from ".toc" to ".toc p". That makes it mean "all <p/> elements inside of an element with a class attribute of 'toc'."
Lies, lies. That'd work for EPUB, but the LRF conversion doesn't use a full CSS parser and that doesn't work. Actually, try it as an EPUB. If that doesn't work for you, what you're going to have to do instead is put a "class" attribute on all of your <p/> tags... So CSS like:

Code:
.noindent { text-indent: 0; }
And HTML like:

Code:
<p class="noindent">This paragraph isn't indented!</p>
Sorry I don't have an easier solution for you...
llasram is offline   Reply With Quote
Old 01-10-2009, 03:59 PM   #32
Amalthia
Wizard
Amalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beauty
 
Amalthia's Avatar
 
Posts: 1,185
Karma: 32196
Join Date: Jan 2007
Location: Anchorage, AK
Device: Sony Reader PRS-505, PRS-650, PRS-T3, Pocketbook HD2
Quote:
Originally Posted by llasram View Post
Lies, lies. That'd work for EPUB, but the LRF conversion doesn't use a full CSS parser and that doesn't work. Actually, try it as an EPUB. If that doesn't work for you, what you're going to have to do instead is put a "class" attribute on all of your <p/> tags... So CSS like:

Code:
.noindent { text-indent: 0; }
And HTML like:

Code:
<p class="noindent">This paragraph isn't indented!</p>
Sorry I don't have an easier solution for you...
This seems like a good time to figure out ePub. Since these collections I'm making are for me and my device can read ePub and LRF it doesn't really matter which one I use.

I'll let you know how this works out. But it may not be hard to select the area I want all the <p> to not be indented and to a find and replace all and replace all the <p> with <p class="noindent">...I'll try both ways and see how it goes.
Amalthia is offline   Reply With Quote
Advert
Old 01-10-2009, 04:12 PM   #33
mtravellerh
book creator
mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.
 
mtravellerh's Avatar
 
Posts: 9,657
Karma: 3856660
Join Date: Oct 2008
Location: Luxembourg
Device: Kindle Scribe
Quote:
Originally Posted by llasram View Post
Lies, lies. That'd work for EPUB, but the LRF conversion doesn't use a full CSS parser and that doesn't work. Actually, try it as an EPUB. If that doesn't work for you, what you're going to have to do instead is put a "class" attribute on all of your <p/> tags... So CSS like:

Code:
.noindent { text-indent: 0; }
And HTML like:

Code:
<p class="noindent">This paragraph isn't indented!</p>
Sorry I don't have an easier solution for you...
Hmm, that IS pretty easy in my book

<p style= "text-indent: 0pt"> on the relevant paragraph is working, too. No CSS definition is necessary for that one, especially as it is only needed once in the text..

Last edited by mtravellerh; 01-10-2009 at 04:27 PM.
mtravellerh is offline   Reply With Quote
Old 01-10-2009, 05:37 PM   #34
Amalthia
Wizard
Amalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beauty
 
Amalthia's Avatar
 
Posts: 1,185
Karma: 32196
Join Date: Jan 2007
Location: Anchorage, AK
Device: Sony Reader PRS-505, PRS-650, PRS-T3, Pocketbook HD2
Quote:
Originally Posted by mtravellerh View Post
Hmm, that IS pretty easy in my book

<p style= "text-indent: 0pt"> on the relevant paragraph is working, too. No CSS definition is necessary for that one, especially as it is only needed once in the text..
Would this code also work for ePub?
Amalthia is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ligatures and indent questions speakingtohe Calibre 2 08-23-2010 07:33 PM
Paragraph indent-size should not applied to centered paragraphs? ShellShock Calibre 3 01-16-2010 11:54 AM
removing spacing between paragraphs WITHOUT touching indent? ferossan Calibre 2 12-24-2009 02:12 PM
Can't have hanging indent in Mobi Yo_E_C Introduce Yourself 2 08-21-2009 08:51 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 07:18 AM.


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