How to create Find Action with Return (¶) character?
Posted: Tue Sep 05, 2017 9:55 am
Dear Avner et al.
Is it possible to create a Find Action consisting of just one Return (¶) character?
I have imported a long text document with paragraphs that look like this:
Blaablaa blaablaa blaablaa blaablaa blaa-
blaa blaablaa blaablaa blaablaa blaablaa blaablaa
blaablaa blaablaa blaablaa blaablaa blaablaa
blaablaa blaablaa blaablaa blaablaa blaablaa
[… other stuff with different format in between…]
Blaablaa blaablaa blaablaa blaablaa blaa-
blaa blaablaa blaablaa blaablaa blaablaa blaablaa
blaablaa blaablaa blaablaa blaablaa blaa-
blaablaablaa blaablaa blaablaa blaablaa blaablaa
I want it to look like this:
Blaablaa blaablaa blaablaa blaablaa blaablaa blaablaa blaablaa blaablaa blaablaa blaablaa blaablaa blaablaa blaablaa blaablaa blaablaa blaablaa blaablaa blaablaa blaablaa blaablaa
I am able to create a Find and Replace action by copying the Return character (¶) and insert a space into the Replace field, and then do Replace All in Selection. This works.
But when I try to *save* this as Find Action, it never works. To be precise, it appears to be saved and I can drag this Find Action into my FindSet, but it doesn't work when run.
I need to restrict this to Search in Selection because there is stuff interspersed, for example headings, that are not supposed to be changed.
So my questions are now:
1) Is it possible to use some other special character to search for the Return? I tried the regular expression \n but that didn't work.
2) Is it generally not possible in Mellel to build a Find Action with Return?
Addendum
I forgot to mention that after successfully replacing the returns per simple Find and Replace, many hyphens followed by space must also be deleted, because the text was hyphenated before the returns were removed. Here I face the same problem. I can do this per simple Find and Replace, but creating a Find Action doesn't work. If my understanding of FindSets is correct, then the ultimate goal here should be to run both Find Actions in one go, one after the other.
Is it possible to create a Find Action consisting of just one Return (¶) character?
I have imported a long text document with paragraphs that look like this:
Blaablaa blaablaa blaablaa blaablaa blaa-
blaa blaablaa blaablaa blaablaa blaablaa blaablaa
blaablaa blaablaa blaablaa blaablaa blaablaa
blaablaa blaablaa blaablaa blaablaa blaablaa
[… other stuff with different format in between…]
Blaablaa blaablaa blaablaa blaablaa blaa-
blaa blaablaa blaablaa blaablaa blaablaa blaablaa
blaablaa blaablaa blaablaa blaablaa blaa-
blaablaablaa blaablaa blaablaa blaablaa blaablaa
I want it to look like this:
Blaablaa blaablaa blaablaa blaablaa blaablaa blaablaa blaablaa blaablaa blaablaa blaablaa blaablaa blaablaa blaablaa blaablaa blaablaa blaablaa blaablaa blaablaa blaablaa blaablaa
I am able to create a Find and Replace action by copying the Return character (¶) and insert a space into the Replace field, and then do Replace All in Selection. This works.
But when I try to *save* this as Find Action, it never works. To be precise, it appears to be saved and I can drag this Find Action into my FindSet, but it doesn't work when run.
I need to restrict this to Search in Selection because there is stuff interspersed, for example headings, that are not supposed to be changed.
So my questions are now:
1) Is it possible to use some other special character to search for the Return? I tried the regular expression \n but that didn't work.
2) Is it generally not possible in Mellel to build a Find Action with Return?
Addendum
I forgot to mention that after successfully replacing the returns per simple Find and Replace, many hyphens followed by space must also be deleted, because the text was hyphenated before the returns were removed. Here I face the same problem. I can do this per simple Find and Replace, but creating a Find Action doesn't work. If my understanding of FindSets is correct, then the ultimate goal here should be to run both Find Actions in one go, one after the other.