MS Word Search and Replace Step

From Okapi Framework
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Overview

This "convenience" step allows basic search and replace using MS Word. You should be familiar with the search and replace options within MS Word to use this step.

Takes: Raw document. Sends: Raw document (Either the input documents, or a single TMX document)

Note: This step is part of the Trados Utilities Plugin and is not included in the general distribution.
This step runs on Windows only and requires that Trados 7.x or Trados 2007 is already installed on your machine.

Parameters

Currently there is no specific UI for this step so parameters need to be entered into the following format.

  #v1
  regEx.b=true
  wholeWord.b=false
  matchCase.b=false
  count.i=2
  replaceALL.b=true
  use0=true
  search0=H?llo
  replace0=Bonjour
  searchFormat0=Normal
  replaceFormat0=Heading 1
  use1=true
  search1=wo*d
  replace1=tout le monde
  searchFormat1=Heading 1
  replaceFormat1=Heading 2

regEx.b — Corresponds to MS Word "Use wildcards".

wholeWord.b — Corresponds to MS Word "Find whole words only".

matchCase.b — Corresponds to MS Word "Match case".

count.i — Number of search expressions.

replaceALL.i — Should be true.

useX — true/false (enable/disable).

searchX — Search expression.

replaceX — Replace expression.

searchFormat — Name of style to search for.

replaceFormat — Name of style to replace with. The style needs to exist in the document. Note: Replacing text and style in one expression obviously affects the searches in subsequent expressions.

Limitations

  • This step is BETA