Skip to content
Draft
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
8 changes: 4 additions & 4 deletions Rules/Languages/ja/SharedRules/default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@
- t: "ルート"
- test:
if: "$Verbosity!='Terse'"
then: [t: ""] # phrase("the root 'of' x")
then: [t: "オブ"] # phrase("the root 'of' x")
- x: "*[1]"
- pause: short
- test:
Expand All @@ -145,7 +145,7 @@
- t: "根指数" # phrase("the 'root with index' 3 of 5")
- x: "*[1]"
- pause: short
- t: "" # phrase("the root 'of' x")
- t: "オブ" # phrase("the root 'of' x")
- x: "*[2]"
- pause: short
- test:
Expand Down Expand Up @@ -636,7 +636,7 @@
match: .
replace:
- x: "*[1]"
- t: "" # phrase(the sine 'of' x )
- t: "オブ" # phrase(the sine 'of' x )
- pause: auto
- x: "*[position() > 1]"

Expand Down Expand Up @@ -736,7 +736,7 @@
- test:
if: "$Verbosity != 'Terse' and not(contains(@data-intent-property, ':literal:')) and
not(count(*)=2 and (IsInDefinition(*[1], 'TrigFunctionNames') or IsInDefinition(name(.), 'TerseFunctionNames')) and IsNode(*[2], 'simple'))"
then: [t: "", pause: auto] # phrase(sine 'of' 5)
then: [t: "オブ", pause: auto] # phrase(sine 'of' 5)
- insert:
nodes: "*"
replace:
Expand Down
2 changes: 1 addition & 1 deletion Rules/Languages/ja/unicode.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@
preceding-sibling::*[1][IsInDefinition(., 'GeometryShapes')] or
(@data-changed='added' and ancestor-or-self::*[contains(@data-intent-property, ':literal:')])
)"
then: [t: ""]
then: [t: "オブ"]
- "⁢": [t: ""] # 0x2062
- "⁣": [t: ""] # 0x2063
- "⁤": [t: "および"] # 0x2064
Expand Down
4 changes: 2 additions & 2 deletions tests/Languages/ja/ja.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ fn negative_number() -> Result<()> {
fn gradient() -> Result<()> {
let expr = "<math><mo>&#x2207;</mo><mi mathvariant='normal'>F</mi></math>";
test_prefs("ja", "SimpleSpeak", vec![("Verbosity", "Terse")], expr, "デル 大文字 f")?;
test_prefs("ja", "SimpleSpeak", vec![("Verbosity", "Verbose")], expr, "勾配 大文字 f")?;
test_prefs("ja", "SimpleSpeak", vec![("Verbosity", "Verbose")], expr, "勾配 オブ 大文字 f")?;
return Ok(());
}

Expand Down Expand Up @@ -195,7 +195,7 @@ fn subscript() -> Result<()> {
#[test]
fn sine_function() -> Result<()> {
let expr = "<math><mi>sin</mi><mo>&#x2061;</mo><mi>x</mi></math>";
test("ja", "SimpleSpeak", expr, "サイン x")?;
test("ja", "SimpleSpeak", expr, "サイン オブ x")?;
return Ok(());
}

Expand Down