Video: Search and Replace in OmegaT 3.1.0

Search And Replace In OmegaT Filtered Results

This video explains the Search and Replace feature recently added in the translation  program OmegaT.

Basics

Search and Replace in OmegaT Text Replace Window

To open the Text Replace window, go to EditSearch and Replace or press Ctrl+K. The Text Replace is quite similar to the Text Search window (Ctrl+F).

After you find matches, you have two options:

Replace All: By pressing this button and confirming the request, you have OmegaT replace all matches with the contents of the Replace with field.

Replace: Use it for manual replacement:

Search and Replace in OmegaT Filtered Results

  1. The Editor pane gets filtered to display only the matches in the same way as pressing the Filter button does in the Text Search window. Three buttons—Skip, Replace Next, Cancel—display at the top of the Editor pane. OmegaT displays matches in dark blue.
  2. When you click Replace Next, OmegaT highlights the current match, and the next click replaces the match with what is in the Replace with field. Then, OmegaT moves to the next match.
  3. When you are done, click Cancel to remove the filter in the Editor pane.
  4. To return to the segment from which you started the replacements, press Ctrl+Shift+P repeatedly (Go ToBack in History).

Pre-translation

Selecting the Untranslated option makes pre-translation possible; that is, OmegaT inserts source into target for those untranslated segments that have search results before making replacements.

Final tips

For more efficient use, you can:

  • run search by pressing Enter if the cursor is in the Search for field.
  • run search by pressing Alt+S anywhere in the Text Replace window.
  • press Ctrl+F to return to the Search for field.

Visit SourceForge for the latest version of OmegaT. For more information about mastering OmegaT, click any of the tags below.

5 комментариев к “Video: Search and Replace in OmegaT 3.1.0”

  1. I need some help.

    How do I specify backreferences in the ‘replace with’ textbox when using regular expressions?

    (E.g I’d like to replace all decimal dots within numbers with decimal commas, so I search for (\d+)\.(\d+) and now I want to have something like \1,\2 in ‘replace with’ but that does not seem to be the right syntax in OmegaT regexes).

    1. Well, it allows search with regexps, so it would be nice to allow to use backreferences in replace field too. I wish developers implemented it at some point. Thanks very much for assistance anyway!

  2. Just for the record, in case anyone searches for this: You should use the dollar character (javascript) for back references, so $1 and $2 in the above example.

Оставьте комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *