Skip to content

Commit 3965655

Browse files
committed
updated manifest to add compatibility with NVDA 2021.3.1.
Updated readme.
1 parent 64e0ed8 commit 3965655

File tree

8 files changed

+163
-7
lines changed

8 files changed

+163
-7
lines changed

.github/workflows/upload-on-tag.yaml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Upload on new tags
2+
3+
on:
4+
push:
5+
tags:
6+
'*'
7+
8+
jobs:
9+
buildAndUpload:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout code
13+
uses: actions/checkout@v2
14+
- name: Set up Python 3.8
15+
uses: actions/setup-python@v2
16+
with:
17+
python-version: 3.8
18+
- name: Install dependencies
19+
run: |
20+
pip install scons markdown
21+
sudo apt update
22+
sudo apt install gettext
23+
- name: Add add-on version
24+
run: |
25+
import re
26+
with open("buildVars.py", 'r+', encoding='utf-8') as f:
27+
text = f.read()
28+
version = "${{ github.ref }}".split("/")[-1]
29+
text = re.sub("\"addon_version\" : ,", "\"addon_version\" : \"%s\",", text) % version
30+
f.seek(0)
31+
f.write(text)
32+
f.truncate()
33+
shell: python
34+
- name: Build add-on
35+
run: scons
36+
- name: Calculate sha256
37+
run: sha256sum *.nvda-addon >> changelog.md
38+
- name: Release
39+
uses: softprops/action-gh-release@v1
40+
env:
41+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
42+
with:
43+
files: |
44+
*.nvda-addon
45+
body_path: changelog.md
46+
prerelease: ${{ endsWith(github.ref, '-dev') }}

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ addon/doc/en/
44
*.html
55
*.ini
66
*.mo
7-
*.pot
87
*.py[co]
98
*.nvda-addon
9+
*.code-workspace
10+
setup.cfg
1011
.sconsign.dblite

