Skip to content

Complete the Simplified Chinese translation - #1056

Merged
NSoiffer merged 6 commits into
daisy:mainfrom
cary-rowen:work/zh-cn-main
Nov 20, 2026
Merged

NSoiffer merged 6 commits into
daisy:mainfrom
cary-rowen:work/zh-cn-main

Conversation

@cary-rowen

@cary-rowen cary-rowen commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

This PR replaces #712 and targets main. All 12 Simplified Chinese rule files, including SharedRules, are under Rules/Languages/zh/cn/. The shared definitions include the correct relative path.

The translation completes the Simplified Chinese speech and navigation rules using terminology common in Mainland Chinese textbooks and mathematical writing.

Translation

The translation covers SimpleSpeak and ClearSpeak, mathematical intent definitions, overview and navigation, and common and extended Unicode symbols, including MathType and MathJax mappings. It includes arithmetic, algebra, calculus, geometry, linear algebra, sets, intervals, units, and common chemistry notation.

The main terminology choices include the following.

  • Fractions use denominator-first order, such as 2 分之 1. Powers and roots use x 的 n 次方 and x 的 n 次方根.
  • Set relations follow Mainland Chinese textbook usage. Strict and inclusive containment relations keep distinct readings, and element membership uses “元素”.
  • Intervals use terms such as 左闭右开区间.
  • Geometry uses terms such as 相似于, 全等于, and 圆 O. Dot-product intent is read as 数量积, and cross-product intent as 叉积.
  • ± and ∓ are read as 正或负 and 负或正. Between operands, they are read as 加或减 and 减或加.
  • Greek letters retain MathCAT’s English core names, with Chinese modifiers for variants.
  • Uppercase indicators are handled through MathCAT’s capitalization preferences so NVDA controls whether uppercase is spoken.

Readings also depend on context. A bare ∆ is 增量, while an explicit laplacian intent gives 拉普拉斯算子. ⊙O is read as 圆 O, while a generic a ⊙ b uses 带圈点运算符. A bare ◦ is read as 空心圆点, while f ∘ g is read as function composition. Ambiguous symbols such as ∼ and □ keep a general reading when the expression does not establish a more specific meaning.

The change also restores U+1F8D1 in the shared chemical-arrow matching rule and adds MathJax 4 arrow variants to the Simplified Chinese and Japanese chemistry rules.

References

Testing

The Simplified Chinese suite contains 98 tests covering core behavior, textbook terminology, complete formulas, Unicode and MathType symbols, navigation, capitalization preferences, and locale selection.

  • All 98 Simplified Chinese tests pass.
  • The translation audit checks all 12 rule files and reports no untranslated text, missing definitions, or definition type mismatches.
  • Rule include paths and patch whitespace checks pass.

@github-actions

github-actions Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor
Linux library size: 0.60 MiB (0.00%)
Revision Release liblibmathcat.so
Base (6e9817f) 0.60 MiB (625,032 bytes)
PR (45554bb) 0.60 MiB (625,032 bytes)
Change 0 bytes (0.00%)

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

Comment thread src/shim_filesystem.rs Resolved
@NSoiffer

Copy link
Copy Markdown
Collaborator

I made a change to MathCAT to accept some more arrow notations that are produced by MathJax 4. That may be the cause of this failure

---- Languages::zh::cn::core::chemical_equilibrium_arrows_use_standard_reaction_terms stdout ----
Error: MathCAT crash! Please report the following information: 'MathCAT crash! Please report the following information: 'assertion `left == right` failed: 
test with zh-cn/SimpleSpeak failed  left: "大写 h, 可逆反应 大写 i"
 right: "大写 h; 上方为长向右鱼叉箭头,下方为长向左鱼叉箭头; 大写 i"' at tests/common/mod.rs:55:0' at tests/common/mod.rs:61:0

Can you look at it and see if the japanese files need updating.

@cary-rowen

Copy link
Copy Markdown
Contributor Author

Fixed in 45554bb. Restored U+1F8D1 in the shared arrow rule and updated both Chinese and Japanese rules for the MathJax 4 arrow variants.

@NSoiffer

Copy link
Copy Markdown
Collaborator

I made a typo and meant "Chinease", not Japanease (I had just finished a review of Japanease). Anyway, thanks for that update also.

@NSoiffer
NSoiffer merged commit 4c20696 into daisy:main Nov 20, 2026
14 checks passed
@github-project-automation github-project-automation Bot moved this from Triage to Done in MathCAT Project Board Nov 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants