![]() |
#16 |
eBook pro
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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?
|
![]() |
![]() |
![]() |
#17 |
eBook pro
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 71
Karma: 5634
Join Date: Jan 2011
Location: Hertford, UK
Device: PC, iPad, Kindle, Kindle Fire, Galaxy Ace
|
|
![]() |
![]() |
Advert | |
|
![]() |
#18 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
![]() |
![]() |
![]() |
|
![]() |
||||
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 |