Previous character type- Cl
- Instruction: Cl%
- Parameter: % is the symbol of type
- Return: true if the previous character belongs to the specified type.
- Description:
Returns true if the preceding character belongs to the specified type. The symbols that identify the character type are similar to the wildcards used in find and replace. The types that can be used are:
Cl* - Any character except space
Clw - Any letter or number
Cl? - Any letter
Cl# - Any number
Cl% - Any consonant
Cl& - Any vowel
Cl@ - Any accented vowel
Cl< - Any lowercase letter
Cl> - Any capital letter
Cl_ - Any punctuation
Cl' - Any apostrophe
Cl- - Any hyphen
Cl! - Any character other than letters, numbers and punctuation
Cls - Any space
Cln - Any null character (for example at the end or beginning of a line)
In case more than one "Cl" instruction is used within the same condition, it is advisable to use only one "Ch" instruction.
- Examples:
Text string: a
Braille string: 456
Condition: Cl%
Description: The letter "a" is transcribed with the cell "456" if it is preceded by a consonant.
String: biblos
Braille string: 12 234
Condition: Cl_|Cls
Description: The word "biblos" is transcribed with cells "12 234" if it is preceded by a punctuation mark or a space. The condition can be replaced by the statement: Ch"\_\s" only