[orca: 1/2] Fix minor typos



commit 3a8cc3d893e684a9ecd2de000bd9fe0bf1bd5160
Author: Yuri Chornoivan <yurchor ukr net>
Date:   Mon Apr 27 22:25:26 2020 +0300

    Fix minor typos

 docs/doc-set/internals.html                            |  2 +-
 docs/doc-set/script_guide.sgml                         |  2 +-
 src/orca/backends/json_backend.py                      |  2 +-
 src/orca/braille.py                                    | 12 ++++++------
 src/orca/braille_generator.py                          |  2 +-
 src/orca/chat.py                                       |  2 +-
 src/orca/cmdnames.py                                   |  2 +-
 src/orca/eventsynthesizer.py                           | 12 ++++++------
 src/orca/messages.py                                   |  6 +++---
 src/orca/orca_gui_prefs.py                             |  2 +-
 src/orca/scripts/apps/Thunderbird/script.py            |  2 +-
 src/orca/scripts/default.py                            |  2 +-
 src/orca/scripts/toolkits/Chromium/speech_generator.py |  2 +-
 src/orca/scripts/web/script_utilities.py               |  4 ++--
 src/orca/settings_manager.py                           |  2 +-
 src/orca/speech_generator.py                           |  2 +-
 src/orca/structural_navigation.py                      |  4 ++--
 test/html/common.js                                    |  2 +-
 test/html/enter-bug-form.html                          |  2 +-
 test/keystrokes/java/role_accel_label.py               |  2 +-
 test/keystrokes/java/role_radio_button.py              |  2 +-
 21 files changed, 35 insertions(+), 35 deletions(-)
---
diff --git a/docs/doc-set/internals.html b/docs/doc-set/internals.html
index d17e0f781..802bedc81 100644
--- a/docs/doc-set/internals.html
+++ b/docs/doc-set/internals.html
@@ -1046,7 +1046,7 @@ class SpeechGenerator(speechgenerator.SpeechGenerator):
       <code class="literal">orca.braille</code> module provides the main
       interface to the braille display. The
       <code class="literal">orca.braillegenerator</code> module provides a
-      <code class="literal">BrailleGenerator</code> class that can be used to to
+      <code class="literal">BrailleGenerator</code> class that can be used to
       actually generate the text to be displayed for various objects.
       The expected use of the two modules is as follows: a script will
       create its own instance of a
diff --git a/docs/doc-set/script_guide.sgml b/docs/doc-set/script_guide.sgml
index 08dc68322..bffb43e98 100644
--- a/docs/doc-set/script_guide.sgml
+++ b/docs/doc-set/script_guide.sgml
@@ -1016,7 +1016,7 @@ class SpeechGenerator(speechgenerator.SpeechGenerator):
       <literal>orca.braille</literal> module provides the main
       interface to the braille display. The
       <literal>orca.braillegenerator</literal> module provides a
-      <literal>BrailleGenerator</literal> class that can be used to to
+      <literal>BrailleGenerator</literal> class that can be used to
       actually generate the text to be displayed for various objects.
       The expected use of the two modules is as follows: a script will
       create its own instance of a
diff --git a/src/orca/backends/json_backend.py b/src/orca/backends/json_backend.py
index dd0e07e7e..77385b41f 100644
--- a/src/orca/backends/json_backend.py
+++ b/src/orca/backends/json_backend.py
@@ -177,7 +177,7 @@ class Backend:
             dump(prefs, settingsFile, indent=4)
 
     def setFirstStart(self, value=False):
-        """Set firstStart. This user-configurable settting is primarily
+        """Set firstStart. This user-configurable setting is primarily
         intended to serve as an indication as to whether or not initial
         configuration is needed."""
         self.general['firstStart'] = value
diff --git a/src/orca/braille.py b/src/orca/braille.py
index ff4517942..b95ef2b17 100644
--- a/src/orca/braille.py
+++ b/src/orca/braille.py
@@ -323,7 +323,7 @@ class Region:
         Arguments:
         - getLinkMask: Whether or not we should take the time to get
           the attributeMask for links. Reasons we might not want to
-          include knowning that we will fail and/or it taking an
+          include knowing that we will fail and/or it taking an
           unreasonable amount of time (AKA Gecko).
         """
 
