Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
761 changes: 761 additions & 0 deletions Rules/Languages/zh/ClearSpeak_Rules.yaml

Large diffs are not rendered by default.

56 changes: 56 additions & 0 deletions Rules/Languages/zh/SharedRules/calculus.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
---

- name: laplacian
tag: laplacian
match: "count(*) <= 1" # can be on ∇^2 or on enclosing mrow
replace:
- T: "拉普拉斯算子" # phrase('laplacian' of x)
- test:
if: "count(*) = 1"
then:
- test:
if: "$Verbosity!='Terse'"
then: [T: ""] # phrase(function 'of' one variable) -- note OneCore voices spell out "div"
- test:
if: "not(IsNode(*[1], 'leaf'))"
then: [pause: short]
- x: "*[1]"

- name: divergence
tag: divergence
match: "count(*) = 1"
replace:
- test:
if: "$Verbosity='Terse'"
then: [T: "散度"] # phrase('div' is short for divergence)
else: [T: "散度"] # phrase('divergence of' this function from the mean)
- test:
if: "not(IsNode(*[1], 'leaf'))"
then: [pause: short]
- x: "*[1]"

- name: curl
tag: curl
match: "count(*) = 1"
replace:
- T: "旋度" # phrase(the 'curl of' a field)
- test:
if: "$Verbosity!='Terse'"
then: [T: ""] # phrase(function 'of' one variable)
- test:
if: "not(IsNode(*[1], 'leaf'))"
then: [pause: short]
- x: "*[1]"

- name: gradient
tag: gradient
match: "count(*) = 1"
replace:
- test:
if: "$Verbosity!='Terse'"
then: [T: "梯度"] # phrase(the hill has a 'gradient of' five percent)
else: [T: "梯度"] # use the standard Chinese mathematical term in terse mode too
- test:
if: "not(IsNode(*[1], 'leaf'))"
then: [pause: short]
- x: "*[1]"
Loading