Compare commits

...

3 Commits

Author SHA1 Message Date
Storm Dragon
524bdd049a Updated the README somewhat. 2024-10-20 21:23:20 -04:00
Storm Dragon
7445eacbca Fixed the PKGBUILD. 2024-10-20 21:16:28 -04:00
Storm Dragon
bc660dc217 More cleanup, changing references to orca to cthulhu instead. 2024-10-20 21:11:35 -04:00
59 changed files with 247 additions and 257 deletions

View File

@ -1,4 +1,4 @@
Orca Authors Cthulhu Authors
Marc Mulcahy Marc Mulcahy
Willie Walker Willie Walker

View File

@ -1867,7 +1867,7 @@
* Release Cthulhu v2.24.0. Somehow I forgot to mark this. * Release Cthulhu v2.24.0. Somehow I forgot to mark this.
The svn version is 4292 and can be found at the tag The svn version is 4292 and can be found at the tag
of ORCA_24_0. of CTHULHU_24_0.
2008-09-20 Joanmarie Diggs <joanmarie.diggs@gmail.com> 2008-09-20 Joanmarie Diggs <joanmarie.diggs@gmail.com>
@ -5747,7 +5747,7 @@
* src/cthulhu/app_gui_prefs.py: * src/cthulhu/app_gui_prefs.py:
src/cthulhu/cthulhu_gui_prefs.py: src/cthulhu/cthulhu_gui_prefs.py:
src/cthulhu/cthulhu_state.py: src/cthulhu/cthulhu_state.py:
Fix breakage to ORCA_MODIFIER-Control-Space to bring up the Fix breakage to CTHULHU_MODIFIER-Control-Space to bring up the
application specific Cthulhu preferences dialog. application specific Cthulhu preferences dialog.
2007-12-12 Willie Walker <william.walker@sun.com> 2007-12-12 Willie Walker <william.walker@sun.com>
@ -10456,7 +10456,7 @@
Fix for bug #372273 - Add ability to configure app-specific Fix for bug #372273 - Add ability to configure app-specific
settings via GUI. settings via GUI.
Adjusted <ORCA MODIFIER>+Control+Space to now bring up Adjusted <CTHULHU MODIFIER>+Control+Space to now bring up
the application specific preferences dialog. The previous the application specific preferences dialog. The previous
usage (reload user settings) is now gone. usage (reload user settings) is now gone.
@ -12574,7 +12574,7 @@
2007-01-07 Willie Walker <william.walker@sun.com> 2007-01-07 Willie Walker <william.walker@sun.com>
* svn+ssh://wwalker@svn.gnome.org/svn/cthulhu/tags/ORCA_2_17_5: * svn+ssh://wwalker@svn.gnome.org/svn/cthulhu/tags/CTHULHU_2_17_5:
final prep for v2.17.5. Everything below this line is included final prep for v2.17.5. Everything below this line is included
in v2.17.5 - many many thanks to all involved. in v2.17.5 - many many thanks to all involved.
@ -17730,7 +17730,7 @@
* po/POTFILES.in: remove Gecko.py. * po/POTFILES.in: remove Gecko.py.
* configure.in: get the ORCA_SETUP_GLADE_DIR working better. * configure.in: get the CTHULHU_SETUP_GLADE_DIR working better.
* src/cthulhu/mag.py: minor attempt to follow the caret when it * src/cthulhu/mag.py: minor attempt to follow the caret when it
moves. moves.
@ -19296,7 +19296,7 @@
* src/cthulhu/{default.py, gnomespeechfactory.py, cthulhu-setup.in, * src/cthulhu/{default.py, gnomespeechfactory.py, cthulhu-setup.in,
cthulhu.py, settings.py, speech.py}, src/cthulhu/scripts/Gecko.py: cthulhu.py, settings.py, speech.py}, src/cthulhu/scripts/Gecko.py:
migrate voice defaults to setting.py. migrate voice defaults to setting.py.
NOTE: THIS REQUIRES YOU TO RERUN ORCA-SETUP. NOTE: THIS REQUIRES YOU TO RERUN CTHULHU-SETUP.
* src/cthulhu/*.py: use string constants to get settings (I got * src/cthulhu/*.py: use string constants to get settings (I got
bit by a mispelling when using raw strings). bit by a mispelling when using raw strings).
@ -19335,7 +19335,7 @@
src/cthulhu/scripts/{Gecko.py,metacity.py}: new speech structure src/cthulhu/scripts/{Gecko.py,metacity.py}: new speech structure
done in collaboration with T.V. Raman of Google who donated done in collaboration with T.V. Raman of Google who donated
code under the LGPL license. NOTE: THIS REQUIRES YOU TO code under the LGPL license. NOTE: THIS REQUIRES YOU TO
RERUN ORCA-SETUP. RERUN CTHULHU-SETUP.
2005-11-14 Rich Burridge <rich.burridge@sun.com> 2005-11-14 Rich Burridge <rich.burridge@sun.com>
@ -19359,7 +19359,7 @@
src/cthulhu/scripts/Gecko.py, src/cthulhu/scripts/gaim.py, src/cthulhu/scripts/Gecko.py, src/cthulhu/scripts/gaim.py,
src/cthulhu/scripts/gcalctool.py, src/cthulhu/scripts/metacity.py: First src/cthulhu/scripts/gcalctool.py, src/cthulhu/scripts/metacity.py: First
pass at new speech system based on conversations with T.V. Raman. pass at new speech system based on conversations with T.V. Raman.
NOTE: THIS REQUIRES YOU TO RERUN ORCA-SETUP. If you don't cthulhu NOTE: THIS REQUIRES YOU TO RERUN CTHULHU-SETUP. If you don't cthulhu
will fail on startup. will fail on startup.
2005-11-09 Mike Pedersen <michael.pedersen@sun.com> 2005-11-09 Mike Pedersen <michael.pedersen@sun.com>

View File

@ -1,6 +1,6 @@
Welcome to Cthulhu Welcome to Cthulhu
We are excited to have you here and welcome your contributions to the Cthulhu screen reader project! This project is a fork of Orca, with a focus on creating an open and collaborative community where contributions are encouraged. We are excited to have you here and welcome your contributions to the Cthulhu screen reader project! This project is a fork of Cthulhu, with a focus on creating an open and collaborative community where contributions are encouraged.
How to Contribute How to Contribute

View File

@ -44,7 +44,7 @@ dist-hook:
echo Creating ChangeLog && \ echo Creating ChangeLog && \
( cd "$(top_srcdir)" && \ ( cd "$(top_srcdir)" && \
echo '# Generated by Makefile. Do not edit.'; echo; \ echo '# Generated by Makefile. Do not edit.'; echo; \
$(top_srcdir)/missing --run git log --pretty=format:"%ai %an <%ae>%n%n %s%n" --name-status ORCA_2_26_0.. ) > ChangeLog.tmp \ $(top_srcdir)/missing --run git log --pretty=format:"%ai %an <%ae>%n%n %s%n" --name-status CTHULHU_2_26_0.. ) > ChangeLog.tmp \
&& mv -f ChangeLog.tmp $(top_distdir)/ChangeLog \ && mv -f ChangeLog.tmp $(top_distdir)/ChangeLog \
|| ( rm -f ChangeLog.tmp ; \ || ( rm -f ChangeLog.tmp ; \
echo Failed to generate ChangeLog >&2 ); \ echo Failed to generate ChangeLog >&2 ); \

10
NEWS
View File

@ -11255,7 +11255,7 @@ Firefox:
* Fix for bug 445578 - Link preview information would be desirable for * Fix for bug 445578 - Link preview information would be desirable for
Firefox. This is obtained when performing a "Where Am I" operation Firefox. This is obtained when performing a "Where Am I" operation
(KP_Enter for desktop bindings, ORCA_MODIFIER+Return for laptop (KP_Enter for desktop bindings, CTHULHU_MODIFIER+Return for laptop
bindings). Many thanks to new community member Scott Haeger for bindings). Many thanks to new community member Scott Haeger for
this functionality! this functionality!
@ -11439,7 +11439,7 @@ General Cthulhu:
of tool tips of tool tips
* Fix for bug 372273 - Add ability to configure app-specific settings * Fix for bug 372273 - Add ability to configure app-specific settings
via GUI. NOTE: Adjusted ORCA_MODIFIER+Control+Space to now bring via GUI. NOTE: Adjusted CTHULHU_MODIFIER+Control+Space to now bring
up the application-specific preferences dialog. The previous usage up the application-specific preferences dialog. The previous usage
(reload user settings) is now gone. (reload user settings) is now gone.
@ -11476,7 +11476,7 @@ Firefox:
stylesheet results in bad behavior stylesheet results in bad behavior
* Partial fix for bug 420540 - Firefox keyboard control wish list. * Partial fix for bug 420540 - Firefox keyboard control wish list.
ORCA_MODIFIER+Z will now toggle the structural navigation keys CTHULHU_MODIFIER+Z will now toggle the structural navigation keys
on/off. on/off.
* Fix for bug 422924 - Add more support for accessing HTML tables in * Fix for bug 422924 - Add more support for accessing HTML tables in
@ -11493,8 +11493,8 @@ Firefox:
of verbiage. Therefore, these are all customizable settings. of verbiage. Therefore, these are all customizable settings.
* Fix for bug 423427 - Need to add form field structural navigation in * Fix for bug 423427 - Need to add form field structural navigation in
Firefox. ORCA_MODIFIER+Tab should move you to the next form field Firefox. CTHULHU_MODIFIER+Tab should move you to the next form field
and ORCA_MODIFIER+Shift+Tab should move you to the previous form and CTHULHU_MODIFIER+Shift+Tab should move you to the previous form
field. field.
* Fix for bug 423435 - Cthulhu is too chatty when loading a page in * Fix for bug 423435 - Cthulhu is too chatty when loading a page in

View File

@ -1,4 +1,4 @@
# Cthulhu v45.3 # Cthulhu
## Introduction ## Introduction
@ -11,20 +11,12 @@ technology service provider interface (AT-SPI), which is the primary
assistive technology infrastructure for the Solaris and Linux assistive technology infrastructure for the Solaris and Linux
operating environments. Applications and toolkits supporting the operating environments. Applications and toolkits supporting the
AT-SPI include the GNOME GTK+ toolkit, the Java platform's Swing AT-SPI include the GNOME GTK+ toolkit, the Java platform's Swing
toolkit, OpenOffice/LibreOffice, Gecko, and WebKitGtk. AT-SPI support toolkit, OpenOffice/LibreOffice, Gecko, WebKitGtk, and KDE Qt toolkit.
for the KDE Qt toolkit is currently being pursued.
See also <http://wiki.gnome.org/Projects/Cthulhu> for detailed information
on Cthulhu, including how to run Cthulhu, how to communicate with the Cthulhu user
community, and where to log bugs and feature requests.
## Dependencies ## Dependencies
Cthulhu v45.x is supported on GNOME 45.x only. We highly suggest you Cthulhu has the following dependencies:
use the latest releases of GNOME because they contain accessibility
infrastructure and application bug fixes that help Cthulhu work better.
Cthulhu also has the following dependencies:
* Python 3 - Python platform * Python 3 - Python platform
* pygobject-3.0 - Python bindings for the GObject library * pygobject-3.0 - Python bindings for the GObject library
@ -39,10 +31,10 @@ Cthulhu also has the following dependencies:
* gstreamer-1.0 - GStreamer - Streaming media framework (optional) * gstreamer-1.0 - GStreamer - Streaming media framework (optional)
You are strongly encouraged to also have the latest stable versions You are strongly encouraged to also have the latest stable versions
of AT-SPI2 and ATK for the GNOME 45.x release. of AT-SPI2 and ATK.
## NOTE FOR BRLTTY USERS: ## Braille
Cthulhu depends upon the Python bindings for BrlAPI available in BrlTTY v4.5 Cthulhu depends upon the Python bindings for BrlAPI available in BrlTTY v4.5
or better. You can determine if the Python bindings for BrlAPI are or better. You can determine if the Python bindings for BrlAPI are
@ -66,10 +58,10 @@ learn mode, press "Escape." Finally, the preferences dialog contains
a "Key Bindings" tab that lists the keyboard binding for Cthulhu. a "Key Bindings" tab that lists the keyboard binding for Cthulhu.
For more information, see the Cthulhu documentation which is available For more information, see the Cthulhu documentation which is available
within Cthulhu as well as at: <https://help.gnome.org/users/cthulhu/stable/> within Cthulhu.
## Scripting Cthulhu ## Scripting Cthulhu
So, you want to write a script for Cthulhu? The best thing to do is So, you want to write a script for Cthulhu? The best thing to do is
start by looking at other scripts under the src/cthulhu/scripts/ hierarchy start by looking at other scripts under the src/cthulhu/scripts/ hierarchy
of the source tree. of the source tree. Cthulhu also has an excellent plugin system, more documentation and examples coming soon.

View File

@ -22,17 +22,17 @@ Make sure you are up to date:
Update ./NEWS with changes from the last tagged release. You can use Update ./NEWS with changes from the last tagged release. You can use
commands like the following: commands like the following:
Detailed commits since the ORCA_40_BETA tag: Detailed commits since the CTHULHU_40_BETA tag:
git log ORCA_40_BETA.. git log CTHULHU_40_BETA..
Short list of translation changes with author names and files: Short list of translation changes with author names and files:
git log ORCA_40_BETA.. --grep translation --pretty=format:"%s - %an" --name-only git log CTHULHU_40_BETA.. --grep translation --pretty=format:"%s - %an" --name-only
Quick-and-dirty formatted list of translation changes: Quick-and-dirty formatted list of translation changes:
git log ORCA_40_BETA.. --grep translation --pretty=format:"%s,%an" --name-only | git log CTHULHU_40_BETA.. --grep translation --pretty=format:"%s,%an" --name-only |
awk -F/ '/\.(po|am)/ {gsub("(\.po|Makefile.am)", "", $NF); printf(",%s",$NF); next;} awk -F/ '/\.(po|am)/ {gsub("(\.po|Makefile.am)", "", $NF); printf(",%s",$NF); next;}
{gsub("(Updated* |Add(ed)* | translation| help)", "", $0); printf("\n%s",$0);}' | {gsub("(Updated* |Add(ed)* | translation| help)", "", $0); printf("\n%s",$0);}' |
awk -F, '!seen[$0]++ {if (NF == 3) printf(" %-15s %-25s %s\n", $3, $1, $2);}' | awk -F, '!seen[$0]++ {if (NF == 3) printf(" %-15s %-25s %s\n", $3, $1, $2);}' |
@ -40,7 +40,7 @@ Quick-and-dirty formatted list of translation changes:
Short list of non-translation commits: Short list of non-translation commits:
git log ORCA_40_BETA.. --grep translation --invert-grep --pretty=format:" * %s%n" git log CTHULHU_40_BETA.. --grep translation --invert-grep --pretty=format:" * %s%n"
NOTE: You should also make sure the external dependencies listed in NOTE: You should also make sure the external dependencies listed in
configure.ac and README are accurate. configure.ac and README are accurate.
@ -56,8 +56,8 @@ COMMIT RELEASE CHANGES AND TAG THE RELEASE:
git commit -a git commit -a
git push git push
git tag -a -s ORCA_40_RC git tag -a -s CTHULHU_40_RC
git push origin ORCA_40_RC git push origin CTHULHU_40_RC
UPLOAD THE RELEASE: UPLOAD THE RELEASE:

2
TODO
View File

@ -1,4 +1,4 @@
- Add Simple Orca Plugin System as native code for Cthulhu - Add Simple Cthulhu Plugin System as native code for Cthulhu
- Merge in sleep mode. - Merge in sleep mode.
- Add in ocrdesktop code so that Cthulhu has native ocr support. - Add in ocrdesktop code so that Cthulhu has native ocr support.
- Get rid of build systems. My hope is git clone and run so long as requirements are satisfied. - Get rid of build systems. My hope is git clone and run so long as requirements are satisfied.

View File

@ -35,8 +35,6 @@ makedepends=(
itstool itstool
yelp-tools yelp-tools
) )
groups=(gnome)
_commit=9e77d1baf9bd24b78d7499ad9b2e8bb80c9a0c81 # tags/ORCA_45_1^0
source=("git+https://git.stormux.org/storm/cthulhu.git") source=("git+https://git.stormux.org/storm/cthulhu.git")
b2sums=('SKIP') b2sums=('SKIP')

View File

@ -2710,7 +2710,7 @@ msgstr ""
"DENGUNA GARANTÍA; ensin denguna implicación de garantía de COMERCIABILIDÁ o CALIDÁ PA DENGÚN PROPÓSITU PARTICULAR. Consulta la Llicencia Pública Xeneral Reducida GNU pa más\n" "DENGUNA GARANTÍA; ensin denguna implicación de garantía de COMERCIABILIDÁ o CALIDÁ PA DENGÚN PROPÓSITU PARTICULAR. Consulta la Llicencia Pública Xeneral Reducida GNU pa más\n"
"detalles.\n" "detalles.\n"
"\n" "\n"
"Tendríes de recibir una copia de la Llicencia Pública Xeneral Reducida de GNU xuntu con ORCA, de lo contrario, escribi a la Free Software Foundation, Inc, Franklin\n" "Tendríes de recibir una copia de la Llicencia Pública Xeneral Reducida de GNU xuntu con CTHULHU, de lo contrario, escribi a la Free Software Foundation, Inc, Franklin\n"
"Street, Fifth Floor, Boston, MA 02110-1301, EE. UU." "Street, Fifth Floor, Boston, MA 02110-1301, EE. UU."
#. DESCRIP #. DESCRIP

View File

@ -1,6 +1,6 @@
# translation of cthulhu.HEAD.po to Español # translation of cthulhu.HEAD.po to Español
# Traducción de Cthulhu al Español # Traducción de Cthulhu al Español
# This file is distributed under the same license as the ORCA package. # This file is distributed under the same license as the CTHULHU package.
# Copyright (C) 2005 GNOME Foundation. # Copyright (C) 2005 GNOME Foundation.
# #
# Francisco Javier F. Serrador <serrador@cvs.gnome.org>, 2004, 2006. # Francisco Javier F. Serrador <serrador@cvs.gnome.org>, 2004, 2006.
@ -15099,7 +15099,7 @@ msgstr ""
#~ "detalles.\n" #~ "detalles.\n"
#~ "\n" #~ "\n"
#~ "Debería haber recibido una copia de la Licencia Pública General Reducida " #~ "Debería haber recibido una copia de la Licencia Pública General Reducida "
#~ "de GNU junto con ORCA, de lo contrario, escriba a la Free Software " #~ "de GNU junto con CTHULHU, de lo contrario, escriba a la Free Software "
#~ "Foundation, Inc, \n" #~ "Foundation, Inc, \n"
#~ "Franklin Street, Fifth Floor, Boston, MA 02110-1301, EE. UU." #~ "Franklin Street, Fifth Floor, Boston, MA 02110-1301, EE. UU."

View File

@ -1,6 +1,6 @@
# Përkthimi i cthulhu.HEAD në shqip. # Përkthimi i cthulhu.HEAD në shqip.
# Copyright (C) 2007 Free Software Foundation, Inc. # Copyright (C) 2007 Free Software Foundation, Inc.
# This file is distributed under the same license as the ORCA package. # This file is distributed under the same license as the CTHULHU package.
# #
# Laurent Dhima <laurenti@alblinux.net>, 2007. # Laurent Dhima <laurenti@alblinux.net>, 2007.
msgid "" msgid ""

View File

@ -81,7 +81,7 @@ class ActionPresenter:
keybindings.KeyBinding( keybindings.KeyBinding(
"a", "a",
keybindings.defaultModifierMask, keybindings.defaultModifierMask,
keybindings.ORCA_SHIFT_MODIFIER_MASK, keybindings.CTHULHU_SHIFT_MODIFIER_MASK,
self._handlers.get("show_actions_menu"))) self._handlers.get("show_actions_menu")))
return bindings return bindings

View File

@ -95,21 +95,21 @@ class Bookmarks:
keybindings.KeyBinding( keybindings.KeyBinding(
"b", "b",
keybindings.defaultModifierMask, keybindings.defaultModifierMask,
keybindings.ORCA_MODIFIER_MASK, keybindings.CTHULHU_MODIFIER_MASK,
self._handlers.get("goToNextBookmark"))) self._handlers.get("goToNextBookmark")))
bindings.add( bindings.add(
keybindings.KeyBinding( keybindings.KeyBinding(
"b", "b",
keybindings.defaultModifierMask, keybindings.defaultModifierMask,
keybindings.ORCA_SHIFT_MODIFIER_MASK, keybindings.CTHULHU_SHIFT_MODIFIER_MASK,
self._handlers.get("goToPrevBookmark"))) self._handlers.get("goToPrevBookmark")))
bindings.add( bindings.add(
keybindings.KeyBinding( keybindings.KeyBinding(
"b", "b",
keybindings.defaultModifierMask, keybindings.defaultModifierMask,
keybindings.ORCA_ALT_MODIFIER_MASK, keybindings.CTHULHU_ALT_MODIFIER_MASK,
self._handlers.get("saveBookmarks"))) self._handlers.get("saveBookmarks")))
for i in range(6): for i in range(6):
@ -117,14 +117,14 @@ class Bookmarks:
keybindings.KeyBinding( keybindings.KeyBinding(
str(i + 1), str(i + 1),
keybindings.defaultModifierMask, keybindings.defaultModifierMask,
keybindings.ORCA_MODIFIER_MASK, keybindings.CTHULHU_MODIFIER_MASK,
self._handlers.get("goToBookmark"))) self._handlers.get("goToBookmark")))
bindings.add( bindings.add(
keybindings.KeyBinding( keybindings.KeyBinding(
str(i + 1), str(i + 1),
keybindings.defaultModifierMask, keybindings.defaultModifierMask,
keybindings.ORCA_ALT_MODIFIER_MASK, keybindings.CTHULHU_ALT_MODIFIER_MASK,
self._handlers.get("addBookmark"))) self._handlers.get("addBookmark")))
return bindings return bindings

View File

@ -144,7 +144,7 @@ class CaretNavigation:
keybindings.KeyBinding( keybindings.KeyBinding(
"F12", "F12",
keybindings.defaultModifierMask, keybindings.defaultModifierMask,
keybindings.ORCA_MODIFIER_MASK, keybindings.CTHULHU_MODIFIER_MASK,
self._handlers.get("toggle_enabled"))) self._handlers.get("toggle_enabled")))
bindings.add( bindings.add(
@ -229,7 +229,7 @@ class CaretNavigation:
_settings_manager = settings_manager.getManager() _settings_manager = settings_manager.getManager()
enabled = not _settings_manager.getSetting('caretNavigationEnabled') enabled = not _settings_manager.getSetting('caretNavigationEnabled')
if enabled: if enabled:
string = messages.CARET_CONTROL_ORCA string = messages.CARET_CONTROL_CTHULHU
else: else:
string = messages.CARET_CONTROL_APP string = messages.CARET_CONTROL_APP

View File

@ -308,7 +308,7 @@ class Chat:
# #
self.messageKeys = \ self.messageKeys = \
["F1", "F2", "F3", "F4", "F5", "F6", "F7", "F8", "F9"] ["F1", "F2", "F3", "F4", "F5", "F6", "F7", "F8", "F9"]
self.messageKeyModifier = keybindings.ORCA_MODIFIER_MASK self.messageKeyModifier = keybindings.CTHULHU_MODIFIER_MASK
self.inputEventHandlers = {} self.inputEventHandlers = {}
self.setupInputEventHandlers() self.setupInputEventHandlers()
self.keyBindings = self.getKeyBindings() self.keyBindings = self.getKeyBindings()
@ -387,7 +387,7 @@ class Chat:
keybindings.KeyBinding( keybindings.KeyBinding(
messageKey, messageKey,
self.messageKeyModifier, self.messageKeyModifier,
keybindings.ORCA_MODIFIER_MASK, keybindings.CTHULHU_MODIFIER_MASK,
self.inputEventHandlers["reviewMessage"])) self.inputEventHandlers["reviewMessage"]))
return keyBindings return keyBindings

View File

@ -457,7 +457,7 @@ TOGGLE_SPEECH_VERBOSITY = _("Toggle speech verbosity level")
# Translators: this string is associated with the keyboard shortcut to quit # Translators: this string is associated with the keyboard shortcut to quit
# Cthulhu. # Cthulhu.
QUIT_ORCA = _("Quit the screen reader") QUIT_CTHULHU = _("Quit the screen reader")
# Translators: the preferences configuration dialog is the dialog that allows # Translators: the preferences configuration dialog is the dialog that allows
# users to set their preferences for Cthulhu. # users to set their preferences for Cthulhu.

View File

@ -32,26 +32,26 @@ from . import keybindings
# Storing values # Storing values
defaultModifierMask = keybindings.defaultModifierMask defaultModifierMask = keybindings.defaultModifierMask
ORCA_MODIFIER_MASK = keybindings.ORCA_MODIFIER_MASK CTHULHU_MODIFIER_MASK = keybindings.CTHULHU_MODIFIER_MASK
NO_MODIFIER_MASK = keybindings.NO_MODIFIER_MASK NO_MODIFIER_MASK = keybindings.NO_MODIFIER_MASK
ORCA_SHIFT_MODIFIER_MASK = keybindings.ORCA_SHIFT_MODIFIER_MASK CTHULHU_SHIFT_MODIFIER_MASK = keybindings.CTHULHU_SHIFT_MODIFIER_MASK
ORCA_CTRL_MODIFIER_MASK = keybindings.ORCA_CTRL_MODIFIER_MASK CTHULHU_CTRL_MODIFIER_MASK = keybindings.CTHULHU_CTRL_MODIFIER_MASK
ORCA_ALT_MODIFIER_MASK = keybindings.ORCA_ALT_MODIFIER_MASK CTHULHU_ALT_MODIFIER_MASK = keybindings.CTHULHU_ALT_MODIFIER_MASK
ORCA_CTRL_ALT_MODIFIER_MASK = keybindings.ORCA_CTRL_ALT_MODIFIER_MASK CTHULHU_CTRL_ALT_MODIFIER_MASK = keybindings.CTHULHU_CTRL_ALT_MODIFIER_MASK
SHIFT_ALT_MODIFIER_MASK = keybindings.SHIFT_ALT_MODIFIER_MASK SHIFT_ALT_MODIFIER_MASK = keybindings.SHIFT_ALT_MODIFIER_MASK
keymap = ( keymap = (
("space", defaultModifierMask, ORCA_MODIFIER_MASK, ("space", defaultModifierMask, CTHULHU_MODIFIER_MASK,
"preferencesSettingsHandler"), "preferencesSettingsHandler"),
("space", defaultModifierMask, ORCA_CTRL_MODIFIER_MASK, ("space", defaultModifierMask, CTHULHU_CTRL_MODIFIER_MASK,
"appPreferencesSettingsHandler"), "appPreferencesSettingsHandler"),
("BackSpace", defaultModifierMask, ORCA_MODIFIER_MASK, ("BackSpace", defaultModifierMask, CTHULHU_MODIFIER_MASK,
"bypassNextCommandHandler"), "bypassNextCommandHandler"),
("q", defaultModifierMask, ORCA_MODIFIER_MASK, ("q", defaultModifierMask, CTHULHU_MODIFIER_MASK,
"shutdownHandler"), "shutdownHandler"),

View File

@ -132,7 +132,7 @@ OBJECT_NAVIGATOR = "object-navigator"
SAY_ALL = "say-all" SAY_ALL = "say-all"
def getActiveModeAndObjectOfInterest(): def getActiveModeAndObjectOfInterest():
tokens = ["ORCA: Active mode:", cthulhu_state.activeMode, tokens = ["CTHULHU: Active mode:", cthulhu_state.activeMode,
"Object of interest:", cthulhu_state.objOfInterest] "Object of interest:", cthulhu_state.objOfInterest]
debug.printTokens(debug.LEVEL_INFO, tokens, True) debug.printTokens(debug.LEVEL_INFO, tokens, True)
return cthulhu_state.activeMode, cthulhu_state.objOfInterest return cthulhu_state.activeMode, cthulhu_state.objOfInterest
@ -150,42 +150,42 @@ def emitRegionChanged(obj, startOffset=None, endOffset=None, mode=None):
try: try:
obj.emit("mode-changed::" + mode, 1, "") obj.emit("mode-changed::" + mode, 1, "")
except Exception: except Exception:
msg = "ORCA: Exception emitting mode-changed notification" msg = "CTHULHU: Exception emitting mode-changed notification"
debug.printMessage(debug.LEVEL_INFO, msg, True) debug.printMessage(debug.LEVEL_INFO, msg, True)
if mode != cthulhu_state.activeMode: if mode != cthulhu_state.activeMode:
tokens = ["ORCA: Switching active mode from", cthulhu_state.activeMode, "to", mode] tokens = ["CTHULHU: Switching active mode from", cthulhu_state.activeMode, "to", mode]
debug.printTokens(debug.LEVEL_INFO, tokens, True) debug.printTokens(debug.LEVEL_INFO, tokens, True)
cthulhu_state.activeMode = mode cthulhu_state.activeMode = mode
try: try:
tokens = ["ORCA: Region of interest:", obj, "(", startOffset, ")", endOffset] tokens = ["CTHULHU: Region of interest:", obj, "(", startOffset, ")", endOffset]
debug.printTokens(debug.LEVEL_INFO, tokens, True) debug.printTokens(debug.LEVEL_INFO, tokens, True)
obj.emit("region-changed", startOffset, endOffset) obj.emit("region-changed", startOffset, endOffset)
except Exception: except Exception:
msg = "ORCA: Exception emitting region-changed notification" msg = "CTHULHU: Exception emitting region-changed notification"
debug.printMessage(debug.LEVEL_INFO, msg, True) debug.printMessage(debug.LEVEL_INFO, msg, True)
if obj != cthulhu_state.objOfInterest: if obj != cthulhu_state.objOfInterest:
tokens = ["ORCA: Switching object of interest from", cthulhu_state.objOfInterest, "to", obj] tokens = ["CTHULHU: Switching object of interest from", cthulhu_state.objOfInterest, "to", obj]
debug.printTokens(debug.LEVEL_INFO, tokens, True) debug.printTokens(debug.LEVEL_INFO, tokens, True)
cthulhu_state.objOfInterest = obj cthulhu_state.objOfInterest = obj
def setActiveWindow(frame, app=None, alsoSetLocusOfFocus=False, notifyScript=False): def setActiveWindow(frame, app=None, alsoSetLocusOfFocus=False, notifyScript=False):
tokens = ["ORCA: Request to set active window to", frame] tokens = ["CTHULHU: Request to set active window to", frame]
if app is not None: if app is not None:
tokens.extend(["in", app]) tokens.extend(["in", app])
debug.printTokens(debug.LEVEL_INFO, tokens, True) debug.printTokens(debug.LEVEL_INFO, tokens, True)
if frame == cthulhu_state.activeWindow: if frame == cthulhu_state.activeWindow:
msg = "ORCA: Setting activeWindow to existing activeWindow" msg = "CTHULHU: Setting activeWindow to existing activeWindow"
debug.printMessage(debug.LEVEL_INFO, msg, True) debug.printMessage(debug.LEVEL_INFO, msg, True)
elif frame is None: elif frame is None:
cthulhu_state.activeWindow = None cthulhu_state.activeWindow = None
else: else:
real_app, real_frame = AXObject.find_real_app_and_window_for(frame, app) real_app, real_frame = AXObject.find_real_app_and_window_for(frame, app)
if real_frame != frame: if real_frame != frame:
tokens = ["ORCA: Correcting active window to", real_frame, "in", real_app] tokens = ["CTHULHU: Correcting active window to", real_frame, "in", real_app]
debug.printTokens(debug.LEVEL_INFO, tokens, True) debug.printTokens(debug.LEVEL_INFO, tokens, True)
cthulhu_state.activeWindow = real_frame cthulhu_state.activeWindow = real_frame
else: else:
@ -208,7 +208,7 @@ def setLocusOfFocus(event, obj, notifyScript=True, force=False):
""" """
if not force and obj == cthulhu_state.locusOfFocus: if not force and obj == cthulhu_state.locusOfFocus:
msg = "ORCA: Setting locusOfFocus to existing locusOfFocus" msg = "CTHULHU: Setting locusOfFocus to existing locusOfFocus"
debug.printMessage(debug.LEVEL_INFO, msg, True) debug.printMessage(debug.LEVEL_INFO, msg, True)
return return
@ -222,13 +222,13 @@ def setLocusOfFocus(event, obj, notifyScript=True, force=False):
oldFocus = None oldFocus = None
if obj is None: if obj is None:
msg = "ORCA: New locusOfFocus is null (being cleared)" msg = "CTHULHU: New locusOfFocus is null (being cleared)"
debug.printMessage(debug.LEVEL_INFO, msg, True) debug.printMessage(debug.LEVEL_INFO, msg, True)
cthulhu_state.locusOfFocus = None cthulhu_state.locusOfFocus = None
return return
if cthulhu_state.activeScript: if cthulhu_state.activeScript:
tokens = ["ORCA: Active script is:", cthulhu_state.activeScript] tokens = ["CTHULHU: Active script is:", cthulhu_state.activeScript]
debug.printTokens(debug.LEVEL_INFO, tokens, True) debug.printTokens(debug.LEVEL_INFO, tokens, True)
if cthulhu_state.activeScript.utilities.isZombie(obj): if cthulhu_state.activeScript.utilities.isZombie(obj):
tokens = ["ERROR: New locusOfFocus (", obj, ") is zombie. Not updating."] tokens = ["ERROR: New locusOfFocus (", obj, ") is zombie. Not updating."]
@ -239,7 +239,7 @@ def setLocusOfFocus(event, obj, notifyScript=True, force=False):
debug.printTokens(debug.LEVEL_INFO, tokens, True) debug.printTokens(debug.LEVEL_INFO, tokens, True)
return return
tokens = ["ORCA: Changing locusOfFocus from", oldFocus, "to", obj, ". Notify:", notifyScript] tokens = ["CTHULHU: Changing locusOfFocus from", oldFocus, "to", obj, ". Notify:", notifyScript]
debug.printTokens(debug.LEVEL_INFO, tokens, True) debug.printTokens(debug.LEVEL_INFO, tokens, True)
cthulhu_state.locusOfFocus = obj cthulhu_state.locusOfFocus = obj
@ -247,7 +247,7 @@ def setLocusOfFocus(event, obj, notifyScript=True, force=False):
return return
if not cthulhu_state.activeScript: if not cthulhu_state.activeScript:
msg = "ORCA: Cannot notify active script because there isn't one" msg = "CTHULHU: Cannot notify active script because there isn't one"
debug.printMessage(debug.LEVEL_INFO, msg, True) debug.printMessage(debug.LEVEL_INFO, msg, True)
return return
@ -299,7 +299,7 @@ def deviceChangeHandler(deviceManager, device):
so we have to re-apply""" so we have to re-apply"""
source = device.get_source() source = device.get_source()
if source == Gdk.InputSource.KEYBOARD: if source == Gdk.InputSource.KEYBOARD:
msg = "ORCA: Keyboard change detected, re-creating the xmodmap" msg = "CTHULHU: Keyboard change detected, re-creating the xmodmap"
debug.printMessage(debug.LEVEL_INFO, msg, True) debug.printMessage(debug.LEVEL_INFO, msg, True)
_createCthulhuXmodmap() _createCthulhuXmodmap()
@ -409,7 +409,7 @@ def _restoreXmodmap(keyList=[]):
to restore the entire saved xmodmap. to restore the entire saved xmodmap.
""" """
msg = "ORCA: Attempting to restore original xmodmap" msg = "CTHULHU: Attempting to restore original xmodmap"
debug.printMessage(debug.LEVEL_INFO, msg, True) debug.printMessage(debug.LEVEL_INFO, msg, True)
global _capsLockCleared global _capsLockCleared
@ -418,7 +418,7 @@ def _restoreXmodmap(keyList=[]):
stdin=subprocess.PIPE, stdout=None, stderr=None) stdin=subprocess.PIPE, stdout=None, stderr=None)
p.communicate(_originalXmodmap) p.communicate(_originalXmodmap)
msg = "ORCA: Original xmodmap restored" msg = "CTHULHU: Original xmodmap restored"
debug.printMessage(debug.LEVEL_INFO, msg, True) debug.printMessage(debug.LEVEL_INFO, msg, True)
def setKeyHandling(new): def setKeyHandling(new):
@ -433,7 +433,7 @@ def loadUserSettings(script=None, inputEvent=None, skipReloadMessage=False):
Returns True to indicate the input event has been consumed. Returns True to indicate the input event has been consumed.
""" """
debug.printMessage(debug.LEVEL_INFO, 'ORCA: Loading User Settings', True) debug.printMessage(debug.LEVEL_INFO, 'CTHULHU: Loading User Settings', True)
global _userSettings global _userSettings
@ -473,7 +473,7 @@ def loadUserSettings(script=None, inputEvent=None, skipReloadMessage=False):
_settingsManager.loadAppSettings(script) _settingsManager.loadAppSettings(script)
if _settingsManager.getSetting('enableSpeech'): if _settingsManager.getSetting('enableSpeech'):
msg = 'ORCA: About to enable speech' msg = 'CTHULHU: About to enable speech'
debug.printMessage(debug.LEVEL_INFO, msg, True) debug.printMessage(debug.LEVEL_INFO, msg, True)
try: try:
speech.init() speech.init()
@ -482,20 +482,20 @@ def loadUserSettings(script=None, inputEvent=None, skipReloadMessage=False):
except Exception: except Exception:
debug.printException(debug.LEVEL_SEVERE) debug.printException(debug.LEVEL_SEVERE)
else: else:
msg = 'ORCA: Speech is not enabled in settings' msg = 'CTHULHU: Speech is not enabled in settings'
debug.printMessage(debug.LEVEL_INFO, msg, True) debug.printMessage(debug.LEVEL_INFO, msg, True)
if _settingsManager.getSetting('enableBraille'): if _settingsManager.getSetting('enableBraille'):
msg = 'ORCA: About to enable braille' msg = 'CTHULHU: About to enable braille'
debug.printMessage(debug.LEVEL_INFO, msg, True) debug.printMessage(debug.LEVEL_INFO, msg, True)
try: try:
braille.init(_processBrailleEvent) braille.init(_processBrailleEvent)
except Exception: except Exception:
debug.printException(debug.LEVEL_WARNING) debug.printException(debug.LEVEL_WARNING)
msg = 'ORCA: Could not initialize connection to braille.' msg = 'CTHULHU: Could not initialize connection to braille.'
debug.printMessage(debug.LEVEL_WARNING, msg, True) debug.printMessage(debug.LEVEL_WARNING, msg, True)
else: else:
msg = 'ORCA: Braille is not enabled in settings' msg = 'CTHULHU: Braille is not enabled in settings'
debug.printMessage(debug.LEVEL_INFO, msg, True) debug.printMessage(debug.LEVEL_INFO, msg, True)
@ -526,7 +526,7 @@ def loadUserSettings(script=None, inputEvent=None, skipReloadMessage=False):
cthulhuApp.getSignalManager().emitSignal('load-setting-completed') cthulhuApp.getSignalManager().emitSignal('load-setting-completed')
debug.printMessage(debug.LEVEL_INFO, 'ORCA: User Settings Loaded', True) debug.printMessage(debug.LEVEL_INFO, 'CTHULHU: User Settings Loaded', True)
return True return True
@ -641,12 +641,12 @@ def init():
module has already been initialized. module has already been initialized.
""" """
debug.printMessage(debug.LEVEL_INFO, 'ORCA: Initializing', True) debug.printMessage(debug.LEVEL_INFO, 'CTHULHU: Initializing', True)
global _initialized global _initialized
if _initialized and _settingsManager.isScreenReaderServiceEnabled(): if _initialized and _settingsManager.isScreenReaderServiceEnabled():
debug.printMessage(debug.LEVEL_INFO, 'ORCA: Already initialized', True) debug.printMessage(debug.LEVEL_INFO, 'CTHULHU: Already initialized', True)
return False return False
# Do not hang on initialization if we can help it. # Do not hang on initialization if we can help it.
@ -667,14 +667,14 @@ def init():
if a11yAppSettings: if a11yAppSettings:
a11yAppSettings.connect('changed', onEnabledChanged) a11yAppSettings.connect('changed', onEnabledChanged)
debug.printMessage(debug.LEVEL_INFO, 'ORCA: Initialized', True) debug.printMessage(debug.LEVEL_INFO, 'CTHULHU: Initialized', True)
return True return True
def start(): def start():
"""Starts Cthulhu.""" """Starts Cthulhu."""
debug.printMessage(debug.LEVEL_INFO, 'ORCA: Starting', True) debug.printMessage(debug.LEVEL_INFO, 'CTHULHU: Starting', True)
if not _initialized: if not _initialized:
init() init()
@ -698,10 +698,10 @@ def start():
devmanager.connect("device-removed", deviceChangeHandler) devmanager.connect("device-removed", deviceChangeHandler)
Gdk.notify_startup_complete() Gdk.notify_startup_complete()
msg = 'ORCA: Startup complete notification made' msg = 'CTHULHU: Startup complete notification made'
debug.printMessage(debug.LEVEL_INFO, msg, True) debug.printMessage(debug.LEVEL_INFO, msg, True)
debug.printMessage(debug.LEVEL_INFO, 'ORCA: Starting Atspi main event loop', True) debug.printMessage(debug.LEVEL_INFO, 'CTHULHU: Starting Atspi main event loop', True)
Atspi.event_main() Atspi.event_main()
def die(exitCode=1): def die(exitCode=1):
@ -730,7 +730,7 @@ def shutdown(script=None, inputEvent=None):
was never initialized. was never initialized.
""" """
debug.printMessage(debug.LEVEL_INFO, 'ORCA: Shutting down', True) debug.printMessage(debug.LEVEL_INFO, 'CTHULHU: Shutting down', True)
global _initialized global _initialized
@ -769,9 +769,9 @@ def shutdown(script=None, inputEvent=None):
_initialized = False _initialized = False
_restoreXmodmap(_cthulhuModifiers) _restoreXmodmap(_cthulhuModifiers)
debug.printMessage(debug.LEVEL_INFO, 'ORCA: Quitting Atspi main event loop', True) debug.printMessage(debug.LEVEL_INFO, 'CTHULHU: Quitting Atspi main event loop', True)
Atspi.event_quit() Atspi.event_quit()
debug.printMessage(debug.LEVEL_INFO, 'ORCA: Shutdown complete', True) debug.printMessage(debug.LEVEL_INFO, 'CTHULHU: Shutdown complete', True)
return True return True
@ -780,7 +780,7 @@ def shutdownOnSignal(signum, frame):
global exitCount global exitCount
signalString = f'({signal.strsignal(signum)})' signalString = f'({signal.strsignal(signum)})'
msg = f"ORCA: Shutting down and exiting due to signal={signum} {signalString}" msg = f"CTHULHU: Shutting down and exiting due to signal={signum} {signalString}"
debug.printMessage(debug.LEVEL_INFO, msg, True) debug.printMessage(debug.LEVEL_INFO, msg, True)
# Well...we'll try to exit nicely, but if we keep getting called, # Well...we'll try to exit nicely, but if we keep getting called,
@ -818,7 +818,7 @@ def shutdownOnSignal(signum, frame):
def crashOnSignal(signum, frame): def crashOnSignal(signum, frame):
signalString = f'({signal.strsignal(signum)})' signalString = f'({signal.strsignal(signum)})'
msg = f"ORCA: Shutting down and exiting due to signal={signum} {signalString}" msg = f"CTHULHU: Shutting down and exiting due to signal={signum} {signalString}"
debug.printMessage(debug.LEVEL_SEVERE, msg, True) debug.printMessage(debug.LEVEL_SEVERE, msg, True)
debug.printStack(debug.LEVEL_SEVERE) debug.printStack(debug.LEVEL_SEVERE)
_restoreXmodmap(_cthulhuModifiers) _restoreXmodmap(_cthulhuModifiers)
@ -831,7 +831,7 @@ def main():
an exit code of 0 means normal completion and an exit code of 50 an exit code of 0 means normal completion and an exit code of 50
means Cthulhu exited because of a hang.""" means Cthulhu exited because of a hang."""
msg = f"ORCA: Launching version {cthulhu_platform.version}" msg = f"CTHULHU: Launching version {cthulhu_platform.version}"
if cthulhu_platform.revision: if cthulhu_platform.revision:
msg += f" (rev {cthulhu_platform.revision})" msg += f" (rev {cthulhu_platform.revision})"
@ -859,13 +859,13 @@ def main():
signal.signal(signal.SIGQUIT, shutdownOnSignal) signal.signal(signal.SIGQUIT, shutdownOnSignal)
signal.signal(signal.SIGSEGV, crashOnSignal) signal.signal(signal.SIGSEGV, crashOnSignal)
debug.printMessage(debug.LEVEL_INFO, "ORCA: Enabling accessibility (if needed).", True) debug.printMessage(debug.LEVEL_INFO, "CTHULHU: Enabling accessibility (if needed).", True)
if not _settingsManager.isAccessibilityEnabled(): if not _settingsManager.isAccessibilityEnabled():
_settingsManager.setAccessibility(True) _settingsManager.setAccessibility(True)
debug.printMessage(debug.LEVEL_INFO, "ORCA: Initializing.", True) debug.printMessage(debug.LEVEL_INFO, "CTHULHU: Initializing.", True)
init() init()
debug.printMessage(debug.LEVEL_INFO, "ORCA: Initialized.", True) debug.printMessage(debug.LEVEL_INFO, "CTHULHU: Initialized.", True)
script = cthulhu_state.activeScript script = cthulhu_state.activeScript
cthulhuApp.getSignalManager().emitSignal('start-application-completed') cthulhuApp.getSignalManager().emitSignal('start-application-completed')
@ -883,7 +883,7 @@ def main():
_scriptManager.setActiveScript(script, "Launching.") _scriptManager.setActiveScript(script, "Launching.")
focusedObject = AXUtilities.get_focused_object(window) focusedObject = AXUtilities.get_focused_object(window)
tokens = ["ORCA: Focused object is:", focusedObject] tokens = ["CTHULHU: Focused object is:", focusedObject]
debug.printTokens(debug.LEVEL_INFO, tokens, True) debug.printTokens(debug.LEVEL_INFO, tokens, True)
if focusedObject: if focusedObject:
setLocusOfFocus(None, focusedObject) setLocusOfFocus(None, focusedObject)
@ -892,11 +892,11 @@ def main():
_scriptManager.setActiveScript(script, "Found focused object.") _scriptManager.setActiveScript(script, "Found focused object.")
try: try:
msg = "ORCA: Starting ATSPI registry." msg = "CTHULHU: Starting ATSPI registry."
debug.printMessage(debug.LEVEL_INFO, msg, True) debug.printMessage(debug.LEVEL_INFO, msg, True)
start() # waits until we stop the registry start() # waits until we stop the registry
except Exception: except Exception:
msg = "ORCA: Exception starting ATSPI registry." msg = "CTHULHU: Exception starting ATSPI registry."
debug.printMessage(debug.LEVEL_SEVERE, msg, True) debug.printMessage(debug.LEVEL_SEVERE, msg, True)
die(EXIT_CODE_HANG) die(EXIT_CODE_HANG)
return 0 return 0

View File

@ -272,7 +272,7 @@ def main():
cthulhu.showPreferencesGUI() cthulhu.showPreferencesGUI()
if otherCthulhus(): if otherCthulhus():
print(messages.CLI_OTHER_ORCAS_ERROR) print(messages.CLI_OTHER_CTHULHUS_ERROR)
return 1 return 1
debug.printMessage(debug.LEVEL_INFO, "INFO: About to launch Cthulhu.", True) debug.printMessage(debug.LEVEL_INFO, "INFO: About to launch Cthulhu.", True)

View File

@ -2878,7 +2878,7 @@ class CthulhuSetupGUI(cthulhu_gtkbuilder.GtkBuilderWrapper):
cthulhuMods = settings.cthulhuModifierKeys cthulhuMods = settings.cthulhuModifierKeys
if eventString in cthulhuMods: if eventString in cthulhuMods:
self._capturedKey = ['', keybindings.ORCA_MODIFIER_MASK, 0] self._capturedKey = ['', keybindings.CTHULHU_MODIFIER_MASK, 0]
return False return False
modifierKeys = ['Alt_L', 'Alt_R', 'Control_L', 'Control_R', modifierKeys = ['Alt_L', 'Alt_R', 'Control_L', 'Control_R',
@ -2894,9 +2894,9 @@ class CthulhuSetupGUI(cthulhu_gtkbuilder.GtkBuilderWrapper):
return True return True
string, modifiers, clickCount = self._capturedKey string, modifiers, clickCount = self._capturedKey
isCthulhuModifier = modifiers & keybindings.ORCA_MODIFIER_MASK isCthulhuModifier = modifiers & keybindings.CTHULHU_MODIFIER_MASK
if isCthulhuModifier: if isCthulhuModifier:
eventState |= keybindings.ORCA_MODIFIER_MASK eventState |= keybindings.CTHULHU_MODIFIER_MASK
self._capturedKey = [eventString, eventState, clickCount + 1] self._capturedKey = [eventString, eventState, clickCount + 1]
return True return True
@ -2918,7 +2918,7 @@ class CthulhuSetupGUI(cthulhu_gtkbuilder.GtkBuilderWrapper):
if not keyName or keyName in ["Return", "Escape"]: if not keyName or keyName in ["Return", "Escape"]:
return False return False
isCthulhuModifier = modifiers & keybindings.ORCA_MODIFIER_MASK isCthulhuModifier = modifiers & keybindings.CTHULHU_MODIFIER_MASK
if keyName in ["Delete", "BackSpace"] and not isCthulhuModifier: if keyName in ["Delete", "BackSpace"] and not isCthulhuModifier:
editable.set_text("") editable.set_text("")
self._presentMessage(messages.KB_DELETED) self._presentMessage(messages.KB_DELETED)
@ -2983,7 +2983,7 @@ class CthulhuSetupGUI(cthulhu_gtkbuilder.GtkBuilderWrapper):
mods = mods & Gdk.ModifierType.MODIFIER_MASK mods = mods & Gdk.ModifierType.MODIFIER_MASK
if mods & (1 << Atspi.ModifierType.SHIFTLOCK) \ if mods & (1 << Atspi.ModifierType.SHIFTLOCK) \
and mods & keybindings.ORCA_MODIFIER_MASK: and mods & keybindings.CTHULHU_MODIFIER_MASK:
mods ^= (1 << Atspi.ModifierType.SHIFTLOCK) mods ^= (1 << Atspi.ModifierType.SHIFTLOCK)
treeModel.set(myiter, treeModel.set(myiter,

View File

@ -26,7 +26,7 @@ __date__ = "$Date$"
__copyright__ = "Copyright (c) 2005-2008 Sun Microsystems Inc." __copyright__ = "Copyright (c) 2005-2008 Sun Microsystems Inc."
__license__ = "LGPL" __license__ = "LGPL"
# $ORCA_VERSION # $CTHULHU_VERSION
# #
version = "@VERSION@" version = "@VERSION@"

View File

@ -79,7 +79,7 @@ class DateAndTimePresenter:
keybindings.KeyBinding( keybindings.KeyBinding(
"t", "t",
keybindings.defaultModifierMask, keybindings.defaultModifierMask,
keybindings.ORCA_MODIFIER_MASK, keybindings.CTHULHU_MODIFIER_MASK,
self._handlers.get("presentTimeHandler"), self._handlers.get("presentTimeHandler"),
1)) 1))
@ -87,7 +87,7 @@ class DateAndTimePresenter:
keybindings.KeyBinding( keybindings.KeyBinding(
"t", "t",
keybindings.defaultModifierMask, keybindings.defaultModifierMask,
keybindings.ORCA_MODIFIER_MASK, keybindings.CTHULHU_MODIFIER_MASK,
self._handlers.get("presentDateHandler"), self._handlers.get("presentDateHandler"),
2)) 2))

View File

@ -32,13 +32,13 @@ from . import keybindings
# Storing values # Storing values
defaultModifierMask = keybindings.defaultModifierMask defaultModifierMask = keybindings.defaultModifierMask
ORCA_MODIFIER_MASK = keybindings.ORCA_MODIFIER_MASK CTHULHU_MODIFIER_MASK = keybindings.CTHULHU_MODIFIER_MASK
NO_MODIFIER_MASK = keybindings.NO_MODIFIER_MASK NO_MODIFIER_MASK = keybindings.NO_MODIFIER_MASK
ORCA_SHIFT_MODIFIER_MASK = keybindings.ORCA_SHIFT_MODIFIER_MASK CTHULHU_SHIFT_MODIFIER_MASK = keybindings.CTHULHU_SHIFT_MODIFIER_MASK
keymap = ( keymap = (
("KP_Divide", defaultModifierMask, ORCA_MODIFIER_MASK, ("KP_Divide", defaultModifierMask, CTHULHU_MODIFIER_MASK,
"routePointerToItemHandler"), "routePointerToItemHandler"),
# We want the user to be able to combine modifiers with the # We want the user to be able to combine modifiers with the
@ -46,10 +46,10 @@ keymap = (
# do not "care" about the modifiers -- unless it's the Cthulhu # do not "care" about the modifiers -- unless it's the Cthulhu
# modifier. # modifier.
# #
("KP_Divide", ORCA_MODIFIER_MASK, NO_MODIFIER_MASK, ("KP_Divide", CTHULHU_MODIFIER_MASK, NO_MODIFIER_MASK,
"leftClickReviewItemHandler"), "leftClickReviewItemHandler"),
("KP_Multiply", ORCA_MODIFIER_MASK, NO_MODIFIER_MASK, ("KP_Multiply", CTHULHU_MODIFIER_MASK, NO_MODIFIER_MASK,
"rightClickReviewItemHandler"), "rightClickReviewItemHandler"),
("KP_Add", defaultModifierMask, NO_MODIFIER_MASK, ("KP_Add", defaultModifierMask, NO_MODIFIER_MASK,
@ -58,9 +58,9 @@ keymap = (
("KP_Delete", defaultModifierMask, NO_MODIFIER_MASK, ("KP_Delete", defaultModifierMask, NO_MODIFIER_MASK,
"findHandler"), "findHandler"),
("KP_Delete", defaultModifierMask, ORCA_MODIFIER_MASK, ("KP_Delete", defaultModifierMask, CTHULHU_MODIFIER_MASK,
"findNextHandler"), "findNextHandler"),
("KP_Delete", defaultModifierMask, ORCA_SHIFT_MODIFIER_MASK, ("KP_Delete", defaultModifierMask, CTHULHU_SHIFT_MODIFIER_MASK,
"findPreviousHandler"), "findPreviousHandler"),
) )

View File

@ -320,7 +320,7 @@ class FlatReviewPresenter:
keybindings.KeyBinding( keybindings.KeyBinding(
"KP_Home", "KP_Home",
keybindings.defaultModifierMask, keybindings.defaultModifierMask,
keybindings.ORCA_MODIFIER_MASK, keybindings.CTHULHU_MODIFIER_MASK,
self._handlers.get("reviewHomeHandler"))) self._handlers.get("reviewHomeHandler")))
bindings.add( bindings.add(
@ -365,7 +365,7 @@ class FlatReviewPresenter:
keybindings.KeyBinding( keybindings.KeyBinding(
"KP_Page_Up", "KP_Page_Up",
keybindings.defaultModifierMask, keybindings.defaultModifierMask,
keybindings.ORCA_MODIFIER_MASK, keybindings.CTHULHU_MODIFIER_MASK,
self._handlers.get("reviewEndHandler"))) self._handlers.get("reviewEndHandler")))
bindings.add( bindings.add(
@ -379,7 +379,7 @@ class FlatReviewPresenter:
keybindings.KeyBinding( keybindings.KeyBinding(
"KP_Left", "KP_Left",
keybindings.defaultModifierMask, keybindings.defaultModifierMask,
keybindings.ORCA_MODIFIER_MASK, keybindings.CTHULHU_MODIFIER_MASK,
self._handlers.get("reviewAboveHandler"))) self._handlers.get("reviewAboveHandler")))
bindings.add( bindings.add(
@ -410,7 +410,7 @@ class FlatReviewPresenter:
keybindings.KeyBinding( keybindings.KeyBinding(
"KP_Begin", "KP_Begin",
keybindings.defaultModifierMask, keybindings.defaultModifierMask,
keybindings.ORCA_MODIFIER_MASK, keybindings.CTHULHU_MODIFIER_MASK,
self._handlers.get("reviewCurrentAccessibleHandler"))) self._handlers.get("reviewCurrentAccessibleHandler")))
bindings.add( bindings.add(
@ -424,7 +424,7 @@ class FlatReviewPresenter:
keybindings.KeyBinding( keybindings.KeyBinding(
"KP_Right", "KP_Right",
keybindings.defaultModifierMask, keybindings.defaultModifierMask,
keybindings.ORCA_MODIFIER_MASK, keybindings.CTHULHU_MODIFIER_MASK,
self._handlers.get("reviewBelowHandler"))) self._handlers.get("reviewBelowHandler")))
bindings.add( bindings.add(
@ -438,7 +438,7 @@ class FlatReviewPresenter:
keybindings.KeyBinding( keybindings.KeyBinding(
"KP_End", "KP_End",
keybindings.defaultModifierMask, keybindings.defaultModifierMask,
keybindings.ORCA_MODIFIER_MASK, keybindings.CTHULHU_MODIFIER_MASK,
self._handlers.get("reviewEndOfLineHandler"))) self._handlers.get("reviewEndOfLineHandler")))
bindings.add( bindings.add(
@ -511,14 +511,14 @@ class FlatReviewPresenter:
keybindings.KeyBinding( keybindings.KeyBinding(
"p", "p",
keybindings.defaultModifierMask, keybindings.defaultModifierMask,
keybindings.ORCA_MODIFIER_MASK, keybindings.CTHULHU_MODIFIER_MASK,
self._handlers.get("toggleFlatReviewModeHandler"))) self._handlers.get("toggleFlatReviewModeHandler")))
bindings.add( bindings.add(
keybindings.KeyBinding( keybindings.KeyBinding(
"semicolon", "semicolon",
keybindings.defaultModifierMask, keybindings.defaultModifierMask,
keybindings.ORCA_MODIFIER_MASK, keybindings.CTHULHU_MODIFIER_MASK,
self._handlers.get("flatReviewSayAllHandler"), self._handlers.get("flatReviewSayAllHandler"),
2)) 2))
@ -526,21 +526,21 @@ class FlatReviewPresenter:
keybindings.KeyBinding( keybindings.KeyBinding(
"u", "u",
keybindings.defaultModifierMask, keybindings.defaultModifierMask,
keybindings.ORCA_MODIFIER_MASK, keybindings.CTHULHU_MODIFIER_MASK,
self._handlers.get("reviewPreviousLineHandler"))) self._handlers.get("reviewPreviousLineHandler")))
bindings.add( bindings.add(
keybindings.KeyBinding( keybindings.KeyBinding(
"u", "u",
keybindings.defaultModifierMask, keybindings.defaultModifierMask,
keybindings.ORCA_CTRL_MODIFIER_MASK, keybindings.CTHULHU_CTRL_MODIFIER_MASK,
self._handlers.get("reviewHomeHandler"))) self._handlers.get("reviewHomeHandler")))
bindings.add( bindings.add(
keybindings.KeyBinding( keybindings.KeyBinding(
"i", "i",
keybindings.defaultModifierMask, keybindings.defaultModifierMask,
keybindings.ORCA_MODIFIER_MASK, keybindings.CTHULHU_MODIFIER_MASK,
self._handlers.get("reviewCurrentLineHandler"), self._handlers.get("reviewCurrentLineHandler"),
1)) 1))
@ -548,7 +548,7 @@ class FlatReviewPresenter:
keybindings.KeyBinding( keybindings.KeyBinding(
"i", "i",
keybindings.defaultModifierMask, keybindings.defaultModifierMask,
keybindings.ORCA_MODIFIER_MASK, keybindings.CTHULHU_MODIFIER_MASK,
self._handlers.get("reviewSpellCurrentLineHandler"), self._handlers.get("reviewSpellCurrentLineHandler"),
2)) 2))
@ -556,7 +556,7 @@ class FlatReviewPresenter:
keybindings.KeyBinding( keybindings.KeyBinding(
"i", "i",
keybindings.defaultModifierMask, keybindings.defaultModifierMask,
keybindings.ORCA_MODIFIER_MASK, keybindings.CTHULHU_MODIFIER_MASK,
self._handlers.get("reviewPhoneticCurrentLineHandler"), self._handlers.get("reviewPhoneticCurrentLineHandler"),
3)) 3))
@ -564,35 +564,35 @@ class FlatReviewPresenter:
keybindings.KeyBinding( keybindings.KeyBinding(
"o", "o",
keybindings.defaultModifierMask, keybindings.defaultModifierMask,
keybindings.ORCA_MODIFIER_MASK, keybindings.CTHULHU_MODIFIER_MASK,
self._handlers.get("reviewNextLineHandler"))) self._handlers.get("reviewNextLineHandler")))
bindings.add( bindings.add(
keybindings.KeyBinding( keybindings.KeyBinding(
"o", "o",
keybindings.defaultModifierMask, keybindings.defaultModifierMask,
keybindings.ORCA_CTRL_MODIFIER_MASK, keybindings.CTHULHU_CTRL_MODIFIER_MASK,
self._handlers.get("reviewEndHandler"))) self._handlers.get("reviewEndHandler")))
bindings.add( bindings.add(
keybindings.KeyBinding( keybindings.KeyBinding(
"j", "j",
keybindings.defaultModifierMask, keybindings.defaultModifierMask,
keybindings.ORCA_MODIFIER_MASK, keybindings.CTHULHU_MODIFIER_MASK,
self._handlers.get("reviewPreviousItemHandler"))) self._handlers.get("reviewPreviousItemHandler")))
bindings.add( bindings.add(
keybindings.KeyBinding( keybindings.KeyBinding(
"j", "j",
keybindings.defaultModifierMask, keybindings.defaultModifierMask,
keybindings.ORCA_CTRL_MODIFIER_MASK, keybindings.CTHULHU_CTRL_MODIFIER_MASK,
self._handlers.get("reviewAboveHandler"))) self._handlers.get("reviewAboveHandler")))
bindings.add( bindings.add(
keybindings.KeyBinding( keybindings.KeyBinding(
"k", "k",
keybindings.defaultModifierMask, keybindings.defaultModifierMask,
keybindings.ORCA_MODIFIER_MASK, keybindings.CTHULHU_MODIFIER_MASK,
self._handlers.get("reviewCurrentItemHandler"), self._handlers.get("reviewCurrentItemHandler"),
1)) 1))
@ -600,7 +600,7 @@ class FlatReviewPresenter:
keybindings.KeyBinding( keybindings.KeyBinding(
"k", "k",
keybindings.defaultModifierMask, keybindings.defaultModifierMask,
keybindings.ORCA_MODIFIER_MASK, keybindings.CTHULHU_MODIFIER_MASK,
self._handlers.get("reviewSpellCurrentItemHandler"), self._handlers.get("reviewSpellCurrentItemHandler"),
2)) 2))
@ -608,7 +608,7 @@ class FlatReviewPresenter:
keybindings.KeyBinding( keybindings.KeyBinding(
"k", "k",
keybindings.defaultModifierMask, keybindings.defaultModifierMask,
keybindings.ORCA_MODIFIER_MASK, keybindings.CTHULHU_MODIFIER_MASK,
self._handlers.get("reviewPhoneticCurrentItemHandler"), self._handlers.get("reviewPhoneticCurrentItemHandler"),
3)) 3))
@ -616,42 +616,42 @@ class FlatReviewPresenter:
keybindings.KeyBinding( keybindings.KeyBinding(
"k", "k",
keybindings.defaultModifierMask, keybindings.defaultModifierMask,
keybindings.ORCA_CTRL_MODIFIER_MASK, keybindings.CTHULHU_CTRL_MODIFIER_MASK,
self._handlers.get("reviewCurrentAccessibleHandler"))) self._handlers.get("reviewCurrentAccessibleHandler")))
bindings.add( bindings.add(
keybindings.KeyBinding( keybindings.KeyBinding(
"l", "l",
keybindings.defaultModifierMask, keybindings.defaultModifierMask,
keybindings.ORCA_MODIFIER_MASK, keybindings.CTHULHU_MODIFIER_MASK,
self._handlers.get("reviewNextItemHandler"))) self._handlers.get("reviewNextItemHandler")))
bindings.add( bindings.add(
keybindings.KeyBinding( keybindings.KeyBinding(
"l", "l",
keybindings.defaultModifierMask, keybindings.defaultModifierMask,
keybindings.ORCA_CTRL_MODIFIER_MASK, keybindings.CTHULHU_CTRL_MODIFIER_MASK,
self._handlers.get("reviewBelowHandler"))) self._handlers.get("reviewBelowHandler")))
bindings.add( bindings.add(
keybindings.KeyBinding( keybindings.KeyBinding(
"m", "m",
keybindings.defaultModifierMask, keybindings.defaultModifierMask,
keybindings.ORCA_MODIFIER_MASK, keybindings.CTHULHU_MODIFIER_MASK,
self._handlers.get("reviewPreviousCharacterHandler"))) self._handlers.get("reviewPreviousCharacterHandler")))
bindings.add( bindings.add(
keybindings.KeyBinding( keybindings.KeyBinding(
"m", "m",
keybindings.defaultModifierMask, keybindings.defaultModifierMask,
keybindings.ORCA_CTRL_MODIFIER_MASK, keybindings.CTHULHU_CTRL_MODIFIER_MASK,
self._handlers.get("reviewEndOfLineHandler"))) self._handlers.get("reviewEndOfLineHandler")))
bindings.add( bindings.add(
keybindings.KeyBinding( keybindings.KeyBinding(
"comma", "comma",
keybindings.defaultModifierMask, keybindings.defaultModifierMask,
keybindings.ORCA_MODIFIER_MASK, keybindings.CTHULHU_MODIFIER_MASK,
self._handlers.get("reviewCurrentCharacterHandler"), self._handlers.get("reviewCurrentCharacterHandler"),
1)) 1))
@ -659,7 +659,7 @@ class FlatReviewPresenter:
keybindings.KeyBinding( keybindings.KeyBinding(
"comma", "comma",
keybindings.defaultModifierMask, keybindings.defaultModifierMask,
keybindings.ORCA_MODIFIER_MASK, keybindings.CTHULHU_MODIFIER_MASK,
self._handlers.get("reviewSpellCurrentCharacterHandler"), self._handlers.get("reviewSpellCurrentCharacterHandler"),
2)) 2))
@ -667,7 +667,7 @@ class FlatReviewPresenter:
keybindings.KeyBinding( keybindings.KeyBinding(
"comma", "comma",
keybindings.defaultModifierMask, keybindings.defaultModifierMask,
keybindings.ORCA_MODIFIER_MASK, keybindings.CTHULHU_MODIFIER_MASK,
self._handlers.get("reviewUnicodeCurrentCharacterHandler"), self._handlers.get("reviewUnicodeCurrentCharacterHandler"),
3)) 3))
@ -675,7 +675,7 @@ class FlatReviewPresenter:
keybindings.KeyBinding( keybindings.KeyBinding(
"period", "period",
keybindings.defaultModifierMask, keybindings.defaultModifierMask,
keybindings.ORCA_MODIFIER_MASK, keybindings.CTHULHU_MODIFIER_MASK,
self._handlers.get("reviewNextCharacterHandler"))) self._handlers.get("reviewNextCharacterHandler")))
bindings.add( bindings.add(

View File

@ -309,7 +309,7 @@ class KeyboardEvent(InputEvent):
and not KeyboardEvent.lastCthulhuModifierAlone: and not KeyboardEvent.lastCthulhuModifierAlone:
doubleEvent = self._getDoubleClickCandidate() doubleEvent = self._getDoubleClickCandidate()
if doubleEvent and \ if doubleEvent and \
doubleEvent.modifiers & keybindings.ORCA_MODIFIER_MASK: doubleEvent.modifiers & keybindings.CTHULHU_MODIFIER_MASK:
# this is the second event of a double-click, and sticky Cthulhu # this is the second event of a double-click, and sticky Cthulhu
# affected the first, so copy over the modifiers to the second # affected the first, so copy over the modifiers to the second
KeyboardEvent.cthulhuStickyModifiers = doubleEvent.modifiers KeyboardEvent.cthulhuStickyModifiers = doubleEvent.modifiers
@ -395,7 +395,7 @@ class KeyboardEvent(InputEvent):
KeyboardEvent.cthulhuModifierPressed = False KeyboardEvent.cthulhuModifierPressed = False
if KeyboardEvent.cthulhuModifierPressed: if KeyboardEvent.cthulhuModifierPressed:
self.modifiers |= keybindings.ORCA_MODIFIER_MASK self.modifiers |= keybindings.CTHULHU_MODIFIER_MASK
if KeyboardEvent.stickyKeys: if KeyboardEvent.stickyKeys:
# apply all recorded sticky modifiers # apply all recorded sticky modifiers
@ -482,7 +482,7 @@ class KeyboardEvent(InputEvent):
if self.modifiers & keybindings.CTRL_MODIFIER_MASK \ if self.modifiers & keybindings.CTRL_MODIFIER_MASK \
or self.modifiers & keybindings.ALT_MODIFIER_MASK \ or self.modifiers & keybindings.ALT_MODIFIER_MASK \
or self.modifiers & keybindings.ORCA_MODIFIER_MASK: or self.modifiers & keybindings.CTHULHU_MODIFIER_MASK:
return False return False
return True return True
@ -627,7 +627,7 @@ class KeyboardEvent(InputEvent):
if cthulhu_state.bypassNextCommand: if cthulhu_state.bypassNextCommand:
return False return False
return self.modifiers & keybindings.ORCA_MODIFIER_MASK return self.modifiers & keybindings.CTHULHU_MODIFIER_MASK
def isKeyPadKeyWithNumlockOn(self): def isKeyPadKeyWithNumlockOn(self):
"""Return True if this is a key pad key with numlock on.""" """Return True if this is a key pad key with numlock on."""

View File

@ -43,19 +43,19 @@ from .cthulhu_i18n import _
_keysymsCache = {} _keysymsCache = {}
_keycodeCache = {} _keycodeCache = {}
MODIFIER_ORCA = 8 MODIFIER_CTHULHU = 8
NO_MODIFIER_MASK = 0 NO_MODIFIER_MASK = 0
ALT_MODIFIER_MASK = 1 << Atspi.ModifierType.ALT ALT_MODIFIER_MASK = 1 << Atspi.ModifierType.ALT
CTRL_MODIFIER_MASK = 1 << Atspi.ModifierType.CONTROL CTRL_MODIFIER_MASK = 1 << Atspi.ModifierType.CONTROL
ORCA_MODIFIER_MASK = 1 << MODIFIER_ORCA CTHULHU_MODIFIER_MASK = 1 << MODIFIER_CTHULHU
ORCA_ALT_MODIFIER_MASK = (1 << MODIFIER_ORCA | CTHULHU_ALT_MODIFIER_MASK = (1 << MODIFIER_CTHULHU |
1 << Atspi.ModifierType.ALT) 1 << Atspi.ModifierType.ALT)
ORCA_CTRL_MODIFIER_MASK = (1 << MODIFIER_ORCA | CTHULHU_CTRL_MODIFIER_MASK = (1 << MODIFIER_CTHULHU |
1 << Atspi.ModifierType.CONTROL) 1 << Atspi.ModifierType.CONTROL)
ORCA_CTRL_ALT_MODIFIER_MASK = (1 << MODIFIER_ORCA | CTHULHU_CTRL_ALT_MODIFIER_MASK = (1 << MODIFIER_CTHULHU |
1 << Atspi.ModifierType.CONTROL | 1 << Atspi.ModifierType.CONTROL |
1 << Atspi.ModifierType.ALT) 1 << Atspi.ModifierType.ALT)
ORCA_SHIFT_MODIFIER_MASK = (1 << MODIFIER_ORCA | CTHULHU_SHIFT_MODIFIER_MASK = (1 << MODIFIER_CTHULHU |
1 << Atspi.ModifierType.SHIFT) 1 << Atspi.ModifierType.SHIFT)
SHIFT_MODIFIER_MASK = 1 << Atspi.ModifierType.SHIFT SHIFT_MODIFIER_MASK = 1 << Atspi.ModifierType.SHIFT
SHIFT_ALT_MODIFIER_MASK = (1 << Atspi.ModifierType.SHIFT | SHIFT_ALT_MODIFIER_MASK = (1 << Atspi.ModifierType.SHIFT |
@ -71,7 +71,7 @@ NON_LOCKING_MODIFIER_MASK = (1 << Atspi.ModifierType.SHIFT |
1 << Atspi.ModifierType.CONTROL | 1 << Atspi.ModifierType.CONTROL |
1 << Atspi.ModifierType.META2 | 1 << Atspi.ModifierType.META2 |
1 << Atspi.ModifierType.META3 | 1 << Atspi.ModifierType.META3 |
1 << MODIFIER_ORCA) 1 << MODIFIER_CTHULHU)
defaultModifierMask = NON_LOCKING_MODIFIER_MASK defaultModifierMask = NON_LOCKING_MODIFIER_MASK
def getKeycode(keysym): def getKeycode(keysym):
@ -137,7 +137,7 @@ def getModifierNames(mods):
""" """
text = "" text = ""
if mods & ORCA_MODIFIER_MASK: if mods & CTHULHU_MODIFIER_MASK:
if settings.keyboardLayout == settings.GENERAL_KEYBOARD_LAYOUT_DESKTOP: if settings.keyboardLayout == settings.GENERAL_KEYBOARD_LAYOUT_DESKTOP:
# Translators: this is presented in a GUI to represent the # Translators: this is presented in a GUI to represent the
# "insert" key when used as the Cthulhu modifier. # "insert" key when used as the Cthulhu modifier.
@ -280,12 +280,12 @@ class KeyBinding:
if not self.keycode: if not self.keycode:
self.keycode = getKeycode(self.keysymstring) self.keycode = getKeycode(self.keysymstring)
if self.modifiers & ORCA_MODIFIER_MASK: if self.modifiers & CTHULHU_MODIFIER_MASK:
device = cthulhu_state.device device = cthulhu_state.device
if device is None: if device is None:
return ret return ret
modList = [] modList = []
otherMods = self.modifiers & ~ORCA_MODIFIER_MASK otherMods = self.modifiers & ~CTHULHU_MODIFIER_MASK
numLockMod = device.get_modifier(getKeycode("Num_Lock")) numLockMod = device.get_modifier(getKeycode("Num_Lock"))
lockedMods = device.get_locked_modifiers() lockedMods = device.get_locked_modifiers()
numLockOn = lockedMods & numLockMod numLockOn = lockedMods & numLockMod

View File

@ -32,14 +32,14 @@ from . import keybindings
# Storing values # Storing values
defaultModifierMask = keybindings.defaultModifierMask defaultModifierMask = keybindings.defaultModifierMask
ORCA_MODIFIER_MASK = keybindings.ORCA_MODIFIER_MASK CTHULHU_MODIFIER_MASK = keybindings.CTHULHU_MODIFIER_MASK
NO_MODIFIER_MASK = keybindings.NO_MODIFIER_MASK NO_MODIFIER_MASK = keybindings.NO_MODIFIER_MASK
ORCA_SHIFT_MODIFIER_MASK = keybindings.ORCA_SHIFT_MODIFIER_MASK CTHULHU_SHIFT_MODIFIER_MASK = keybindings.CTHULHU_SHIFT_MODIFIER_MASK
ORCA_CTRL_MODIFIER_MASK = keybindings.ORCA_CTRL_MODIFIER_MASK CTHULHU_CTRL_MODIFIER_MASK = keybindings.CTHULHU_CTRL_MODIFIER_MASK
keymap = ( keymap = (
("9", defaultModifierMask, ORCA_MODIFIER_MASK, ("9", defaultModifierMask, CTHULHU_MODIFIER_MASK,
"routePointerToItemHandler"), "routePointerToItemHandler"),
# We want the user to be able to combine modifiers with the # We want the user to be able to combine modifiers with the
@ -48,22 +48,22 @@ keymap = (
# modifier). # modifier).
# #
("7", ORCA_MODIFIER_MASK, ORCA_MODIFIER_MASK, ("7", CTHULHU_MODIFIER_MASK, CTHULHU_MODIFIER_MASK,
"leftClickReviewItemHandler"), "leftClickReviewItemHandler"),
("8", ORCA_MODIFIER_MASK, ORCA_MODIFIER_MASK, ("8", CTHULHU_MODIFIER_MASK, CTHULHU_MODIFIER_MASK,
"rightClickReviewItemHandler"), "rightClickReviewItemHandler"),
("semicolon", defaultModifierMask, ORCA_MODIFIER_MASK, ("semicolon", defaultModifierMask, CTHULHU_MODIFIER_MASK,
"sayAllHandler", 1), "sayAllHandler", 1),
("bracketleft", defaultModifierMask, ORCA_MODIFIER_MASK, ("bracketleft", defaultModifierMask, CTHULHU_MODIFIER_MASK,
"findHandler"), "findHandler"),
("bracketright", defaultModifierMask, ORCA_MODIFIER_MASK, ("bracketright", defaultModifierMask, CTHULHU_MODIFIER_MASK,
"findNextHandler"), "findNextHandler"),
("bracketright", defaultModifierMask, ORCA_CTRL_MODIFIER_MASK, ("bracketright", defaultModifierMask, CTHULHU_CTRL_MODIFIER_MASK,
"findPreviousHandler"), "findPreviousHandler"),
) )

View File

@ -94,7 +94,7 @@ class LearnModePresenter:
keybindings.KeyBinding( keybindings.KeyBinding(
"h", "h",
keybindings.defaultModifierMask, keybindings.defaultModifierMask,
keybindings.ORCA_MODIFIER_MASK, keybindings.CTHULHU_MODIFIER_MASK,
self._handlers.get("enterLearnModeHandler"))) self._handlers.get("enterLearnModeHandler")))
return bindings return bindings

View File

@ -168,7 +168,7 @@ class LiveRegionManager:
keybindings.KeyBinding( keybindings.KeyBinding(
"backslash", "backslash",
keybindings.defaultModifierMask, keybindings.defaultModifierMask,
keybindings.ORCA_SHIFT_MODIFIER_MASK, keybindings.CTHULHU_SHIFT_MODIFIER_MASK,
self.inputEventHandlers.get("monitorLiveRegions"))) self.inputEventHandlers.get("monitorLiveRegions")))
for key in ["F1", "F2", "F3", "F4", "F5", "F6", "F7", "F8", "F9"]: for key in ["F1", "F2", "F3", "F4", "F5", "F6", "F7", "F8", "F9"]:
@ -176,7 +176,7 @@ class LiveRegionManager:
keybindings.KeyBinding( keybindings.KeyBinding(
key, key,
keybindings.defaultModifierMask, keybindings.defaultModifierMask,
keybindings.ORCA_MODIFIER_MASK, keybindings.CTHULHU_MODIFIER_MASK,
self.inputEventHandlers.get("reviewLiveAnnouncement"))) self.inputEventHandlers.get("reviewLiveAnnouncement")))
return keyBindings return keyBindings

View File

@ -162,7 +162,7 @@ CARET_CONTROL_APP = _("The application is controlling the caret.")
# itself controls how the arrow keys move the caret around HTML content. It's # itself controls how the arrow keys move the caret around HTML content. It's
# often broken, so Cthulhu needs to provide its own support. As such, Cthulhu offers # often broken, so Cthulhu needs to provide its own support. As such, Cthulhu offers
# the user the ability to toggle which application is controlling the caret. # the user the ability to toggle which application is controlling the caret.
CARET_CONTROL_ORCA = _("The screen reader is controlling the caret.") CARET_CONTROL_CTHULHU = _("The screen reader is controlling the caret.")
# Translators: this is the name of a cell in a spreadsheet. # Translators: this is the name of a cell in a spreadsheet.
CELL = _("Cell %s") CELL = _("Cell %s")
@ -250,7 +250,7 @@ CLI_SETTINGS_MANAGER_ERROR = \
# Translators: This message is presented to the user when he/she tries to launch # Translators: This message is presented to the user when he/she tries to launch
# Cthulhu, but Cthulhu is already running. # Cthulhu, but Cthulhu is already running.
CLI_OTHER_ORCAS_ERROR = \ CLI_OTHER_CTHULHUS_ERROR = \
_('Another screen reader process is already running for this ' \ _('Another screen reader process is already running for this ' \
'session.\nRun “cthulhu --replace” to replace that ' \ 'session.\nRun “cthulhu --replace” to replace that ' \
'process with a new one.') 'process with a new one.')
@ -2291,10 +2291,10 @@ SPEECH_VERBOSITY_VERBOSE = C_("Speech", "Verbosity level: verbose")
SPOKEN_ELLIPSIS = _(" dot dot dot") SPOKEN_ELLIPSIS = _(" dot dot dot")
# Translators: This message is presented to the user when Cthulhu is launched. # Translators: This message is presented to the user when Cthulhu is launched.
START_ORCA = _("Cthulhu welcomes you.") START_CTHULHU = _("Cthulhu welcomes you.")
# Translators: This message is presented to the user when Cthulhu is quit. # Translators: This message is presented to the user when Cthulhu is quit.
STOP_ORCA = _("Cthulhu lerks beneath the waves.") STOP_CTHULHU = _("Cthulhu lerks beneath the waves.")
# Translators: This message means speech synthesis is not installed or working. # Translators: This message means speech synthesis is not installed or working.
SPEECH_UNAVAILABLE = _("Speech is unavailable.") SPEECH_UNAVAILABLE = _("Speech is unavailable.")

View File

@ -68,42 +68,42 @@ class ObjectNavigator:
keybindings.KeyBinding( keybindings.KeyBinding(
"Up", "Up",
keybindings.defaultModifierMask, keybindings.defaultModifierMask,
keybindings.ORCA_CTRL_MODIFIER_MASK, keybindings.CTHULHU_CTRL_MODIFIER_MASK,
self._handlers.get("object_navigator_up"))) self._handlers.get("object_navigator_up")))
bindings.add( bindings.add(
keybindings.KeyBinding( keybindings.KeyBinding(
"Down", "Down",
keybindings.defaultModifierMask, keybindings.defaultModifierMask,
keybindings.ORCA_CTRL_MODIFIER_MASK, keybindings.CTHULHU_CTRL_MODIFIER_MASK,
self._handlers.get("object_navigator_down"))) self._handlers.get("object_navigator_down")))
bindings.add( bindings.add(
keybindings.KeyBinding( keybindings.KeyBinding(
"Right", "Right",
keybindings.defaultModifierMask, keybindings.defaultModifierMask,
keybindings.ORCA_CTRL_MODIFIER_MASK, keybindings.CTHULHU_CTRL_MODIFIER_MASK,
self._handlers.get("object_navigator_next"))) self._handlers.get("object_navigator_next")))
bindings.add( bindings.add(
keybindings.KeyBinding( keybindings.KeyBinding(
"Left", "Left",
keybindings.defaultModifierMask, keybindings.defaultModifierMask,
keybindings.ORCA_CTRL_MODIFIER_MASK, keybindings.CTHULHU_CTRL_MODIFIER_MASK,
self._handlers.get("object_navigator_previous"))) self._handlers.get("object_navigator_previous")))
bindings.add( bindings.add(
keybindings.KeyBinding( keybindings.KeyBinding(
"Return", "Return",
keybindings.defaultModifierMask, keybindings.defaultModifierMask,
keybindings.ORCA_CTRL_MODIFIER_MASK, keybindings.CTHULHU_CTRL_MODIFIER_MASK,
self._handlers.get("object_navigator_perform_action"))) self._handlers.get("object_navigator_perform_action")))
bindings.add( bindings.add(
keybindings.KeyBinding( keybindings.KeyBinding(
"s", "s",
keybindings.defaultModifierMask, keybindings.defaultModifierMask,
keybindings.ORCA_CTRL_MODIFIER_MASK, keybindings.CTHULHU_CTRL_MODIFIER_MASK,
self._handlers.get("object_navigator_toggle_simplify"))) self._handlers.get("object_navigator_toggle_simplify")))
return bindings return bindings

View File

@ -49,7 +49,7 @@ class PluginType(IntEnum):
class PluginSystemManager(): class PluginSystemManager():
"""Orca Plugin Manager to handle a set of plugins. """Cthulhu Plugin Manager to handle a set of plugins.
Attributes: Attributes:
DEFAULT_LOADERS (tuple): Default loaders used by the plugin manager. For DEFAULT_LOADERS (tuple): Default loaders used by the plugin manager. For
possible values see possible values see
@ -469,7 +469,7 @@ class APIHelper():
currModifierMask = keybindings.NO_MODIFIER_MASK currModifierMask = keybindings.NO_MODIFIER_MASK
if cthulhuKey: if cthulhuKey:
currModifierMask = currModifierMask | 1 << keybindings.MODIFIER_ORCA currModifierMask = currModifierMask | 1 << keybindings.MODIFIER_CTHULHU
if shiftKey: if shiftKey:
currModifierMask = currModifierMask | 1 << Atspi.ModifierType.SHIFT currModifierMask = currModifierMask | 1 << Atspi.ModifierType.SHIFT
if altKey: if altKey:

View File

@ -7,7 +7,7 @@ from gi.repository import Peas
import time import time
class ByeOrca(GObject.Object, Peas.Activatable, plugin.Plugin): class ByeCthulhu(GObject.Object, Peas.Activatable, plugin.Plugin):
#__gtype_name__ = 'ByeCthulhu' #__gtype_name__ = 'ByeCthulhu'
object = GObject.Property(type=GObject.Object) object = GObject.Property(type=GObject.Object)
@ -24,4 +24,4 @@ class ByeOrca(GObject.Object, Peas.Activatable, plugin.Plugin):
messages = app.getDynamicApiManager().getAPI('Messages') messages = app.getDynamicApiManager().getAPI('Messages')
activeScript = app.getDynamicApiManager().getAPI('CthulhuState').activeScript activeScript = app.getDynamicApiManager().getAPI('CthulhuState').activeScript
activeScript.presentationInterrupt() activeScript.presentationInterrupt()
activeScript.presentMessage(messages.STOP_ORCA, resetStyles=False) activeScript.presentMessage(messages.STOP_CTHULHU, resetStyles=False)

View File

@ -1,7 +1,7 @@
orca_python_PYTHON = \ cthulhu_python_PYTHON = \
__init__.py \ __init__.py \
ByeCthulhu.plugin \ ByeCthulhu.plugin \
ByeCthulhu.py ByeCthulhu.py
orca_pythondir=$(pkgpythondir)/plugins/ByeCthulhu cthulhu_pythondir=$(pkgpythondir)/plugins/ByeCthulhu

View File

@ -58,16 +58,16 @@ class CapsLockHack(GObject.Object, Peas.Activatable, plugin.Plugin):
settings = API.app.getDynamicApiManager().getAPI('Settings') settings = API.app.getDynamicApiManager().getAPI('Settings')
time.sleep(3) time.sleep(3)
while self.isActive(): while self.isActive():
if "Caps_Lock" in settings.orcaModifierKeys \ if "Caps_Lock" in settings.cthulhuModifierKeys \
or "Shift_Lock" in settings.orcaModifierKeys: or "Shift_Lock" in settings.cthulhuModifierKeys:
self.setCapsLockAsOrcaModifier(True) self.setCapsLockAsCthulhuModifier(True)
capsLockCleared = True capsLockCleared = True
elif capsLockCleared: elif capsLockCleared:
self.setCapsLockAsOrcaModifier(False) self.setCapsLockAsCthulhuModifier(False)
capsLockCleared = False capsLockCleared = False
time.sleep(1) time.sleep(1)
def setCapsLockAsOrcaModifier(self, enable): def setCapsLockAsCthulhuModifier(self, enable):
originalXmodmap = None originalXmodmap = None
lines = None lines = None
try: try:

View File

@ -1,7 +1,7 @@
orca_python_PYTHON = \ cthulhu_python_PYTHON = \
__init__.py \ __init__.py \
CapsLockHack.plugin \ CapsLockHack.plugin \
CapsLockHack.py CapsLockHack.py
orca_pythondir=$(pkgpythondir)/plugins/CapsLockHack cthulhu_pythondir=$(pkgpythondir)/plugins/CapsLockHack

View File

@ -1,7 +1,7 @@
orca_python_PYTHON = \ cthulhu_python_PYTHON = \
__init__.py \ __init__.py \
Clipboard.plugin \ Clipboard.plugin \
Clipboard.py Clipboard.py
orca_pythondir=$(pkgpythondir)/plugins/Clipboard cthulhu_pythondir=$(pkgpythondir)/plugins/Clipboard

View File

@ -1,7 +1,7 @@
orca_python_PYTHON = \ cthulhu_python_PYTHON = \
__init__.py \ __init__.py \
Date.plugin \ Date.plugin \
Date.py Date.py
orca_pythondir=$(pkgpythondir)/plugins/Date cthulhu_pythondir=$(pkgpythondir)/plugins/Date

View File

@ -20,4 +20,4 @@ class HelloCthulhu(GObject.Object, Peas.Activatable, plugin.Plugin):
API = self.object API = self.object
def process(self, app): def process(self, app):
messages = app.getDynamicApiManager().getAPI('Messages') messages = app.getDynamicApiManager().getAPI('Messages')
app.getDynamicApiManager().getAPI('CthulhuState').activeScript.presentMessage(messages.START_ORCA, resetStyles=False) app.getDynamicApiManager().getAPI('CthulhuState').activeScript.presentMessage(messages.START_CTHULHU, resetStyles=False)

View File

@ -1,7 +1,7 @@
orca_python_PYTHON = \ cthulhu_python_PYTHON = \
__init__.py \ __init__.py \
HelloCthulhu.plugin \ HelloCthulhu.plugin \
HelloCthulhu.py HelloCthulhu.py
orca_pythondir=$(pkgpythondir)/plugins/HelloCthulhu cthulhu_pythondir=$(pkgpythondir)/plugins/HelloCthulhu

View File

@ -2,5 +2,5 @@
Module=HelloWorld Module=HelloWorld
Loader=python3 Loader=python3
Name=Hello World (python3) Name=Hello World (python3)
Description=Test plugin for orca Description=Test plugin for cthulhu
Authors=Chrys chrys@linux-a11y.org Authors=Chrys chrys@linux-a11y.org

View File

@ -1,7 +1,7 @@
orca_python_PYTHON = \ cthulhu_python_PYTHON = \
__init__.py \ __init__.py \
HelloWorld.plugin \ HelloWorld.plugin \
HelloWorld.py HelloWorld.py
orca_pythondir=$(pkgpythondir)/plugins/HelloWorld cthulhu_pythondir=$(pkgpythondir)/plugins/HelloWorld

View File

@ -1,4 +1,4 @@
SUBDIRS = Clipboard HelloWorld SelfVoice Time MouseReview Date ByeCthulhu HelloCthulhu PluginManager CapsLockHack SUBDIRS = Clipboard HelloWorld SelfVoice Time MouseReview Date ByeCthulhu HelloCthulhu PluginManager CapsLockHack
orca_pythondir=$(pkgpythondir)/plugins cthulhu_pythondir=$(pkgpythondir)/plugins

View File

@ -1,7 +1,7 @@
orca_python_PYTHON = \ cthulhu_python_PYTHON = \
__init__.py \ __init__.py \
MouseReview.plugin \ MouseReview.plugin \
MouseReview.py MouseReview.py
orca_pythondir=$(pkgpythondir)/plugins/MouseReview cthulhu_pythondir=$(pkgpythondir)/plugins/MouseReview

View File

@ -1,4 +1,4 @@
# Mouse reviewer for Orca # Mouse reviewer for Cthulhu
# #
# Copyright 2008 Eitan Isaacson # Copyright 2008 Eitan Isaacson
# Copyright 2016 Igalia, S.L. # Copyright 2016 Igalia, S.L.
@ -226,7 +226,7 @@ class _StringContext:
voice = self._script.speechGenerator.voice(obj=self._obj, string=self._string) voice = self._script.speechGenerator.voice(obj=self._obj, string=self._string)
string = self._script.utilities.adjustForRepeats(self._string) string = self._script.utilities.adjustForRepeats(self._string)
# TODO # TODO
#orca.emitRegionChanged(self._obj, self._start, self._end, orca.MOUSE_REVIEW) #cthulhu.emitRegionChanged(self._obj, self._start, self._end, cthulhu.MOUSE_REVIEW)
emitRegionChanged(self._obj, self._start, self._end, "mouse-review") emitRegionChanged(self._obj, self._start, self._end, "mouse-review")
@ -398,7 +398,7 @@ class _ItemContext:
if self._obj and self._obj != prior._obj and not self._isInlineChild(prior): if self._obj and self._obj != prior._obj and not self._isInlineChild(prior):
priorObj = prior._obj or self._getContainer() priorObj = prior._obj or self._getContainer()
# TODO # TODO
#orca.emitRegionChanged(self._obj, mode=orca.MOUSE_REVIEW) #cthulhu.emitRegionChanged(self._obj, mode=cthulhu.MOUSE_REVIEW)
emitRegionChanged(self._obj, mode="mouse-review") emitRegionChanged(self._obj, mode="mouse-review")
self._script.presentObject(self._obj, priorObj=priorObj, inMouseReview=True) self._script.presentObject(self._obj, priorObj=priorObj, inMouseReview=True)

View File

@ -1,8 +1,8 @@
orca_python_PYTHON = \ cthulhu_python_PYTHON = \
__init__.py \ __init__.py \
PluginManager.plugin \ PluginManager.plugin \
PluginManager.py \ PluginManager.py \
PluginManagerUi.py PluginManagerUi.py
orca_pythondir=$(pkgpythondir)/plugins/PluginManager cthulhu_pythondir=$(pkgpythondir)/plugins/PluginManager

View File

@ -1,7 +1,7 @@
orca_python_PYTHON = \ cthulhu_python_PYTHON = \
__init__.py \ __init__.py \
SelfVoice.plugin \ SelfVoice.plugin \
SelfVoice.py SelfVoice.py
orca_pythondir=$(pkgpythondir)/plugins/SelfVoice cthulhu_pythondir=$(pkgpythondir)/plugins/SelfVoice

View File

@ -1,7 +1,7 @@
orca_python_PYTHON = \ cthulhu_python_PYTHON = \
__init__.py \ __init__.py \
Time.plugin \ Time.plugin \
Time.py Time.py
orca_pythondir=$(pkgpythondir)/plugins/Time cthulhu_pythondir=$(pkgpythondir)/plugins/Time

View File

@ -2942,7 +2942,7 @@ class Utilities:
return False return False
if len(event.event_string) != 1 \ if len(event.event_string) != 1 \
or event.modifiers & keybindings.ORCA_CTRL_MODIFIER_MASK: or event.modifiers & keybindings.CTHULHU_CTRL_MODIFIER_MASK:
return False return False
if AXUtilities.is_password_text(cthulhu_state.locusOfFocus): if AXUtilities.is_password_text(cthulhu_state.locusOfFocus):
@ -4828,7 +4828,7 @@ class Utilities:
if mods & keybindings.CTRL_MODIFIER_MASK \ if mods & keybindings.CTRL_MODIFIER_MASK \
or mods & keybindings.SHIFT_MODIFIER_MASK \ or mods & keybindings.SHIFT_MODIFIER_MASK \
or mods & keybindings.ALT_MODIFIER_MASK \ or mods & keybindings.ALT_MODIFIER_MASK \
or mods & keybindings.ORCA_MODIFIER_MASK: or mods & keybindings.CTHULHU_MODIFIER_MASK:
return False return False
return True return True
@ -4997,7 +4997,7 @@ class Utilities:
if mods & keybindings.CTRL_MODIFIER_MASK \ if mods & keybindings.CTRL_MODIFIER_MASK \
or mods & keybindings.ALT_MODIFIER_MASK \ or mods & keybindings.ALT_MODIFIER_MASK \
or mods & keybindings.ORCA_MODIFIER_MASK: or mods & keybindings.CTHULHU_MODIFIER_MASK:
return False return False
return True return True

View File

@ -177,14 +177,14 @@ class Script(default.Script):
keybindings.KeyBinding( keybindings.KeyBinding(
"a", "a",
keybindings.defaultModifierMask, keybindings.defaultModifierMask,
keybindings.ORCA_MODIFIER_MASK, keybindings.CTHULHU_MODIFIER_MASK,
self.inputEventHandlers["presentInputLineHandler"])) self.inputEventHandlers["presentInputLineHandler"]))
keyBindings.add( keyBindings.add(
keybindings.KeyBinding( keybindings.KeyBinding(
"r", "r",
keybindings.defaultModifierMask, keybindings.defaultModifierMask,
keybindings.ORCA_MODIFIER_MASK, keybindings.CTHULHU_MODIFIER_MASK,
self.inputEventHandlers["setDynamicColumnHeadersHandler"], self.inputEventHandlers["setDynamicColumnHeadersHandler"],
1)) 1))
@ -192,7 +192,7 @@ class Script(default.Script):
keybindings.KeyBinding( keybindings.KeyBinding(
"r", "r",
keybindings.defaultModifierMask, keybindings.defaultModifierMask,
keybindings.ORCA_MODIFIER_MASK, keybindings.CTHULHU_MODIFIER_MASK,
self.inputEventHandlers["clearDynamicColumnHeadersHandler"], self.inputEventHandlers["clearDynamicColumnHeadersHandler"],
2)) 2))
@ -200,7 +200,7 @@ class Script(default.Script):
keybindings.KeyBinding( keybindings.KeyBinding(
"c", "c",
keybindings.defaultModifierMask, keybindings.defaultModifierMask,
keybindings.ORCA_MODIFIER_MASK, keybindings.CTHULHU_MODIFIER_MASK,
self.inputEventHandlers["setDynamicRowHeadersHandler"], self.inputEventHandlers["setDynamicRowHeadersHandler"],
1)) 1))
@ -208,7 +208,7 @@ class Script(default.Script):
keybindings.KeyBinding( keybindings.KeyBinding(
"c", "c",
keybindings.defaultModifierMask, keybindings.defaultModifierMask,
keybindings.ORCA_MODIFIER_MASK, keybindings.CTHULHU_MODIFIER_MASK,
self.inputEventHandlers["clearDynamicRowHeadersHandler"], self.inputEventHandlers["clearDynamicRowHeadersHandler"],
2)) 2))

View File

@ -202,7 +202,7 @@ class Script(script.Script):
self.inputEventHandlers["shutdownHandler"] = \ self.inputEventHandlers["shutdownHandler"] = \
input_event.InputEventHandler( input_event.InputEventHandler(
cthulhu.quitCthulhu, cthulhu.quitCthulhu,
cmdnames.QUIT_ORCA) cmdnames.QUIT_CTHULHU)
self.inputEventHandlers["preferencesSettingsHandler"] = \ self.inputEventHandlers["preferencesSettingsHandler"] = \
input_event.InputEventHandler( input_event.InputEventHandler(
@ -721,7 +721,7 @@ class Script(script.Script):
######################################################################## ########################################################################
# # # #
# INPUT EVENT HANDLERS (AKA ORCA COMMANDS) # # INPUT EVENT HANDLERS (AKA CTHULHU COMMANDS) #
# # # #
######################################################################## ########################################################################

View File

@ -223,7 +223,7 @@ class Utilities(script_utilities.Utilities):
return False return False
if len(event.event_string) != 1 \ if len(event.event_string) != 1 \
or event.modifiers & keybindings.ORCA_CTRL_MODIFIER_MASK: or event.modifiers & keybindings.CTHULHU_CTRL_MODIFIER_MASK:
return False return False
return True return True

View File

@ -149,14 +149,14 @@ class Script(default.Script):
keybindings.KeyBinding( keybindings.KeyBinding(
"a", "a",
keybindings.defaultModifierMask, keybindings.defaultModifierMask,
keybindings.ORCA_MODIFIER_MASK, keybindings.CTHULHU_MODIFIER_MASK,
self.inputEventHandlers.get("togglePresentationModeHandler"))) self.inputEventHandlers.get("togglePresentationModeHandler")))
keyBindings.add( keyBindings.add(
keybindings.KeyBinding( keybindings.KeyBinding(
"a", "a",
keybindings.defaultModifierMask, keybindings.defaultModifierMask,
keybindings.ORCA_MODIFIER_MASK, keybindings.CTHULHU_MODIFIER_MASK,
self.inputEventHandlers.get("enableStickyFocusModeHandler"), self.inputEventHandlers.get("enableStickyFocusModeHandler"),
2)) 2))
@ -164,7 +164,7 @@ class Script(default.Script):
keybindings.KeyBinding( keybindings.KeyBinding(
"a", "a",
keybindings.defaultModifierMask, keybindings.defaultModifierMask,
keybindings.ORCA_MODIFIER_MASK, keybindings.CTHULHU_MODIFIER_MASK,
self.inputEventHandlers.get("enableStickyBrowseModeHandler"), self.inputEventHandlers.get("enableStickyBrowseModeHandler"),
3)) 3))
@ -186,7 +186,7 @@ class Script(default.Script):
keybindings.KeyBinding( keybindings.KeyBinding(
key, key,
keybindings.defaultModifierMask, keybindings.defaultModifierMask,
keybindings.ORCA_MODIFIER_MASK, keybindings.CTHULHU_MODIFIER_MASK,
self.inputEventHandlers.get("moveToMouseOverHandler"))) self.inputEventHandlers.get("moveToMouseOverHandler")))
return keyBindings return keyBindings

View File

@ -231,21 +231,21 @@ class SpeechAndVerbosityManager:
keybindings.KeyBinding( keybindings.KeyBinding(
"s", "s",
keybindings.defaultModifierMask, keybindings.defaultModifierMask,
keybindings.ORCA_MODIFIER_MASK, keybindings.CTHULHU_MODIFIER_MASK,
self._handlers.get("toggleSilenceSpeechHandler"))) self._handlers.get("toggleSilenceSpeechHandler")))
bindings.add( bindings.add(
keybindings.KeyBinding( keybindings.KeyBinding(
"v", "v",
keybindings.defaultModifierMask, keybindings.defaultModifierMask,
keybindings.ORCA_MODIFIER_MASK, keybindings.CTHULHU_MODIFIER_MASK,
self._handlers.get("toggleSpeechVerbosityHandler"))) self._handlers.get("toggleSpeechVerbosityHandler")))
bindings.add( bindings.add(
keybindings.KeyBinding( keybindings.KeyBinding(
"F11", "F11",
keybindings.defaultModifierMask, keybindings.defaultModifierMask,
keybindings.ORCA_MODIFIER_MASK, keybindings.CTHULHU_MODIFIER_MASK,
self._handlers.get("toggleTableCellReadModeHandler"))) self._handlers.get("toggleTableCellReadModeHandler")))
return bindings return bindings

View File

@ -276,7 +276,7 @@ class SpeechServer(speechserver.SpeechServer):
msg = ( msg = (
f"SPEECH DISPATCHER: {prefix}\n" f"SPEECH DISPATCHER: {prefix}\n"
f"ORCA rate {self._current_voice_properties.get(ACSS.RATE)}, " f"CTHULHU rate {self._current_voice_properties.get(ACSS.RATE)}, "
f"pitch {self._current_voice_properties.get(ACSS.AVERAGE_PITCH)}, " f"pitch {self._current_voice_properties.get(ACSS.AVERAGE_PITCH)}, "
f"volume {self._current_voice_properties.get(ACSS.GAIN)}, " f"volume {self._current_voice_properties.get(ACSS.GAIN)}, "
f"language {self._get_language_and_dialect(family)[0]}, " f"language {self._get_language_and_dialect(family)[0]}, "

View File

@ -683,7 +683,7 @@ class StructuralNavigation:
keybindings.KeyBinding( keybindings.KeyBinding(
"z", "z",
keybindings.defaultModifierMask, keybindings.defaultModifierMask,
keybindings.ORCA_MODIFIER_MASK, keybindings.CTHULHU_MODIFIER_MASK,
self.inputEventHandlers["toggleStructuralNavigationHandler"])) self.inputEventHandlers["toggleStructuralNavigationHandler"]))
for structuralNavigationObject in self.enabledObjects.values(): for structuralNavigationObject in self.enabledObjects.values():

View File

@ -120,14 +120,14 @@ class WhereAmIPresenter:
keybindings.KeyBinding( keybindings.KeyBinding(
"f", "f",
keybindings.defaultModifierMask, keybindings.defaultModifierMask,
keybindings.ORCA_MODIFIER_MASK, keybindings.CTHULHU_MODIFIER_MASK,
self._handlers.get("readCharAttributesHandler"))) self._handlers.get("readCharAttributesHandler")))
bindings.add( bindings.add(
keybindings.KeyBinding( keybindings.KeyBinding(
"e", "e",
keybindings.defaultModifierMask, keybindings.defaultModifierMask,
keybindings.ORCA_MODIFIER_MASK, keybindings.CTHULHU_MODIFIER_MASK,
self._handlers.get("present_default_button"))) self._handlers.get("present_default_button")))
bindings.add( bindings.add(
@ -141,7 +141,7 @@ class WhereAmIPresenter:
keybindings.KeyBinding( keybindings.KeyBinding(
"KP_Enter", "KP_Enter",
keybindings.defaultModifierMask, keybindings.defaultModifierMask,
keybindings.ORCA_MODIFIER_MASK, keybindings.CTHULHU_MODIFIER_MASK,
self._handlers.get("getTitleHandler"), self._handlers.get("getTitleHandler"),
1)) 1))
@ -149,7 +149,7 @@ class WhereAmIPresenter:
keybindings.KeyBinding( keybindings.KeyBinding(
"KP_Enter", "KP_Enter",
keybindings.defaultModifierMask, keybindings.defaultModifierMask,
keybindings.ORCA_MODIFIER_MASK, keybindings.CTHULHU_MODIFIER_MASK,
self._handlers.get("getStatusBarHandler"), self._handlers.get("getStatusBarHandler"),
2)) 2))
@ -180,7 +180,7 @@ class WhereAmIPresenter:
keybindings.KeyBinding( keybindings.KeyBinding(
"Up", "Up",
keybindings.defaultModifierMask, keybindings.defaultModifierMask,
keybindings.ORCA_SHIFT_MODIFIER_MASK, keybindings.CTHULHU_SHIFT_MODIFIER_MASK,
self._handlers.get("whereAmISelectionHandler"))) self._handlers.get("whereAmISelectionHandler")))
return bindings return bindings
@ -194,14 +194,14 @@ class WhereAmIPresenter:
keybindings.KeyBinding( keybindings.KeyBinding(
"f", "f",
keybindings.defaultModifierMask, keybindings.defaultModifierMask,
keybindings.ORCA_MODIFIER_MASK, keybindings.CTHULHU_MODIFIER_MASK,
self._handlers.get("readCharAttributesHandler"))) self._handlers.get("readCharAttributesHandler")))
bindings.add( bindings.add(
keybindings.KeyBinding( keybindings.KeyBinding(
"e", "e",
keybindings.defaultModifierMask, keybindings.defaultModifierMask,
keybindings.ORCA_MODIFIER_MASK, keybindings.CTHULHU_MODIFIER_MASK,
self._handlers.get("present_default_button"))) self._handlers.get("present_default_button")))
bindings.add( bindings.add(
@ -215,7 +215,7 @@ class WhereAmIPresenter:
keybindings.KeyBinding( keybindings.KeyBinding(
"slash", "slash",
keybindings.defaultModifierMask, keybindings.defaultModifierMask,
keybindings.ORCA_MODIFIER_MASK, keybindings.CTHULHU_MODIFIER_MASK,
self._handlers.get("getTitleHandler"), self._handlers.get("getTitleHandler"),
1)) 1))
@ -223,7 +223,7 @@ class WhereAmIPresenter:
keybindings.KeyBinding( keybindings.KeyBinding(
"slash", "slash",
keybindings.defaultModifierMask, keybindings.defaultModifierMask,
keybindings.ORCA_MODIFIER_MASK, keybindings.CTHULHU_MODIFIER_MASK,
self._handlers.get("getStatusBarHandler"), self._handlers.get("getStatusBarHandler"),
2)) 2))
@ -231,7 +231,7 @@ class WhereAmIPresenter:
keybindings.KeyBinding( keybindings.KeyBinding(
"Return", "Return",
keybindings.defaultModifierMask, keybindings.defaultModifierMask,
keybindings.ORCA_MODIFIER_MASK, keybindings.CTHULHU_MODIFIER_MASK,
self._handlers.get("whereAmIBasicHandler"), self._handlers.get("whereAmIBasicHandler"),
1)) 1))
@ -239,7 +239,7 @@ class WhereAmIPresenter:
keybindings.KeyBinding( keybindings.KeyBinding(
"Return", "Return",
keybindings.defaultModifierMask, keybindings.defaultModifierMask,
keybindings.ORCA_MODIFIER_MASK, keybindings.CTHULHU_MODIFIER_MASK,
self._handlers.get("whereAmIDetailedHandler"), self._handlers.get("whereAmIDetailedHandler"),
2)) 2))
@ -254,7 +254,7 @@ class WhereAmIPresenter:
keybindings.KeyBinding( keybindings.KeyBinding(
"Up", "Up",
keybindings.defaultModifierMask, keybindings.defaultModifierMask,
keybindings.ORCA_SHIFT_MODIFIER_MASK, keybindings.CTHULHU_SHIFT_MODIFIER_MASK,
self._handlers.get("whereAmISelectionHandler"))) self._handlers.get("whereAmISelectionHandler")))
return bindings return bindings

View File

@ -1,4 +1,4 @@
ORCA TEST HARNESS: CTHULHU TEST HARNESS:
------------------ ------------------
This document provides a very brief description of the Cthulhu test This document provides a very brief description of the Cthulhu test