View Single Post
Old 04-08-2012, 06:11 AM   #73
Perkin
Guru
Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.
 
Perkin's Avatar
 
Posts: 657
Karma: 64171
Join Date: Sep 2010
Location: Kent, England, Sol 3, ZZ9 plural Z Alpha
Device: Sony PRS-300, Kobo Aura HD, iPad (Marvin)
EDIT:
I tried this again to check as was about to do Bug report in Issues on Sigil website, and it now works as it should.
In my defence, yesterday I also had some probs with my system (now hopefully sorted).
/EDIT

I found a difference in the replacement of a string, depending on whether I'm step replacing or doing a 'replace all' (found from posts here and few around for info).

When step replacing the last space is inside the span (as it should be for this regex), but when replace all, the last space is outside the span

just using these few lines as a test in a new, clean epub,

Code:
<p class="let">Here we have a simple paragraph.</p>

  <p class="let">Here we have another simple paragraph.</p>

  <p class="let">Here we have a simple paragraph.</p>

  <p class="let">Here's a simple paragraph.</p>

  <p class="let">Here we have a simple paragraph.</p>
Search
Code:
<p class="let">([A-Z])((.[^ ]{0,20}[ ]){4})
Replace
Code:
<p class="let"><span class="let1 let2">\1</span><span class="smcpTypeV">\2</span>

Last edited by Perkin; 04-09-2012 at 05:11 AM.
Perkin is offline   Reply With Quote