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
1 change: 1 addition & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ but add common mistakes of AI agents here instead.
## Translation Conventions
- `t:` means untranslated or unverified.
- `T:` means translated and verified.
- don't demote from `T:` to `t:` unless instructed to.
- tool for comparing rules across languages: `uv run --project PythonScripts audit-translations <language-code>`

## Python Tooling (`uv`)
Expand Down
4 changes: 2 additions & 2 deletions Rules/Languages/de/SharedRules/general.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -670,8 +670,8 @@
- T: "Zeile" # phrase(the 1 by 4 'row' matrix)
- test:
if: "$ClearSpeak_Matrix = 'Vector' or $ClearSpeak_Matrix = 'EndVector'"
then: [T: "die 1 mal"] # phrase('the 1 by' 2 row 'vector')
else: [T: "die 1 mal"] # phrase('the 1 by' 2 'matrix')
then: [T: "vektor"] # phrase('the 1 by' 2 row 'vector')
else: [T: "matrix"] # phrase('the 1 by' 2 'matrix')
- pause: long
- x: "*/*"
- test:
Expand Down
8 changes: 4 additions & 4 deletions Rules/Languages/de/navigate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -124,12 +124,12 @@
- test: # in postscripts -- base shifts by one
if: "$NumPrecedingSiblings mod 2 = 0"
then: [T: "index"] # phrase(x with 'subscript' 2)
else: [T: "superscript"] # phrase(x with 'superscript' 2)
else: [T: "hochgestellt"] # phrase(x with 'superscript' 2)
else:
- test:
if: "$NumPrecedingSiblings mod 2 = 0"
then: [T: "pre-superscript"] # phrase(x with 'pre-superscript' 2)
else: [T: "pre-subscript"] # phrase(x with 'pre-subscript' 2)
then: [T: "prä-hochgestellt"] # phrase(x with 'pre-superscript' 2)
else: [T: "prä-index"] # phrase(x with 'pre-subscript' 2)
- pause: "medium"

# Rules for speaking what happens when moving into or out of a notation
Expand Down Expand Up @@ -761,7 +761,7 @@
- test:
if: "$NavVerbosity = 'Verbose'"
then:
- T: "übergehen sie zur vorherigen spalte" # phrase('move to previous column' to the previous row in the table)
- T: "zur vorherigen spalte" # phrase('move to previous column' in the table)
- pause: medium
- T: "keine vorherige spalte" # phrase('no previous column' in the table)
- set_variables: [SpeakExpression: "'false'"]
Expand Down
512 changes: 256 additions & 256 deletions Rules/Languages/de/unicode-full.yaml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Rules/Languages/de/unicode.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
else: [T: "ausrufezeichen"] # 0x21 (en: 'exclamation point')
else: [T: "fakultät"] # 0x21 (en: 'factorial')

- "\"": [T: "backslash"] # 0x22 (en: 'quotation mark') #backslash??
- "\"": [T: "anführungszeichen"] # 0x22 (en: 'quotation mark')
- "#": [T: "nummernzeichen"] # 0x23 (en: 'number')
- "$": [T: "dollar"] # 0x24 (en: 'dollars')
- "%": [T: "prozent"] # 0x25 (en: 'percent')
Expand Down
10 changes: 9 additions & 1 deletion tests/Languages/de/ClearSpeak/symbols_and_adornments.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,14 @@ fn multiplication_cross() -> Result<()> {

}

// Added after a rule review found that `"` was incorrectly spoken as `backslash` in German.
#[test]
fn quotation_mark() -> Result<()> {
let expr = "<math><mo>&quot;</mo></math>";
test("de", "ClearSpeak", expr, "anführungszeichen")?;
Ok(())
}

#[test]
fn ellipses_auto_start() -> Result<()> {
let expr = "<math>
Expand Down Expand Up @@ -386,4 +394,4 @@ fn supset() -> Result<()> {
"groß a ist eine obermenge von, groß b")?;
return Ok(());

}
}
25 changes: 25 additions & 0 deletions tests/Languages/de/mtable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,31 @@ fn single_line_with_label() -> Result<()> {
Ok(())
}

// Added after a rule review found the German 1xN row-matrix rule repeated `die 1 mal` instead of saying `matrix`/`vektor`.
#[test]
fn matrix_1x2_row_regression() -> Result<()> {
let expr = "
<math xmlns='http://www.w3.org/1998/Math/MathML'>
<mrow>
<mrow><mo>(</mo>
<mtable>
<mtr>
<mtd>
<mn>3</mn>
</mtd>
<mtd>
<mn>5</mn>
</mtd>
</mtr>
</mtable>
<mo>)</mo></mrow></mrow>
</math>
";
test("de", "ClearSpeak", expr, "die 1 mal 2 Zeile matrix; 3, 5")?;
test("de", "SimpleSpeak", expr, "die 1 mal 2 Zeile matrix; 3, 5")?;
Ok(())
}


/*
#[test]
Expand Down
6 changes: 3 additions & 3 deletions tests/Languages/de/shared.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ fn modified_vars() -> Result<()> {
<mover> <mi>t</mi> <mo>→</mo> </mover>
</mrow> </math>";
test("de", "SimpleSpeak", expr,
"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")?;
return Ok(());
"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")?;
Ok(())

}

Expand Down Expand Up @@ -521,4 +521,4 @@ fn literal_intent_property_with_name() -> Result<()> {
return Ok(());

}
*/
*/
Loading