Skip to content
This repository has been archived by the owner on Feb 25, 2023. It is now read-only.

Commit

Permalink
Update valid-dictionary1 data (#1841)
Browse files Browse the repository at this point in the history
* Add example definitions for pronunciation metadata

* Update counts

* Update tests
  • Loading branch information
toasted-nutbread authored Jul 18, 2021
1 parent 637d4a2 commit 40cdb4f
Show file tree
Hide file tree
Showing 6 changed files with 1,646 additions and 3 deletions.
175 changes: 175 additions & 0 deletions test/data/anki-note-builder-test-results.json

Large diffs are not rendered by default.

7 changes: 6 additions & 1 deletion test/data/dictionaries/valid-dictionary1/term_bank_1.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@
["読む", "よむ", "vt", "v5", 100, ["to read"], 6, "P E1"],
["強み", "つよみ", "n", "n", 90, ["strong point"], 7, "P E1"],
["テキスト", "テキスト", "n", "n", 1, ["text definition 1", {"type": "text", "text": "text definition 2"}], 8, "P E1"],
["お手前", "おてまえ", "n", "n", 1, ["otemae definition"], 9, ""],
["番号", "ばんごう", "n", "n", 1, ["bangou definition"], 10, ""],
["中腰", "ちゅうごし", "n", "n", 1, ["chuugoshi definition"], 11, ""],
["所業", "しょぎょう", "n", "n", 1, ["shogyouu definition"], 12, ""],
["土木工事", "どぼくこうじ", "n", "n", 1, ["dobokukouji definition"], 13, ""],
[
"内容", "ないよう", "n", "n", 35,
[
Expand Down Expand Up @@ -134,6 +139,6 @@
]}
]}
],
9, "P E1"
100, "P E1"
]
]
35 changes: 35 additions & 0 deletions test/data/translator-test-inputs.json
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,41 @@
"mode": "merge",
"text": "うちこむ",
"options": "default"
},
{
"name": "Test pronunciations 1",
"func": "findTerms",
"mode": "split",
"text": "お手前",
"options": "default"
},
{
"name": "Test pronunciations 2",
"func": "findTerms",
"mode": "split",
"text": "番号",
"options": "default"
},
{
"name": "Test pronunciations 3",
"func": "findTerms",
"mode": "split",
"text": "中腰",
"options": "default"
},
{
"name": "Test pronunciations 4",
"func": "findTerms",
"mode": "split",
"text": "所業",
"options": "default"
},
{
"name": "Test pronunciations 5",
"func": "findTerms",
"mode": "split",
"text": "土木工事",
"options": "default"
}
]
}
Loading

0 comments on commit 40cdb4f

Please sign in to comment.