addonReadme.md

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
#Synth settings ring selector NVDA Add-on #
2+
This add-on allows the user to select which settings should appear on the synth settings ring.
3+
4+
Copyright (C) 2022 David CM <dhf360@gmail.com>
5+
6+
This package is distributed under the terms of the GNU General Public License, version 2 or later.
7+
8+
## Features
9+
This add-on provides the following features:
10+
11+
* A category panel in the NVDA settings to select which settings you want to include in the synth settings ring.
12+
* save specific settings for each profile.
13+
* overrides the default synth driver settings that are shown in the synth settings ring.
14+
15+
## Requirements
16+
You need NVDA 2019.2 or later.
17+
18+
## Installation
19+
Just install it as a NVDA add-on.
20+
21+
## Usage
22+
To enable or disable which settings are included, go to NVDA settings and select "Synth ring settings selector" category. In that category you can configure all supported features by this add-on.
23+
Settings included by default:
24+
25+
* language.
26+
* voice.
27+
* variant.
28+
* rate.
29+
* rate boost.
30+
* volume.
31+
* pitch.
32+
* inflection.
33+
34+
Note: This dialog shows the supported settings by the current synthesizer only.
35+
Settings not present here aren't modified in the add-on config.
36+
37+
## contributions, reports and donations
38+
39+
If you like my project or this software is useful for you in your daily life and you would like to contribute in some way, you can donate via the following methods:
40+
41+
* [PayPal.](https://paypal.me/davicm)
42+
* [Ko-fi.](https://ko-fi.com/davidacm)
43+
* [cryptocurrencies and other methods.](https://davidacm.github.io/donations/)
44+
45+
If you want to fix bugs, report problems or new features, you can contact me at: <dhf360@gmail.com>.
46+
47+
Or in the github repository of this project:
48+
[Synth settings ring selector on GitHub](https://github.com/davidacm/synthRingSettingsSelector)
49+
50+
You can get the latest release of this add-on in that repository.

buildVars.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
# Translators: Long description to be shown for this add-on on add-on information from add-ons manager
2020
"addon_description" : _("""This add-on allows the user to select which settings should appear on the synth settings ring."""),
2121
# version
22-
"addon_version" : "0.6",
22+
"addon_version" : ,
2323
# Author(s)
2424
"addon_author" : u"David CM <dhf360@gmail.com>",
2525
# URL for the add-on documentation support
@@ -29,7 +29,7 @@
2929
# Minimum NVDA version supported (e.g. "2018.3.0")
3030
"addon_minimumNVDAVersion" : "2018.3.0",
3131
# Last NVDA version supported/tested (e.g. "2018.4.0", ideally more recent than minimum version)
32-
"addon_lastTestedNVDAVersion" : "2019.3.0",
32+
"addon_lastTestedNVDAVersion" : "2021.3.1",
3333
# Add-on update channel (default is stable or None)
3434
"addon_updateChannel" : None,
3535
}

changelog.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
## Changes for 1.0 ##
2+
Updated manifest to add compatibility with NVDA 2021.3.1.
3+
Updated readme files.

readme.md

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#Synth settings ring selector NVDA Add-on #
22
This add-on allows the user to select which settings should appear on the synth settings ring.
33

4-
Copyright (C) 2019 David CM <dhf360@gmail.com>
4+
Copyright (C) 2022 David CM <dhf360@gmail.com>
55

66
This package is distributed under the terms of the GNU General Public License, version 2 or later.
77

@@ -32,4 +32,19 @@ This package is distributed under the terms of the GNU General Public License, v
3232
* inflection.
3333

3434
Note: This dialog shows the supported settings by the current synthesizer only.
35-
Settings not present here aren't modified in the add-on config.
35+
Settings not present here aren't modified in the add-on config.
36+
37+
## contributions, reports and donations
38+
39+
If you like my project or this software is useful for you in your daily life and you would like to contribute in some way, you can donate via the following methods:
40+
41+
* [PayPal.](https://paypal.me/davicm)
42+
* [Ko-fi.](https://ko-fi.com/davidacm)
43+
* [cryptocurrencies and other methods.](https://davidacm.github.io/donations/)
44+
45+
If you want to fix bugs, report problems or new features, you can contact me at: <dhf360@gmail.com>.
46+
47+
Or in the github repository of this project:
48+
[Synth settings ring selector on GitHub](https://github.com/davidacm/synthRingSettingsSelector)
49+
50+
You can get the latest release of this add-on in that repository.

sconstruct

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,9 @@ def createAddonHelp(dir):
9797
cssPath = os.path.join(docsDir, "style.css")
9898
cssTarget = env.Command(cssPath, "style.css", Copy("$TARGET", "$SOURCE"))
9999
env.Depends(addon, cssTarget)
100-
if os.path.isfile("readme.md"):
100+
if os.path.isfile("addonReadme.md"):
101101
readmePath = os.path.join(docsDir, "en", "readme.md")
102-
readmeTarget = env.Command(readmePath, "readme.md", Copy("$TARGET", "$SOURCE"))
102+
readmeTarget = env.Command(readmePath, "addonReadme.md", Copy("$TARGET", "$SOURCE"))
103103
env.Depends(addon, readmeTarget)
104104

105105
def createAddonBundleFromPath(path, dest):

synthRingSettingsSelector.pot

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# SOME DESCRIPTIVE TITLE.
2+
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
3+
# This file is distributed under the same license as the 'synthRingSettingsSelector' package.
4+
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5+
#
6+
#, fuzzy
7+
msgid ""
8+
msgstr ""
9+
"Project-Id-Version: 'synthRingSettingsSelector' '0.1'\n"
10+
"Report-Msgid-Bugs-To: 'nvda-translations@freelists.org'\n"
11+
"POT-Creation-Date: 2019-05-25 15:19-0600\n"
12+
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13+
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14+
"Language-Team: LANGUAGE <LL@li.org>\n"
15+
"Language: \n"
16+
"MIME-Version: 1.0\n"
17+
"Content-Type: text/plain; charset=CHARSET\n"
18+
"Content-Transfer-Encoding: 8bit\n"
19+
20+
#. Translators: This is the label for the Synth ring settings selector settings category in NVDA Settings screen.
21+
#. Add-on summary, usually the user visible name of the addon.
22+
#. Translators: Summary for this add-on to be shown on installation and add-on information.
23+
#: addon\globalPlugins\synthRingSettingsSelector.py:37 buildVars.py:17
24+
msgid "Synth ring settings selector"
25+
msgstr ""
26+
27+
#: addon\globalPlugins\synthRingSettingsSelector.py:42
28+
msgid "Check the settings that you want to include in the Synth settings ring"
29+
msgstr ""
30+
31+
#: addon\globalPlugins\synthRingSettingsSelector.py:44
32+
msgid "Settings group"
33+
msgstr ""
34+
35+
#. Add-on description
36+
#. Translators: Long description to be shown for this add-on on add-on information from add-ons manager
37+
#: buildVars.py:20
38+
msgid ""
39+
"This add-on allows the user to select which settings should appear on "
40+
"the synth settings ring."
41+
msgstr ""

0 commit comments

Comments
 (0)