The accessibility API enables text selection and editing more powerful than what Dragon provides natively, to a wider range of applications (e.g. Google Chrome on Windows and Mozilla Firefox on Windows and X11). It is currently in Beta and the API may change at any time.
The base requirements for the API may be installed by running the following command:
pip install 'dragonfly2[accessibility]'
Next, add the following to your ~/.profile file:
export GTK_MODULES=gail:atk-bridge export OOO_FORCE_DESKTOP=gnome export GNOME_ACCESSIBILITY=1 export QT_ACCESSIBILITY=1 export QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1
Some applications will not support assistive technologies unless these
settings are enabled. You may also need to enable GNOME accessibility with
gsettings set org.gnome.desktop.interface toolkit-accessibility true
git clone https://git.debian.org/git/pkg-a11y/check-a11y cd check-a11y ./troubleshoot
Most functionality works properly on X11, except for a few known issues:
- Text selection occasionally requires use of the Mouse action due to limitations of the text selection API.
- LibreOffice treats each paragraph as a separate focusable element, so movement between paragraphs is not yet supported.
This module initializes the accessibility controller for the current platform.
Get the OS-independent accessibility controller which is the gateway to all accessibility functionality. Returns None if OS is not supported.
OS-independent controller for accessing accessibility functionality.
True if an editable text field is focused.
Moves the cursor before or after text that matches the provided query.
Replaces text which matches the provided query.
Selects text which matches the provided query.
Stops the controller (otherwise process exit may be blocked).
TextQuery(start_phrase='', start_relative_position=None, start_relative_phrase='', through=False, end_phrase='', end_relative_position=None, end_relative_phrase='')¶
A query to match a range of text.
The phrase at the end of the match (or the sole phrase).
The phrase to match before or after at the end.
The phrase at the start of the match.
The phrase to match before or after at the start.
True if matching from a start point to the end phrase.