How lines and fragments are identified
The program considers all the text objects which horizontally intersect the search area (vertically the objects must fit within the search area in their entirety). The text objects are then grouped into lines. Lines are built left to right. The program stops building a line when the maximum length of space (set in the Max space length property) is exceeded. In the resulting lines, the program identifies character strings, each of which contains characters only from one of the user-defined alphabets. In a similar fashion, the program divides lines into fragments.Embedded hypotheses
Next, the program formulates a hypothesis for each of the fragments. Depending on whether the Allow embedded hypotheses option is selected, hypotheses are formulated in one of two ways. Suppose the program detected three fragments at a previous stage. If the Allow embedded hypotheses option is selected, hypotheses are formulated as follows:How hypothesis quality is calculated
Once all the possible hypotheses have been generated, the program calculates the Pre-search quality for each (this is an estimate of how well a hypothesis meets the search constraints set in the Properties dialog box on the Character String tab and on the Advanced tab in the Advanced pre-search relations field). At this stage, the quality is calculated based on whether the length of the hypothesis in characters falls within the fuzzy interval specified in the Character count property, on whether the length of the total gap in the line falls within the fuzzy interval specified in TotalGapLength, and on whether the number of words in the line falls within the fuzzy interval specified in the Word count property. The overall quality of a hypothesis is calculated by multiplying all the qualities.Character String hypothesis properties
A Character String hypothesis has the following properties:| Property | Description |
|---|---|
| Element name | The full name of the element. |
| Page | The number of the page on which the element was detected. |
| Surrounding rect | The coordinates of the rectangle which surrounds the region of the hypothesis. |
| Width | The width of the region of the hypothesis. |
| Height | The height of the region of the hypothesis. |
| Text | The characters in the hypothesis. |
| Detected | Shows whether the object described by the element has been found (true) or whether a null hypothesis has been formulated (false). |
| From the best path | Shows whether the found hypothesis belongs to the best path in the tree of hypotheses (true) or not (false). |
| Pre-search quality | How well the hypothesis matches the properties of the element specified by the settings in the Properties dialog box and by the code in the Advanced pre-search relations field. |
| Post-search quality | The quality of the hypothesis after the conditions in the Advanced post-search relations field have been applied. |
| Chain quality | The quality of the chain of hypotheses, from the first subelement of the group to the current subelement. Chain quality is calculated by multiplying the qualities of all the subelements in the chain and is used to compare rival chains of hypotheses. |
