Swap Characters

The OCR Dictionary Fielding tool allows you to specify swap characters, which are characters that should be considered equivalent as allowed by a particular application (usually because the characters are so similar that it is acceptable for the application to treat them as interchangeable). The tool can freely substitute swap characters without incurring any penalty. For example, if the input string was “5UPPLY”, the fielding allowed only uppercase letters A through Z for the first character position, and the swap character set included “5” == “S”, then the tool would return “SUPPLY” as the valid result string.

Note:

The OCR Dictionary Fielding tool favors the original character over the swapped characters, in that the tool favors strings that match the original characters over strings that match the swapped characters of the original characters.

The swap characters are 1-to-1 (such as “5” for “S”). Many-to-1 swapping (such as “m” for “rn”) is not supported.

For more details, see the ch_cvl/ocswapch.h header file.