Skip to content
This repository has been archived by the owner on Sep 17, 2020. It is now read-only.

Commit

Permalink
add scons system
Browse files Browse the repository at this point in the history
  • Loading branch information
SeanTolstoyevski committed May 3, 2020
1 parent b4dc45c commit c28e164
Show file tree
Hide file tree
Showing 43 changed files with 366 additions and 213 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -80,3 +80,5 @@ dmypy.json

# Pyre type checker
.pyre/
.sconsign.dblite
*.html
70 changes: 70 additions & 0 deletions addon/doc/en/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
# unspokenPy3

## A few very important note!

**I am not the main developer of the addon.**

***

This add-on was running before the 2019.3 releases of NVDA.
Developer was not developing the addon.

Afterwards, a Sudanese friend named Musharraf Omer built a new add-on by building the Audiothemes addon on Unspoken.
Audiothemes have several problems.
For example, some sounds crack.

Most of Unspoken is written in C.
So it works faster and more stable against pure Python code.
Audiothemes react relatively slowly.

**All sources mentioned here**:

* Unspoken
- Main Repo: https://github.com/camlorn/Unspoken
- Developer's GitHub profile: https://github.com/camlorn
- Non-license
* Audiothemes
- Main Repo: https://github.com/mush42/Audio-Themes-NVDA-Add-on
- Developer's GitHub profile: https://github.com/mush42/
- Non-license

***

I don't want to do hurt the author of the add-on.
Unspoken is a very important add-on for me.
NVDA without it is bad 😢 .
I wanted to open the source code to everyone.
Please respect the great effort of the Unspoken main developer.

## Addon Status
* Beta

**Note**:

If you are not a developer, I wouldn't recommend running the add-on in beta.

## Steps for Use or test or developing

1. Clone this repo to test or use the add-on:
`git clone https://github.com/SeanTolstoyevski/unspokenPy3`
or download it from the GitHub page.
2. Copy the addon folder in the repo folder to the appdata/roaming/nvda / addon folder.
**NVDA's steps for your own configuration are not here.**
3. and change the folder name to "unspoken".
4. Restart NVDA.

## Issues that need help

I searched and couldn't find it.
Feel free to create a PR for the problem.
A very simple problem for experienced NVDA developers 🤗.

1. Press NVDA+ctrl+f3
after, the add-on don't run.

## License

This repo is licensed under the MIT License.
Components created by other developers may have a other license.
- [MIT Lıcense](https://github.com/SeanTolstoyevski/unspokenPy3/blob/master/LICENSE)
- ...
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
controlTypes.ROLE_SPLITBUTTON : "splitbutton.wav",
}

sounds = dict()
sounds = dict()

class GlobalPlugin(globalPluginHandler.GlobalPlugin):

Expand Down Expand Up @@ -115,9 +115,6 @@ def play_object(self, obj):
sounds[role].set_position(position_x, position_y, AUDIO_DEPTH * -1)
sounds[role].play()

def event_gainFocus(self, obj, nextHandler):
self.play_object(obj)
nextHandler()

def event_becomeNavigatorObject(self, obj, nextHandler, isFocus=False):
self.play_object(obj)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,10 @@
import gui
import wx

addonHandler.initTranslation()

_addonDir = os.path.join(os.path.dirname(__file__), "..") # The root of an addon folder
_addonDir = os.path.join(os.path.dirname(__file__), "..")
_docFileName = "readme.html" # The name of an addon documentation file
_curAddon = addonHandler.Addon(_addonDir) # Addon instance
_curAddon = addonHandler.Addon(_addonDir)
_addonSummary = _curAddon.manifest['summary']
_addonVersion = _curAddon.manifest['version']
_addonName = _curAddon.manifest['name']
Expand Down
10 changes: 10 additions & 0 deletions addon/manifest.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name = unspokenPy3
summary = "Unspoken"
description = """Removes names like unspoken, link, button. It plays different sounds instead of informations."""
author = "Sean: [email protected]"
url = None
version = 0.3
docFileName = readme.html
minimumNVDAVersion = 2019.3
lastTestedNVDAVersion = 2020.1
updateChannel = None
59 changes: 0 additions & 59 deletions addonSource/doc/en/README.html

This file was deleted.

57 changes: 0 additions & 57 deletions addonSource/doc/en/README.md

This file was deleted.

This file was deleted.

20 changes: 0 additions & 20 deletions addonSource/globalPlugins/Unspoken/nvdaaddonupdater/callafter.py

This file was deleted.

This file was deleted.

8 changes: 0 additions & 8 deletions addonSource/manifest.ini

This file was deleted.

26 changes: 26 additions & 0 deletions buildVars.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
from pathlib import Path



_ = lambda x : x

addon_info = {
"addon_name" : "unspokenPy3",
"addon_summary" : _("Unspoken"),
"addon_description" : _("""Removes names like unspoken, link, button. It plays different sounds instead of informations."""),
"addon_version" : "0.3",
"addon_author" : u"Sean: [email protected]",
"addon_url" : None,
"addon_docFileName" : "readme.html",
"addon_minimumNVDAVersion" : 2019.3,
"addon_lastTestedNVDAVersion" : 2020.1,
"addon_updateChannel" : None,
}



pythonSources = list(Path.cwd().joinpath("addon", "globalPlugins").rglob("*.py"))

i18nSources = pythonSources + ["buildVars.py"]

excludedFiles = []
2 changes: 2 additions & 0 deletions manifest-translated.ini.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
summary = "{addon_summary}"
description = """{addon_description}"""
10 changes: 10 additions & 0 deletions manifest.ini.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name = {addon_name}
summary = "{addon_summary}"
description = """{addon_description}"""
author = "{addon_author}"
url = {addon_url}
version = {addon_version}
docFileName = {addon_docFileName}
minimumNVDAVersion = {addon_minimumNVDAVersion}
lastTestedNVDAVersion = {addon_lastTestedNVDAVersion}
updateChannel = {addon_updateChannel}
Loading

0 comments on commit c28e164

Please sign in to comment.