Skip to content
Merged
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
2 changes: 1 addition & 1 deletion Rules/Languages/de/ClearSpeak_Rules.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
if: "*[2][self::m:mi][string-length(.)=1]"
then:
- x: "*[2]"
- pronounce: [text: "-th", ipa: "θ", sapi5: "th", eloquence: "T"]
- pronounce: [text: "-te", ipa: "te", sapi5: "te", eloquence: "T"]
else: [x: "*[2]"]
- T: "wurzel"
- test:
Expand Down
2 changes: 1 addition & 1 deletion Rules/Languages/de/SimpleSpeak_Rules.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
if: "*[2][self::m:mi][string-length(.)=1]"
then:
- x: "*[2]"
- pronounce: [text: "-th", ipa: "θ", sapi5: "th", eloquence: "T"]
- pronounce: [text: "-te", ipa: "te", sapi5: "te", eloquence: "T"]
else: [x: "*[2]"]
- T: "wurzel" # phrase(the square 'root' of)
- test:
Expand Down
14 changes: 11 additions & 3 deletions tests/Languages/de/ClearSpeak/mroot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,17 +119,25 @@ fn ordinal_root() -> Result<()> {
}


/* // should have n-te wurze
#[test]
fn simple_mi_root() -> Result<()> {
fn variable_root_index_uses_german_ordinal_suffix() -> Result<()> {
// A variable root index uses the German ordinal suffix in both speech styles.
let expr = "<math>
<mroot> <mi>x</mi> <mi>n</mi> </mroot>
</math>";
test("de", "ClearSpeak", expr, "die n-th wurzel von x")?;
test("de", "ClearSpeak", expr, "die n-te wurzel von x")?;
test("de", "SimpleSpeak", expr, "die n-te wurzel von x")?;

let expr = "<math>
<mroot> <mi>x</mi> <mi>k</mi> </mroot>
</math>";
test("de", "ClearSpeak", expr, "die k-te wurzel von x")?;
test("de", "SimpleSpeak", expr, "die k-te wurzel von x")?;
return Ok(());

}

/*
#[test]
fn mroot_simple_pos_end_root() -> Result<()> {
let expr = "<math>
Expand Down
Loading