|
|
#1 |
|
Junior Member
![]() Posts: 5
Karma: 10
Join Date: Feb 2010
Device: Kindle 2
|
Word question
I know this is not the "MS Word" forum, but I'm trying to edit Word docs before converting to RTF and import into Calibre. Does anyone know how to Find/Replace broken sentences? Something like this in Word:
"Wind and" I can search for them (^$^p), but a replacement would loose my ^$ character. Using BBEdit or Jedit would give me better control, but then I loose all my formatting. |
|
|
|
|
|
#2 |
|
Member
![]() Posts: 19
Karma: 10
Join Date: Mar 2009
Location: Zürich, Switzerland
Device: Kindle
|
my lame solution was to search for: a^p (the letter A with no space, followed by a carriage return) replace with a[space] (the letter A with a space). Continue through all the letters in the alphabet.
It cleaned up most everything nicely.
|
|
|
|
| Advert | |
|
|
|
|
#3 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,270
Karma: 16544702
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
|
You could try the following, which is 4 passes. I wrap them in a Word macro to make it less tedious.
Pass 1 - with 'Use wildcards' option unchecked Code:
Find:^w^p ReplaceAll:^p Code:
Find:^p^w ReplaceAll:^p Code:
Find:([!-])^13([a-z]) ReplaceAll:\1 \2 Code:
Find:([-])^13([a-z]) ReplaceAll:\1\2
|
|
|
|
|
|
#4 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,270
Karma: 16544702
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
|
... follow-up. You are advised to do this before you spend a lot of time formating your document as any Find/Replace which removes end-of-paragraph markers is prone to removing formating associated with that paragraph.
|
|
|
|
|
|
#5 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,130
Karma: 91256
Join Date: Feb 2008
Location: Germany
Device: Cybook Gen3
|
I don't know about Word, but OpenOffice supports regexp-searches, using which your problem would boil down to replacing "\n\n" with "", I believe. Try it, it's free
|
|
|
|
| Advert | |
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Classic Noob Question on Word Lookup | boxer | Barnes & Noble NOOK | 4 | 07-31-2010 10:22 AM |
| question about Word | joycedb | Writers' Corner | 7 | 06-23-2010 05:03 PM |
| Newbie basic question re Word documents | GA Russell | Which one should I buy? | 15 | 09-17-2009 10:55 PM |
| Using a Word format for PRS-505 question | jairizarry | Workshop | 1 | 05-03-2009 09:38 PM |
| Question about doing some searching and replacing in Word | texasnightowl | Workshop | 6 | 09-11-2008 10:20 AM |