Skip to content

Enhances Norwegian Math Speech and Navigation Rules#3

Merged
MartheGjelstad merged 53 commits into
mainfrom
update_nb
Jun 17, 2026
Merged

Enhances Norwegian Math Speech and Navigation Rules#3
MartheGjelstad merged 53 commits into
mainfrom
update_nb

Conversation

@MartheGjelstad

Copy link
Copy Markdown

This pull request significantly refines the Norwegian speech output and navigation rules for mathematical expressions.

  • Speech Output Enhancements:

    • Improves pronunciation and consistency for various Unicode symbols, operators, fractions, powers, roots, and hyperbolic functions.
    • Refines pluralization logic for mixed numbers, currencies, and units, including special handling for neuter currencies.
    • Introduces specific speech for augmented matrices and the laplacian operator.
    • Adds conditional speech for literal intents and bold font styles.
  • Navigation System Overhaul:

    • Refactors navigation rules for zoom, move, and read commands, providing clearer feedback and more intuitive control.
    • Adds character-level navigation and improves handling of 2D structures.
    • Adjusts pauses and command announcements for a smoother user experience.
  • Maintenance & Consistency:

    • Adds audit-ignore comments to rules for better maintainability.
    • Standardizes spell to SPELL across rules.
    • Expands Unicode character support with updated descriptions and pronunciations.

MartheGjelstad and others added 30 commits April 21, 2026 08:11
Changed logic of log function. Will now always speak "ln" if the expression is simple.
Updated `spell` to `SPELL`.

Added `# audit-ignore` to checked rules.
Minor formatting improvements to comments.
- Implement verbosity checks for square roots, using "roten av" for Terse settings.
- Add "# audit-ignore" to checked rules.
- Minor formatting improvements to comments.
- Add support for `:literal:` intent for several symbols (/, |, ·, ×) to provide more literal readings like "skråstrek" and "vertikal strek".
- Update `spell` to `SPELL` throughout the file for consistency.
- Changed logic in the rule for the multiplication sign (×).
…sistency

- Added unicode characters.
- Updated `spell` to `SPELL`.
- Implement `:literal:` intent logic for double exclamation (‼) and fraction slash (⁄).
- Add verbosity-based logic for the cross product symbol (⨯).
- Add support for MathJax PUA values used for chemical bonds and arrows.
…sistency

- Implement logic to make the "fet" (bold) descriptor conditional based on the `$IgnoreBold` variable across multiple alphanumeric blocks.
- Consolidate individual digit entries into ranges.

- Added test for ignore-bold.
- Update `spell` to `SPELL` in `general.yaml`
- Update test output because of small changes to the rule for vertical line
- Added the rule "unit-terse"
- Added the rule "currency". Added test for neuter currencies.
- Added sets for currency symbols.
- Re-introduce verbosity-dependent speech for hyperbolic functions with updated terse forms.
- Update `spell` to `SPELL`.
- Add `audit-ignore` tags to various rules.
Removed # audit-ignore from rules that are similar in Norwegian and English. The comment is only added to rules that differ, but are reviewed.
- Removed # audit-ignore for rules that are similar in Norwegian and English. The comment is only added to rules that differ, but are reviewed.
- Rules for powers might need some changes. Made comments to remember that.
- The rule for`ClearSpeak-multi-line` might need some changes. Made a comment to remember that.
- Changed last else statement of the rule "literal, [msup, msubsup]".
- Added the rule "power-indexed-by".
- Changed from spell to SPELL
- Add # audit-ignore to rules that differs from English, but are reviewed.
I hadn't reviewed this file before.
Changed it to be up to date with the English file
Enhances spoken output for mathematical power expressions.
- Increases the pause after simple exponents (e.g., `simple-integer`, `simple-var`) to 'medium'.
- Introduces conditional phrasing and pause adjustments for nested and default power rules.
  - In 'Verbose' mode, adds a short pause and "slutt eksponent" (end exponent).
  - For other verbosity levels, applies a medium pause.
Updated and added some tests for powers.

Co-authored-by: Copilot <copilot@github.com>
Adjust word usage from 'roten' to 'rot' for mathematical roots and add a short pause before 'gitt' (given).
MartheGjelstad and others added 23 commits May 18, 2026 10:45
Correctly apply pluralization of mixed numbers without an explicit following unit. Introduce `IsPluralNoUnit` to ensure the fraction's numerator dictates the plural form, resolving cases like "2 tredjedeler".
Mixed fractions without a following unit is now spoken correctly.
The word "markør" is used for other things in screen readers.
Added a short pause after simple fractions for terse and medium. This shoud make it easier to know when you are out of the fraction.
Added audit-ignore to rules I first was unsure about. They are now checked.
Roman numerals are now spelled out consistently for better pronunciation.
Introduces a new `nofix-intent` rule for specific intent properties.
Adjusts `function-intent` speech to respect verbosity settings.
Correct pronunciation of "laplace" to "laplas" in Norwegian, as "laplace" is not
pronounced correctly. Improve phrasing to distinguish between "laplacian" and
"laplacian of X" based on context.
Added 'docs/nb_of_norway/' to .gitignore
@MartheGjelstad MartheGjelstad merged commit 35f32e7 into main Jun 17, 2026
14 checks passed
@MartheGjelstad MartheGjelstad deleted the update_nb branch June 17, 2026 12:37
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.

2 participants