When I come to a word or phrase that I need to verify while translating, I simply type the SL term in square brackets and continue typing the TL text. Later on, I go from bracketed word to bracketed word in my terminology verification stage.
I wrote a macro many moons ago in WordPerfect for DOS that searched for each bracketed phrase in a document, copied the phrase, and pasted it in a second document (voc.doc), repeating the process until it came to the end of the document, then sorted all of the terms in the voc.doc document for easy look-up in multiple (paper) dictionaries.
I have not been successful in creating a similar macro for MS Word. I did record a macro that kind of half does the job, but it\'s not satisfactory. Rather than post the entire Word macro here, let me pose two questions for starters:
1) How can I copy an entire phrase between square brackets in Word? In WordPerfect, this was very simple. In my recorded Word macro, I simply ran the Find command, looked for the first square bracket ([), then copied only the first word after the opening bracket. Most of the time, the term of interest is a single word, but not always.
2) What is the Visual Basic syntax to have the macro run the find/copy/paste steps until it gets to the end of the document? It seems like a \"while\" statement is what I want, something like:
The \"yada yada\" represents running Find to go to the next opening bracket, selecting the word (or, ideally, the phrase) after the bracket, copying, swapping to the second file (voc.doc), pasting the text, entering an end of line command, and returning to the original document, then re-running the process.
So I need to know what I need to put on the line containing the \"While\" statement in the macro.
Any help with this would be greatly appreciated. Oh, and if you\'re wondering why I don\'t get a \"real\" translation program, I just got a new computer and found that none of my Windows 95 translation and dictionary programs will run on XP, and besides, the hand look-up method serves my needs just fine as a part-time free-lancer.
| || || |