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

Add or Edit a Writing Element

The writing element is the last agent in the typing system. It has three cascading elements that instruct the system whether to actually type a character or text. The window displays three fields:

- Text or command: Contains the character or text that will be typed if the condition is met. Alternatively, a menu command can be chosen. The menu command will only be executed when in the document window. You can use the variable "%text%", which will be replaced by the selected text, if any, during typing.

- Condition of text: Field that contains conditional expressions, instructions that tell the system whether to accept or reject the writing element. These instructions allow for control of the context surrounding the text cursor to determine if the writing element can insert the character or text (or execute the command). This field is associated with a contextual menu that also contains usable conditional instructions.

- Action on text: If the Condition returns a positive value, the instructions in the Action field are executed. These instructions perform specific operations on the text, such as deleting characters, before the final writing action.

The execution flow of a writing element is as follows:

1. The instructions in the "Condition" line are processed. If the processing returns a negative value, the writing element is discarded, and the evaluation moves to the next writing element (if available). If the "Condition" returns a positive value, execution moves to the Text Action. An empty "Condition" line always returns a positive value.

2. The "Text Action" line is executed.

3. The character or text typing is executed. If the line contains a menu command and is in the document window, the menu command is executed.

In all fields of this window, the “^” activator can be used. For more information on how to use the activator, see the specific chapter in the "Find and Replace" section.