Skip to content

Development Build (2026-11-10) ships new rules with an old library #993

Closed

Description

@pablgonz

The MathCATForPython Development Build (MathCAT 0.7.8-alpha.1, built 2026-11-10) seems to ship the new rules with an old library. With NVDA 2026.3.1 the log says:

MathCAT 0.7.6-rc.6 installed. Using rules dir: ...\userConfig\addons\MathCAT\globalPlugins\MathCAT\Rules

and any math with a "1" fails in Spanish:

caused by: in 'OneForUnit(.)' replacing after pattern match
caused by: unknown function  "OneForUnit"

For example <math><mn>1</mn><mo>:</mo><mn>30</mn></math> gives "Error al verbalizar el contenido matemático". The rules in the add-on already use OneForUnit (from the unit gender change), but the bundled library doesn't have it. Portuguese uses the same function, so it probably fails there too.

Activity

  1. pablgonz commented on Nov 11, 2026

    @pablgonz
    ContributorAuthor

    Same for v0.7.8-alpha.1; 2026-11-11 10:29

  2. NSoiffer commented on Nov 12, 2026

    @NSoiffer
    Collaborator

    Should be fixed with daisy/MathCATForPython#124

  3. pablgonz commented on Nov 13, 2026

    @pablgonz
    ContributorAuthor

    Same problem with today's Development Build (2026-11-12). The log now says the right version:

    MathCAT 0.7.8-alpha.1 installed. Using rules dir: ...\userConfig\addons\MathCAT\globalPlugins\MathCAT\Rules
    

    but the library still doesn't have the new unit functions, so any math with a "1" or a unit fails in Spanish (NVDA 2026.3.1):

    caused by: unknown function  "OneForUnit"
    
    caused by: attempting replacement pattern: "unit" for "unit".
    caused by: Failure in conditional test
    caused by: unknown function  "UnitNumber"
    

    For example <math><mn>1</mn><mi intent=":unit">m</mi></math> gives "Error al verbalizar el contenido matemático", and 10 m is read "10 m" instead of "10 metros". It looks like the version number was updated, but the bundled library was built before the unit gender change.

  4. pablgonz commented on Nov 15, 2026

    @pablgonz
    ContributorAuthor

    @NSoiffer Still the same with today's add-on (NVDA 2026.3.1, log says MathCAT 0.7.8-alpha.1): any <mn>1</mn> fails in Spanish with

    caused by: test: [  if: '".=1"' then:["OneForUnit(.)"] else:["translate(., $BlockSeparators, '')"]]
    caused by: in 'OneForUnit(.)' replacing after pattern match
    caused by: unknown function  "OneForUnit"
    

    For example $a_1$ gives "Error al verbalizar el contenido matemático". The rules in the add-on are new, but the library is still older than the unit gender change.

    Test Development Build (MathCAT 0.7.8-alpha.1, built 2026-11-15 00:00 UTC)

  5. NSoiffer commented on Nov 15, 2026

    @NSoiffer
    Collaborator

    The automaticRelease.yaml complexity has gotten beyond, and apparently a bit beyond AI... at least on first try. It was grabbing the current MathCAT from the wrong place. I verified that it is now fixed... at least as far as "1 metre" is concerned. Sorry about the mixup.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions