04-16-2012, 03:37 AM | #1 |
Junior Member
Posts: 1
Karma: 10
Join Date: Oct 2011
Device: Kindle 3
|
Search and replace crashes Calibre
A strange problem here, when I try to use the search and replace wizard, which I've successfully used before, Calibre crashes.
Example: I converted an epub to Mobi and found that a few entire chapters now appear in italics. So using the wizard I copied the offending italics instruction and tried to remove it by entering: "<p class="calibre_10"><span class="italic">" to replaced with: "<p class="calibre_10">" thinking that this would remove the italics only where both expressions appeared together. However each and every time, Calibre crashes. While I'm sure it must be simple to convert to html, fix the italics and convert to Mobi, or even for someone to say "hey, here's a simple regular expression to do that" (a little beyond my abilities perhaps), I'm wondering why Calibre crashes when using the wizard for what seems to me a fairly simple operation. Any help? |
04-16-2012, 11:15 AM | #2 | |
Well trained by Cats
Posts: 29,806
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:
BUT A <span> has a matching </span> that must be removed in sync. This is not as easy to do as it seems. You need to get the MATCHING tag, not the first or last </span> found. You may get lucky and the Paragraph has only one span... Then you will find the nightmare one with dozens |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
calibre search & replace question | Kelby | ePub | 1 | 09-29-2011 01:14 PM |
search and replace - drops blanks in replace ? | cybmole | Conversion | 10 | 03-13-2011 03:07 AM |
Search and replace in 0.2.0 | paulpeer | Sigil | 7 | 03-13-2010 11:59 AM |
Crashes on find / replace all | mr ploppy | Sigil | 1 | 02-03-2010 12:35 PM |
sigil 0.1.5 crashes on search | bobcdy | Sigil | 7 | 11-28-2009 01:59 PM |