DiGrande.it

Blind, Braille and Embossing Technologies

This site uses cookies to personalize content and ads, provide social media features and analyze links. By closing this banner or continuing to browse, you consent to their use.
Read the DiGrande.it Cookie Policy

Next text (Tn)

Instruction: Tn"%"

Parameter: "%" text consisting of absolute characters, type, or family.

Return: true if the next text matches the specified group.

Description:

Returns true if the text starting from the cursor satisfies the specified characters in the group. The characters in the group can be absolute, type, or family.

An absolute character is one that is immediately comparable, for example, "abc123", meaning all characters from the Unicode set.

Type characters are those belonging to a specific type of characters, such as letters, consonants, vowels, numbers, etc.

A family character identifies a sequence of characters of the same type, such as letters, numbers, punctuation, or spaces.

A type or family character is specified using the backslash "\" followed by the character type. The list of type and family characters is as follows:

\* - Any character except space

\w - Any letter or number

\? - Any letter

\# - Any number

\% - Any normal consonant

\$ - Any consonant with diacritic

\z - Any consonant

\& - Any normal vowel

\@ - Any vowel with diacritic

\a - Any vowel

\< - Any lowercase letter

\> - Any uppercase letter

\_ - Any punctuation

\' - Any apostrophe

\- - Any hyphen

\! - Any character other than letters, numbers, and punctuation

\s - Any space

\n - Any null character (for example, at the end or beginning of a line)

\\ - The backslash itself

\L - A sequence of letters

\N - A sequence of numbers

\W - A sequence of letters or numbers

\P - A sequence of punctuation

\S - A sequence of spaces

\x - Includes space comparison (default flag)

\X - Excludes space comparison. If specified, the comparison index moves forward until a non-space character is encountered

\c - Case-insensitive comparison (default flag)

\C - Case-sensitive comparison

It is necessary to respect the uppercase and lowercase letters of these wildcards. Text analysis is performed from left to right. In the case of using the command for space inclusion or exclusion and for case-insensitive comparison, these flags must be used from the left.

Example:

Condition: Tn"\X\CA”

Description: Returns true if starting from the cursor, there is text that satisfies the specified pattern. In this case, from the cursor onwards, there must be an uppercase letter "A", regardless of whether there are spaces between the cursor and the letter. Note that the commands for excluding spaces and including case-insensitive comparison have been placed at the beginning because they will be the first instructions to be evaluated.