Insert a dictionary
Dictionaries can supplement format definitions by providing a list of words to search for and in some situations, to replace.
For example, a format definition requires a list of unique cost codes to be specified as possible search values. The list would be too long to add to format definition, so you can insert a dictionary containing the codes instead.
Another example would be a dictionary set up to replace month names. So
January
maps to
01
,
February
maps to
02
, and so forth through
December
that maps to
12
. You can then add a format definition using that dictionary to capture the day and year, enabling
January 3, 2013
to be returned as
01 3, 2013
.
When using a dictionary as part of a regular expression, if the Ignore Blanks option is selected, it does not ignore spaces that are long enough to be classified as a tab. As a result, if your regular expression does not return the results you expect, the space left or right of the dictionary match might be big enough to be considered a tab, so consider adding a \t? to your expression.
You can insert a dictionary by following these steps:
- Open the locator properties.
- On the Format Definitions tab, in the Formats group, click Dictionaries.
-
Click
Dictionary Settings.
The Dictionary tab in the Project Settings window is displayed.
- From the list, select the dictionary to insert. If no dictionaries are present, add the required dictionary.
- Open a test document and click Test to test your settings.
- Optionally, configure the keywords and regions.
- Optionally, click Close to close the locator properties window.
- Save the changes to your project.