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

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

Notices

Reply
 
Thread Tools Search this Thread
Old 03-25-2011, 07:51 AM   #1
poldem
Member
poldem began at the beginning.
 
Posts: 15
Karma: 10
Join Date: Mar 2011
Device: kindle
setting italic style problem

I have made a simple recipe.
It works as expected, but I can not force a text to italic.
It correctly decodes post-meta (the content appears in the resulting document, so it is not misspelled), but it is not italic.
The relevant part of this recipe is listed below

no_stylesheets = True

extra_css = '''
body{font-family:Helvetica,Arial,sans-serif;font-size:small;}
.entry-content{font-family:Helvetica,Arial,sans-serif; font-size:small;font-style: italic; }
.single_post_title{font-family:Arial,Helvetica,sans-serif; font-weight:bold;font-size:large;}
'''

keep_only_tags = [
dict(name='div', attrs={'class':'single_post_title'}),
dict(name='div', attrs={'class':'post_meta'}),
dict(name='div', attrs={'id':'_iprom_inStream'}),
dict(name='div', attrs={'class':'entry-content'}),
]

have also tried this without blanks before italic value, but no difference.
Please suggest what to do.

Thanks !

SOLVED, it was a copy/paste error

Last edited by poldem; 03-26-2011 at 10:57 AM.
poldem 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
italic, bold etc to normal cybmole Sigil 11 03-04-2011 11:37 AM
Lit -> Mobi Linebreak after italic asilentstranger Calibre 4 01-04-2011 02:31 AM
Emphasis or Italic for Language ghostyjack Workshop 3 11-02-2010 11:46 AM
Italic fonts dropping in epubs. Lester. ePub 9 08-31-2010 03:59 PM
Mobi TOC style vs ePub style? phearlez Kindle Formats 3 04-11-2010 07:35 AM


All times are GMT -4. The time now is 09:51 AM.


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