Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 0 additions & 64 deletions .github/workflows/build_addon.yml

This file was deleted.

3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@ addon/doc/*.css
addon/doc/en/
*_docHandler.py
*.html
*.ini
manifest.ini
*.nvda-addon
.sconsign.dblite

# Byte-compiled / optimized / DLL files
__pycache__/
*.py[co]
*$py.class
/[0-9]*.[0-9]*.[0-9]*.json

# Translations
*.mo
Expand Down
92 changes: 86 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,87 @@
# Copied from https://github.com/nvaccess/nvda
# https://pre-commit.ci/
# Configuration for Continuous Integration service
ci:
# Pyright does not seem to work in pre-commit CI
skip: [pyright]
autoupdate_schedule: monthly
autoupdate_commit_msg: "Pre-commit auto-update"
autofix_commit_msg: "Pre-commit auto-fix"
submodules: true

default_language_version:
python: python3.13

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: check-ast
- id: check-case-conflict
- id: check-yaml
- repo: https://github.com/pre-commit-ci/pre-commit-ci-config
rev: v1.6.1
hooks:
- id: check-pre-commit-ci-config

- repo: meta
hooks:
# ensures that exclude directives apply to any file in the repository.
- id: check-useless-excludes
# ensures that the configured hooks apply to at least one file in the repository.
- id: check-hooks-apply

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
# Prevents commits to certain branches
- id: no-commit-to-branch
args: ["--branch", "main", "--branch", "master", ]
# Checks that large files have not been added. Default cut-off for "large" files is 500kb.
- id: check-added-large-files
# Checks python syntax
- id: check-ast
# Checks for filenames that will conflict on case insensitive filesystems (the majority of Windows filesystems, most of the time)
- id: check-case-conflict
# Checks for artifacts from resolving merge conflicts.
- id: check-merge-conflict
# Checks Python files for debug statements, such as python's breakpoint function, or those inserted by some IDEs.
- id: debug-statements
# Removes trailing whitespace.
- id: trailing-whitespace
types_or: [python, c, c++, batch, markdown, toml, yaml, powershell]
# Ensures all files end in 1 (and only 1) newline.
- id: end-of-file-fixer
types_or: [python, c, c++, batch, markdown, toml, yaml, powershell]
# Removes the UTF-8 BOM from files that have it.
# See https://github.com/nvaccess/nvda/blob/master/projectDocs/dev/codingStandards.md#encoding
- id: fix-byte-order-marker
types_or: [python, c, c++, batch, markdown, toml, yaml, powershell]
# Validates TOML files.
- id: check-toml
# Validates YAML files.
- id: check-yaml
# Ensures that links to lines in files under version control point to a particular commit.
- id: check-vcs-permalinks
# Avoids using reserved Windows filenames.
- id: check-illegal-windows-names
- repo: https://github.com/asottile/add-trailing-comma
rev: v3.2.0
hooks:
# Ruff preserves indent/new-line formatting of function arguments, list items, and similar iterables,
# if a trailing comma is added.
# This adds a trailing comma to args/iterable items in case it was missed.
- id: add-trailing-comma

- repo: https://github.com/astral-sh/ruff-pre-commit
# Matches Ruff version in pyproject.
rev: v0.12.7
hooks:
- id: ruff
name: lint with ruff
args: [ --fix ]
- id: ruff-format
name: format with ruff

- repo: local
hooks:

- id: pyright
name: type check with pyright
entry: uv run pyright
language: system
types: [python]
2 changes: 1 addition & 1 deletion .python-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.11.9-win32
3.13.11
2 changes: 1 addition & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"ms-python.python",
"ms-python.vscode-pylance",
"redhat.vscode-yaml",
"ms-python.flake8"
"charliermarsh.ruff"
],
// List of extensions recommended by VS Code that should not be recommended for users of this workspace.
"unwantedRecommendations": []
Expand Down
4 changes: 0 additions & 4 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
{
"editor.accessibilitySupport": "on",
"flake8.args": [
"--config=flake8.ini"
],
"flake8.importStrategy": "fromEnvironment",
"python.autoComplete.extraPaths": [
"../nvda/source",
"../nvda/miscDeps/python"
Expand Down
8 changes: 2 additions & 6 deletions .vscode/typings/__builtins__.pyi
Original file line number Diff line number Diff line change
@@ -1,6 +1,2 @@
def _(msg: str) -> str:
...


def pgettext(context: str, message: str) -> str:
...
def _(msg: str) -> str: ...
def pgettext(context: str, message: str) -> str: ...
29 changes: 0 additions & 29 deletions _template_addon_release.json

This file was deleted.

14 changes: 6 additions & 8 deletions addon/doc/uk/readme.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# NVDA Unmute (Автоувімкнення звуку Windows)

* Автор: Олександр Грищенко
* Версія: 1.6
* Сумісність з NVDA: 2025.1 та новіші версії
* Версія: 1.7
* Сумісність з NVDA: 2026.1 та новіші версії
* Завантажити [стабільну версію][1]

Цей додаток перевіряє стан аудіосистеми Windows під час запуску NVDA. І, якщо виявляється, що звук вимкнений або дуже приглушений, - додаток примусово вмикає його.
Expand Down Expand Up @@ -52,14 +52,12 @@

6. Наступний прапорець вмикає або вимикає відтворення стартового звуку при успішному виконанні операції.

## Сторонні компоненти
Для роботи додаток використовує наступні сторонні компоненти:

* Для взаємодії з **Windows Core Audio API** - [модуль PyCaw](https://github.com/AndreMiras/pycaw/), який розповсюджується під ліцензією MIT.
* Для отримання інформації про запущені процеси і роботи компонента PyCaw - [модуль psutil](https://github.com/giampaolo/psutil), що поширюється під ліцензією BSD-3.

## Журнал змін

### Версія 1.7.0
* додано переклад на німецьку мову (подяка Frank Niggemann)
* додаток протестовано на сумісність з NVDA 2026.1.

### Версія 1.5.7
* додаток протестовано на сумісність з NVDA 2023.1.

Expand Down
8 changes: 4 additions & 4 deletions addon/doc/vi/readme.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
 # NVDA Bật âm thanh
# NVDA Bật âm thanh

* Tác giả: Oleksandr Gryshchenko
* Phiên bản: 1.5
Expand Down Expand Up @@ -69,7 +69,7 @@ Add-on sử dụng các thành phần sau của bên thứ ba:
* Tham số của add-on được lưu vào hồ sơ cấu hình cơ sở;
* Đã thêm các bản dịch tiếng Tây Ban Nha và Galician (cảm ơn Ivan Novegil Cancelas và Jose Manuel).
* Cập nhật bản phiên dịch tiếng Việt (cảm ơn Đặng Mạnh Cường);

### Phiên bản 1.4
* Đã thêm phương thức tăng âm lượng khởi động độc lập cho việc vận hành NVDA;
* Thay đổi âm thanh thông báo cho các hoạt động thành công (cảm ơn Manolo);
Expand All @@ -79,8 +79,8 @@ Add-on sử dụng các thành phần sau của bên thứ ba:
* Thêm khả năng điều khiển âm lượng của thiết bị âm thanh tổng và điều khiển độc lập cho mỗi chương trình đang chạy;
* Cập nhật bản phiên dịch tiếng Việt (cảm ơn Đặng Mạnh Cường);
* Đã thêm bản phiên dịch tiếng Thổ Nhĩ Kỳ (cảm ơn Cagri Dogan);
* Đã thêm bản phiên dịch tiếng Ý (cảm ơn Christianlm);
* Đã thêm bản phiên dịch tiếng Trung Quốc giản thể (Cảm ơn Cary Rowen);
* Đã thêm bản phiên dịch tiếng Ý (cảm ơn Christianlm);
* Đã thêm bản phiên dịch tiếng Trung Quốc giản thể (Cảm ơn Cary Rowen);
* Đã thêm bản hiên dịch tiếng Polish (cảm ơn Stefan Banita);
* Cập nhật bản phiên dịch tiếng Ukraina;
* Cập nhật tập tin Readme.
Expand Down
Loading