Skip to content
Open
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
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ repos:
- id: check-hooks-apply

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
rev: v6.0.0
hooks:
# Prevents commits to certain branches
- id: no-commit-to-branch
Expand Down Expand Up @@ -60,7 +60,7 @@ repos:
# Avoids using reserved Windows filenames.
- id: check-illegal-windows-names
- repo: https://github.com/asottile/add-trailing-comma
rev: v3.2.0
rev: v4.0.0
hooks:
# Ruff preserves indent/new-line formatting of function arguments, list items, and similar iterables,
# if a trailing comma is added.
Expand All @@ -69,7 +69,7 @@ repos:

- repo: https://github.com/astral-sh/ruff-pre-commit
# Matches Ruff version in pyproject.
rev: v0.12.7
rev: v0.15.4
hooks:
- id: ruff
name: lint with ruff
Expand Down
6 changes: 3 additions & 3 deletions addon/doc/ne/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

केन्द्रीत् नियन्त्रक फेला पार्न यो उपकर्मी चयन गर्नु होस् । चेक बाकस,
सम्पादन भूमी जस्ता केन्द्रीत् नियन्त्रक सम्बन्धी सन्देस जान्न नेत्रवाणी +H
कुञ्जी दबाउनु होस् ।
कुञ्जी दबाउनु होस् ।

## Version 2.5

Expand All @@ -21,9 +21,9 @@

* बिसौनी सञ्झ्याल सहित अतिरिक्त नियन्त्रकका लागी सहयोग सन्देस थप गरियो ।
* माइक्रोसफ्ट एक्सेल, प्रस्तुती-पत्र र सञ्झ्याल ८ सुरुवात् पर्दा जस्ता
अनुप्रयोगहरुका सहयोग सन्देस थप गरियो ।
अनुप्रयोगहरुका सहयोग सन्देस थप गरियो ।
* उघार्ने र केन्द्रीत् मुद्रा दुबै खाले अवास्तविक कागजातहरू (जस्तै अन्तर
सञ्झ्याल, एडोबी पाठक, मोजिला फायरफक्स ईत्यादी) मा सहयोग सन्देस थप गरियो ।
सञ्झ्याल, एडोबी पाठक, मोजिला फायरफक्स ईत्यादी) मा सहयोग सन्देस थप गरियो ।
* नया भाषा: डेनिस

## Version 1.0
Expand Down
70 changes: 39 additions & 31 deletions site_scons/site_tools/NVDATool/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,14 @@ def generate(env: Environment):
env.SetDefault(excludePatterns=tuple())

addonAction = env.Action(
lambda target, source, env: createAddonBundleFromPath(
source[0].abspath,
target[0].abspath,
env["excludePatterns"],
)
and None,
lambda target, source, env: (
createAddonBundleFromPath(
source[0].abspath,
target[0].abspath,
env["excludePatterns"],
)
and None
),
lambda target, source, env: f"Generating Addon {target[0]}",
)
env["BUILDERS"]["NVDAAddon"] = Builder(
Expand All @@ -51,14 +53,16 @@ def generate(env: Environment):
env.SetDefault(symbolDictionaries={})

manifestAction = env.Action(
lambda target, source, env: generateManifest(
source[0].abspath,
target[0].abspath,
addon_info=env["addon_info"],
brailleTables=env["brailleTables"],
symbolDictionaries=env["symbolDictionaries"],
)
and None,
lambda target, source, env: (
generateManifest(
source[0].abspath,
target[0].abspath,
addon_info=env["addon_info"],
brailleTables=env["brailleTables"],
symbolDictionaries=env["symbolDictionaries"],
)
and None
),
lambda target, source, env: f"Generating manifest {target[0]}",
)
env["BUILDERS"]["NVDAManifest"] = Builder(
Expand All @@ -68,15 +72,17 @@ def generate(env: Environment):
)

translatedManifestAction = env.Action(
lambda target, source, env: generateTranslatedManifest(
source[1].abspath,
target[0].abspath,
mo=source[0].abspath,
addon_info=env["addon_info"],
brailleTables=env["brailleTables"],
symbolDictionaries=env["symbolDictionaries"],
)
and None,
lambda target, source, env: (
generateTranslatedManifest(
source[1].abspath,
target[0].abspath,
mo=source[0].abspath,
addon_info=env["addon_info"],
brailleTables=env["brailleTables"],
symbolDictionaries=env["symbolDictionaries"],
)
and None
),
lambda target, source, env: f"Generating translated manifest {target[0]}",
)

Expand All @@ -89,14 +95,16 @@ def generate(env: Environment):
env.SetDefault(mdExtensions={})

mdAction = env.Action(
lambda target, source, env: md2html(
source[0].path,
target[0].path,
moFile=env["moFile"].path if env["moFile"] else None,
mdExtensions=env["mdExtensions"],
addon_info=env["addon_info"],
)
and None,
lambda target, source, env: (
md2html(
source[0].path,
target[0].path,
moFile=env["moFile"].path if env["moFile"] else None,
mdExtensions=env["mdExtensions"],
addon_info=env["addon_info"],
)
and None
),
lambda target, source, env: f"Generating {target[0]}",
)
env["BUILDERS"]["md2html"] = env.Builder(
Expand Down