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
Willie Walker

View File

@ -1867,7 +1867,7 @@
* Release Cthulhu v2.24.0. Somehow I forgot to mark this.
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>
@ -5747,7 +5747,7 @@
* src/cthulhu/app_gui_prefs.py:
src/cthulhu/cthulhu_gui_prefs.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.
2007-12-12 Willie Walker <william.walker@sun.com>
@ -10456,7 +10456,7 @@
Fix for bug #372273 - Add ability to configure app-specific
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
usage (reload user settings) is now gone.
@ -12574,7 +12574,7 @@
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
in v2.17.5 - many many thanks to all involved.
@ -17730,7 +17730,7 @@
* 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
moves.
@ -19296,7 +19296,7 @@
* src/cthulhu/{default.py, gnomespeechfactory.py, cthulhu-setup.in,
cthulhu.py, settings.py, speech.py}, src/cthulhu/scripts/Gecko.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
bit by a mispelling when using raw strings).
@ -19335,7 +19335,7 @@
src/cthulhu/scripts/{Gecko.py,metacity.py}: new speech structure
done in collaboration with T.V. Raman of Google who donated
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>
@ -19359,7 +19359,7 @@
src/cthulhu/scripts/Gecko.py, src/cthulhu/scripts/gaim.py,
src/cthulhu/scripts/gcalctool.py, src/cthulhu/scripts/metacity.py: First
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.
2005-11-09 Mike Pedersen <michael.pedersen@sun.com>

View File

@ -1,6 +1,6 @@
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

View File

@ -44,7 +44,7 @@ dist-hook:
echo Creating ChangeLog && \
( cd "$(top_srcdir)" && \
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 \
|| ( rm -f ChangeLog.tmp ; \
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
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
this functionality!
@ -11439,7 +11439,7 @@ General Cthulhu:
of tool tips
* 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
(reload user settings) is now gone.
@ -11476,7 +11476,7 @@ Firefox:
stylesheet results in bad behavior
* 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.
* 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.
* Fix for bug 423427 - Need to add form field structural navigation in
Firefox. ORCA_MODIFIER+Tab should move you to the next form field
and ORCA_MODIFIER+Shift+Tab should move you to the previous form
Firefox. CTHULHU_MODIFIER+Tab should move you to the next form field
and CTHULHU_MODIFIER+Shift+Tab should move you to the previous form
field.
* Fix for bug 423435 - Cthulhu is too chatty when loading a page in

View File

@ -1,4 +1,4 @@
# Cthulhu v45.3
# Cthulhu
## Introduction
@ -11,20 +11,12 @@ technology service provider interface (AT-SPI), which is the primary
assistive technology infrastructure for the Solaris and Linux
operating environments. Applications and toolkits supporting the
AT-SPI include the GNOME GTK+ toolkit, the Java platform's Swing
toolkit, OpenOffice/LibreOffice, Gecko, and WebKitGtk. AT-SPI support
for the KDE Qt toolkit is currently being pursued.
toolkit, OpenOffice/LibreOffice, Gecko, WebKitGtk, and KDE Qt toolkit.
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
Cthulhu v45.x is supported on GNOME 45.x only. We highly suggest you
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:
Cthulhu has the following dependencies:
* Python 3 - Python platform
* 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)
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
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.
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
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
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
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:
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:
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;}
{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);}' |
@ -40,7 +40,7 @@ Quick-and-dirty formatted list of translation changes:
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
configure.ac and README are accurate.
@ -56,8 +56,8 @@ COMMIT RELEASE CHANGES AND TAG THE RELEASE:
git commit -a
git push
git tag -a -s ORCA_40_RC
git push origin ORCA_40_RC
git tag -a -s CTHULHU_40_RC
git push origin CTHULHU_40_RC
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.
- 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.

View File

@ -35,8 +35,6 @@ makedepends=(
itstool
yelp-tools
)
groups=(gnome)
_commit=9e77d1baf9bd24b78d7499ad9b2e8bb80c9a0c81 # tags/ORCA_45_1^0
source=("git+https://git.stormux.org/storm/cthulhu.git")
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"
"detalles.\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."
#. DESCRIP

View File

@ -1,6 +1,6 @@
# translation of cthulhu.HEAD.po to 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.
#
# Francisco Javier F. Serrador <serrador@cvs.gnome.org>, 2004, 2006.
@ -15099,7 +15099,7 @@ msgstr ""
#~ "detalles.\n"
#~ "\n"
#~ "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"
#~ "Franklin Street, Fifth Floor, Boston, MA 02110-1301, EE. UU."

