Skip to main content
Define the number of servings as a Character String element named Portions.
1

Create the Character String element

Create an element of type Character String and name it Portions.
2

Open the Character String tab

Click the Character String tab.
3

Set the alphabet

Set the required alphabet. Judging by the test images, the alphabet includes all the digits and the letters T, t, O, and o.
4

Set the percentage of alphabet characters

In the Percentage of alphabet characters field, enter 1.
5

Disable embedded hypotheses

Clear the Allow embedded hypotheses check box.
6

Set the percentage of non-alphabet characters

In the Percentage of non-alphabet characters field, set the maximum to 20%.
7

Set the character count

In the Character count field, specify this fuzzy range: {0, 1, 10, 15}. This estimates the string length, assuming the number of characters is from 1 to 10. Any hypotheses outside this range are penalized.
8

Open the Relations tab

Click the Relations tab.
9

Constrain the horizontal position

The number of servings is always to the right of the word Serves, and the distance between the right boundary of Serves and the right boundary of the number cannot exceed 200 dots.Specify these search constraints:
  • Right of the Serves element, Offset = 0
  • Left of the Serves element, Offset = -200, Reference boundary = Right
10

Constrain the vertical position

The number of servings is always on the same level as the word Serves.Add these search constraints:
  • Above the Serves element, Offset = -50
  • Below the Serves element, Offset = -50