16 Find and Replace This learning module is entitled, “Find and Replace.” This lesson introduces you to both the Find and Replace dialogues, as well as techniques that will help you narrow your search based on criteria specified within these dialogues. Currently, the only applications that I’ve got running at this time are JAWS for Windows and HJPad. My insertion point is in the upper left-hand corner of a document entitled, “FIND.TXT,” which you may locate in the JAWS451\Training\ENU subfolder, assuming that you accepted the default folder when installing JAWS for Windows on your computer. The Find and Find and Replace dialogues in HJPad are two distinctly separate dialogues. In some word processors, these two features are included in one multi-page dialogue box, but that is not the case in HJPad, as activating either of these features will bring you into a single page dialogue. The Find feature is a convenient way of locating specific text within a document. You may want to use the Find feature as a navigational tool, which you may use for locating a specific string of text for review purposes, or with the intention of making changes to a specific string of text. The Find dialogue can be activated either from within the Edit pull down menu of the HJPad application, or by simply pressing the shortcut key combination of CTRL+F as in “find.” I’m going to press CTRL+F now. CTRL+F. Find dialogue. Find what colon edit. Since this is the first time that I’ve gotten into this Find dialogue in the HJPad application, the PC cursor is in an empty edit field in which I may specify the string of text that I would like to search for. You’ll see as we go through this lesson that previously defined strings of text in this edit field are retained the next time we activate the Find dialogue. So since is the first time I’ve been in the Find dialogue in HJPad, this edit field is cleared. I’m going to do a search for the word, “HJPad,” and then I’m going to quickly show you the other controls in this dialogue. I’ll type in HJPad now. H-J-P-a-d And I’m going to tab to the next control. Tab. Match whole word only. Check box not checked. JAWS speaks, “Match whole word only, check box,” and by default, this check box is not checked. I’m going to go ahead and press SHIFT+F1 to get Windows Help on this particular control. SHIFT+F1. Windows Help. Finds only whole words instead of searching for your text inside longer words period. ** stopped here ** Okay, so Windows help tells us that checking this check box will result in only finding this word as it appears all by itself, as opposed to within or as part of another word. I’m going to press ESC to get out of Windows Help now. Find dot t-x-t dash H-J Pad. Find dialogue. Match whole word only. Check box not checked. I’m going to leave this check box not checked and I’m going to tab to the next control. Tab. Match case. Check box not checked. Here we end up in the match case check box, and by default it is not checked. Checking this option will make your find case sensitive. We’ve got HJPad spelled two different ways. First, in our header line, it’s spelled with all capital letters, H-J-P-A-D and within the body of the actual document, it’s spelled with a capital H-J-P and lower-case a-d. So if we were to check this option to make our find case sensitive, we would only be able to search for one or the other occurrence of the word HJPad, and we would have to specify in our edit field whether or not we wanted HJPad to appear as all caps, or as just having the first three letters of the word HJPad capitalized. I’m going to leave this item unchecked so it finds all occurrences of the word HJPad and disregard whether or not it appears in upper or lower-case letters. I’m going to press the TAB key to move to the next control. Tab. Find next button. Here’s the find next button. And we don’t need to tab over to this button every time we want to activate it, we can simply type in the word in that edit field that we’d like to search for and press ENTER. I’m going to press the TAB key to move to the next control. Tab. Cancel button. There’s a cancel button that’ll get us out of this dialogue without searching for anything, I’ll press the TAB key again. Tab. Find what colon edit. And you can hear we’re back in our find what edit field. So as I mentioned earlier, I don’t have to activate that find next button by pressing Enter on it, I’m just going to press ENTER from within this edit field. Enter. H-J-P-a-d. So here we’ve come across our first occurrence of the word HJPad and it appears and is spoken by JAWS as H-J-P-A-D. This is because it’s all in capital letters. Now if I didn’t know that this occurrence of the word HJPad was at the top of my document in the header and I wanted to see in what context this word was being used, I could use the JAWS keystroke to read word in context, which is INSERT+C. I’ll go ahead and press that keystroke now. Using Find and Replace in H-J-P-A-D. And JAWS speaks the word h-j-p-a-d as it appears on the top line of the Find and Replace document. I’m going to activate the find next button by pressing ENTER here. Enter. H-J Pad. And the next occurrence of the word HJPad is actually spoken the way it’s supposed to be because remember, that one has a capital H-J-P and lower-case a-d. I’m going to read this word in context, INSERT+C. The Find feature allows you to search for specific text within the HJPad. And you’ll notice that when we press INSERT+C to read the currently highlighted word in context, that text is spoken back to us using the JAWS cursor. I’m going to activate the find next button, I’ll press ENTER. Enter. Find dialogue. HJPad dialogue. HJPad is finished searching the document period. Okay button. We’re informed that HJPad is finished searching the document and our focus is placed on an Okay button that I will activate now by pressing ENTER. Enter. Find dot t-x-t dash HJPad. Find dialogue. And we’re back in our find dialogue in the find what edit field in which we could either type new text or tab to any of the other controls in this dialogue and specify new find criteria. Let’s go ahead and exit the find dialogue and activate the find and replace dialogue. I’ll press the ESC key to exit this dialogue and place my focus back into my main document edit window. Edit. Now notice if I do a say current line, I’ll go ahead and do this now by pressing INSERT+UP ARROW. Using Find and Replace in H-J-P-A-D. We hear the same text spoken that we heard when we pressed INSERT+C while in the find dialogue to read word in context. So our insertion point is located on the line containing the word that we last searched for within that find dialogue. This find feature starts at the location of the insertion point and goes to the end of the document. After it’s gone to the end of the document, it returns the insertion point to the top of the document, and continues your find all the way up to the insertion point. So it’s probably a good idea to return your insertion point to the top of the document before carrying out a find command. What we’re going to do now is a find and replace. I’ll press CTRL+HOME Top of file. Using Find and Replace in H-J-P-A-D. Now we can activate the Find and Replace menu option from within the edit pull down menu, but we can also activate it with a quick key command or shortcut key, which is CTRL+H. I’ll go ahead and press this now. CTRL+H. Replace dialogue. Find what colon edit. Again, we’re placed into a find what edit field and in that edit field, we’ve got highlighted the word HJPad. And the reason it’s highlighted is so that we can go ahead and overwrite this text if we wanted to. There are also some additional controls in this dialogue that have to do with the replace option. After I specify text in my find edit what field, you’ll see that when we tab to the next control, it’s going to be a “replace with” edit field so we can specify what we want to replace the original word or phrase with. I’m going to make my search case sensitive. I’d like the word HJPad to appear consistently throughout my document, so I’m going to let it know that every time you find an occurrence of the word that is not all capitals that I want it to replace it with HJPad with all capital letters. I’m going to press TAB to move to the next control. Tab. Replace with colon edit. Here’s our replace with colon edit field, and I’m going to tell it that every time you find the word capital H, capital J, capital P, lower-case a-d, I’d like you to replace it with all capital letters. So I’m going to turn on my caps lock and type in the word HJPad. Caps lock on. H-J-P-A-D. I’ll turn off my caps lock. Caps lock off. And I’m going to tab over to the next control. Tab. Match whole word only check box not checked. Well, that’s the only way this word appears in this document is as a whole word, and not as part of another word, so we’ll just leave this one unchecked. I’ll tab again. Tab. Match case check box not checked. And in this case, we want to match case, so I’m going to press the SPACEBAR to check this option. Space. I can verify this by pressing INSERT+UP ARROW to read the current line. Match case check box checked. And I’ll press the TAB key to move to the next control. Tab. Find next button. There’s the find next button that we saw in the find dialogue, as well. I’m going to go ahead and activate this button by pressing SPACEBAR. Enter. jaws says nothing I’ll press insert c to read the current line found in context. jaws says: The find feature allows you to search for specific text within a HJPad And JAWS speaks HJPad in this sentence without spelling it, which is an indication that we’ve found one occurrence of capital H, capital J, capital P, lower-case a-d in our document. Indeed, that’s the one I want to replace with all capital letters, so I’m going to go ahead and activate the Replace button by pressing the TAB key to move there. Tab. Replace button. The accelerator key, letter R for replace, is spoken, so I could have simply pressed ALT+R in this dialogue, as well. I’ll press the ENTER on the Replace button now. Enter. Replace dialogue. HJPad dialogue. HJPad is finished searching the document period. Okay button. We’ve got HJPad is finished searching the document, okay button, this indicates that no more occurrences of capital H, capital J, capital P, lower-case a-d were found in this document. I’ll activate the Okay button. jaws says nothing I’ll press insert t now to read the title of the current window. jaws says: title equals find dot txt hjpad, replace I’ve been placed back in the replace dialog. And I’m going to exit out of this dialogue by pressing the ESCAPE key. Edit. We’re back in our main document edit window and you’ll notice that when I do a say current line that the old HJPad has been replaced by the all caps HJPAD. I’ll press the say current line command now. The find feature allows you to search for specific text within the H-J-P-A-D. And you hear that the word HJPad now appears in all capital letters, just like the one at the top of this document. I’m going to press CTRL+HOME to return my insertion point to the top of the document. Top of file. Using Find and Replace in H-J-P-A-D. Now let’s say that I’ve changed my mind and I’ve decided that I don’t want this word HJPad to appear in all capital letters because I don’t want to hear H-J-P-A-D every time I come across it, I’d rather just hear HJPad. I’m going to go back into our Find and Replace dialogue and change my criteria so every time I come across the word HJPAD in all caps, I want it to be changed back to capital H, capital J, capital P, lower-case a-d. I’m going to go ahead and activate the Find and Replace dialogue, CTRL+H. CTRL+H. Replace dialogue. Find what colon edit. HJPad. And there’s the word HJPAD, capital H, capital J, capital P, lower-case a-d, but this time, I want to search for all occurrences of the word HJPad that appear in all capital letters. So I’m just going to turn on my caps lock. Caps lock on. And overwrite the old HJPad in this find what edit field. H-J-P-A-D. I’ll tab to the next control. Tab. Replace with colon edit. H-J-P-A-D. And I’m going to turn off my caps lock. Caps lock off. And replace this H-J-P-A-D that appears in all capital letters with capital H, capital J, capital P, lower-case a-d. H-J-P-a-d. I’m going to tab to the next control. Tab. Match whole word only. Check box not checked. That’s as we left it the last time we were in this dialogue. I’ll press TAB again. Tab. Match case check box checked. And of course, we want match case check box to remain checked. Tab. Find next button. There’s the find next button. I’ll press TAB again. Tab. Replace button. There’s the Replace button that would take us one occurrence of this word at a time. I’m going to tab one more time. Tab. Replace all button. And we hear that if I were to simply press the ALT+A, it would have activated this button. I’m going to press spacebar on the replace all button now. Enter. Replace dialogue. HJPad dialogue. HJPad is finished searching the document period. Okay button. We hear that HJPad is finished searching the document. I’ll press ENTER on this okay button. Enter. Find dot t-x-t dash HJPad. Replace dialogue. I’ll press insert t again, and I hear that I’m back in my replace dialog. Grant do this, don’t say it: go ahead and press insert t now and let jaws read and you’ll hear the last word jaws says is replace. Let’s get out of the replace dialog by pressing ESCAPE. jaws says: edit. And now I’m going to return my insertion point to the top of the document. Top of file. Using Find and Replace in HJPad. And we hear that the first occurrence of this word has been changed. I’ll press DOWN ARROW twice. Blank. The find feature allows you to search for specific text within the HJPad. Now, activating the “replace all” button has changed all occurrences of the word “HJPad” in this document. So there you are. We’ve finished our lesson on Find and Replace. If you want to practice further with different words, feel free to do so now. After you have finished your practice, close the document with the Windows key to close just the document and not the program HJPad, as we will be using HJPad again in another session. To close just the document and leave HJPad opened, press CONTROL+F4 and if asked to save the changes, press TAB to move to the No button and press SPACEBAR to activate it. End of lesson on Find and Replace. 2 16 Find and Replace