An intent on a currency symbol is ignored when a number follows
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- Medio día
- Aptitud para principiantes
- 66/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- rust, xml, yaml
- Área
- accessibility
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
<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.
- Lenguaje dominante
- Rust
- Estrellas
- 131
- Forks
- 97
- Merge medio
- 21 h 45 min
- PR fusionados (30 d)
- 95
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de daisy/MathCAT
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 84/100
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
Los mantenedores suelen responder en 1 día
Todos los issues de daisy/MathCAT
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
ElectronicWave/Elemental#252 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
dekobon/big-code-analysis#1887 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día
-
area:mcp effort:low P5 source:agent
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
jlcodes99/cockpit-tools#3103 ·
Los mantenedores suelen responder en 2 días