Skip to main content
Assume that the YOUR PLANET NAME field always contains only one line. Since, unlike the field name, the data in this field are not fixed, you must define it as a Character String element. To create the PlanetName element:
  1. Create an element of type Character String and name it PlanetName.
    Screenshot of the General tab of the Character String element properties in ABBYY FlexiLayout Studio showing the new element named PlanetName.
  2. Click the Character String tab.
    Screenshot of the Character String tab of the PlanetName element properties in ABBYY FlexiLayout Studio where the alphabet and character settings are configured.
  3. Set the alphabet, that is, all the characters that may be encountered in the names of planets and their satellites. Judging by the test images, the alphabet consists of English letters and parentheses. To set the alphabet, click the Add… button and select the required characters in the Add New Alphabet dialog box.
    The selected characters will be displayed in the Character Set column, (Character String tab, Alphabets field).
  4. Set the Percentage of alphabet characters to 100. This means that the program will take into account only the characters of the current element when looking for the object corresponding to the PlanetName element.
    Screenshot of the Character String tab of the PlanetName element properties in ABBYY FlexiLayout Studio showing the configured alphabet with the Percentage of alphabet characters set to 100.
    Generally, you can specify several alphabets for one element. In the Percentage of alphabet characters field, specify the maximum percentage of the characters of each alphabet in the element.
  5. Clear the Allow embedded hypotheses box. This will allow the program to formulate hypotheses which have the maximum length and meet all the search criteria. Otherwise the program may formulate several embedded hypotheses, each consisting of portions of one of the selected alphabets (taking into account the allowed percentage of non-alphabet characters).
  6. In the Percentage of non-alphabet characters field set the maximum percentage of non-alphabet characters to 10%.
    This value can only be selected by trial and error and can be changed when adjusting the FlexiLayout.
  7. In the Character count field, specify this fuzzy range: {0, 3, 35, 100}. This is an estimate of the length of the character string, assuming that planet names may have from 3 to 35 characters. Any hypotheses outside this range will be penalized.
    This value can only be selected by trial and error and can be changed when adjusting the FlexiLayout.
  8. Click the Relations tab.
    Screenshot of the Relations tab of the PlanetName element properties in ABBYY FlexiLayout Studio where relations to the reference element are defined.
  9. Use the PlanetNameHeader element as the reference element for the PlanetName element. The name of the planet will always be to the right of the field name and will be located on the same level as the name. Therefore, you must specify the location of the element relative to the name and to the name’s top and bottom boundaries. Otherwise, the program will formulate valid hypotheses for any text fragment that consists of characters of the set alphabet, even if it is located higher or lower than the name. To sum up: the program must look for the name of the planet described by the PlanetName element to the right of the field name specified as the PlanetNameHeader element and located on the same level as the PlanetNameHeader element.
  10. Specify that the PlanetName element is located to the right of the PlanetNameHeader element.
    For this, click the Add button and in the dialog box that opens select PlanetNameHeader in the Reference element field. From the Type drop-down list, select Right of and leave the default value of the Offset field equal to 0. Click the Add Relation button.
Screenshot of the Add Relation dialog box in ABBYY FlexiLayout Studio with PlanetNameHeader chosen as the reference element, the Right of relation type, and an Offset of 0.
  1. Specify that the PlanetName element is located not lower than the PlanetNameHeader element. For this, click the Add button and in the dialog box that opens select PlanetNameHeader in the Reference element field. In the Type drop-down list, select Above and set Offset to -100 (this value can only be selected by trial and error). This will give the program some leeway when detecting the position of the element relative to the name. The negative Offset value means that the element is located above the bottom boundary of the name. Click the Add Relation button.
  2. Specify that the PlanetName element is located not higher than the PlanetNameHeader element.
    For this, click the Add button and in the dialog box that opens select PlanetNameHeader in the Reference element field. In the Type drop-down list, select Below and set Offset to -100 (this value can only be selected by trial and error).
    This will give the program some leeway when detecting the position of the element relative to the name. The negative Offset value means that the element is located below the top boundary of the name. Click the Add Relation button.
    If you select <whole> in the Reference boundary field, positive Offset values allow you to specify only the following locations: to the right of the right-hand boundary of the element, to the left of the left-hand boundary of the element, higher than the top boundary of the element, or lower than the bottom boundary of the element.If you select Top and Bottom in the Reference boundary field, positive Offset values will limit the search area by the top and bottom boundaries of the element and exclude hypotheses which go beyond the top and bottom boundaries of the name of the field.