![]() |
Text Field |
Use this dialog to specify a structure of a text field of a text definition.
A regular expression that specifies the character(s) before the field data. If the previous field contains an after expression, then this field does not have to contain a before expression.
A regular expression that specifies the character(s) after the field data. If the following field contains a before expression, then this field does not have to contain an after expression.
A sample line that shows the field structure you have specified above.
Each field has a type. Possible values are:
| Value | Description |
|---|---|
| Text | The item contains the text to be localized. |
| Ignore | The item is ignored. |
| Context | The item contains the context value that is used to identify this record. |
| Comment | The item contains a comment value for the first text column before or after the comment. |
The data type. Possible values are:
| Format | Description |
|---|---|
| Plain text | String contains plain text. |
| Segmented text | String contains the segmented text. |
| Boolean | String contains a boolean value. 1/0, true/false, and yes/no are valid values. |
| Integer number | String contains an integer number. |
| Floating point number | String contains a floating-point number. It can be in scientific format (e.g., 1.45E-12). The decimal separator (if any) must be a period (e.g., 1.5). |
| Color | String contains a color value. Possible formats are [#|$|0x][AA]RRGGBB or [#|$|0x][A]RGB. |
| Date and time | String contains a date and time value. ISO 8601 (Wikipedia) must be used. |
| Expression | String contains a structured string that is defined using an expression. Regular expressions are used to parse the string. |
| Defined text | String contains the defined text. A text definition (using regular expressions) is used to parse the string. |
| Script | String contains script data. A script/source code parser is used to parse the string. |
| XML | String contains XML data. An XML parser is used to parse the string. |
| JSON | String contains JSON data. A JSON parser is used to parse the string. |
| YAML | String contains YAML data. A YAML parser is used to parse the string. |
| INI | String contains INI data. An INI parser is used to parse the string. |
| HTML | String contains HTML data. An HTML parser is used to parse the string. |
| SVG | String contains SVG data. An SVG parser is used to parse the string. |
| Base64 encoded binary data | String contains base64 encoded data. Encoded data is decoded into original binary data and scanned. |
| Base32 encoded binary data | String contains base32 encoded data. Encoded data is decoded into original binary data and scanned. |
| Base16/hex encoded binary data | String contains base16/hex encoded data. Encoded data is decoded into original binary data and scanned. |
| URL encoded binary data | String contains URL encoded data. Encoded data is decoded into original binary data and scanned. |
Check Escape special characters if strings use C/C++-type escape characters.
Optional name of the field. Enter name if you want to give a fixed content for a field. If there is no name, then the context value will be the index of the field. If you add or remove fields, in such case, the existing context values will change. Entering the name keeps the context value the same as long as you do not change the field name or the context field's value.