@@ -501,7 +501,7 @@ class Link(Component):
 
         - getLinkMask: Whether or not we should take the time to get
           the attributeMask for links. Reasons we might not want to
-          include knowning that we will fail and/or it taking an
+          include knowing that we will fail and/or it taking an
           unreasonable amount of time (AKA Gecko).
         """
 
@@ -646,7 +646,7 @@ class Text(Region):
         Arguments:
         - getLinkMask: Whether or not we should take the time to get
           the attributeMask for links. Reasons we might not want to
-          include knowning that we will fail and/or it taking an
+          include knowing that we will fail and/or it taking an
           unreasonable amount of time (AKA Gecko).
         """
 
@@ -845,7 +845,7 @@ class Line:
         Arguments:
         - getLinkMask: Whether or not we should take the time to get
           the attributeMask for links. Reasons we might not want to
-          include knowning that we will fail and/or it taking an
+          include knowing that we will fail and/or it taking an
           unreasonable amount of time (AKA Gecko).
 
         Returns [string, offsetIndex, attributeMask, ranges]
@@ -1009,7 +1009,7 @@ def setFocus(region, panToFocus=True, getLinkMask=True):
       position
     - getLinkMask: Whether or not we should take the time to get the
       attributeMask for links. Reasons we might not want to include
-      knowning that we will fail and/or it taking an unreasonable
+      knowing that we will fail and/or it taking an unreasonable
       amount of time (AKA Gecko).
     """
 
@@ -1073,7 +1073,7 @@ def refresh(panToCursor=True,
       right side of the display.
     - getLinkMask: Whether or not we should take the time to get the
       attributeMask for links. Reasons we might not want to include
-      knowning that we will fail and/or it taking an unreasonable
+      knowing that we will fail and/or it taking an unreasonable
       amount of time (AKA Gecko).
     - stopFlash: if True, kill any flashed message that may be showing.
     """
diff --git a/src/orca/braille_generator.py b/src/orca/braille_generator.py
index 0e04f174e..d323e8968 100644
--- a/src/orca/braille_generator.py
+++ b/src/orca/braille_generator.py
@@ -272,7 +272,7 @@ class BrailleGenerator(generator.Generator):
 
         # Radio button group names are treated separately from the
         # ancestors.  However, they can appear in the ancestry as a
-        # labeled panel.  So, we need to exlude the first one of
+        # labeled panel.  So, we need to exclude the first one of
         # these things we come across.  See also the
         # generator.py:_generateRadioButtonGroup method that is
         # used to find the radio button group name.
diff --git a/src/orca/chat.py b/src/orca/chat.py
index b5ceba691..2cd4a0d18 100644
--- a/src/orca/chat.py
+++ b/src/orca/chat.py
@@ -290,7 +290,7 @@ class Chat:
         Arguments:
         - script: the script with which this instance is associated.
         - buddyListAncestries: a list of lists of pyatspi roles beginning
