Skip to content

Allow the mathematics settings panel to load for NVDA languages without defined speech styles#19231

Merged
seanbudd merged 1 commit into
nvaccess:masterfrom
codeofdusk:fixup-mathcat-settings-panel
Nov 18, 2025
Merged

Allow the mathematics settings panel to load for NVDA languages without defined speech styles#19231
seanbudd merged 1 commit into
nvaccess:masterfrom
codeofdusk:fixup-mathcat-settings-panel

Conversation

@codeofdusk

Copy link
Copy Markdown
Contributor

Link to issue number:

Split from #19227.

Summary of the issue:

On languages without defined speech styles, such as nl, the mathematics settings panel does not load.

Description of how this pull request fixes the issue:

Relocate ZIP file path calculation logic.

Testing strategy:

Verified that the mathematics settings panel opens when the nVDA language and voice are set to Dutch.

Known issues with pull request:

None known

Code Review Checklist:

  • [n/a] Documentation: (out-of-scope, see Fixup MathCAT settings #19227)
    • Change log entry
    • User Documentation
    • Developer / Technical Documentation
    • Context sensitive help for GUI changes
  • Testing:
    • Unit tests
    • System (end to end) tests
    • Manual testing
  • UX of all users considered:
    • Speech
    • Braille
    • Low Vision
    • Different web browsers
    • Localization in other languages / culture than English
  • API is compatible with existing add-ons.
  • Security precautions taken.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes a bug where the mathematics settings panel fails to load for NVDA languages that don't have defined speech styles (such as Dutch). The fix relocates the ZIP file path calculation outside the try block and improves error handling.

  • Moves zipFilePath calculation before the try block to ensure it's defined for error logging
  • Adds proper context manager (with statement) for ZipFile handling
  • Fixes error message to reference the correct variable (zipFilePath instead of zipFile)

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@codeofdusk codeofdusk force-pushed the fixup-mathcat-settings-panel branch from 59dd362 to 3b70823 Compare November 18, 2025 02:05
@seanbudd seanbudd enabled auto-merge (squash) November 18, 2025 02:31
@seanbudd seanbudd merged commit 0352d82 into nvaccess:master Nov 18, 2025
41 checks passed
@github-actions github-actions Bot added this to the 2026.1 milestone Nov 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants