Skip to content

Spanish: read signed numbers in parentheses as "negativo"/"positivo" (Verbose) - #974

Open
pablgonz wants to merge 3 commits into
daisy:mainfrom
pablgonz:es-signed
Open

pablgonz wants to merge 3 commits into
daisy:mainfrom
pablgonz:es-signed

Conversation

@pablgonz

@pablgonz pablgonz commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

In Spanish classrooms, signed numbers are taught as "dos negativo", "uno positivo": (−2) + (+1) is "dos negativo más uno positivo". With Verbose verbosity, Spanish now reads a number with a sign inside parentheses that way. Only Spanish files are touched.

input Terse / Medium Verbose
(−2) + (+1) menos 2 más, abrir paréntesis más 1 cerrar paréntesis 2 negativo más 1 positivo
3 − (−2) 3 menos menos 2 3 menos 2 negativo
(−2)^2 abrir paréntesis menos 2 cerrar paréntesis al cuadrado 2 negativo elevado al cuadrado
−2 + 1 menos 2 más 1 menos 2 más 1
  • Only numbers in parentheses: there the sign can't be an operation. Without parentheses, and with letters ((−x)), the reading doesn't change.
  • The sign is spoken by the plus/minus node, so navigation says "2 negativo" too.
  • Same in ClearSpeak and SimpleSpeak; not in literal mode.
  • Tests in tests/Languages/es/{ClearSpeak,SimpleSpeak}/functions.rs and navigate.rs. cargo test passes.

@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown
Linux library size: 0.59 MiB (0.00%)
Revision Release liblibmathcat.so
Base (598020b) 0.59 MiB (618,920 bytes)
PR (0127d4a) 0.59 MiB (618,920 bytes)
Change 0 bytes (0.00%)

Built with default features, Rust 1.96.0, and Ubuntu 24.04. Workflow run.

This branch has not been deployed

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

Labels

None yet

Projects

Status: Triage

Development

Successfully merging this pull request may close these issues.

1 participant