1

I'm editing a text which has a repeated part of a gloss which I want to remove. The format is

nominative singular masculine of past participle of √prach, pr̥cháti ‘ask, ask for’ – invoked. Compare the Latin deponent verb precor ‘ask for, supplicate’.

I want to remove all the sections with the form

– invoked

So this passage will then read:

nominative singular masculine of past participle of √prach, pr̥cháti ‘ask, ask for’. Compare the Latin deponent verb precor ‘ask for, supplicate’.

Sometimes these parts of the gloss are followed by a full stop and further text, as here, and sometimes only by a carriage return. Is this possible?

1
  • According to your description, I know that you want to remove all the sections with the form (a repeated part of a gloss): – invoked. Is it "– invoked" with highlight or (character) shading? Or it's a Field with code? May 8, 2020 at 10:09

1 Answer 1

0

This can be achieved using the "Find and Replace" option in MS Word. However, I was getting stuck somewhere and was not able to produce the desired result. Now, since I have cracked the code, can't wait to share:

You have a document which has a repeated part of a gloss (in this format - invoke) and you want to remove it. I have made one document similar to yours:

enter image description here

You notice that hyphen? It's not a general hyphen, it's called En Dash in MS Word and is put into place by Word AutoFormat in documents.

To proceed with the solution, let's replace all those En Dashes at first with hash #.

Press Ctrl+H, in Find what: put ^=

In Replace with: put # and click Replace all. Your document will turn into something like this:

enter image description here

Now, press Ctrl+H once again. Put these at appropriate places:

Find what: #(*{1,})[!0-9A-z]

Replace with: .[space] (here [space] refers to one stroke at the space bar).

Check Use wildcards. If done everything right, you will get something like this:

enter image description here

Now, click Replace All.

That's it, you will replace every text that is in the format - invoke. See this:

enter image description here

You may notice some extra spaces as highlighted above. To remove those spaces, simply go to Ctrl+H, in Find what: put [space].[space] and in Replace with: put .

So, now you've done it, you will get this:

enter image description here

(no extra spaces before fullstop)

Have a good day. I hope this helps. Do tell how it does :)

2
  • Really sorry not to have replied to this earlier, I lost it. Thank you very much for your brilliant help! May 19, 2020 at 7:11
  • If this helped, please do upvote and mark it as correct :)
    – user871532
    May 19, 2020 at 7:24

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .