An intent on a currency symbol is ignored when a number follows

Aperta
#986 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
Mezza giornata
Idoneità per principianti
66/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
rust, xml, yaml
Ambito
accessibility

Direzione di ricerca

Start with the currency rule in SharedRules/general.yaml and trace how its match and DefinitionValue(*[1], 'Speech', 'CurrencySymbols') handle the intent attribute. Compare the existing output for the provided MathML examples, including both mi and mo, with the intended speech; decide how the currency word should be ordered with the number. Done means the symbol's intent is preserved when a number follows and the output is verified for both element types.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

<math><mi intent="peso">$</mi><mn>200</mn></math>

This reads "200 dollars" (Spanish: "200 dólares"); the author's intent is lost. Alone, <mi intent="peso">$</mi> reads "peso". The same happens with <mo intent="peso">.

The currency rule in SharedRules/general.yaml matches on the text of *[1] (DefinitionValue(*[1], 'Speech', 'CurrencySymbols')), so it still fires after the intent has renamed the element. Adding *[1][self::m:mi or self::m:mo] to its match makes the intent win. It then reads "peso 200", in the written order, so maybe it would be better to use the intent name as the currency word ("200 pesos").

This matters in Latin America, where $ is usually the local peso.

Lingua principale
Rust
Stelle
131
Fork
97
Merge medio
21h 45m
PR unite (30g)
95

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di daisy/MathCAT

Tutte le issue di daisy/MathCAT

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.