diff --git a/README.md b/README.md index 9809313..681c64b 100644 --- a/README.md +++ b/README.md @@ -1,31 +1,48 @@ -# navsounds - +# nav Sounds This is an NVDA screen reader add-on that provides navigation sounds based on different roles when interacting with the screen reader. ## About + This add-on is inspired by the abandoned "objsounds" add-on created by Tyler Spivey. Since that add-on hasn't been updated for a long time, I decided to create this add-on to continue providing similar functionality while keeping up with the changes in the NVDA screen reader. + ## Features - Provides navigation sounds based on different roles. -- Toggle the navigation sounds on and off using a keyboard gesture. -- Designed to work with NVDA version 2019.3 and later. +- Toggle Functionality: Easily switch between enabling and disabling object sounds and toggling object type reading with a simple keyboard gesture. +- Customization: Access a settings page where you can choose from various navigation sound packages and configure additional options. +- Expandable: includes a selection of sound packages, and you can even create and add your custom packages. + +- Compmpatibility: Designed to seamlessly work with modern NVDA versions, starting from 2019.3 and later. + ## Installation +For NVDA Installed Versions: +1. Download the latest release from the [Releases](https://github.com/ahmedthebest31/navsounds/releases/) section. +2. Double-click the downloaded add-on file and confirm the installation by clicking "OK." +3. NVDA will automatically restart, and you're ready to use NavigationSounds. + -1. Download the latest release from the [Releases ](https://github.com/ahmedthebest31/navsounds/releases) section. -2. Open the NVDA screen reader. -3. Navigate to the NVDA menu -> Tools -> Manage add-ons. +For NVDA Portable Installation: + +1. Download the latest release from the [Releases](https://github.com/ahmedthebest31/navsounds/releases) section. +2. Open your NVDA screen reader. +3. Navigate to the NVDA menu: Tools -> Manage add-ons. 4. Click the "Install" button and select the downloaded add-on file. -5. Restart NVDA. +5. Restart NVDA to activate NavigationSounds. + ## Usage - The navigation sounds will play based on the roles of objects as you interact with NVDA. -- To toggle the navigation sounds on or off, use the keyboard gesture: NVDA+Shift+Delete. +- use the keybord shortcut (NVDA+alt+n) Pressing it once toggles between on and off object sounds, and Pressing twice it toggles between reading and disabling object types +- You can customize the keyboard shortcut as you prefer +open nvda menue Preferences subMenu / Input gestures + navigation sounds ## Contributing Contributions to this project are welcome! If you find a bug, have an idea for an improvement, or want to contribute in any other way, please feel free to open an issue or submit a pull request. +Special thanks to [mesteranas](https://github.com/mesteranas/) for his wonderful Contributions in developing this add-on with me. diff --git a/navsounds/globalPlugins/NavigationSounds/__init__.py b/navsounds/globalPlugins/NavigationSounds/__init__.py new file mode 100644 index 0000000..2e92c61 --- /dev/null +++ b/navsounds/globalPlugins/NavigationSounds/__init__.py @@ -0,0 +1,99 @@ +# -*- coding: UTF-8 -*- +import globalPluginHandler +from winsound import PlaySound +import controlTypes, ui, os, speech, NVDAObjects +import config +from scriptHandler import script, getLastScriptRepeatCount +from gui import SettingsPanel, NVDASettingsDialog, guiHelper +import addonHandler +addonHandler.initTranslation() +import wx + + +roleSECTION = "NavigationSounds" +confspec = { +"sayRoles": "boolean(default=false)", +"soundType": "string(default=sound1)", +"rolesSounds": "boolean(default=true)"} +config.conf.spec[roleSECTION] = confspec +rolesSounds= config.conf[roleSECTION]["rolesSounds"] +sayRoles= config.conf[roleSECTION]["sayRoles"] +def loc(): + return os.path.join(os.path.abspath(os.path.dirname(__file__)), "effects",config.conf[roleSECTION]["soundType"]) +#Add all the roles, looking for name.wav. +def sounds(): + sounds1 = {} + for role in [x for x in dir(controlTypes) if x.startswith('ROLE_')]: + r = os.path.join(loc(), role[5:].lower()+".wav") + sounds1[getattr(controlTypes, role)] = r + return sounds1 + +def getSpeechTextForProperties2(reason=NVDAObjects.controlTypes.OutputReason, *args, **kwargs): + role = kwargs.get('role', None) + if 'role' in kwargs and role in sounds() and os.path.exists(sounds()[role]) and sayRoles ==False: + del kwargs['role'] + return old(reason, *args, **kwargs) + +def play(role): + """plays sound for role.""" + f = sounds()[role] + if os.path.exists(f) and rolesSounds==True: + PlaySound(f, 1) + +class GlobalPlugin(globalPluginHandler.GlobalPlugin): + scriptCategory= _("navigation sounds") + def __init__(self, *args, **kwargs): + globalPluginHandler.GlobalPlugin.__init__(self, *args, **kwargs) + NVDASettingsDialog.categoryClasses.append(NavSettingsPanel) + global old + old = speech.speech.getPropertiesSpeech + + def event_gainFocus(self, obj, nextHandler): + if rolesSounds == True: + speech.speech.getPropertiesSpeech = getSpeechTextForProperties2 + play(obj.role) + nextHandler() + + @script(gesture="kb:NVDA+alt+n") + def script_toggle(self, gesture): + global rolesSounds, sayRoles + isSameScript = getLastScriptRepeatCount() + if isSameScript == 0: + rolesSounds = not rolesSounds + if rolesSounds==False: + ui.message(_("Disable navigation sounds")) + else: + ui.message(_("Enable navigation sounds")) + elif isSameScript ==1: + sayRoles = not sayRoles + if sayRoles ==False: + ui.message(_("Disable sayRoles")) + else: + ui.message(_("Enable sayRoles")) + config.conf[roleSECTION]["sayRoles"] = sayRoles + config.conf[roleSECTION]["rolesSounds"] = rolesSounds + script_toggle.__doc__= _("Pressing it once toggles between on and off object sounds, and Pressing twice it toggles between reading and disabling object types.") + def terminate(self): + NVDASettingsDialog.categoryClasses.remove(NavSettingsPanel) + +class NavSettingsPanel(SettingsPanel): + title = _("navigation sounds") + def makeSettings(self, settingsSizer): + sHelper = guiHelper.BoxSizerHelper(self, sizer=settingsSizer) + self.tlable = sHelper.addItem(wx.StaticText(self, label=_("select sound"), name="ts")) + self.sou= sHelper.addItem(wx.Choice(self, name="ts")) + self.sou.Set(os.listdir(os.path.join(os.path.abspath(os.path.dirname(__file__)), "effects"))) + self.sou.SetStringSelection(config.conf[roleSECTION]["soundType"]) + self.nas=sHelper.addItem(wx.CheckBox(self,label=_("say roles"))) + self.nas.SetValue(config.conf[roleSECTION]["sayRoles"]) + self.nab=sHelper.addItem(wx.CheckBox(self,label=_("navigation sounds"))) + self.nab.SetValue(config.conf[roleSECTION]["rolesSounds"]) + def postInit(self): + self.sou.SetFocus() + def onSave(self): + global sayRoles,rolesSounds + config.conf[roleSECTION]["soundType"]=self.sou.GetStringSelection() + config.conf[roleSECTION]["sayRoles"]=self.nas.GetValue() + sayRoles=config.conf[roleSECTION]["sayRoles"] + config.conf[roleSECTION]["rolesSounds"]=self.nab.GetValue() + rolesSounds=config.conf[roleSECTION]["rolesSounds"] \ No newline at end of file diff --git a/navsounds/globalPlugins/NavigationSounds/__pycache__/__init__.cpython-37.opt-1.pyc b/navsounds/globalPlugins/NavigationSounds/__pycache__/__init__.cpython-37.opt-1.pyc new file mode 100644 index 0000000..ae95f31 Binary files /dev/null and b/navsounds/globalPlugins/NavigationSounds/__pycache__/__init__.cpython-37.opt-1.pyc differ diff --git a/navsounds/globalPlugins/navsounds/objdata/101.wav b/navsounds/globalPlugins/NavigationSounds/effects/sound1/101.wav similarity index 100% rename from navsounds/globalPlugins/navsounds/objdata/101.wav rename to navsounds/globalPlugins/NavigationSounds/effects/sound1/101.wav diff --git a/navsounds/globalPlugins/navsounds/objdata/11.wav b/navsounds/globalPlugins/NavigationSounds/effects/sound1/11.wav similarity index 100% rename from navsounds/globalPlugins/navsounds/objdata/11.wav rename to navsounds/globalPlugins/NavigationSounds/effects/sound1/11.wav diff --git a/navsounds/globalPlugins/navsounds/objdata/13.wav b/navsounds/globalPlugins/NavigationSounds/effects/sound1/13.wav similarity index 100% rename from navsounds/globalPlugins/navsounds/objdata/13.wav rename to navsounds/globalPlugins/NavigationSounds/effects/sound1/13.wav diff --git a/navsounds/globalPlugins/navsounds/objdata/15.wav b/navsounds/globalPlugins/NavigationSounds/effects/sound1/15.wav similarity index 100% rename from navsounds/globalPlugins/navsounds/objdata/15.wav rename to navsounds/globalPlugins/NavigationSounds/effects/sound1/15.wav diff --git a/navsounds/globalPlugins/navsounds/objdata/19.wav b/navsounds/globalPlugins/NavigationSounds/effects/sound1/19.wav similarity index 100% rename from navsounds/globalPlugins/navsounds/objdata/19.wav rename to navsounds/globalPlugins/NavigationSounds/effects/sound1/19.wav diff --git a/navsounds/globalPlugins/navsounds/objdata/21.wav b/navsounds/globalPlugins/NavigationSounds/effects/sound1/21.wav similarity index 100% rename from navsounds/globalPlugins/navsounds/objdata/21.wav rename to navsounds/globalPlugins/NavigationSounds/effects/sound1/21.wav diff --git a/navsounds/globalPlugins/navsounds/objdata/22.wav b/navsounds/globalPlugins/NavigationSounds/effects/sound1/22.wav similarity index 100% rename from navsounds/globalPlugins/navsounds/objdata/22.wav rename to navsounds/globalPlugins/NavigationSounds/effects/sound1/22.wav diff --git a/navsounds/globalPlugins/navsounds/objdata/24.wav b/navsounds/globalPlugins/NavigationSounds/effects/sound1/24.wav similarity index 100% rename from navsounds/globalPlugins/navsounds/objdata/24.wav rename to navsounds/globalPlugins/NavigationSounds/effects/sound1/24.wav diff --git a/navsounds/globalPlugins/navsounds/objdata/37.wav b/navsounds/globalPlugins/NavigationSounds/effects/sound1/37.wav similarity index 100% rename from navsounds/globalPlugins/navsounds/objdata/37.wav rename to navsounds/globalPlugins/NavigationSounds/effects/sound1/37.wav diff --git a/navsounds/globalPlugins/navsounds/objdata/5.wav b/navsounds/globalPlugins/NavigationSounds/effects/sound1/5.wav similarity index 100% rename from navsounds/globalPlugins/navsounds/objdata/5.wav rename to navsounds/globalPlugins/NavigationSounds/effects/sound1/5.wav diff --git a/navsounds/globalPlugins/navsounds/objdata/6.wav b/navsounds/globalPlugins/NavigationSounds/effects/sound1/6.wav similarity index 100% rename from navsounds/globalPlugins/navsounds/objdata/6.wav rename to navsounds/globalPlugins/NavigationSounds/effects/sound1/6.wav diff --git a/navsounds/globalPlugins/navsounds/objdata/62.wav b/navsounds/globalPlugins/NavigationSounds/effects/sound1/62.wav similarity index 100% rename from navsounds/globalPlugins/navsounds/objdata/62.wav rename to navsounds/globalPlugins/NavigationSounds/effects/sound1/62.wav diff --git a/navsounds/globalPlugins/navsounds/objdata/8.wav b/navsounds/globalPlugins/NavigationSounds/effects/sound1/8.wav similarity index 100% rename from navsounds/globalPlugins/navsounds/objdata/8.wav rename to navsounds/globalPlugins/NavigationSounds/effects/sound1/8.wav diff --git a/navsounds/globalPlugins/navsounds/objdata/9.wav b/navsounds/globalPlugins/NavigationSounds/effects/sound1/9.wav similarity index 100% rename from navsounds/globalPlugins/navsounds/objdata/9.wav rename to navsounds/globalPlugins/NavigationSounds/effects/sound1/9.wav diff --git a/navsounds/globalPlugins/navsounds/objdata/CHECKMENUITEM.wav b/navsounds/globalPlugins/NavigationSounds/effects/sound1/CHECKMENUITEM.wav similarity index 100% rename from navsounds/globalPlugins/navsounds/objdata/CHECKMENUITEM.wav rename to navsounds/globalPlugins/NavigationSounds/effects/sound1/CHECKMENUITEM.wav diff --git a/navsounds/globalPlugins/navsounds/objdata/DROPDOWNBUTTONGRID.wav b/navsounds/globalPlugins/NavigationSounds/effects/sound1/DROPDOWNBUTTONGRID.wav similarity index 100% rename from navsounds/globalPlugins/navsounds/objdata/DROPDOWNBUTTONGRID.wav rename to navsounds/globalPlugins/NavigationSounds/effects/sound1/DROPDOWNBUTTONGRID.wav diff --git a/navsounds/globalPlugins/navsounds/objdata/HOTKEYFIELD.wav b/navsounds/globalPlugins/NavigationSounds/effects/sound1/HOTKEYFIELD.wav similarity index 100% rename from navsounds/globalPlugins/navsounds/objdata/HOTKEYFIELD.wav rename to navsounds/globalPlugins/NavigationSounds/effects/sound1/HOTKEYFIELD.wav diff --git a/navsounds/globalPlugins/navsounds/objdata/RADIOMENUITEM.wav b/navsounds/globalPlugins/NavigationSounds/effects/sound1/RADIOMENUITEM.wav similarity index 100% rename from navsounds/globalPlugins/navsounds/objdata/RADIOMENUITEM.wav rename to navsounds/globalPlugins/NavigationSounds/effects/sound1/RADIOMENUITEM.wav diff --git a/navsounds/globalPlugins/navsounds/objdata/RICHEDIT.wav b/navsounds/globalPlugins/NavigationSounds/effects/sound1/RICHEDIT.wav similarity index 100% rename from navsounds/globalPlugins/navsounds/objdata/RICHEDIT.wav rename to navsounds/globalPlugins/NavigationSounds/effects/sound1/RICHEDIT.wav diff --git a/navsounds/globalPlugins/navsounds/objdata/SECTION.wav b/navsounds/globalPlugins/NavigationSounds/effects/sound1/SECTION.wav similarity index 100% rename from navsounds/globalPlugins/navsounds/objdata/SECTION.wav rename to navsounds/globalPlugins/NavigationSounds/effects/sound1/SECTION.wav diff --git a/navsounds/globalPlugins/navsounds/objdata/SPINBUTTON.wav b/navsounds/globalPlugins/NavigationSounds/effects/sound1/SPINBUTTON.wav similarity index 100% rename from navsounds/globalPlugins/navsounds/objdata/SPINBUTTON.wav rename to navsounds/globalPlugins/NavigationSounds/effects/sound1/SPINBUTTON.wav diff --git a/navsounds/globalPlugins/navsounds/objdata/TABLECOLUMNHEADER.wav b/navsounds/globalPlugins/NavigationSounds/effects/sound1/TABLECOLUMNHEADER.wav similarity index 100% rename from navsounds/globalPlugins/navsounds/objdata/TABLECOLUMNHEADER.wav rename to navsounds/globalPlugins/NavigationSounds/effects/sound1/TABLECOLUMNHEADER.wav diff --git a/navsounds/globalPlugins/navsounds/objdata/TABLEROW.wav b/navsounds/globalPlugins/NavigationSounds/effects/sound1/TABLEROW.wav similarity index 100% rename from navsounds/globalPlugins/navsounds/objdata/TABLEROW.wav rename to navsounds/globalPlugins/NavigationSounds/effects/sound1/TABLEROW.wav diff --git a/navsounds/globalPlugins/navsounds/objdata/TEAROFFMENU.wav b/navsounds/globalPlugins/NavigationSounds/effects/sound1/TEAROFFMENU.wav similarity index 100% rename from navsounds/globalPlugins/navsounds/objdata/TEAROFFMENU.wav rename to navsounds/globalPlugins/NavigationSounds/effects/sound1/TEAROFFMENU.wav diff --git a/navsounds/globalPlugins/navsounds/objdata/TOOLTIP.wav b/navsounds/globalPlugins/NavigationSounds/effects/sound1/TOOLTIP.wav similarity index 100% rename from navsounds/globalPlugins/navsounds/objdata/TOOLTIP.wav rename to navsounds/globalPlugins/NavigationSounds/effects/sound1/TOOLTIP.wav diff --git a/navsounds/globalPlugins/navsounds/objdata/alert.wav b/navsounds/globalPlugins/NavigationSounds/effects/sound1/alert.wav similarity index 100% rename from navsounds/globalPlugins/navsounds/objdata/alert.wav rename to navsounds/globalPlugins/NavigationSounds/effects/sound1/alert.wav diff --git a/navsounds/globalPlugins/navsounds/objdata/button.wav b/navsounds/globalPlugins/NavigationSounds/effects/sound1/button.wav similarity index 100% rename from navsounds/globalPlugins/navsounds/objdata/button.wav rename to navsounds/globalPlugins/NavigationSounds/effects/sound1/button.wav diff --git a/navsounds/globalPlugins/navsounds/objdata/checkbox.wav b/navsounds/globalPlugins/NavigationSounds/effects/sound1/checkbox.wav similarity index 100% rename from navsounds/globalPlugins/navsounds/objdata/checkbox.wav rename to navsounds/globalPlugins/NavigationSounds/effects/sound1/checkbox.wav diff --git a/navsounds/globalPlugins/navsounds/objdata/clock.wav b/navsounds/globalPlugins/NavigationSounds/effects/sound1/clock.wav similarity index 100% rename from navsounds/globalPlugins/navsounds/objdata/clock.wav rename to navsounds/globalPlugins/NavigationSounds/effects/sound1/clock.wav diff --git a/navsounds/globalPlugins/navsounds/objdata/combobox.wav b/navsounds/globalPlugins/NavigationSounds/effects/sound1/combobox.wav similarity index 100% rename from navsounds/globalPlugins/navsounds/objdata/combobox.wav rename to navsounds/globalPlugins/NavigationSounds/effects/sound1/combobox.wav diff --git a/navsounds/globalPlugins/navsounds/objdata/dialog.wav b/navsounds/globalPlugins/NavigationSounds/effects/sound1/dialog.wav similarity index 100% rename from navsounds/globalPlugins/navsounds/objdata/dialog.wav rename to navsounds/globalPlugins/NavigationSounds/effects/sound1/dialog.wav diff --git a/navsounds/globalPlugins/navsounds/objdata/document.wav b/navsounds/globalPlugins/NavigationSounds/effects/sound1/document.wav similarity index 100% rename from navsounds/globalPlugins/navsounds/objdata/document.wav rename to navsounds/globalPlugins/NavigationSounds/effects/sound1/document.wav diff --git a/navsounds/globalPlugins/navsounds/objdata/dropdownbutton.wav b/navsounds/globalPlugins/NavigationSounds/effects/sound1/dropdownbutton.wav similarity index 100% rename from navsounds/globalPlugins/navsounds/objdata/dropdownbutton.wav rename to navsounds/globalPlugins/NavigationSounds/effects/sound1/dropdownbutton.wav diff --git a/navsounds/globalPlugins/navsounds/objdata/editabletext.wav b/navsounds/globalPlugins/NavigationSounds/effects/sound1/editabletext.wav similarity index 100% rename from navsounds/globalPlugins/navsounds/objdata/editabletext.wav rename to navsounds/globalPlugins/NavigationSounds/effects/sound1/editabletext.wav diff --git a/navsounds/globalPlugins/navsounds/objdata/grouping.wav b/navsounds/globalPlugins/NavigationSounds/effects/sound1/grouping.wav similarity index 100% rename from navsounds/globalPlugins/navsounds/objdata/grouping.wav rename to navsounds/globalPlugins/NavigationSounds/effects/sound1/grouping.wav diff --git a/navsounds/globalPlugins/navsounds/objdata/helpballoon.wav b/navsounds/globalPlugins/NavigationSounds/effects/sound1/helpballoon.wav similarity index 100% rename from navsounds/globalPlugins/navsounds/objdata/helpballoon.wav rename to navsounds/globalPlugins/NavigationSounds/effects/sound1/helpballoon.wav diff --git a/navsounds/globalPlugins/navsounds/objdata/icon.wav b/navsounds/globalPlugins/NavigationSounds/effects/sound1/icon.wav similarity index 100% rename from navsounds/globalPlugins/navsounds/objdata/icon.wav rename to navsounds/globalPlugins/NavigationSounds/effects/sound1/icon.wav diff --git a/navsounds/globalPlugins/navsounds/objdata/link.wav b/navsounds/globalPlugins/NavigationSounds/effects/sound1/link.wav similarity index 100% rename from navsounds/globalPlugins/navsounds/objdata/link.wav rename to navsounds/globalPlugins/NavigationSounds/effects/sound1/link.wav diff --git a/navsounds/globalPlugins/navsounds/objdata/list.wav b/navsounds/globalPlugins/NavigationSounds/effects/sound1/list.wav similarity index 100% rename from navsounds/globalPlugins/navsounds/objdata/list.wav rename to navsounds/globalPlugins/NavigationSounds/effects/sound1/list.wav diff --git a/navsounds/globalPlugins/navsounds/objdata/listitem.wav b/navsounds/globalPlugins/NavigationSounds/effects/sound1/listitem.wav similarity index 100% rename from navsounds/globalPlugins/navsounds/objdata/listitem.wav rename to navsounds/globalPlugins/NavigationSounds/effects/sound1/listitem.wav diff --git a/navsounds/globalPlugins/navsounds/objdata/menu.wav b/navsounds/globalPlugins/NavigationSounds/effects/sound1/menu.wav similarity index 100% rename from navsounds/globalPlugins/navsounds/objdata/menu.wav rename to navsounds/globalPlugins/NavigationSounds/effects/sound1/menu.wav diff --git a/navsounds/globalPlugins/navsounds/objdata/menubar.wav b/navsounds/globalPlugins/NavigationSounds/effects/sound1/menubar.wav similarity index 100% rename from navsounds/globalPlugins/navsounds/objdata/menubar.wav rename to navsounds/globalPlugins/NavigationSounds/effects/sound1/menubar.wav diff --git a/navsounds/globalPlugins/navsounds/objdata/menubutton.wav b/navsounds/globalPlugins/NavigationSounds/effects/sound1/menubutton.wav similarity index 100% rename from navsounds/globalPlugins/navsounds/objdata/menubutton.wav rename to navsounds/globalPlugins/NavigationSounds/effects/sound1/menubutton.wav diff --git a/navsounds/globalPlugins/navsounds/objdata/menuitem.wav b/navsounds/globalPlugins/NavigationSounds/effects/sound1/menuitem.wav similarity index 100% rename from navsounds/globalPlugins/navsounds/objdata/menuitem.wav rename to navsounds/globalPlugins/NavigationSounds/effects/sound1/menuitem.wav diff --git a/navsounds/globalPlugins/navsounds/objdata/passwordedit.wav b/navsounds/globalPlugins/NavigationSounds/effects/sound1/passwordedit.wav similarity index 100% rename from navsounds/globalPlugins/navsounds/objdata/passwordedit.wav rename to navsounds/globalPlugins/NavigationSounds/effects/sound1/passwordedit.wav diff --git a/navsounds/globalPlugins/navsounds/objdata/popupmenu.wav b/navsounds/globalPlugins/NavigationSounds/effects/sound1/popupmenu.wav similarity index 100% rename from navsounds/globalPlugins/navsounds/objdata/popupmenu.wav rename to navsounds/globalPlugins/NavigationSounds/effects/sound1/popupmenu.wav diff --git a/navsounds/globalPlugins/navsounds/objdata/radiobutton.wav b/navsounds/globalPlugins/NavigationSounds/effects/sound1/radiobutton.wav similarity index 100% rename from navsounds/globalPlugins/navsounds/objdata/radiobutton.wav rename to navsounds/globalPlugins/NavigationSounds/effects/sound1/radiobutton.wav diff --git a/navsounds/globalPlugins/navsounds/objdata/slider.wav b/navsounds/globalPlugins/NavigationSounds/effects/sound1/slider.wav similarity index 100% rename from navsounds/globalPlugins/navsounds/objdata/slider.wav rename to navsounds/globalPlugins/NavigationSounds/effects/sound1/slider.wav diff --git a/navsounds/globalPlugins/navsounds/objdata/splitbutton.wav b/navsounds/globalPlugins/NavigationSounds/effects/sound1/splitbutton.wav similarity index 100% rename from navsounds/globalPlugins/navsounds/objdata/splitbutton.wav rename to navsounds/globalPlugins/NavigationSounds/effects/sound1/splitbutton.wav diff --git a/navsounds/globalPlugins/navsounds/objdata/tab.wav b/navsounds/globalPlugins/NavigationSounds/effects/sound1/tab.wav similarity index 100% rename from navsounds/globalPlugins/navsounds/objdata/tab.wav rename to navsounds/globalPlugins/NavigationSounds/effects/sound1/tab.wav diff --git a/navsounds/globalPlugins/navsounds/objdata/togglebutton.wav b/navsounds/globalPlugins/NavigationSounds/effects/sound1/togglebutton.wav similarity index 100% rename from navsounds/globalPlugins/navsounds/objdata/togglebutton.wav rename to navsounds/globalPlugins/NavigationSounds/effects/sound1/togglebutton.wav diff --git a/navsounds/globalPlugins/navsounds/objdata/treeview.wav b/navsounds/globalPlugins/NavigationSounds/effects/sound1/treeview.wav similarity index 100% rename from navsounds/globalPlugins/navsounds/objdata/treeview.wav rename to navsounds/globalPlugins/NavigationSounds/effects/sound1/treeview.wav diff --git a/navsounds/globalPlugins/navsounds/objdata/treeviewitem.wav b/navsounds/globalPlugins/NavigationSounds/effects/sound1/treeviewitem.wav similarity index 100% rename from navsounds/globalPlugins/navsounds/objdata/treeviewitem.wav rename to navsounds/globalPlugins/NavigationSounds/effects/sound1/treeviewitem.wav diff --git a/navsounds/globalPlugins/navsounds/objdata/unknown.wav b/navsounds/globalPlugins/NavigationSounds/effects/sound1/unknown.wav similarity index 100% rename from navsounds/globalPlugins/navsounds/objdata/unknown.wav rename to navsounds/globalPlugins/NavigationSounds/effects/sound1/unknown.wav diff --git a/navsounds/globalPlugins/NavigationSounds/effects/sound2/CHECKMENUITEM.wav b/navsounds/globalPlugins/NavigationSounds/effects/sound2/CHECKMENUITEM.wav new file mode 100644 index 0000000..23ff445 Binary files /dev/null and b/navsounds/globalPlugins/NavigationSounds/effects/sound2/CHECKMENUITEM.wav differ diff --git a/navsounds/globalPlugins/NavigationSounds/effects/sound2/DATAITEM.wav b/navsounds/globalPlugins/NavigationSounds/effects/sound2/DATAITEM.wav new file mode 100644 index 0000000..5a7e00f Binary files /dev/null and b/navsounds/globalPlugins/NavigationSounds/effects/sound2/DATAITEM.wav differ diff --git a/navsounds/globalPlugins/NavigationSounds/effects/sound2/DIALOG.wav b/navsounds/globalPlugins/NavigationSounds/effects/sound2/DIALOG.wav new file mode 100644 index 0000000..23ff445 Binary files /dev/null and b/navsounds/globalPlugins/NavigationSounds/effects/sound2/DIALOG.wav differ diff --git a/navsounds/globalPlugins/NavigationSounds/effects/sound2/DROPDOWNBUTTONGRID.wav b/navsounds/globalPlugins/NavigationSounds/effects/sound2/DROPDOWNBUTTONGRID.wav new file mode 100644 index 0000000..04ed525 Binary files /dev/null and b/navsounds/globalPlugins/NavigationSounds/effects/sound2/DROPDOWNBUTTONGRID.wav differ diff --git a/navsounds/globalPlugins/NavigationSounds/effects/sound2/DROPLIST.wav b/navsounds/globalPlugins/NavigationSounds/effects/sound2/DROPLIST.wav new file mode 100644 index 0000000..6b37a39 Binary files /dev/null and b/navsounds/globalPlugins/NavigationSounds/effects/sound2/DROPLIST.wav differ diff --git a/navsounds/globalPlugins/NavigationSounds/effects/sound2/HEADING.wav b/navsounds/globalPlugins/NavigationSounds/effects/sound2/HEADING.wav new file mode 100644 index 0000000..6b37a39 Binary files /dev/null and b/navsounds/globalPlugins/NavigationSounds/effects/sound2/HEADING.wav differ diff --git a/navsounds/globalPlugins/NavigationSounds/effects/sound2/LIST.wav b/navsounds/globalPlugins/NavigationSounds/effects/sound2/LIST.wav new file mode 100644 index 0000000..6b37a39 Binary files /dev/null and b/navsounds/globalPlugins/NavigationSounds/effects/sound2/LIST.wav differ diff --git a/navsounds/globalPlugins/NavigationSounds/effects/sound2/MENUBUTTON.wav b/navsounds/globalPlugins/NavigationSounds/effects/sound2/MENUBUTTON.wav new file mode 100644 index 0000000..1b8c7d6 Binary files /dev/null and b/navsounds/globalPlugins/NavigationSounds/effects/sound2/MENUBUTTON.wav differ diff --git a/navsounds/globalPlugins/NavigationSounds/effects/sound2/RADIOMENUITEM.wav b/navsounds/globalPlugins/NavigationSounds/effects/sound2/RADIOMENUITEM.wav new file mode 100644 index 0000000..2c46e89 Binary files /dev/null and b/navsounds/globalPlugins/NavigationSounds/effects/sound2/RADIOMENUITEM.wav differ diff --git a/navsounds/globalPlugins/NavigationSounds/effects/sound2/SPINBUTTON.wav b/navsounds/globalPlugins/NavigationSounds/effects/sound2/SPINBUTTON.wav new file mode 100644 index 0000000..5a7e00f Binary files /dev/null and b/navsounds/globalPlugins/NavigationSounds/effects/sound2/SPINBUTTON.wav differ diff --git a/navsounds/globalPlugins/NavigationSounds/effects/sound2/STATICTEXT.wav b/navsounds/globalPlugins/NavigationSounds/effects/sound2/STATICTEXT.wav new file mode 100644 index 0000000..1b8c7d6 Binary files /dev/null and b/navsounds/globalPlugins/NavigationSounds/effects/sound2/STATICTEXT.wav differ diff --git a/navsounds/globalPlugins/NavigationSounds/effects/sound2/WINDOW.wav b/navsounds/globalPlugins/NavigationSounds/effects/sound2/WINDOW.wav new file mode 100644 index 0000000..23ff445 Binary files /dev/null and b/navsounds/globalPlugins/NavigationSounds/effects/sound2/WINDOW.wav differ diff --git a/navsounds/globalPlugins/NavigationSounds/effects/sound2/button.wav b/navsounds/globalPlugins/NavigationSounds/effects/sound2/button.wav new file mode 100644 index 0000000..06f458f Binary files /dev/null and b/navsounds/globalPlugins/NavigationSounds/effects/sound2/button.wav differ diff --git a/navsounds/globalPlugins/NavigationSounds/effects/sound2/checkbox.wav b/navsounds/globalPlugins/NavigationSounds/effects/sound2/checkbox.wav new file mode 100644 index 0000000..0f1b7d6 Binary files /dev/null and b/navsounds/globalPlugins/NavigationSounds/effects/sound2/checkbox.wav differ diff --git a/navsounds/globalPlugins/NavigationSounds/effects/sound2/clock.wav b/navsounds/globalPlugins/NavigationSounds/effects/sound2/clock.wav new file mode 100644 index 0000000..3a2779f Binary files /dev/null and b/navsounds/globalPlugins/NavigationSounds/effects/sound2/clock.wav differ diff --git a/navsounds/globalPlugins/NavigationSounds/effects/sound2/combobox.wav b/navsounds/globalPlugins/NavigationSounds/effects/sound2/combobox.wav new file mode 100644 index 0000000..b54353f Binary files /dev/null and b/navsounds/globalPlugins/NavigationSounds/effects/sound2/combobox.wav differ diff --git a/navsounds/globalPlugins/NavigationSounds/effects/sound2/document.wav b/navsounds/globalPlugins/NavigationSounds/effects/sound2/document.wav new file mode 100644 index 0000000..c3ab9eb Binary files /dev/null and b/navsounds/globalPlugins/NavigationSounds/effects/sound2/document.wav differ diff --git a/navsounds/globalPlugins/NavigationSounds/effects/sound2/dropdownbutton.wav b/navsounds/globalPlugins/NavigationSounds/effects/sound2/dropdownbutton.wav new file mode 100644 index 0000000..1e29b86 Binary files /dev/null and b/navsounds/globalPlugins/NavigationSounds/effects/sound2/dropdownbutton.wav differ diff --git a/navsounds/globalPlugins/NavigationSounds/effects/sound2/editabletext.wav b/navsounds/globalPlugins/NavigationSounds/effects/sound2/editabletext.wav new file mode 100644 index 0000000..5c79e23 Binary files /dev/null and b/navsounds/globalPlugins/NavigationSounds/effects/sound2/editabletext.wav differ diff --git a/navsounds/globalPlugins/NavigationSounds/effects/sound2/grouping.wav b/navsounds/globalPlugins/NavigationSounds/effects/sound2/grouping.wav new file mode 100644 index 0000000..ca3f5c7 Binary files /dev/null and b/navsounds/globalPlugins/NavigationSounds/effects/sound2/grouping.wav differ diff --git a/navsounds/globalPlugins/NavigationSounds/effects/sound2/icon.wav b/navsounds/globalPlugins/NavigationSounds/effects/sound2/icon.wav new file mode 100644 index 0000000..558732e Binary files /dev/null and b/navsounds/globalPlugins/NavigationSounds/effects/sound2/icon.wav differ diff --git a/navsounds/globalPlugins/NavigationSounds/effects/sound2/link.wav b/navsounds/globalPlugins/NavigationSounds/effects/sound2/link.wav new file mode 100644 index 0000000..c440f9e Binary files /dev/null and b/navsounds/globalPlugins/NavigationSounds/effects/sound2/link.wav differ diff --git a/navsounds/globalPlugins/NavigationSounds/effects/sound2/listitem.wav b/navsounds/globalPlugins/NavigationSounds/effects/sound2/listitem.wav new file mode 100644 index 0000000..6b37a39 Binary files /dev/null and b/navsounds/globalPlugins/NavigationSounds/effects/sound2/listitem.wav differ diff --git a/navsounds/globalPlugins/NavigationSounds/effects/sound2/menuitem.wav b/navsounds/globalPlugins/NavigationSounds/effects/sound2/menuitem.wav new file mode 100644 index 0000000..93c88fc Binary files /dev/null and b/navsounds/globalPlugins/NavigationSounds/effects/sound2/menuitem.wav differ diff --git a/navsounds/globalPlugins/NavigationSounds/effects/sound2/passwordedit.wav b/navsounds/globalPlugins/NavigationSounds/effects/sound2/passwordedit.wav new file mode 100644 index 0000000..881ac5c Binary files /dev/null and b/navsounds/globalPlugins/NavigationSounds/effects/sound2/passwordedit.wav differ diff --git a/navsounds/globalPlugins/NavigationSounds/effects/sound2/popupmenu.wav b/navsounds/globalPlugins/NavigationSounds/effects/sound2/popupmenu.wav new file mode 100644 index 0000000..3bd0062 Binary files /dev/null and b/navsounds/globalPlugins/NavigationSounds/effects/sound2/popupmenu.wav differ diff --git a/navsounds/globalPlugins/NavigationSounds/effects/sound2/radiobutton.wav b/navsounds/globalPlugins/NavigationSounds/effects/sound2/radiobutton.wav new file mode 100644 index 0000000..ab77178 Binary files /dev/null and b/navsounds/globalPlugins/NavigationSounds/effects/sound2/radiobutton.wav differ diff --git a/navsounds/globalPlugins/NavigationSounds/effects/sound2/slider.wav b/navsounds/globalPlugins/NavigationSounds/effects/sound2/slider.wav new file mode 100644 index 0000000..5a7e00f Binary files /dev/null and b/navsounds/globalPlugins/NavigationSounds/effects/sound2/slider.wav differ diff --git a/navsounds/globalPlugins/NavigationSounds/effects/sound2/splitbutton.wav b/navsounds/globalPlugins/NavigationSounds/effects/sound2/splitbutton.wav new file mode 100644 index 0000000..f6bf6a1 Binary files /dev/null and b/navsounds/globalPlugins/NavigationSounds/effects/sound2/splitbutton.wav differ diff --git a/navsounds/globalPlugins/NavigationSounds/effects/sound2/tab.wav b/navsounds/globalPlugins/NavigationSounds/effects/sound2/tab.wav new file mode 100644 index 0000000..f8549db Binary files /dev/null and b/navsounds/globalPlugins/NavigationSounds/effects/sound2/tab.wav differ diff --git a/navsounds/globalPlugins/NavigationSounds/effects/sound2/togglebutton.wav b/navsounds/globalPlugins/NavigationSounds/effects/sound2/togglebutton.wav new file mode 100644 index 0000000..165f963 Binary files /dev/null and b/navsounds/globalPlugins/NavigationSounds/effects/sound2/togglebutton.wav differ diff --git a/navsounds/globalPlugins/NavigationSounds/effects/sound2/treeviewitem.wav b/navsounds/globalPlugins/NavigationSounds/effects/sound2/treeviewitem.wav new file mode 100644 index 0000000..ccdbe07 Binary files /dev/null and b/navsounds/globalPlugins/NavigationSounds/effects/sound2/treeviewitem.wav differ diff --git a/navsounds/globalPlugins/NavigationSounds/effects/sound2/unknown.wav b/navsounds/globalPlugins/NavigationSounds/effects/sound2/unknown.wav new file mode 100644 index 0000000..0bffbe1 Binary files /dev/null and b/navsounds/globalPlugins/NavigationSounds/effects/sound2/unknown.wav differ diff --git a/navsounds/globalPlugins/NavigationSounds/effects/voice over/button.wav b/navsounds/globalPlugins/NavigationSounds/effects/voice over/button.wav new file mode 100644 index 0000000..cd162e4 Binary files /dev/null and b/navsounds/globalPlugins/NavigationSounds/effects/voice over/button.wav differ diff --git a/navsounds/globalPlugins/NavigationSounds/effects/voice over/checkbox.wav b/navsounds/globalPlugins/NavigationSounds/effects/voice over/checkbox.wav new file mode 100644 index 0000000..a693701 Binary files /dev/null and b/navsounds/globalPlugins/NavigationSounds/effects/voice over/checkbox.wav differ diff --git a/navsounds/globalPlugins/NavigationSounds/effects/voice over/clock.wav b/navsounds/globalPlugins/NavigationSounds/effects/voice over/clock.wav new file mode 100644 index 0000000..c94ad23 Binary files /dev/null and b/navsounds/globalPlugins/NavigationSounds/effects/voice over/clock.wav differ diff --git a/navsounds/globalPlugins/NavigationSounds/effects/voice over/combobox.wav b/navsounds/globalPlugins/NavigationSounds/effects/voice over/combobox.wav new file mode 100644 index 0000000..aab7075 Binary files /dev/null and b/navsounds/globalPlugins/NavigationSounds/effects/voice over/combobox.wav differ diff --git a/navsounds/globalPlugins/NavigationSounds/effects/voice over/editabletext.wav b/navsounds/globalPlugins/NavigationSounds/effects/voice over/editabletext.wav new file mode 100644 index 0000000..21f7b4c Binary files /dev/null and b/navsounds/globalPlugins/NavigationSounds/effects/voice over/editabletext.wav differ diff --git a/navsounds/globalPlugins/NavigationSounds/effects/voice over/icon.wav b/navsounds/globalPlugins/NavigationSounds/effects/voice over/icon.wav new file mode 100644 index 0000000..35794c5 Binary files /dev/null and b/navsounds/globalPlugins/NavigationSounds/effects/voice over/icon.wav differ diff --git a/navsounds/globalPlugins/NavigationSounds/effects/voice over/link.wav b/navsounds/globalPlugins/NavigationSounds/effects/voice over/link.wav new file mode 100644 index 0000000..5907802 Binary files /dev/null and b/navsounds/globalPlugins/NavigationSounds/effects/voice over/link.wav differ diff --git a/navsounds/globalPlugins/NavigationSounds/effects/voice over/listitem.wav b/navsounds/globalPlugins/NavigationSounds/effects/voice over/listitem.wav new file mode 100644 index 0000000..35794c5 Binary files /dev/null and b/navsounds/globalPlugins/NavigationSounds/effects/voice over/listitem.wav differ diff --git a/navsounds/globalPlugins/NavigationSounds/effects/voice over/menuitem.wav b/navsounds/globalPlugins/NavigationSounds/effects/voice over/menuitem.wav new file mode 100644 index 0000000..cd162e4 Binary files /dev/null and b/navsounds/globalPlugins/NavigationSounds/effects/voice over/menuitem.wav differ diff --git a/navsounds/globalPlugins/NavigationSounds/effects/voice over/radiobutton.wav b/navsounds/globalPlugins/NavigationSounds/effects/voice over/radiobutton.wav new file mode 100644 index 0000000..a693701 Binary files /dev/null and b/navsounds/globalPlugins/NavigationSounds/effects/voice over/radiobutton.wav differ diff --git a/navsounds/globalPlugins/NavigationSounds/effects/voice over/slider.wav b/navsounds/globalPlugins/NavigationSounds/effects/voice over/slider.wav new file mode 100644 index 0000000..5b856ac Binary files /dev/null and b/navsounds/globalPlugins/NavigationSounds/effects/voice over/slider.wav differ diff --git a/navsounds/globalPlugins/NavigationSounds/effects/voice over/splitbutton.wav b/navsounds/globalPlugins/NavigationSounds/effects/voice over/splitbutton.wav new file mode 100644 index 0000000..5a2b1f3 Binary files /dev/null and b/navsounds/globalPlugins/NavigationSounds/effects/voice over/splitbutton.wav differ diff --git a/navsounds/globalPlugins/NavigationSounds/effects/voice over/tab.wav b/navsounds/globalPlugins/NavigationSounds/effects/voice over/tab.wav new file mode 100644 index 0000000..0e7c54c Binary files /dev/null and b/navsounds/globalPlugins/NavigationSounds/effects/voice over/tab.wav differ diff --git a/navsounds/globalPlugins/NavigationSounds/effects/voice over/treeviewitem.wav b/navsounds/globalPlugins/NavigationSounds/effects/voice over/treeviewitem.wav new file mode 100644 index 0000000..9093a54 Binary files /dev/null and b/navsounds/globalPlugins/NavigationSounds/effects/voice over/treeviewitem.wav differ diff --git a/navsounds/globalPlugins/navsounds/__init__.py b/navsounds/globalPlugins/navsounds/__init__.py deleted file mode 100644 index 6430312..0000000 --- a/navsounds/globalPlugins/navsounds/__init__.py +++ /dev/null @@ -1,76 +0,0 @@ -# -*- coding: UTF-8 -*- - -import addonHandler -import os -import winsound -import controlTypes -import globalPluginHandler -import speech -import config -import ui -import scriptHandler -from scriptHandler import script -from globalCommands import SCRCAT_TOOLS, SCRCAT_CONFIG -from . import objdata - -addonHandler.initTranslation() - -#The part that turns off the role announcement is a huge hack, and might break. Set this to False to get rid of it -hook = True -loc = os.path.abspath(os.path.dirname(objdata.__file__)) -old = None - -def getPropertiesSpeech2(reason=controlTypes.OutputReason.QUERY, *args, **kwargs): - role = kwargs.get('role', None) - if 'role' in kwargs and role in sounds and os.path.exists(sounds[role]): - del kwargs['role'] - return old(reason, *args, **kwargs) - -def play(role): - """plays sound for role.""" - f = sounds[role] - if os.path.exists(f): - winsound.PlaySound(f, winsound.SND_ASYNC) - -#Add all the roles, looking for name.wav. -sounds = {} -for role in [x for x in dir(controlTypes) if x.startswith('ROLE_')]: - r = os.path.join(loc, role[5:].lower()+".wav") - sounds[getattr(controlTypes, role)] = r - -class GlobalPlugin(globalPluginHandler.GlobalPlugin): - def __init__(self, *args, **kwargs): - globalPluginHandler.GlobalPlugin.__init__(self, *args, **kwargs) - global old - old = speech.getPropertiesSpeech - if 'objsounds' not in config.conf: - config.conf['objsounds'] = {"enabled": True} - - def event_gainFocus(self, obj, nextHandler): - ##huge hack. Why is configobj not saving the boolean as a boolean? - if config.conf['objsounds']['enabled'] == u'False' or config.conf['objsounds']['enabled'] == False: - nextHandler() - return - if hook: - speech.getPropertiesSpeech = getPropertiesSpeech2 - play(obj.role) - nextHandler() - if hook: - speech.getPropertiesSpeech = old - - @script( - # Translators: Message presented in input help mode. - description=_("Turns off obj sound"), - category = SCRCAT_TOOLS, - gesture="kb:NVDA+shift+delete" - ) - def script_toggle(self, gesture): - config.conf['objsounds']['enabled'] = not (str2bool(config.conf['objsounds']['enabled'])) - if config.conf['objsounds']['enabled']: - ui.message(_("on")) - else: - ui.message(_("off")) - -def str2bool(s): - if s == 'True' or s == True: return True - if s == 'False' or s == False: return False diff --git a/navsounds/globalPlugins/navsounds/objdata/__init__.py b/navsounds/globalPlugins/navsounds/objdata/__init__.py deleted file mode 100644 index b3f0105..0000000 --- a/navsounds/globalPlugins/navsounds/objdata/__init__.py +++ /dev/null @@ -1 +0,0 @@ -# -*- coding: UTF-8 -*- diff --git a/navsounds/globalPlugins/navsounds/objdata/__init__.pyo b/navsounds/globalPlugins/navsounds/objdata/__init__.pyo deleted file mode 100644 index 286a210..0000000 Binary files a/navsounds/globalPlugins/navsounds/objdata/__init__.pyo and /dev/null differ diff --git a/navsounds/locale/ar/LC_MESSAGES/messages.pot b/navsounds/locale/ar/LC_MESSAGES/messages.pot new file mode 100644 index 0000000..9cbf275 --- /dev/null +++ b/navsounds/locale/ar/LC_MESSAGES/messages.pot @@ -0,0 +1,59 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR ORGANIZATION +# FIRST AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"POT-Creation-Date: 2023-09-02 13:56+0300\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=cp1252\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: pygettext.py 1.5\n" + + +#: +#: C:\Users\Mesteranas1\AppData\Roaming\nvda\addons\NavigationSounds\globalPlugins\NavigationSounds\__init__.py:49 +#: C:\Users\Mesteranas1\AppData\Roaming\nvda\addons\NavigationSounds\globalPlugins\NavigationSounds\__init__.py:85 +#: C:\Users\Mesteranas1\AppData\Roaming\nvda\addons\NavigationSounds\globalPlugins\NavigationSounds\__init__.py:94 +msgid "navigation sounds" +msgstr "" + +#: +#: C:\Users\Mesteranas1\AppData\Roaming\nvda\addons\NavigationSounds\globalPlugins\NavigationSounds\__init__.py:69 +msgid "Disable navigation sounds" +msgstr "" + +#: +#: C:\Users\Mesteranas1\AppData\Roaming\nvda\addons\NavigationSounds\globalPlugins\NavigationSounds\__init__.py:71 +msgid "Enable navigation sounds" +msgstr "" + +#: +#: C:\Users\Mesteranas1\AppData\Roaming\nvda\addons\NavigationSounds\globalPlugins\NavigationSounds\__init__.py:75 +msgid "Disable sayRoles" +msgstr "" + +#: +#: C:\Users\Mesteranas1\AppData\Roaming\nvda\addons\NavigationSounds\globalPlugins\NavigationSounds\__init__.py:77 +msgid "Enable sayRoles" +msgstr "" + +#: +#: C:\Users\Mesteranas1\AppData\Roaming\nvda\addons\NavigationSounds\globalPlugins\NavigationSounds\__init__.py:80 +msgid "Pressing it once toggles between on and off object sounds, and Pressing twice it toggles between reading and disabling object types." +msgstr "" + +#: +#: C:\Users\Mesteranas1\AppData\Roaming\nvda\addons\NavigationSounds\globalPlugins\NavigationSounds\__init__.py:88 +msgid "select sound" +msgstr "" + +#: +#: C:\Users\Mesteranas1\AppData\Roaming\nvda\addons\NavigationSounds\globalPlugins\NavigationSounds\__init__.py:92 +msgid "say roles" +msgstr "" + diff --git a/navsounds/locale/ar/LC_MESSAGES/nvda.mo b/navsounds/locale/ar/LC_MESSAGES/nvda.mo new file mode 100644 index 0000000..c1046a5 Binary files /dev/null and b/navsounds/locale/ar/LC_MESSAGES/nvda.mo differ diff --git a/navsounds/locale/ar/LC_MESSAGES/nvda.po b/navsounds/locale/ar/LC_MESSAGES/nvda.po new file mode 100644 index 0000000..aba3f86 --- /dev/null +++ b/navsounds/locale/ar/LC_MESSAGES/nvda.po @@ -0,0 +1,57 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR ORGANIZATION +# FIRST AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: navigation sounds 1.0\n" +"POT-Creation-Date: 2023-09-02 13:56+0300\n" +"PO-Revision-Date: 2023-09-02 13:58+0300\n" +"Last-Translator: \n" +"Language-Team: mesteranas\n" +"Language: ar\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=6; plural=(n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : " +"n%100>=3 && n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5);\n" +"Generated-By: pygettext.py 1.5\n" +"X-Generator: Poedit 3.3.2\n" + +#: C:\Users\Mesteranas1\AppData\Roaming\nvda\addons\NavigationSounds\globalPlugins\NavigationSounds\__init__.py:49 +#: C:\Users\Mesteranas1\AppData\Roaming\nvda\addons\NavigationSounds\globalPlugins\NavigationSounds\__init__.py:85 +#: C:\Users\Mesteranas1\AppData\Roaming\nvda\addons\NavigationSounds\globalPlugins\NavigationSounds\__init__.py:94 +msgid "navigation sounds" +msgstr "أصوات التنقل" + +#: C:\Users\Mesteranas1\AppData\Roaming\nvda\addons\NavigationSounds\globalPlugins\NavigationSounds\__init__.py:69 +msgid "Disable navigation sounds" +msgstr "تعطيل أصوات التنقل" + +#: C:\Users\Mesteranas1\AppData\Roaming\nvda\addons\NavigationSounds\globalPlugins\NavigationSounds\__init__.py:71 +msgid "Enable navigation sounds" +msgstr "تفعيل أصوات التنقل" + +#: C:\Users\Mesteranas1\AppData\Roaming\nvda\addons\NavigationSounds\globalPlugins\NavigationSounds\__init__.py:75 +msgid "Disable sayRoles" +msgstr "تعطيل نطق أنواع ألكائنات" + +#: C:\Users\Mesteranas1\AppData\Roaming\nvda\addons\NavigationSounds\globalPlugins\NavigationSounds\__init__.py:77 +msgid "Enable sayRoles" +msgstr "تفعيل نطق أنواع ألكائنات" + +#: C:\Users\Mesteranas1\AppData\Roaming\nvda\addons\NavigationSounds\globalPlugins\NavigationSounds\__init__.py:80 +msgid "" +"Pressing it once toggles between on and off object sounds, and Pressing " +"twice it toggles between reading and disabling object types." +msgstr "" +"يؤدي الضغط عليه مرة واحدة إلى التبديل بين تشغيل وإيقاف أصوات الكائنات، " +"والضغط عليه مرتين يؤدي إلى التبديل بين قراءة أنواع الكائنات وتعطيلها." + +#: C:\Users\Mesteranas1\AppData\Roaming\nvda\addons\NavigationSounds\globalPlugins\NavigationSounds\__init__.py:88 +msgid "select sound" +msgstr "اختيار الصوت" + +#: C:\Users\Mesteranas1\AppData\Roaming\nvda\addons\NavigationSounds\globalPlugins\NavigationSounds\__init__.py:92 +msgid "say roles" +msgstr "نطق أنواع الكائنات" diff --git a/navsounds/locale/ar/manifest.ini b/navsounds/locale/ar/manifest.ini new file mode 100644 index 0000000..6b4b1fd --- /dev/null +++ b/navsounds/locale/ar/manifest.ini @@ -0,0 +1,2 @@ +summary = "أصوات التنقل" +description = """تشغيل أصوات عند الحركة""" diff --git a/navsounds/manifest.ini b/navsounds/manifest.ini index 5b6fafe..7ed5145 100644 --- a/navsounds/manifest.ini +++ b/navsounds/manifest.ini @@ -1,10 +1,10 @@ -name = navsounds +name = navSounds summary = "Navigation sound effects" -description = "provides navigation sounds based on different roles when interacting with the screen reader" elements." -author = "AhmedTheBest" +description = "provides navigation sounds based on different roles when interacting with the NVDA" +author = "AhmedTheBest with a Contributions of mesteranas" url = "https://github.com/ahmedthebest31/navsounds/" -version = 1.0.0 +version = 1.2.0 docFileName = None minimumNVDAVersion = 2019.3.0 -lastTestedNVDAVersion = 2030.1.0 +lastTestedNVDAVersion = 2023.1.0 updateChannel = None diff --git a/navsounds/t.nvda-addon b/navsounds/t.nvda-addon new file mode 100644 index 0000000..9259050 Binary files /dev/null and b/navsounds/t.nvda-addon differ