-          with the the object serving as the actual buddy list (e.g.
+          with the object serving as the actual buddy list (e.g.
           ROLE_TREE_TABLE) and ending with the top level object (e.g.
           ROLE_FRAME).
         """
diff --git a/src/orca/cmdnames.py b/src/orca/cmdnames.py
index d3d562132..84c947bf1 100644
--- a/src/orca/cmdnames.py
+++ b/src/orca/cmdnames.py
@@ -1029,7 +1029,7 @@ TOGGLE_LAYOUT_MODE = _("Toggles layout mode.")
 # you to the next heading. What should happen when you press an "h" in
 # an entry on a web page depends: If you want to resume reading content,
 # "h" should move to the next heading; if you want to enter text, "h"
-# should not not move you to the next heading. Similarly, if you are
+# should not move you to the next heading. Similarly, if you are
 # at the bottom of an entry and press Down arrow, should you leave the
 # entry? Again, it depends on if you want to resume reading content or
 # if you are editing the text in the entry. Because Orca doesn't know
diff --git a/src/orca/eventsynthesizer.py b/src/orca/eventsynthesizer.py
index 98e2cc424..b0d5d95a3 100644
--- a/src/orca/eventsynthesizer.py
+++ b/src/orca/eventsynthesizer.py
@@ -221,7 +221,7 @@ def releaseAtPoint(x, y, button=1):
     return _generateMouseEvent(x, y, "b%dr" % button)
 
 def _scrollSubstringToLocation(obj, location, startOffset, endOffset):
-    """Attemps to scroll the given substring to the specified location."""
+    """Attempts to scroll the given substring to the specified location."""
 
     try:
         text = obj.queryText()
@@ -248,7 +248,7 @@ def _scrollSubstringToLocation(obj, location, startOffset, endOffset):
     return result
 
 def _scrollObjectToLocation(obj, location):
-    """Attemps to scroll obj to the specified location."""
+    """Attempts to scroll obj to the specified location."""
 
     try:
         result = obj.queryComponent().scrollTo(location)
@@ -266,7 +266,7 @@ def _scrollObjectToLocation(obj, location):
     return result
 
 def _scrollToLocation(obj, location, startOffset=None, endOffset=None):
-    """Attemps to scroll to the specified location."""
+    """Attempts to scroll to the specified location."""
 
     try:
         component = obj.queryComponent()
@@ -286,7 +286,7 @@ def _scrollToLocation(obj, location, startOffset=None, endOffset=None):
     debug.println(debug.LEVEL_INFO, msg, True)
 
 def _scrollSubstringToPoint(obj, x, y, startOffset, endOffset):
-    """Attemps to scroll the given substring to the specified location."""
+    """Attempts to scroll the given substring to the specified location."""
 
     try:
         text = obj.queryText()
@@ -313,7 +313,7 @@ def _scrollSubstringToPoint(obj, x, y, startOffset, endOffset):
     return result
 
 def _scrollObjectToPoint(obj, x, y):
-    """Attemps to scroll obj to the specified point."""
+    """Attempts to scroll obj to the specified point."""
 
     try:
         result = obj.queryComponent().scrollToPoint(pyatspi.DESKTOP_COORDS, x, y)
@@ -331,7 +331,7 @@ def _scrollObjectToPoint(obj, x, y):
     return result
 
 def _scrollToPoint(obj, x, y, startOffset=None, endOffset=None):
-    """Attemps to scroll obj to the specified point."""
+    """Attempts to scroll obj to the specified point."""
 
     try:
         component = obj.queryComponent()
diff --git a/src/orca/messages.py b/src/orca/messages.py
index e314999d9..8e8d48f91 100644
--- a/src/orca/messages.py
+++ b/src/orca/messages.py
@@ -1631,7 +1631,7 @@ MISSPELLED_WORD_CONTEXT = _("Context is %s")
 # you to the next heading. What should happen when you press an "h" in
 # an entry on a web page depends: If you want to resume reading content,
 # "h" should move to the next heading; if you want to enter text, "h"
-# should not not move you to the next heading. Similarly, if you are
+# should not move you to the next heading. Similarly, if you are
 # at the bottom of an entry and press Down arrow, should you leave the
 # entry? Again, it depends on if you want to resume reading content or
 # if you are editing the text in the entry. Because Orca doesn't know
@@ -1646,7 +1646,7 @@ MODE_BROWSE = _("Browse mode")
 # you to the next heading. What should happen when you press an "h" in
 # an entry on a web page depends: If you want to resume reading content,
 # "h" should move to the next heading; if you want to enter text, "h"
-# should not not move you to the next heading. Similarly, if you are
+# should not move you to the next heading. Similarly, if you are
 # at the bottom of an entry and press Down arrow, should you leave the
 # entry? Again, it depends on if you want to resume reading content or
 # if you are editing the text in the entry. Because Orca doesn't know
@@ -1661,7 +1661,7 @@ MODE_FOCUS = _("Focus mode")
 # you to the next heading. What should happen when you press an "h" in
 # an entry on a web page depends: If you want to resume reading content,
 # "h" should move to the next heading; if you want to enter text, "h"
-# should not not move you to the next heading. Similarly, if you are
+# should not move you to the next heading. Similarly, if you are
 # at the bottom of an entry and press Down arrow, should you leave the
 # entry? Again, it depends on if you want to resume reading content or
 # if you are editing the text in the entry. Because Orca doesn't know
diff --git a/src/orca/orca_gui_prefs.py b/src/orca/orca_gui_prefs.py
index a7ece7247..ea0c0838f 100644
--- a/src/orca/orca_gui_prefs.py
+++ b/src/orca/orca_gui_prefs.py
@@ -361,7 +361,7 @@ class OrcaSetupGUI(orca_gtkbuilder.GtkBuilderWrapper):
         self._initGUIState()
 
     def _getACSSForVoiceType(self, voiceType):
-        """Return the ACSS value for the the given voice type.
+        """Return the ACSS value for the given voice type.
 
         Arguments:
         - voiceType: one of DEFAULT, UPPERCASE, HYPERLINK, SYSTEM
diff --git a/src/orca/scripts/apps/Thunderbird/script.py b/src/orca/scripts/apps/Thunderbird/script.py
index 9765de1a4..d1e9de49b 100644
--- a/src/orca/scripts/apps/Thunderbird/script.py
+++ b/src/orca/scripts/apps/Thunderbird/script.py
@@ -258,7 +258,7 @@ class Script(Gecko.Script):
         default.Script.onShowingChanged(self, event)
 
     def onTextDeleted(self, event):
-        """Called whenever text is from an an object.
+        """Called whenever text is from an object.
 
         Arguments:
         - event: the Event
diff --git a/src/orca/scripts/default.py b/src/orca/scripts/default.py
index eb40e4cd0..031c595cf 100644
--- a/src/orca/scripts/default.py
+++ b/src/orca/scripts/default.py
@@ -4235,7 +4235,7 @@ class Script(script.Script):
           position
         - getLinkMask: Whether or not we should take the time to get the
           attributeMask for links. Reasons we might not want to include
-          knowning that we will fail and/or it taking an unreasonable
+          knowing that we will fail and/or it taking an unreasonable
           amount of time (AKA Gecko).
         """
 
diff --git a/src/orca/scripts/toolkits/Chromium/speech_generator.py 
b/src/orca/scripts/toolkits/Chromium/speech_generator.py
index 608210d0c..e90a3997c 100644
--- a/src/orca/scripts/toolkits/Chromium/speech_generator.py
+++ b/src/orca/scripts/toolkits/Chromium/speech_generator.py
@@ -55,7 +55,7 @@ class SpeechGenerator(web.SpeechGenerator):
         return super()._generateNewAncestors(obj, **args)
 
     def _generateListBoxItemWidgets(self, obj, **args):
-        # The the list which descends from a combobox should be a menu, and its children
+        # The list which descends from a combobox should be a menu, and its children
         # menuitems. We can remove this once that change is made in Chromium.
         if pyatspi.findAncestor(obj, lambda x: x and x.getRole() == pyatspi.ROLE_COMBO_BOX):
             msg = "CHROMIUM: Not generating listbox item widgets for combobox child %s" % obj
diff --git a/src/orca/scripts/web/script_utilities.py b/src/orca/scripts/web/script_utilities.py
index e7bb09787..e752e1dd8 100644
--- a/src/orca/scripts/web/script_utilities.py
+++ b/src/orca/scripts/web/script_utilities.py
@@ -4707,7 +4707,7 @@ class Utilities(script_utilities.Utilities):
             elif offset < 0 and not self.isTextBlockElement(obj):
                 return obj, 0
 
-        # If we're here, start looking up the the tree, up to the document.
+        # If we're here, start looking up the tree, up to the document.
         documentFrame = self.documentFrame()
         if self.isSameObject(obj, documentFrame):
             return None, -1
@@ -4771,7 +4771,7 @@ class Utilities(script_utilities.Utilities):
             elif offset < 0 and not self.isTextBlockElement(obj):
                 return obj, 0
 
-        # If we're here, start looking up the the tree, up to the document.
+        # If we're here, start looking up the tree, up to the document.
         documentFrame = self.documentFrame()
         if self.isSameObject(obj, documentFrame):
             return None, -1
diff --git a/src/orca/settings_manager.py b/src/orca/settings_manager.py
index 73f8290cf..93d9ef43a 100644
--- a/src/orca/settings_manager.py
+++ b/src/orca/settings_manager.py
@@ -515,7 +515,7 @@ class SettingsManager(object):
         return self._backend.isFirstStart()
 
     def setFirstStart(self, value=False):
-        """Set firstStart. This user-configurable settting is primarily
+        """Set firstStart. This user-configurable setting is primarily
         intended to serve as an indication as to whether or not initial
         configuration is needed."""
         self._backend.setFirstStart(value)
diff --git a/src/orca/speech_generator.py b/src/orca/speech_generator.py
index bf53f3067..70863c5f1 100644
--- a/src/orca/speech_generator.py
+++ b/src/orca/speech_generator.py
@@ -910,7 +910,7 @@ class SpeechGenerator(generator.Generator):
 
     def _generateImage(self, obj, **args):
         """Returns an array of strings (and possibly voice and audio
-        specifications) that represent the image on the the object, if
+        specifications) that represent the image on the object, if
         it exists.  Otherwise, an empty array is returned.
         """
         result = []
diff --git a/src/orca/structural_navigation.py b/src/orca/structural_navigation.py
index d87674368..0558cb4b4 100644
--- a/src/orca/structural_navigation.py
+++ b/src/orca/structural_navigation.py
@@ -1111,7 +1111,7 @@ class StructuralNavigation:
         """Returns True if the table cell is empty or consists of whitespace.
 
         Arguments:
