Skip to content
Closed
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
13 changes: 0 additions & 13 deletions Rules/Languages/en/ClearSpeak_Rules.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -153,19 +153,6 @@
- x: "*[1]"
- x: "ToOrdinal(*[2], true(), $IsPlural)" # extra args specify fractional ordinal and whether it is plural

- name: common-fraction-mixed-number
tag: fraction
match:
- "preceding-sibling::*[1][self::m:mo][.='⁤'] and" # preceding element is invisible plus
- "($ClearSpeak_Fractions='Auto' or $ClearSpeak_Fractions='Ordinal' or $ClearSpeak_Fractions='EndFrac') and"
- "*[1][self::m:mn][not(contains(., '.')) and ($ClearSpeak_Fractions='Ordinal' or text()<20)] and"
- "*[2][self::m:mn][not(contains(., '.')) and ($ClearSpeak_Fractions='Ordinal' or (2<= text() and text()<=10))]"
variables: [IsPlural: "*[1]!=1"]
replace:
- x: "*[1]"
- x: "ToOrdinal(*[2], true(), $IsPlural)" # extra args specify fractional ordinal and whether it is plural


- name: fraction-over-simple
tag: fraction
match:
Expand Down
Loading