Enhances Norwegian Math Speech and Navigation Rules (#3)#602
Open
MartheGjelstad wants to merge 1 commit into
Open
Enhances Norwegian Math Speech and Navigation Rules (#3)#602MartheGjelstad wants to merge 1 commit into
MartheGjelstad wants to merge 1 commit into
Conversation
* 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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Updates to Norwegian translation
General updates
Update ClearSpeak rules
Update SimpleSpeak Rules
Updates to definitions.yaml
Updates to navigation.yaml
Updates to overview.yaml
Updates to unicode.yaml
:literal:intent for several symbols (/, |, ·, ×) to provide more literal readings like "skråstrek" and "vertikal strek".Updates to Norwegian unicode-full.yaml
:literal:intent logic for double exclamation (‼) and fraction slash (⁄).$IgnoreBoldvariable across multiple alphanumeric blocks.Updates to English unicode-full.yaml
Updates to default.yaml
Updates to general.yaml
Updates to calculus.yaml
Update .gitignore