Find and replace (documents)

The Find and replace dialog allows you to search for words or expressions in a translation document, alignment document or a translation memory. If the content is editable, you can replace specific occurrences with a different text. A separate dialog is available for finding or replacing text in a term base.

MemoQ find and replace Find and replace

Invoking

From the Operations menu, choose Find or Replace. Alternatively, you can press Ctrl+F for Find, or Ctrl+H for Replace.

Options

· Find what: Use this drop-down list to enter the text you are looking for. If you have selected text in the document before invoking the Find and replace dialog, the selected text will automatically appear in the Find what drop-down list. The Find what text field is a drop-down list where the previous texts you entered are retained until you quit memoQ.
· Replace with: Use this drop-down list to enter the text with which you want the text entered into the drop-down list labeled Find what to be replaced. The Replace with text field is a drop-down list where the previous texts you entered are retained until you quit memoQ.
 

View area:

· Replace: Check this check box if you want not only to look for a text but to replace it with another one. Uncheck this check box if you only want to look for a text.
· Scope: Check this check box to expand the dialog to select the scope of the operation in the Select scope area. When unchecked, the scope is From cursor by default.
o Project: Select this radio button to search for the specified text in all segments in the project.
o Selected documents: Select this radio button to search for the specified text in all segments only in the documents you selected in the Translations pane of Project home.
o Open documents: Select this radio button to search for the specified text in all segments only in the documents that are currently open.
o Active document: Select this radio button to search for the specified text in all segments only in the active document.
o From cursor: Select this radio button to search for the specified text in all segments only in the active document downwards from the cursor. This option is only available if you start the Clear translations dialog with a translation document open and active in memoQ.
o Selection: Select this radio button to search for the specified text only in the selected segments of the active document. This option is only available if you start the Find and replace dialog with a translation document open and active in memoQ.
o Work on views: Check this check box
to search for the specified text in all segments only in the views of the project. This option is only available if you select the Project radio button. When unchecked, the scope is all the segments of the original documents of the project, excluding the segments of views.

Note: The order of search or replace is the following: It always starts in the active document from cursor position, wrapping around till reaching this cursor position from the start of the document, then the next open documents to the right in the list of tabs are processed one by one from start to end. If there are no more open documents in the scope, but there are also not open documents, these remaining documents are processed one by one in the order as they are currently listed in the Translations pane of the Project home.

Segment area:

· Source: Select this radio button if you want to search or replace text on the source side.
· Target: Select this radio button if you want to search or replace text on the target side.
· Both: Select this radio button if you want to search or replace text on both the source and on the target side.
 

Options area:

· Only whole words: Check this check box to mark only whole words as matches (substring matches are ignored).
· Match case: Check this check box to run a case-sensitive search. If checked, the replace expression is always inserted without adjustment.
· Wrap around: Check this check box to continue searching from the beginning of the document until the starting point of the search is reached, if no more occurrences are found.
· Never spoil formatting: Check this check box to pay attention on cases where a formatting tag or an inline tag is in the middle of a match or either of the bold/italic/underlined formatting types is not uniform throughout the whole match. If you click Replace, a message box requiring confirmation is displayed, while if you click Replace all, memoQ skips the affected matches and displays a warning.

Note: If you replace an expression having a tag in the middle, the tag will be put after the end of the replaced expression and a warning will be displayed. If you replace an expression having a not uniform bold/italic/underlined formatting throughout the whole match, the formatting of the whole replaced expression will follow the formatting type of the first word of the match, or if it is not uniform, then these formatting types will be removed from the replaced expression.

· List results: Check this check box to invoke a new Find and replace tab with a list of all segments with find/replace warnings in the scope of the operation after clicking either Mark all or Replace all.
 

Buttons:

· Find next: Click this button to look for the text entered into the Find what drop-down list or to jump to the next occurrence.
· Mark all: Click this button to mark all the occurrences in the scope.
· Replace: Click this button to replace the current occurrence of the text entered into the Find what drop-down list with the text entered into the Replace with drop-down list. Make sure the check box labeled Replace is checked.
· Replace all: Click this button to replace all the occurrences.
 

If you click Mark all, all matches will be marked with MemoQ marked1 Find and replace if no comments exist in the segment, or with MemoQ marked2 Find and replace if the segment is commented. You can browse for the results using the Go to next function. If you want to clear any of these marks, right-click the translation grid, choose Clear Find/Replace Marks from the pop-up menu , select the scope, and click OK.

MemoQ clear findreplace Find and replace

Alternatively, start a new find or replace process to clear the previous marks in the scope and mark the new matches.

Navigation

After you finish searching/replacing, click Close to dismiss the dialog.

Find and replace