Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > Workshop

Notices

Reply
 
Thread Tools Search this Thread
Old 03-05-2011, 09:28 AM   #16
Dillinquent
eBook pro
Dillinquent shares his or her toysDillinquent shares his or her toysDillinquent shares his or her toysDillinquent shares his or her toysDillinquent shares his or her toysDillinquent shares his or her toysDillinquent shares his or her toysDillinquent shares his or her toysDillinquent shares his or her toysDillinquent shares his or her toysDillinquent shares his or her toys
 
Dillinquent's Avatar
 
Posts: 71
Karma: 5634
Join Date: Jan 2011
Location: Hertford, UK
Device: PC, iPad, Kindle, Kindle Fire, Galaxy Ace
Thanks Faster, that looks a whole lot more elegant than my cludge! I obviously need to bone up on regex, can you recommend any good resources?
Dillinquent is offline   Reply With Quote
Old 03-05-2011, 09:35 AM   #17
Dillinquent
eBook pro
Dillinquent shares his or her toysDillinquent shares his or her toysDillinquent shares his or her toysDillinquent shares his or her toysDillinquent shares his or her toysDillinquent shares his or her toysDillinquent shares his or her toysDillinquent shares his or her toysDillinquent shares his or her toysDillinquent shares his or her toysDillinquent shares his or her toys
 
Dillinquent's Avatar
 
Posts: 71
Karma: 5634
Join Date: Jan 2011
Location: Hertford, UK
Device: PC, iPad, Kindle, Kindle Fire, Galaxy Ace
Quote:
Originally Posted by Faster View Post
Dillinquent: why not use [a-z]^13^13 for your Find criteria with Wildcards enabled? You only search through once this - way rather than 26 times.
I just tried that in Sigil and it crashed, oh dear.
Dillinquent is offline   Reply With Quote
Advert
Old 03-05-2011, 01:39 PM   #18
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
That's because the Find criteria provided is for MS Word.

In Sigil the Find criteria in BOOK view is: [a-z]\n\n

The above is intended to find two newlines after the lowercase letter, but you may have to settle for finding one by deleting a '\n'.

In Sigil the Find criteria in CODE view is: [a-z]</p>
This will find a lowercase letter followed by a single paragraph end.

In both Sigil cases Regular expressions must be checked.

In Sigil BOOK view to delete the newlines and replace it with a space and retain the lowercase letter this is what you use:

FIND: ([a-z])\n\n
REPLACE: \1_ where the underline should be typed as a space.
Unfortunately, you must repeat this for each and every (x)html file in book view.

In code view - where you can do the whole book in one go - it would be very difficult to do this replacing, which is why it is usually done in a word processor before going to Sigil.
Faster is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Search and Replace with consecutive numbers? seagull Sigil 0 11-06-2010 02:38 PM
Search & Replace Pat Nickholds Sigil 2 10-21-2010 11:18 PM
Wild Card search and replace crutledge Sigil 2 06-05-2010 04:19 PM
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


All times are GMT -4. The time now is 04:20 PM.


MobileRead.com is a privately owned, operated and funded community.