Skip to content

Commit 111e7a6

Browse files
authored
More fixes german (#538)
* more fixes German * translate some stuff * fix translation errors * fix translation errors * fix translation errors * "Mitglied" ist not a proper set operator in German * more fixes * more fixes
1 parent 1797adc commit 111e7a6

8 files changed

Lines changed: 301 additions & 267 deletions

File tree

AGENTS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ but add common mistakes of AI agents here instead.
1717
## Translation Conventions
1818
- `t:` means untranslated or unverified.
1919
- `T:` means translated and verified.
20+
- don't demote from `T:` to `t:` unless instructed to.
2021
- tool for comparing rules across languages: `uv run --project PythonScripts audit-translations <language-code>`
2122

2223
## Python Tooling (`uv`)

Rules/Languages/de/SharedRules/general.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -668,8 +668,8 @@
668668
- T: "Zeile" # phrase(the 1 by 4 'row' matrix)
669669
- test:
670670
if: "$ClearSpeak_Matrix = 'Vector' or $ClearSpeak_Matrix = 'EndVector'"
671-
then: [T: "die 1 mal"] # phrase('the 1 by' 2 row 'vector')
672-
else: [T: "die 1 mal"] # phrase('the 1 by' 2 'matrix')
671+
then: [T: "vektor"] # phrase('the 1 by' 2 row 'vector')
672+
else: [T: "matrix"] # phrase('the 1 by' 2 'matrix')
673673
- pause: long
674674
- x: "*/*"
675675
- test:

Rules/Languages/de/navigate.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,12 +124,12 @@
124124
- test: # in postscripts -- base shifts by one
125125
if: "$NumPrecedingSiblings mod 2 = 0"
126126
then: [T: "index"] # phrase(x with 'subscript' 2)
127-
else: [T: "superscript"] # phrase(x with 'superscript' 2)
127+
else: [T: "hochgestellt"] # phrase(x with 'superscript' 2)
128128
else:
129129
- test:
130130
if: "$NumPrecedingSiblings mod 2 = 0"
131-
then: [T: "pre-superscript"] # phrase(x with 'pre-superscript' 2)
132-
else: [T: "pre-subscript"] # phrase(x with 'pre-subscript' 2)
131+
then: [T: "prä-hochgestellt"] # phrase(x with 'pre-superscript' 2)
132+
else: [T: "prä-index"] # phrase(x with 'pre-subscript' 2)
133133
- pause: "medium"
134134

135135
# Rules for speaking what happens when moving into or out of a notation
@@ -761,7 +761,7 @@
761761
- test:
762762
if: "$NavVerbosity = 'Verbose'"
763763
then:
764-
- T: "übergehen sie zur vorherigen spalte" # phrase('move to previous column' to the previous row in the table)
764+
- T: "zur vorherigen spalte" # phrase('move to previous column' in the table)
765765
- pause: medium
766766
- T: "keine vorherige spalte" # phrase('no previous column' in the table)
767767
- set_variables: [SpeakExpression: "'false'"]

Rules/Languages/de/unicode-full.yaml

Lines changed: 256 additions & 256 deletions
Large diffs are not rendered by default.

Rules/Languages/de/unicode.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
else: [T: "ausrufezeichen"] # 0x21 (en: 'exclamation point')
4444
else: [T: "fakultät"] # 0x21 (en: 'factorial')
4545

46-
- "\"": [T: "backslash"] # 0x22 (en: 'quotation mark') #backslash??
46+
- "\"": [T: "anführungszeichen"] # 0x22 (en: 'quotation mark')
4747
- "#": [T: "nummernzeichen"] # 0x23 (en: 'number')
4848
- "$": [T: "dollar"] # 0x24 (en: 'dollars')
4949
- "%": [T: "prozent"] # 0x25 (en: 'percent')

tests/Languages/de/ClearSpeak/symbols_and_adornments.rs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,14 @@ fn multiplication_cross() -> Result<()> {
3131

3232
}
3333

34+
// Added after a rule review found that `"` was incorrectly spoken as `backslash` in German.
35+
#[test]
36+
fn quotation_mark() -> Result<()> {
37+
let expr = "<math><mo>&quot;</mo></math>";
38+
test("de", "ClearSpeak", expr, "anführungszeichen")?;
39+
Ok(())
40+
}
41+
3442
#[test]
3543
fn ellipses_auto_start() -> Result<()> {
3644
let expr = "<math>
@@ -386,4 +394,4 @@ fn supset() -> Result<()> {
386394
"groß a ist eine obermenge von, groß b")?;
387395
return Ok(());
388396

389-
}
397+
}

tests/Languages/de/mtable.rs

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,31 @@ fn single_line_with_label() -> Result<()> {
5252
Ok(())
5353
}
5454

55+
// Added after a rule review found the German 1xN row-matrix rule repeated `die 1 mal` instead of saying `matrix`/`vektor`.
56+
#[test]
57+
fn matrix_1x2_row_regression() -> Result<()> {
58+
let expr = "
59+
<math xmlns='http://www.w3.org/1998/Math/MathML'>
60+
<mrow>
61+
<mrow><mo>(</mo>
62+
<mtable>
63+
<mtr>
64+
<mtd>
65+
<mn>3</mn>
66+
</mtd>
67+
<mtd>
68+
<mn>5</mn>
69+
</mtd>
70+
</mtr>
71+
</mtable>
72+
<mo>)</mo></mrow></mrow>
73+
</math>
74+
";
75+
test("de", "ClearSpeak", expr, "die 1 mal 2 Zeile matrix; 3, 5")?;
76+
test("de", "SimpleSpeak", expr, "die 1 mal 2 Zeile matrix; 3, 5")?;
77+
Ok(())
78+
}
79+
5580

5681
/*
5782
#[test]

tests/Languages/de/shared.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ fn modified_vars() -> Result<()> {
2121
<mover> <mi>t</mi> <mo>→</mo> </mover>
2222
</mrow> </math>";
2323
test("de", "SimpleSpeak", expr,
24-
"a gravis akzent; b tilde, c brevis, b combining caron; c gravis akzent; plus r caron plus; x punkt, y Punkt oberhalb; z diaeresis, u dreifacher punkt; v vierfacher punkt; plus x zirkumflex, plus vektor t")?;
25-
return Ok(());
24+
"a gravis akzent; b tilde, c brevis, b kombinierendes Caron; c gravis akzent; plus r caron plus; x punkt, y Punkt oberhalb; z diaeresis, u dreifacher punkt; v vierfacher punkt; plus x zirkumflex, plus vektor t")?;
25+
Ok(())
2626

2727
}
2828

@@ -521,4 +521,4 @@ fn literal_intent_property_with_name() -> Result<()> {
521521
return Ok(());
522522
523523
}
524-
*/
524+
*/

0 commit comments

Comments
 (0)