Navigation fails on a currency before the amount ($3)
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 76/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- rust, yaml
调研方向
从 SharedRules/general.yaml 中的 currency 规则开始,将其字面模式行为与西班牙语的 currency-after 规则进行比较。将提议的字面模式条件一致地应用于列出的语言规则,然后运行 cargo test。完成标准是导航能够到达货币符号和金额,同时完整语音保持不变。
由索引模型根据 Issue 内容生成。
描述
ZoomIn or MoveNext on <math><mi>$</mi><mn>3</mn></math> gives an error:
Internal error: With en/ClearSpeak in Enhanced mode, can't ZoomIn from expression with id '…'
The currency rule in SharedRules/general.yaml reorders the speech ("3 dollars") and speaks the word from CurrencySymbols instead of *[1], so navigation can't find the $ in it. The same rule is in de, es, fr, hu, ja, pl and pt.
Proposed fix: don't use the rule in literal mode (navigation), as Spanish already does for currency-after:
- match: "count(*)=3 and DefinitionValue(*[1], 'Speech', 'CurrencySymbols') != '' and *[3][self::m:mn]"
+ match: "count(*)=3 and DefinitionValue(*[1], 'Speech', 'CurrencySymbols') != '' and *[3][self::m:mn] and not(ancestor-or-self::*[contains(@data-intent-property, ':literal:')])"
With it (en): ZoomIn → "dollar", MoveNext → "3"; $3 + $2 → "3 dollars", "plus"; \frac{$5}{kg} → "in numerator; 5 dollars". The full reading doesn't change ("3 dollars"), and cargo test passes. Spanish has this fix in the es-more-currencies PR.
- 主要语言
- Rust
- 星标
- 131
- 派生
- 97
- 平均合并
- 21 小时 45 分钟
- 30 天内合并 PR
- 95
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
daisy/MathCAT 的其他 Issue
-
难度 1/5 1 小时以内 新手友好度 84/100
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 88/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 88/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 82/100
ElectronicWave/Elemental#252 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 78/100
dekobon/big-code-analysis#1887 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 82/100
维护者通常 1 天内回复
-
area:mcp effort:low P5 source:agent
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 70/100
jlcodes99/cockpit-tools#3103 ·
维护者通常 2 天内回复