Skip to main content
The Character String element supports the following parameters in the FlexiLayout language.

Character String parameters

Parameter examples

AllowEmbeddedHypotheses

The following code tells FlexiLayout Studio to generate the longest hypothesis.

MinQuality

The following code tells FlexiLayout Studio to ignore hypotheses whose quality is lower than 0.95.

MaxNonDefinedCount

The following code tells FlexiLayout Studio that the string may contain up to 30% of characters that do not belong to any of the specified alphabets.

TotalChainLength

The following code tells FlexiLayout Studio to look for a line 5 to 10 characters long.

MaxGapInLine

The following code tells FlexiLayout Studio that the maximum distance between neighboring characters may not exceed 5 mm. Otherwise, a null hypothesis is generated.

AddAlphabet

The following code tells FlexiLayout Studio to add an alphabet consisting of the characters №, #, %, and *, whose percentage in the hypothesis may not exceed 10%.
You can only add characters that are not part of any of the alphabets specified for the current element.

RegularExpression

The following regular expression looks for a string where characters may be arranged in one of two ways: 2 digits, a hyphen (-), 1 digit; or the letter N, a digit from 1 to 5, a forward slash (/), 1 to 3 digits.
This is equivalent to: