View Single Post
Old 03-19-2011, 02:09 PM   #4
Faster
Connoisseur
Faster is a glorious beacon of lightFaster is a glorious beacon of lightFaster is a glorious beacon of lightFaster is a glorious beacon of lightFaster is a glorious beacon of lightFaster is a glorious beacon of lightFaster is a glorious beacon of lightFaster is a glorious beacon of lightFaster is a glorious beacon of lightFaster is a glorious beacon of lightFaster is a glorious beacon of light
 
Posts: 61
Karma: 12096
Join Date: Sep 2010
Location: Tasmania
Device: Sony PRS 650
Hi JustinD,
No idea whether theducks method works but this is what I'd use on a copy of the file:
Go to Code View in Sigil. In the Find/Replace box check the following - Match Case, Minimal Matching, Regular Expression, All.

In the Find box copy and paste this:
Code:
([^.:\?\!"”'’0-9])<br class="calibre1" />
In the Replace box put this:
Code:
\1space
(that's the digit one after the backslash and hit the space bar rather than putting the word space)

Set Look in to All HTML Files.

Hit Replace All then take a look in the Book View.

Back to Code View -
In the Find Box:

Code:
<br class="calibre1" />
In Replace:

Code:
<p>
Set Look in to All HTML Files.

Hit Replace All then take a look in the Book View.
The reason for switching to and fro from Code View to Book View is that Sigil cleverly fixes up any incomplete tagging when you do this.

Can't be sure this will work as a full solution because your sample is quite brief so you may need to manually adjust any glitches.

Last edited by Faster; 03-19-2011 at 02:13 PM.
Faster is offline   Reply With Quote