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

Conditional language and programmable braille codes

Every window to add or modify a braille code has a Conditions field, where you can use a specially designed and developed programming language. The conditional language has logical operators and instructions. Each instruction is always written in a contracted form, almost always two letters long.

The Conditions field of each code contains instructions that condition the transcription of the text. Each code in this way is an active element of braille translation, and can behave differently depending on the conditions specified in it. All conditional language instructions are contained in a contextual menu associated with the field, so they can be called from the menu when needed.

The key instructions generally consist of two letters. It is essential to respect upper and lower case letters. Consider that these instructions are interpreted on the fly by Biblos during the preparation of a text. Since they are used hundreds of thousands of times in a few seconds, it was preferable to give them this contracted structure to optimize their execution.

The conditional statement line always results in a boolean value true or false. If the boolean expression returns true the code is used, ignored if false. The Conditions line can accommodate a maximum of 60 characters.

An example: a new braille code is added; the text string is the letter "a"; the braille string is the cell "123456"; according to the conditions below:

- Wb - The letter "a" is transcribed only if it is the initial of a word

- Wm - The letter "a" is transcribed only if in the middle of a word

- We - The letter "a" is transcribed only if it is the end of a word

- Wb|We - The letter "a" is written only if initial or final of a word

- Ww - The letter "a" is transcribed only if it is the whole word.

Sometimes there are multiple ways to get the same result. It is useful to use the shortest way, so as not to overload the braille translation system.