Next: , Previous: , Up: Customization   [Contents][Index]


2.4.8 Text Properties

By default, after a movement command speechd-el reads the current line. But if the cursor position is surrounded by a text having text properties (typically faces, but any text properties count), speechd-el may read just the piece of the text around the cursor having uniform properties.

Also, if font lock mode is enabled, faces may be mapped to different voices.

speechd-speak-by-properties-on-movement

Method of selection of the piece of text to be read on movement. The variable may take one of the following values.

nil

Text properties are not considered at all.

t

All text properties are considered.

list of faces

Only the named faces are considered.

speechd-speak-by-properties-always

List of commands that always consider text properties, even when the speechd-speak-by-properties-on-movement variable is nil.

speechd-speak-by-properties-never

List of commands that never consider text properties, even when the speechd-speak-by-properties-on-movement variable is non-nil.

speechd-speak-faces

This variable allows you to invoke actions when the cursor ends up on a certain face after a user command is performed. The variable value is an alist with elements of the form (face . action).

If a movement command leaves the cursor on a face and there is no explicit reading bound to the command, action is invoked. If action is a string, that string is read. If action is a function, it is invoked, with no arguments.

speechd-face-voices

Mapping of faces to voices. The variable value is an alist with elements of the form (face . voice) where face is a face and voice is a voice identifier defined in speechd-voices, see Defining voices. Each face is spoken in the corresponding voice. If there’s no item for a given face in this variable, the face is spoken in the current voice.

Note that the mapping takes the effect only if font lock mode is enabled.


Next: Index marking, Previous: Signalling, Up: Customization   [Contents][Index]