GroupWords

Groups words to the left and right of the previously found word if they are no more than the specified number of character widths apart.

Syntax

bool GroupWords (nSpaces)

Parameters

Long value of the maximum character width separating words to the right and left of the current word. Smart parameters are supported.

Returns

Always True.

Level

Page or field level.

Details

Groups any words to the left and right of a located word if the target words are themselves separated by a character width equal to or less than the character width you specify as a parameter. Regardless of being called at the page or field level, this action operates on the recognized text for the current page.
Example
WordFind("Treasury")
GroupWords("1.5")

If a line contains these words:
20 000 U S Treasury 7 33  

the GroupWords action merges "20" with "000"; "U" with "S" and "7" with "33" to produce:

20 000 U S Treasury 7 33