Skip to content

Enhances Norwegian Math Speech and Navigation Rules (#3)#602

Open
MartheGjelstad wants to merge 1 commit into
daisy:mainfrom
nlbdev:main
Open

Enhances Norwegian Math Speech and Navigation Rules (#3)#602
MartheGjelstad wants to merge 1 commit into
daisy:mainfrom
nlbdev:main

Conversation

@MartheGjelstad

Copy link
Copy Markdown
Collaborator

Updates to Norwegian translation

General updates

  • General: Update Norwegian files to be up to date with English files.
  • Updated "spell" to "SPELL".
  • Added "# audit-ignore" to checked rules that differ from English.
  • Minor formatting improvements to comments.

Update ClearSpeak rules

  • Changed logic of log function. Will now always speak "ln" if the expression is simple.
  • Added short pause for "terse" and "medium" in the rules "fraction-over-simple" and "fraction-over-text".
  • Added "end exponent" for "verbose" and medium pause for "terse" and "medium" to power rules.
  • Changed "ClearSpeak-multi-line" rule for preference "none".
  • Edit rule for mixed fractions.

Update SimpleSpeak Rules

  • Added verbosity test to square root rule.
  • Added "end exponent" to "default" power rule.
  • Edit rule for mixed fractions.

Updates to definitions.yaml

  • Added "hektar" as neuter unit
  • Added set for neuter currencies.
  • Minor changes to be up to date with the English files (Not up to date with most recent changes).

Updates to navigation.yaml

  • Completely changed to be similar to English.
  • Some adjustments were needed in the rule "say-command"
  • Added the rule "into-or-out-of-minus-silent-on-zoom-out" to avoid the speech "out of minus, minus.."

Updates to overview.yaml

  • Was translated to Norwegian.

Updates to unicode.yaml

  • Add support for :literal: intent for several symbols (/, |, ·, ×) to provide more literal readings like "skråstrek" and "vertikal strek".
  • Changed logic in the rule for the multiplication sign (×).
  • Added test for "laplacian". "laplace" or "laplace av"

Updates to Norwegian unicode-full.yaml

  • Added characters that were missing
  • Implement :literal: intent logic for double exclamation (‼) and fraction slash (⁄).
  • Add verbosity-based logic for the cross product symbol (⨯).
  • 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 "laplacian". "laplace" or "laplace av"

Updates to English unicode-full.yaml

  • Fixed 2 typos

Updates to default.yaml

  • Added "power-indexed-by"
  • Added tests to check if a matrix is an augmented matrix.
  • Added fix for speech of Roman numerals

Updates to general.yaml

  • Added rule "unit-terse"
  • Added rule for speaking "currencies" correctly
  • Added verbosity tests for trig function rules

Updates to calculus.yaml

  • Added rule for laplacian.

Update .gitignore

  • Added 'docs/nb_of_norway/' to .gitignore.
  • Want to have a local Norwegian folder for documenting and testing that will never be part of any pull-request.

* Update Norwegian ClearSpeak rules

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.

* Added "hektar" as neuter unit

* Update Norwegian SimpleSpeak rules for verbosity and audit status

- Implement verbosity checks for square roots, using "roten av" for Terse settings.
- Add "# audit-ignore" to checked rules.
- Minor formatting improvements to comments.

* Update Norwegian Unicode rules for literal intent and SPELL consistency

- 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 (×).

* Update Norwegian Unicode rules for expanded character support and consistency

- 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.

* Fix two typos

* Update Norwegian Unicode rules for conditional bold and character consistency

- 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

- Update `spell` to `SPELL` in `general.yaml`
- Update test output because of small changes to the rule for vertical line

* Added the comment audit-ignore

* Added the comment audit-ignore

* Enhance Norwegian speech for currencies, units, and hyperbolic functions

- 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.

* Moved placement of the comment "# audit-ignore"

* Changed placement of comment # audit-ignore

Removed # audit-ignore from rules that are similar in Norwegian and English. The comment is only added to rules that differ, but are reviewed.

* Changed placement of comment # audit-ignore

- 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.

* Some changes to be up to date with English

- 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.

* Translated to Norwegian

I hadn't reviewed this file before.
Changed it to be up to date with the English file

* Adjust Norwegian ClearSpeak power rules

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.

* Added "end exponent" for default power rule.
Updated and added some tests for powers.

Co-authored-by: Copilot <copilot@github.com>

* Updated test after changes to power rules SimpleSpeak

* Changed multiline rule for preference "None".

* Work in progress

* Updated Navigation file

* Added some intent mapping + fix spaces

* Refine Norwegian speech rules

Adjust word usage from 'roten' to 'rot' for mathematical roots and add a short pause before 'gitt' (given).

* Update tests to align with last commit

* Fix pluralization of Norwegian mixed number fractions

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".

* Fix mixed number pluralization logic - correct the last commit

Mixed fractions without a following unit is now spoken correctly.

* Correct Norwegian spelling of 'sec' to 'sek' for better pronunciation

* Update t to T

* Refine Norwegian navigation command parsing and speech output

* Added folder to document testing

* Changed "markør" to "plassmerker"

The word "markør" is used for other things in screen readers.

* Add pause for "terse" and "medium" for simple fractions

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.

* Fix formatting in nested simple fractions test cases

* Added audit-ignore

Added audit-ignore to rules I first was unsure about. They are now checked.

* Removed comment with the old navigation rules

* Added test for "augmented matrices". Small change i rule for log.

* Enhance Norwegian speech for Roman numerals and intent handling

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.

* Forgot to change rule for commit #0ce896d

* Added the comment audit-ignore to some symbols

* Fix typo

* Refine Norwegian speech for laplacian operator

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.

* Update .gitignore

Added 'docs/nb_of_norway/' to .gitignore

---------

Co-authored-by: Copilot <copilot@github.com>
Co-authored-by: Gaute Rønningen <gaute.ronningen@nb.no>
@MartheGjelstad MartheGjelstad requested a review from NSoiffer June 17, 2026 13:25
@MartheGjelstad MartheGjelstad self-assigned this Jun 17, 2026
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.

1 participant