08-05-2011, 08:17 PM | #1 |
Junior Member
Posts: 8
Karma: 10
Join Date: Apr 2011
Device: Kindle
|
Search and Replace Problem
I have an ebook with spaces between paragraphs that I would like to remove. I went under the search and replace tab and saw that there were <br/> tags after every paragraph. So I typed </p><br/> in the first box and just </p> for the replacement text, but it doesn't seem to to anything, and the <br/> tags still remain. What am I doing wrong?
Edit: I figured out the problem. I had already converted the book beforehand and Calibre seems to save a previous copy of the file, and any conversions done subsequently are applied to the original. So I disabled Calibre from automatically backing up the original file in the Tweaks section of the Preferences. Last edited by FrozenInferno; 08-05-2011 at 09:15 PM. |
08-10-2011, 02:49 PM | #2 |
Wizard
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
It's smarter to reenable it and just delete the ORIGINAL_EPUB when your conversion is better than the original. By disabling that option, you overwrite your EPUB every time. If you make a mistake in the conversion, you will wipe out the original with your bad converted copy.
|
08-11-2011, 12:23 AM | #3 | |
US Navy, Retired
Posts: 9,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
|
Quote:
I'll use myself as an example. The first thing I did was disable this tweak. But I keep my library in Dropbox so if I end up with a bad result a couple of clicks and the previous version is restored. Doing it this way I never accidentally overwrite a Sigil edited epub. Just something to think about. |
|
08-11-2011, 09:01 AM | #4 | |
Wizard
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
Quote:
I still think that the old system of converting the conversion, then converting the first conversion to a second conversion, then etc., etc. in a long chain of incremental changes is less desirable and less safe than getting your conversion settings correct for the original. The problem with chaining your conversions is that even with a good backup last night, you can lose all the work you did today in the last three conversions, none of which were backed up. Multiple conversions on the same ebook can introduce lots of artifacts that won't appear with a single conversion. Another risk is when doing search and replace. You can destroy your work. It's true that you have to remember to delete the ORIGINAL_FORMAT if you use third party format tools to edit the converted format, but I find that easy to do, and I don't run same format conversions after I've done Sigil editing anyway. Of course, if you prefer the old method, that's fine, but in general I think new users should be encouraged to use the new default settings. |
|
08-12-2011, 03:28 AM | #5 | ||||
US Navy, Retired
Posts: 9,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
|
Quote:
Quote:
Quote:
Quote:
In general you may be right. |
||||
08-12-2011, 09:09 AM | #6 | ||
Wizard
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
Excellent. I've come to rely on your expertise, especially on conversions, and didn't want to cut off the source
Quote:
Quote:
|
||
08-12-2011, 09:29 AM | #7 | |
US Navy, Retired
Posts: 9,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
|
Mine might get too large one of these days. I have around 8600 books (6.5gigs) and my free Dropbox space (from referrals) is maxed out at 10.25gigs
Quote:
I know that there are times when things can go wrong so I open up each conversion to give it a quick once over. I shoot for a nice cover without any white edging, easily readable text, no garbage text floating around, quotes and apostrophes, indents, font size scaled to my specs, top & bottom paragraph spacing .3em, TOC if quickly done via hueristics or Sigil otherwise I don't mind no TOC since I rarely find a use for them in a novel. Nothing fancy, use the same settings in calibre virtually every time. |
|
08-12-2011, 09:45 AM | #8 |
Well trained by Cats
Posts: 29,691
Karma: 54369090
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
My 2 cents (on the Sigil edit of a Calibre converted book)
If I like the styling of a non-h# title, I usually just (carefully ) replace the P with a h3, check the (ncx) TOC to find and correct any unplanned changes . Why is there a need to EPUB -> EPUB again after a Sigil edit? |
08-12-2011, 10:28 AM | #9 | |
Wizard
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
Quote:
Second, what are you looking for in the ncx? I really need to get more familiar with it. Third, I also wonder why EPUB -> EPUB again after Sigil. I'm slowly figuring out what Calibre does with each setting during EPUB -> EPUB, but I'm still afraid I'll have something wrong and screw my Sigil work (not that I'm any expert in Sigil, but at least I'm pretty confident when I change something that I know what will happen, or I can undo it.) I'm less concerned now, as I can keep the ORIGINAL_EPUB, and not overwrite the EPUB, but I still feel that converting EPUB -> EPUB is a blunt tool as compared to an actual editor. |
|
08-12-2011, 10:38 AM | #10 | |||
Well trained by Cats
Posts: 29,691
Karma: 54369090
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
Quote:
Quote:
|
|||
08-12-2011, 07:51 PM | #11 |
US Navy, Retired
Posts: 9,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
|
|
08-13-2011, 01:29 PM | #12 |
Wizard
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
|
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Search & Replace :help: | krussell | Calibre | 3 | 08-02-2011 04:45 PM |
search and replace - drops blanks in replace ? | cybmole | Conversion | 10 | 03-13-2011 03:07 AM |
Search and Replace problem | naro_c | Conversion | 5 | 02-25-2011 12:59 AM |
Search and replace in 0.2.0 | paulpeer | Sigil | 7 | 03-13-2010 11:59 AM |
Why no search and replace? | charleski | Sigil | 10 | 11-24-2009 04:13 PM |