Appendix → Search/Replace DOCX file

This document has a minimum of 2 tables. The first tables contains a list of all rulesets. This table also determines the processing sequence. An example is displayed below. A ruleset will only be processed after confirmation.

Table 1. Tables to be processed in order of processing

2 Standard search and replace actions
3 Table for search and replace actions without clear replacements
4 Table old spelling to current spelling

The real replacementables consists out of 7 columns. Each column has its own meaning.

  • Column 1 indicates if in the search command wildcards are to be used or not. This a very strong feature of Word and strongly resembles Regular Expressions. This cannot be combined with the CaseSensitive and WholeWord option.
  • Column 2 indicates if for each replacement confirmation has to be given. This is particularly useful if the content of the search string can be right or wrong depending on its use case.
  • Column 3 indicates if the search is case sensitive.
  • Column 4 indicates if the search is a whole word
  • Column 5 contains the search string. Special characters should be avoided. The editor contains a helper to translate the characters to their code representative.
  • Column 6 contains the replacement string. Special characters should be avoided. The editor contains a helper to translate the characters to their code representative. This is an optional field and can be empty.
  • Column 7 gives a short description of the command. This is also displayed during the execution.

A short example:

Table 2. Standard Search and replace actions

0 0 0 0 ^32-^32 ^32^=^32 Replace space hyphen space by space en-dash space
1 0 0 0 -{2;} ^32^=^32 Replace two short hyphens by en-dash
0 0 0 0 ^32–^32 ^32^=^32 Replace long hyphen by en-dash
0 0 0 0 ^+ ^= Replace em-dash by en-dash

There is an example document on the site. The international version contains a limited set. The Dutch version contains much more examples (more than 200).