-
Notifications
You must be signed in to change notification settings - Fork 9
/
buildVars.py
136 lines (122 loc) · 6.38 KB
/
buildVars.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
# -*- coding: UTF-8 -*-
import os.path
# Build customizations
# Change this file instead of sconstruct or manifest files, whenever possible.
# Since some strings in "addon_info" are translatable,
# we need to include them in the .po files.
# Gettext recognizes only strings given as parameters to the "_" function.
# To avoid initializing translations in this module we simply roll our own "fake" "_" function
# which returns whatever is given to it as an argument.
def _(arg):
return arg
# Add-on information variables
addon_info = {
# add-on Name, internal for nvda
"addon_name": "NVDAExtensionGlobalPlugin",
# Add-on summary, usually the user visible name of the addon.
# Translators: Summary for this add-on to be shown on installation
# and add-on information.
"addon_summary": _("NVDA global commands extension"),
# Add-on description
# Translators: Long description to be shown for this add-on on
# add-on information from add-ons manager
"addon_description": _("""This add-on brings to NVDA a multitude of features which can be activated or deactivated individually depending on the need.
Here are a few:
* Display of the list of icons in the notification area or windows of applications launched,
* Help in the composition of a symbol that is complex such as, for example, a a e related, a symbol power of 2 and possibility to add its own categories and symbols,
* Extension of the functionality of the virtual buffer for browser:
* new commands for navigation mode (paragraph, division, anchor, main landmark),
* new types of elements for the dialog box opened by "NVDA+F7" (radio button, paragraph, frame, checkBox, etc) with the announcement of the number of items found,
* option to browse in a loop in search of a next or previous item,
* new scripts for table: cell/line/column announcement, move to the next or previous column / row with announcement of the cells composing it,
* intelligent announcement of the function of editing commands like Copy, cut or Paste and improvement of the NVDA base script which announces the text in the clipboard("NVDA+c" ),
* voice speechs's history,
* renaming keyboard keys,
* selective announcement of command keys,
* display of visible elements making up the object in the foreground and possibility to move to or click on the elements,
* quick voice profile switching,
* persistence of NVDA and modification keys and specific persistence for the gmail.com site,
* shutdown, restart or Hibernate the computer,
* management of input gestures configured by user,
* sound control: system/ NVDA/application's quick volume changes, audio split, temporary audio output device switching,
* user configurations management and NVDA restarting with precise configuration,
* text analyser,
* quick add-ons activation / desactivation,
* Announcement or display of information about the application under focus, such as its version, the active configuration profile, loaded add-on,
* possible use of numeric keypad as standard numeric keypad,
* possibility of executing scripts from the "Input gestures" dialog,
* and more.
For the full list of the add-on's features and their description, see the user manual.
"""),
# version
"addon_version": "13.4.2",
# Author(s)
"addon_author": "PaulBer19 ([email protected]",
# URL for the add-on documentation support
"addon_url": "https://github.com/paulber19/NVDAExtensionGlobalPlugin.git",
# URL for the add-on repository where the source code can be found
"addon_sourceURL": "https://github.com/paulber19/NVDAExtensionGlobalPlugin.git",
# Documentation file name
"addon_docFileName": "addonUserManual.html",
# Minimum NVDA version supported (e.g. "2018.3")
"addon_minimumNVDAVersion": "2022.1",
# Last NVDA version supported/tested
# (e.g. "2018.4", ideally more recent than minimum version)
"addon_lastTestedNVDAVersion": "2024.4",
# Add-on update channel (default is stable or None)
"addon_updateChannel": None,
# Add-on license such as GPL 2
"addon_license": "GPL v2",
# URL for the license document the ad-on is licensed under
"addon_licenseURL": "https://www.gnu.org/licenses/gpl-2.0.html",
}
# Define the python files that are the sources of your add-on.
# You can use glob expressions here, they will be expanded.
mainPath = os.path.join("addon", "globalPlugins", "NVDAExtensionGlobalPlugin")
pythonSources = [
os.path.join("addon", "*.py"),
os.path.join(mainPath, "*.py"),
os.path.join(mainPath, "activeWindowsListReport", "*.py"),
os.path.join(mainPath, "browseModeEx", "*.py"),
os.path.join(mainPath, "clipboardCommandAnnouncement", "*.py"),
os.path.join(
mainPath, "commandKeysSelectiveAnnouncementAndRemanence", "*.py"),
os.path.join(mainPath, "ComplexSymbols", "*.py"),
os.path.join(mainPath, "currentFolder", "*.py"),
os.path.join(mainPath, "computerTools", "*.py"),
os.path.join(mainPath, "extendedNetUIHWND", "*.py"),
os.path.join(mainPath, "keyboardKeyRenaming", "*.py"),
os.path.join(mainPath, "minuteTimer", "*.py"),
os.path.join(mainPath, "NVDALogs", "*.py"),
os.path.join(mainPath, "reportFormatting", "*.py"),
os.path.join(mainPath, "scripts", "*.py"),
os.path.join(mainPath, "settings", "*.py"),
os.path.join(mainPath, "speechHistory", "*.py"),
os.path.join(mainPath, "switchVoiceProfile", "*.py"),
os.path.join(mainPath, "systemTrayIconsList", "*.py"),
os.path.join(mainPath, "textAnalysis", "*.py"),
os.path.join(mainPath, "tools", "*.py"),
os.path.join(mainPath, "updateHandler", "*.py"),
os.path.join(mainPath, "userInputGestures", "*.py"),
os.path.join(mainPath, "utils", "*.py"),
os.path.join(mainPath, "WindowsExplorer", "*.py"),
os.path.join(mainPath, "winExplorer", "*.py"),
]
# Files that contain strings for translation. Usually your python sources
i18nSources = pythonSources
# Files that will be ignored when building the nvda-addon file
# Paths are relative to the addon directory,
# not to the root directory of your addon sources.
excludedFiles = []
# Base language for the NVDA add-on
# If your add-on is written in a language other than english,
# modify this variable.
# For example:
# set baseLanguage to "es" if your add-on is primarily written in spanish.
baseLanguage = "en"
# Markdown extensions for add-on documentation
# Most add-ons do not require additional Markdown extensions.
# If you need to add support for markup such as tables, fill out the below list.
# Extensions string must be of the form "markdown.extensions.extensionName"
# e.g. "markdown.extensions.tables" to add tables.
markdownExtensions = []