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/definitions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"minus": "infix=minus || prefix=negativ",
"plus": "infix=plus || prefix=positiv",
"real-part": "function=der reale teil",
"transpose": "postfix=transponieren || function=transponieren",
"transpose": "postfix=transponiert || function=die Transponierte",
"magnitude": "function=; Norm: Norm: Norm; Ende Norm",
"norm": "function=; norm: norm: norm; ende norm",
"trace": "function=; spur : spur: die spur; ende spur",
Expand Down
12 changes: 12 additions & 0 deletions tests/Languages/de/shared.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,18 @@
use crate::common::*;
use anyhow::Result;

#[test]
fn transpose_uses_grammatical_german_forms() -> Result<()> {
// A superscript T uses the participle, while a function intent names the transpose.
let postfix = "<math><msup><mi>A</mi><mi>T</mi></msup></math>";
test("de", "ClearSpeak", postfix, "groß a transponiert")?;
test("de", "SimpleSpeak", postfix, "groß a transponiert")?;

let function = "<math><mrow intent='transpose:function($matrix)'><mi arg='matrix'>A</mi></mrow></math>";
test("de", "ClearSpeak", function, "die Transponierte von groß a")?;
Ok(())
}

#[test]
fn ordinary_integer_powers() -> Result<()> {
// Ordinary integer exponents use the idiomatic German "hoch" construction.
Expand Down
Loading