-        - obj: the accessible table cell to examime
+        - obj: the accessible table cell to examine
         """
 
         if obj and (obj.name or obj.childCount):
@@ -1131,7 +1131,7 @@ class StructuralNavigation:
         """Looks at the table cell and tries to get its text.
 
         Arguments:
-        - obj: the accessible table cell to examime
+        - obj: the accessible table cell to examine
         """
 
         text = ""
diff --git a/test/html/common.js b/test/html/common.js
index 2fa504b47..0c66aad86 100644
--- a/test/html/common.js
+++ b/test/html/common.js
@@ -117,7 +117,7 @@ function can_use_gui_editor() {
 
 
 function update_edit_links() {
-    // Update editlink according if if the browser is compatible
+    // Update editlink according if the browser is compatible
     if (can_use_gui_editor() == false){
         //alert("update_edit_links: can't use gui editor");
         return;
diff --git a/test/html/enter-bug-form.html b/test/html/enter-bug-form.html
index f121cb7b7..251e11b24 100644
--- a/test/html/enter-bug-form.html
+++ b/test/html/enter-bug-form.html
@@ -103,7 +103,7 @@ var components = new Array(5);
 
 function set_assign_to() {
     // Based on the selected component, fill the "Assign To:" field
-    // with the default component owner, and the the "QA Contact:" field
+    // with the default component owner, and the "QA Contact:" field
     // with the default QA Contact.
     var form = document.Create;
     var assigned_to = form.assigned_to.value;
diff --git a/test/keystrokes/java/role_accel_label.py b/test/keystrokes/java/role_accel_label.py
index 72f6d7022..8b2664a63 100644
--- a/test/keystrokes/java/role_accel_label.py
+++ b/test/keystrokes/java/role_accel_label.py
@@ -67,7 +67,7 @@ sequence.append(utils.AssertPresentationAction(
      "SPEECH OUTPUT: 'Exit'"]))
 
 ########################################################################
-# Return SwingSet2 to begining state.
+# Return SwingSet2 to beginning state.
 sequence.append(KeyComboAction("Escape"))
 
 # Just a little extra wait to let some events get through.
diff --git a/test/keystrokes/java/role_radio_button.py b/test/keystrokes/java/role_radio_button.py
index 49c850639..0e947de6f 100644
--- a/test/keystrokes/java/role_radio_button.py
+++ b/test/keystrokes/java/role_radio_button.py
@@ -268,7 +268,7 @@ sequence.append(utils.AssertPresentationAction(
      "     VISIBLE:  '&=y Radio Three RadioButton', cursor=1",
      "SPEECH OUTPUT: 'selected'"]))
     
-# Tab back up to begining
+# Tab back up to beginning
 sequence.append(KeyComboAction("Tab"))
 sequence.append(WaitForFocus("Paint Border", acc_role=pyatspi.ROLE_CHECK_BOX))
 sequence.append(KeyComboAction("Tab"))


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]