Character preceding characters of a family- Cb
- Instruction: Cb%
- Parameter: % a character
- Return: true if the character before the sequence of characters of the same family is %
- Description:
Returns true if the character before 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 specified as an instruction parameter must be different from the character family specified in the code text string, otherwise the instruction always returns false. The character family is established using the first character of the code text string.
The character specified as a parameter can be absolute or of type. To specify the type character the activator "\" is put before the character type. The types that can be used are:
Cb\* - Any character, except space
Cb\w - Any letter or number
Cb\? - Any letter
Cb\# - Any number
Cb\% - Any consonant
Cb\& - Any vowel
Cb\@ - Any accented vowel
Cb\< - Any lowercase letter
Cb\> - Any capital letter
Cb\_ - Any punctuation
Cb\' - Any apostrophe
Cb\- - Any hyphen
Cb\! - Any character other than letters, numbers and punctuation
Cb\s - Any space
Cb\n - Any null character (for example at the end or beginning of a line)
Cb\\ - The inverted slash "\".
- Examples
Text string: a
Braille string: 456
Condition: Cb1
Description: Returns true if before the letter "a" - and all other letters preceding it - there is the character "1". For example, in the word "1boat" the "a" are transcribed with the cell "456".
Text string: 5
Braille string: 26
Condition: Cb°
Description: Returns true if before the number "5" - and all other numbers preceding it - there is the symbol "°". For example, if the text "°13531" is present, the number "5" is transcribed with cell "26".
Text string: B12
Braille string: 123456
Condition: CbZ
Description: this condition will always return false, because the letter family with which the text string "B12" begins belongs to the same letter family as the character "Z" used in the instruction. So even if the text encountered started with the letter "Z", it would be skipped because it belongs to the same letter family as "B".