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

Character instructions

Instructions that use individual characters always start with the letter C (capital C). Below is a list of all available instructions.

- Cp% - Prior character

Returns TRUE if the prior character is %. For example: Cp1 - Returns if the prior character is "1".

- Cn% - Next character

Returns TRUE if the character following the index is %. For example: Cn1 - Returns if the next character is "1".

- Cl* - Character type before

Returns TRUE if the prior character type is of the specified type. The font should be specified using the symbols already seen in the Find and Replace features. This is the list of usable symbols:

Cl? - Any letter

Cl# - Any number

Cl% - Any consonant

Cl& - Any vowels

Cl@ - Any accented vowels

Cl< - Any lower case letter

Cl> - Any upper case letter

Cl_ - Any punctuation

Cl' - Any Apostrophe

Cl- - Any hyphen

Cls - Any space

Cln - Any null character (for example at the end or beginning of the line).

For example, using "Cl&" the result is TRUE if the character before the index is a vowel.

- Cr* - Character type after

Returns TRUE if the character type following the index is of the specified type. The font should be specified using the symbols already seen in the Find and Replace features. This is the list of usable symbols:

Cr? - Any letter

Cr# - Any number

Cr% - Any consonants

Cr& - Any vowels

Cr@ - Any accented vowels

Cr< - Any lower case letter

Cr> - Any upper case letter

Cr_ - Any punctuation

Cr' - Any Apostrophe

Cr- - Any hyphen

Crs - Any space

Crn - Any null character (e.g. at the end or beginning of the line).

For example, using "Cr&" the result is TRUE if the character after the index is a vowel.

- Ci - Character before similar

Returns TRUE if the previous character is similar to the character where the index is. This instruction does not want any other parameters.

- Cf - Character after similar

Returns TRUE if the next character is similar to the one where the index is. This instruction does not want any other parameters.

- Cb% - Character prior to the group

Returns TRUE if the character preceding the character group where the index is located is the one specified. A group is a character belonging to a group of letters, numbers, punctuation, spaces, or other characters. For example, if the index is within a word made up of letters, if the specified character is in front of that word, the instruction returns TRUE.

- Ce% - Subsequent character to the group

Returns TRUE if the character next to the group of characters where the index is located is the one specified. A group is a character belonging to a group of letters, numbers, punctuation, spaces, or other characters. For example, if the index is within a word made up of letters, if the specified character is after that word, the instruction returns TRUE.

- Ca - Character belonging to an abbreviation/acronym

This instruction returns TRUE if the index is within an abbreviation or acronym. A word is identified as an abbreviation or acronym if it is added to dictionaries and its type attributes are activated. This instruction does not want any other parameters.

- Examples of how to use the character instructions

Take the case of a braille code having the textual string "gli", and any braille string.

We insert "Cpa" as a condition. The code shall only be used if a vowel "a" is found before the letter "g".

We insert "Cna" as a condition. The code is used only if a vowel "a" is found after the "i".

We insert "Cpa&Cna" as a condition. The code is used only if an "a" is found before and after "gli".

We insert as a condition "Cl&". The code is used only if any vowel is found before the "g".

We insert as condition "Cr%". The code is used only if any consonant is found after the "i".

We insert "Ci&Cf" as a condition. The code is used only if before the "g" there is a "g", and after the "i" there is another "i".

We insert "Cl& & Cno & Ce." as a condition. In this case it is used only if before the "g" there is a vowel, after the "i" there is a "o" and at the end of the word where "gli" is located there is a full stop ".".