04-07-2012, 12:48 PM | #1 |
Junior Member
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>') ] |
04-09-2012, 07:17 PM | #2 |
Junior Member
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!
|
Tags |
blogger, italics, recipe, replace, tag |
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
problem with italics | bobcdy | Sigil | 12 | 08-14-2011 09:04 AM |
Basic recipe for blogger not working | migdus | Recipes | 0 | 08-08-2011 01:06 AM |
problem with a recipe, please help | schuster | Recipes | 7 | 05-16-2011 10:50 AM |
Fixing Book Designer problem with italics when converting from LIT | angelyne | Sony Reader | 3 | 07-09-2007 12:32 PM |