Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 04-07-2012, 11:48 AM   #1
psikonauta
Junior Member
psikonauta began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Apr 2012
Device: Kindle 4 NT
Problem with italics in Blogger recipe

Hi! I'm very new to Calibre, and I've been trying to make a recipe for some blogs I like. I am having a problem with one of them regarding the use of italics. It seems that when the blog has a <i> tag, Calibre creates a <span class="italics"> tag inside a <p class="calibre_115">, separating the word in italics from the rest of the text. It does not happen with the <em> tag that another blog uses, so I've tried to replace I for EM adding this to the recipe:

Code:
preprocess_regexps = [
   (re.compile(r'<i>', re.DOTALL|re.IGNORECASE), lambda match: '<em>'),
   (re.compile(r'</i>', re.DOTALL|re.IGNORECASE), lambda match: '</em>')
]
But it still does not work. Any ideas? Thanks!
psikonauta is offline   Reply With Quote
Old 04-09-2012, 06:17 PM   #2
psikonauta
Junior Member
psikonauta began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Apr 2012
Device: Kindle 4 NT
Hi again. I've found that behavior in other Blogspot blogs. Does anyone have a recipe for some Blogspot blog that I can use? Thanks!
psikonauta is offline   Reply With Quote
Reply

Tags
blogger, italics, recipe, replace, tag


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
problem with italics bobcdy Sigil 12 08-14-2011 08:04 AM
Basic recipe for blogger not working migdus Recipes 0 08-08-2011 12:06 AM
problem with a recipe, please help schuster Recipes 7 05-16-2011 09:50 AM
Fixing Book Designer problem with italics when converting from LIT angelyne Sony Reader 3 07-09-2007 11:32 AM


All times are GMT -4. The time now is 07:34 PM.


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