Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
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
2 changes: 1 addition & 1 deletion Rules/Languages/es/SharedRules/general.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@
IfThenElse(parent::m:power, ancestor::*[2][self::m:mrow],
IfThenElse(parent::m:fraction and not(preceding-sibling::*), ancestor::*[2][self::m:mrow],
IfThenElse(parent::m:power[parent::m:fraction and not(preceding-sibling::*)], ancestor::*[3][self::m:mrow], false()) ) ) )"
- IsSingular: "(not(DEBUG($MRowForCoefficient)) and parent::*[name(.)!='skip-super' or *[1][.=1]]) or
- IsSingular: "(not($MRowForCoefficient) and parent::*[name(.)!='skip-super' or *[1][.=1]]) or
($MRowForCoefficient and $MRowForCoefficient[(count(*) = 3 and *[1][self::m:mn and .=1] and *[2]='\u2062')])"
- Prefix: "''"
- Word: "''"
Expand Down
2 changes: 1 addition & 1 deletion Rules/Languages/fi/SharedRules/general.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@
IfThenElse(parent::m:power, ancestor::*[2][self::m:mrow],
IfThenElse(parent::m:fraction and not(preceding-sibling::*), ancestor::*[2][self::m:mrow],
IfThenElse(parent::m:power[parent::m:fraction and not(preceding-sibling::*)], ancestor::*[3][self::m:mrow], false()) ) ) )"
- IsSingular: "(not(DEBUG($MRowForCoefficient)) and parent::*[name(.)!='skip-super' or *[1][.=1]]) or
- IsSingular: "(not($MRowForCoefficient) and parent::*[name(.)!='skip-super' or *[1][.=1]]) or
($MRowForCoefficient and $MRowForCoefficient[(count(*) = 3 and *[1][self::m:mn and .=1] and *[2]='\u2062')])"
- Prefix: "''"
- Word: "''"
Expand Down
2 changes: 1 addition & 1 deletion Rules/Languages/id/SharedRules/general.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@
IfThenElse(parent::m:power, ancestor::*[2][self::m:mrow],
IfThenElse(parent::m:fraction and not(preceding-sibling::*), ancestor::*[2][self::m:mrow],
IfThenElse(parent::m:power[parent::m:fraction and not(preceding-sibling::*)], ancestor::*[3][self::m:mrow], false()) ) ) )"
- IsSingular: "(not(DEBUG($MRowForCoefficient)) and parent::*[name(.)!='skip-super' or *[1][.=1]]) or
- IsSingular: "(not($MRowForCoefficient) and parent::*[name(.)!='skip-super' or *[1][.=1]]) or
($MRowForCoefficient and $MRowForCoefficient[(count(*) = 3 and *[1][self::m:mn and .=1] and *[2]='\u2062')])"

- Prefix: "''"
Expand Down
Loading
Loading