Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 07-13-2012, 04:16 AM   #1
arslonga
Connoisseur
arslonga began at the beginning.
 
Posts: 59
Karma: 10
Join Date: Jul 2011
Device: none
one more css help request

I was wondering if somebody with the know-how could post the CSS code to be inserted in the Extra CSS box of the Look & Feel section in Calibre to make the first seven words of every non-indented paragraph appear in small caps (preferably) or in all caps.

Alternatively, perhaps there is a way to achieve this using the Find and Replace function in MS Word.

Thank you.
arslonga is offline   Reply With Quote
Old 07-13-2012, 09:48 AM   #2
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,802
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:
Originally Posted by arslonga View Post
I was wondering if somebody with the know-how could post the CSS code to be inserted in the Extra CSS box of the Look & Feel section in Calibre to make the first seven words of every non-indented paragraph appear in small caps (preferably) or in all caps.

Alternatively, perhaps there is a way to achieve this using the Find and Replace function in MS Word.

Thank you.
CSS can NOT (by itself) affect a portion of a paragraph. The text fragment must be coded to use a specific CSS selector. (which is way outside the scope of Calibre)
Code:
<p class="normal"><span class="firstwords">These are the first seven words in a</span> new scene.</p>
(looks kind of odd because there are only 9 words Just another reason for a human to code this type of style by hand
theducks is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Feature request : using a custom css file Bertrand Writer2ePub 8 12-28-2019 11:46 AM
Override ePub CSS with userStyle.css? barium Sony Reader Dev Corner 11 07-16-2011 03:25 PM
epub CSS versus "Regular" CSS konrad ePub 4 02-18-2011 09:29 AM
css pseudo elements and adjacent combinators in extra css? ldolse Calibre 2 12-21-2010 05:09 PM
Feature request: CSS style application Fitz Sigil 4 07-25-2010 06:36 AM


All times are GMT -4. The time now is 06:15 PM.


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