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

Text preceding the characters of a family- Tb

- Instruction: Tb"%"

- Parameter: "%" a text

- Return: true if the text preceding the sequence of characters of the same family is "%".

- Description:

Returns true if the text preceding the character family where the index is located is the one specified. Character family means characters belonging to the family of letters, numbers, punctuation, spaces or other characters. The character family is established using the first character of the code text string.

Group characters can be absolute, type, or family characters. An absolute character is the one that is immediately comparable, for example "abc123", i.e. 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 type or family of the character. 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

Upper and lower case letters must be respected. The analysis of the text is done from right to left. In case you use the command about inclusion or exclusion of spaces, you must use it starting from the right.

- Examples

Text string: a

Braille string: 456

Condition: Tb "12"

Description: Returns true if the text "12" is present before the letter "a" and all other letters that precede it. For example in the word "12boat" the two "a" are transcribed with the cell "456".

Text string: 5

Braille string: 26

Condition: Tb "biblos

Description: Returns true if the text "biblos" is present before the number "5" and all other numbers that precede it. For example, if the text "biblos12345" is present, the number "5" is transcribed with cell "26".