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

Text previous group- Th

- Instruction: Th"%"

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

- Return: true if the previous text satisfies the specified group

- Description:

Returns true if the previous text satisfies the specified group characters. The characters in the group can be absolute, type or family characters. An absolute character is the one that is immediately comparable, for example "abc123", that is, all characters in the unicode set. Type characters are those belonging to a character type, 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 "\" activator followed by the character type. The list of type and family characters is as follows:

\* - Any character except space

\w - Any letter and number

\? - Any letter

\# - Any number

\% - Any consonant

\& - Any vowel

\@ - Any accented vowel

\< - Any lowercase letter

\> - Any capital 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 inverted slash

\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 the analysis of the spaces (default)

\X - Excludes the analysis of the spaces

It is necessary to respect upper and lower case letters. The analysis of the text is carried out from right to left. In case you use the command on the inclusion or exclusion of spaces, you must use it starting from the right.

- Examples:

Text string: a

Braille string: 456

Condition: Th"\Nx+\Ny\X".

Description: Returns true if there is text before the text string that satisfies the specified mask. The "a" is transcribed with cell "456" if, for example, the text "1234x + 23y" is present before it. Note that the space exclusion command has been placed to the right of the condition text, because it will be parsed as the first element of the group.