View File

@ -1,6 +1,6 @@
# Përkthimi i cthulhu.HEAD në shqip.
# 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.
msgid ""

View File

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

View File

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

View File

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

View File

@ -308,7 +308,7 @@ class Chat:
#
self.messageKeys = \
["F1", "F2", "F3", "F4", "F5", "F6", "F7", "F8", "F9"]
self.messageKeyModifier = keybindings.ORCA_MODIFIER_MASK
self.messageKeyModifier = keybindings.CTHULHU_MODIFIER_MASK
self.inputEventHandlers = {}
self.setupInputEventHandlers()
self.keyBindings = self.getKeyBindings()
@ -387,7 +387,7 @@ class Chat:
keybindings.KeyBinding(
messageKey,
self.messageKeyModifier,
keybindings.ORCA_MODIFIER_MASK,
keybindings.CTHULHU_MODIFIER_MASK,
self.inputEventHandlers["reviewMessage"]))
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
# Cthulhu.
QUIT_ORCA = _("Quit the screen reader")
QUIT_CTHULHU = _("Quit the screen reader")
# Translators: the preferences configuration dialog is the dialog that allows
# users to set their preferences for Cthulhu.

View File

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

View File

@ -132,7 +132,7 @@ OBJECT_NAVIGATOR = "object-navigator"
SAY_ALL = "say-all"
def getActiveModeAndObjectOfInterest():
tokens = ["ORCA: Active mode:", cthulhu_state.activeMode,
tokens = ["CTHULHU: Active mode:", cthulhu_state.activeMode,
"Object of interest:", cthulhu_state.objOfInterest]
debug.printTokens(debug.LEVEL_INFO, tokens, True)
return cthulhu_state.activeMode, cthulhu_state.objOfInterest
@ -150,42 +150,42 @@ def emitRegionChanged(obj, startOffset=None, endOffset=None, mode=None):
try:
obj.emit("mode-changed::" + mode, 1, "")
except Exception:
msg = "ORCA: Exception emitting mode-changed notification"
msg = "CTHULHU: Exception emitting mode-changed notification"
debug.printMessage(debug.LEVEL_INFO, msg, True)
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)
cthulhu_state.activeMode = mode
try:
tokens = ["ORCA: Region of interest:", obj, "(", startOffset, ")", endOffset]
tokens = ["CTHULHU: Region of interest:", obj, "(", startOffset, ")", endOffset]
debug.printTokens(debug.LEVEL_INFO, tokens, True)
obj.emit("region-changed", startOffset, endOffset)
except Exception:
msg = "ORCA: Exception emitting region-changed notification"
msg = "CTHULHU: Exception emitting region-changed notification"
debug.printMessage(debug.LEVEL_INFO, msg, True)
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)
cthulhu_state.objOfInterest = obj
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:
tokens.extend(["in", app])
debug.printTokens(debug.LEVEL_INFO, tokens, True)
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)
elif frame is None:
cthulhu_state.activeWindow = None
else:
real_app, real_frame = AXObject.find_real_app_and_window_for(frame, app)
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)
cthulhu_state.activeWindow = real_frame
else:
@ -208,7 +208,7 @@ def setLocusOfFocus(event, obj, notifyScript=True, force=False):
"""
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)
return
@ -222,13 +222,13 @@ def setLocusOfFocus(event, obj, notifyScript=True, force=False):
oldFocus = 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)
cthulhu_state.locusOfFocus = None
return
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)
if cthulhu_state.activeScript.utilities.isZombie(obj):
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)
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)
cthulhu_state.locusOfFocus = obj
@ -247,7 +247,7 @@ def setLocusOfFocus(event, obj, notifyScript=True, force=False):
return
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)
return
@ -299,7 +299,7 @@ def deviceChangeHandler(deviceManager, device):
so we have to re-apply"""
source = device.get_source()
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)
_createCthulhuXmodmap()
@ -409,7 +409,7 @@ def _restoreXmodmap(keyList=[]):
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)
global _capsLockCleared
@ -418,7 +418,7 @@ def _restoreXmodmap(keyList=[]):
stdin=subprocess.PIPE, stdout=None, stderr=None)
p.communicate(_originalXmodmap)
msg = "ORCA: Original xmodmap restored"
msg = "CTHULHU: Original xmodmap restored"
debug.printMessage(debug.LEVEL_INFO, msg, True)
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.
"""
debug.printMessage(debug.LEVEL_INFO, 'ORCA: Loading User Settings', True)
debug.printMessage(debug.LEVEL_INFO, 'CTHULHU: Loading User Settings', True)
global _userSettings
@ -473,7 +473,7 @@ def loadUserSettings(script=None, inputEvent=None, skipReloadMessage=False):
_settingsManager.loadAppSettings(script)
if _settingsManager.getSetting('enableSpeech'):
msg = 'ORCA: About to enable speech'
msg = 'CTHULHU: About to enable speech'
debug.printMessage(debug.LEVEL_INFO, msg, True)
try:
speech.init()
@ -482,20 +482,20 @@ def loadUserSettings(script=None, inputEvent=None, skipReloadMessage=False):
except Exception:
debug.printException(debug.LEVEL_SEVERE)
else:
msg = 'ORCA: Speech is not enabled in settings'
msg = 'CTHULHU: Speech is not enabled in settings'
debug.printMessage(debug.LEVEL_INFO, msg, True)
if _settingsManager.getSetting('enableBraille'):
msg = 'ORCA: About to enable braille'
msg = 'CTHULHU: About to enable braille'
debug.printMessage(debug.LEVEL_INFO, msg, True)
try:
braille.init(_processBrailleEvent)
except Exception:
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)
else:
msg = 'ORCA: Braille is not enabled in settings'
msg = 'CTHULHU: Braille is not enabled in settings'
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')
debug.printMessage(debug.LEVEL_INFO, 'ORCA: User Settings Loaded', True)
debug.printMessage(debug.LEVEL_INFO, 'CTHULHU: User Settings Loaded', True)
return True
@ -641,12 +641,12 @@ def init():
module has already been initialized.
"""
debug.printMessage(debug.LEVEL_INFO, 'ORCA: Initializing', True)
debug.printMessage(debug.LEVEL_INFO, 'CTHULHU: Initializing', True)
global _initialized
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
# Do not hang on initialization if we can help it.
@ -667,14 +667,14 @@ def init():
if a11yAppSettings:
a11yAppSettings.connect('changed', onEnabledChanged)
debug.printMessage(debug.LEVEL_INFO, 'ORCA: Initialized', True)
debug.printMessage(debug.LEVEL_INFO, 'CTHULHU: Initialized', True)
return True
def start():
"""Starts Cthulhu."""
debug.printMessage(debug.LEVEL_INFO, 'ORCA: Starting', True)
debug.printMessage(debug.LEVEL_INFO, 'CTHULHU: Starting', True)
if not _initialized:
init()
@ -698,10 +698,10 @@ def start():
devmanager.connect("device-removed", deviceChangeHandler)
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, 'ORCA: Starting Atspi main event loop', True)
debug.printMessage(debug.LEVEL_INFO, 'CTHULHU: Starting Atspi main event loop', True)
Atspi.event_main()
def die(exitCode=1):
@ -730,7 +730,7 @@ def shutdown(script=None, inputEvent=None):
was never initialized.
"""
debug.printMessage(debug.LEVEL_INFO, 'ORCA: Shutting down', True)
debug.printMessage(debug.LEVEL_INFO, 'CTHULHU: Shutting down', True)
global _initialized
@ -769,9 +769,9 @@ def shutdown(script=None, inputEvent=None):
_initialized = False
_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()
debug.printMessage(debug.LEVEL_INFO, 'ORCA: Shutdown complete', True)
debug.printMessage(debug.LEVEL_INFO, 'CTHULHU: Shutdown complete', True)
return True
@ -780,7 +780,7 @@ def shutdownOnSignal(signum, frame):
global exitCount
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)
# 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):
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.printStack(debug.LEVEL_SEVERE)
_restoreXmodmap(_cthulhuModifiers)
@ -831,7 +831,7 @@ def main():
an exit code of 0 means normal completion and an exit code of 50
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:
msg += f" (rev {cthulhu_platform.revision})"
@ -859,13 +859,13 @@ def main():
signal.signal(signal.SIGQUIT, shutdownOnSignal)
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():
_settingsManager.setAccessibility(True)
debug.printMessage(debug.LEVEL_INFO, "ORCA: Initializing.", True)
debug.printMessage(debug.LEVEL_INFO, "CTHULHU: Initializing.", True)
init()
debug.printMessage(debug.LEVEL_INFO, "ORCA: Initialized.", True)
debug.printMessage(debug.LEVEL_INFO, "CTHULHU: Initialized.", True)
script = cthulhu_state.activeScript
cthulhuApp.getSignalManager().emitSignal('start-application-completed')
@ -883,7 +883,7 @@ def main():
_scriptManager.setActiveScript(script, "Launching.")
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)
if focusedObject:
setLocusOfFocus(None, focusedObject)
@ -892,11 +892,11 @@ def main():
_scriptManager.setActiveScript(script, "Found focused object.")
try:
msg = "ORCA: Starting ATSPI registry."
msg = "CTHULHU: Starting ATSPI registry."
debug.printMessage(debug.LEVEL_INFO, msg, True)
start() # waits until we stop the registry
except Exception:
msg = "ORCA: Exception starting ATSPI registry."
msg = "CTHULHU: Exception starting ATSPI registry."
debug.printMessage(debug.LEVEL_SEVERE, msg, True)
die(EXIT_CODE_HANG)
return 0

View File

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

View File

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

View File

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

View File

@ -32,13 +32,13 @@ from . import keybindings
# Storing values
defaultModifierMask = keybindings.defaultModifierMask
ORCA_MODIFIER_MASK = keybindings.ORCA_MODIFIER_MASK
CTHULHU_MODIFIER_MASK = keybindings.CTHULHU_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 = (
("KP_Divide", defaultModifierMask, ORCA_MODIFIER_MASK,
("KP_Divide", defaultModifierMask, CTHULHU_MODIFIER_MASK,
"routePointerToItemHandler"),
# 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
# modifier.
#
("KP_Divide", ORCA_MODIFIER_MASK, NO_MODIFIER_MASK,
("KP_Divide", CTHULHU_MODIFIER_MASK, NO_MODIFIER_MASK,
"leftClickReviewItemHandler"),
("KP_Multiply", ORCA_MODIFIER_MASK, NO_MODIFIER_MASK,
("KP_Multiply", CTHULHU_MODIFIER_MASK, NO_MODIFIER_MASK,
"rightClickReviewItemHandler"),
("KP_Add", defaultModifierMask, NO_MODIFIER_MASK,
@ -58,9 +58,9 @@ keymap = (
("KP_Delete", defaultModifierMask, NO_MODIFIER_MASK,
"findHandler"),
("KP_Delete", defaultModifierMask, ORCA_MODIFIER_MASK,
("KP_Delete", defaultModifierMask, CTHULHU_MODIFIER_MASK,
"findNextHandler"),
("KP_Delete", defaultModifierMask, ORCA_SHIFT_MODIFIER_MASK,
("KP_Delete", defaultModifierMask, CTHULHU_SHIFT_MODIFIER_MASK,
"findPreviousHandler"),
)

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -168,7 +168,7 @@ class LiveRegionManager:
keybindings.KeyBinding(
"backslash",
keybindings.defaultModifierMask,
keybindings.ORCA_SHIFT_MODIFIER_MASK,
keybindings.CTHULHU_SHIFT_MODIFIER_MASK,
self.inputEventHandlers.get("monitorLiveRegions")))
for key in ["F1", "F2", "F3", "F4", "F5", "F6", "F7", "F8", "F9"]:
@ -176,7 +176,7 @@ class LiveRegionManager:
keybindings.KeyBinding(
key,
keybindings.defaultModifierMask,
keybindings.ORCA_MODIFIER_MASK,
keybindings.CTHULHU_MODIFIER_MASK,
self.inputEventHandlers.get("reviewLiveAnnouncement")))
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
# 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.
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.
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
# Cthulhu, but Cthulhu is already running.
CLI_OTHER_ORCAS_ERROR = \
CLI_OTHER_CTHULHUS_ERROR = \
_('Another screen reader process is already running for this ' \
'session.\nRun “cthulhu --replace” to replace that ' \
'process with a new one.')
@ -2291,10 +2291,10 @@ SPEECH_VERBOSITY_VERBOSE = C_("Speech", "Verbosity level: verbose")
SPOKEN_ELLIPSIS = _(" dot dot dot")
# 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.
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.
SPEECH_UNAVAILABLE = _("Speech is unavailable.")

View File

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

View File

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

View File

@ -7,7 +7,7 @@ from gi.repository import Peas
import time
class ByeOrca(GObject.Object, Peas.Activatable, plugin.Plugin):
class ByeCthulhu(GObject.Object, Peas.Activatable, plugin.Plugin):
#__gtype_name__ = 'ByeCthulhu'
object = GObject.Property(type=GObject.Object)
@ -24,4 +24,4 @@ class ByeOrca(GObject.Object, Peas.Activatable, plugin.Plugin):
messages = app.getDynamicApiManager().getAPI('Messages')
activeScript = app.getDynamicApiManager().getAPI('CthulhuState').activeScript
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 \
ByeCthulhu.plugin \
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')
time.sleep(3)
while self.isActive():
if "Caps_Lock" in settings.orcaModifierKeys \
or "Shift_Lock" in settings.orcaModifierKeys:
self.setCapsLockAsOrcaModifier(True)
if "Caps_Lock" in settings.cthulhuModifierKeys \
or "Shift_Lock" in settings.cthulhuModifierKeys:
self.setCapsLockAsCthulhuModifier(True)
capsLockCleared = True
elif capsLockCleared:
self.setCapsLockAsOrcaModifier(False)
self.setCapsLockAsCthulhuModifier(False)
capsLockCleared = False
time.sleep(1)
def setCapsLockAsOrcaModifier(self, enable):
def setCapsLockAsCthulhuModifier(self, enable):
originalXmodmap = None
lines = None
try:

View File

@ -1,7 +1,7 @@
orca_python_PYTHON = \
cthulhu_python_PYTHON = \
__init__.py \
CapsLockHack.plugin \
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 \
Clipboard.plugin \
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 \
Date.plugin \
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
def process(self, app):
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 \
HelloCthulhu.plugin \
HelloCthulhu.py
orca_pythondir=$(pkgpythondir)/plugins/HelloCthulhu
cthulhu_pythondir=$(pkgpythondir)/plugins/HelloCthulhu

View File

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

View File

@ -1,7 +1,7 @@
orca_python_PYTHON = \
cthulhu_python_PYTHON = \
__init__.py \
HelloWorld.plugin \
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
orca_pythondir=$(pkgpythondir)/plugins
cthulhu_pythondir=$(pkgpythondir)/plugins

View File

@ -1,7 +1,7 @@
orca_python_PYTHON = \
cthulhu_python_PYTHON = \
__init__.py \
MouseReview.plugin \
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 2016 Igalia, S.L.
@ -226,7 +226,7 @@ class _StringContext:
voice = self._script.speechGenerator.voice(obj=self._obj, string=self._string)
string = self._script.utilities.adjustForRepeats(self._string)
# 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")
@ -398,7 +398,7 @@ class _ItemContext:
if self._obj and self._obj != prior._obj and not self._isInlineChild(prior):
priorObj = prior._obj or self._getContainer()
# TODO
#orca.emitRegionChanged(self._obj, mode=orca.MOUSE_REVIEW)
#cthulhu.emitRegionChanged(self._obj, mode=cthulhu.MOUSE_REVIEW)
emitRegionChanged(self._obj, mode="mouse-review")
self._script.presentObject(self._obj, priorObj=priorObj, inMouseReview=True)

View File

@ -1,8 +1,8 @@
orca_python_PYTHON = \
cthulhu_python_PYTHON = \
__init__.py \
PluginManager.plugin \
PluginManager.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 \
SelfVoice.plugin \
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 \
Time.plugin \
Time.py
orca_pythondir=$(pkgpythondir)/plugins/Time
cthulhu_pythondir=$(pkgpythondir)/plugins/Time

View File

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

View File

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

View File

@ -202,7 +202,7 @@ class Script(script.Script):
self.inputEventHandlers["shutdownHandler"] = \
input_event.InputEventHandler(
cthulhu.quitCthulhu,
cmdnames.QUIT_ORCA)
cmdnames.QUIT_CTHULHU)
self.inputEventHandlers["preferencesSettingsHandler"] = \
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
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 True

View File

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

View File

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

View File

@ -276,7 +276,7 @@ class SpeechServer(speechserver.SpeechServer):
msg = (
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"volume {self._current_voice_properties.get(ACSS.GAIN)}, "
f"language {self._get_language_and_dialect(family)[0]}, "

View File

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

View File

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