summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKuuuube <61125188+Kuuuube@users.noreply.github.com>2024-02-08 06:54:30 -0500
committerGitHub <noreply@github.com>2024-02-08 11:54:30 +0000
commit3486c0a96c477d1d5ec66c947bb7e94b44c8554a (patch)
tree60cc89306c843f76431fbaa0597879adc1b2b9c9
parentd0eb43716b36bd770950485d806531628de9d277 (diff)
Add cloze-body-kana handlebar (#650)
* Add cloze-body-kana handlebar * Convert if else to ternary
-rw-r--r--ext/data/templates/default-anki-field-templates.handlebars4
-rw-r--r--ext/js/data/anki-template-util.js1
-rw-r--r--ext/js/data/sandbox/anki-note-data-creator.js12
-rw-r--r--test/data/anki-note-builder-test-results.json96
-rw-r--r--test/data/translator-test-results-note-data1.json98
-rw-r--r--types/ext/anki-templates.d.ts1
6 files changed, 211 insertions, 1 deletions
diff --git a/ext/data/templates/default-anki-field-templates.handlebars b/ext/data/templates/default-anki-field-templates.handlebars
index 63613acf..2720b75b 100644
--- a/ext/data/templates/default-anki-field-templates.handlebars
+++ b/ext/data/templates/default-anki-field-templates.handlebars
@@ -160,6 +160,10 @@
{{~#if definition.cloze}}{{definition.cloze.body}}{{/if~}}
{{/inline}}
+{{#*inline "cloze-body-kana"}}
+ {{~#if definition.cloze}}{{definition.cloze.bodyKana}}{{/if~}}
+{{/inline}}
+
{{#*inline "cloze-suffix"}}
{{~#if definition.cloze}}{{definition.cloze.suffix}}{{/if~}}
{{/inline}}
diff --git a/ext/js/data/anki-template-util.js b/ext/js/data/anki-template-util.js
index 686b4af8..446c0c71 100644
--- a/ext/js/data/anki-template-util.js
+++ b/ext/js/data/anki-template-util.js
@@ -29,6 +29,7 @@ export function getStandardFieldMarkers(type) {
'clipboard-image',
'clipboard-text',
'cloze-body',
+ 'cloze-body-kana',
'cloze-prefix',
'cloze-suffix',
'conjugation',
diff --git a/ext/js/data/sandbox/anki-note-data-creator.js b/ext/js/data/sandbox/anki-note-data-creator.js
index f43595b6..d0456b0f 100644
--- a/ext/js/data/sandbox/anki-note-data-creator.js
+++ b/ext/js/data/sandbox/anki-note-data-creator.js
@@ -17,7 +17,7 @@
*/
import {getDisambiguations, getGroupedPronunciations, getPronunciationsOfType, getTermFrequency, groupTermTags} from '../../dictionary/dictionary-data-util.js';
-import {distributeFurigana} from '../../language/ja/japanese.js';
+import {distributeFurigana, distributeFuriganaInflected} from '../../language/ja/japanese.js';
/**
* Creates a compatibility representation of the specified data.
@@ -846,9 +846,13 @@ function convertPitchTag({name, category, content, order, score, dictionaries, r
*/
function getCloze(dictionaryEntry, context) {
let originalText = '';
+ let term = '';
+ let reading = '';
switch (dictionaryEntry.type) {
case 'term':
{
+ term = dictionaryEntry.headwords[0].term;
+ reading = dictionaryEntry.headwords[0].reading;
const primarySource = getPrimarySource(dictionaryEntry);
if (primarySource !== null) { originalText = primarySource.originalText; }
}
@@ -867,10 +871,16 @@ function getCloze(dictionaryEntry, context) {
if (typeof text !== 'string') { text = ''; }
if (typeof offset !== 'number') { offset = 0; }
+ const textSegments = [];
+ for (const {text: text2, reading: reading2} of distributeFuriganaInflected(term, reading, text.substring(offset, offset + originalText.length))) {
+ textSegments.push(reading2.length > 0 ? reading2 : text2);
+ }
+
return {
sentence: text,
prefix: text.substring(0, offset),
body: text.substring(offset, offset + originalText.length),
+ bodyKana: textSegments.join(''),
suffix: text.substring(offset + originalText.length)
};
}
diff --git a/test/data/anki-note-builder-test-results.json b/test/data/anki-note-builder-test-results.json
index 8dbe27ee..7dda6200 100644
--- a/test/data/anki-note-builder-test-results.json
+++ b/test/data/anki-note-builder-test-results.json
@@ -73,6 +73,7 @@
"clipboard-image": "",
"clipboard-text": "",
"cloze-body": "打",
+ "cloze-body-kana": "だ",
"cloze-prefix": "cloze-prefix",
"cloze-suffix": "cloze-suffix",
"conjugation": "",
@@ -109,6 +110,7 @@
"clipboard-image": "",
"clipboard-text": "",
"cloze-body": "打",
+ "cloze-body-kana": "ダース",
"cloze-prefix": "cloze-prefix",
"cloze-suffix": "cloze-suffix",
"conjugation": "",
@@ -150,6 +152,7 @@
"clipboard-image": "",
"clipboard-text": "",
"cloze-body": "打つ",
+ "cloze-body-kana": "うつ",
"cloze-prefix": "cloze-prefix",
"cloze-suffix": "cloze-suffix",
"conjugation": "",
@@ -186,6 +189,7 @@
"clipboard-image": "",
"clipboard-text": "",
"cloze-body": "打つ",
+ "cloze-body-kana": "ぶつ",
"cloze-prefix": "cloze-prefix",
"cloze-suffix": "cloze-suffix",
"conjugation": "",
@@ -222,6 +226,7 @@
"clipboard-image": "",
"clipboard-text": "",
"cloze-body": "打つ",
+ "cloze-body-kana": "うつ",
"cloze-prefix": "cloze-prefix",
"cloze-suffix": "cloze-suffix",
"conjugation": "",
@@ -258,6 +263,7 @@
"clipboard-image": "",
"clipboard-text": "",
"cloze-body": "打つ",
+ "cloze-body-kana": "ぶつ",
"cloze-prefix": "cloze-prefix",
"cloze-suffix": "cloze-suffix",
"conjugation": "",
@@ -294,6 +300,7 @@
"clipboard-image": "",
"clipboard-text": "",
"cloze-body": "打",
+ "cloze-body-kana": "だ",
"cloze-prefix": "cloze-prefix",
"cloze-suffix": "cloze-suffix",
"conjugation": "",
@@ -330,6 +337,7 @@
"clipboard-image": "",
"clipboard-text": "",
"cloze-body": "打",
+ "cloze-body-kana": "ダース",
"cloze-prefix": "cloze-prefix",
"cloze-suffix": "cloze-suffix",
"conjugation": "",
@@ -371,6 +379,7 @@
"clipboard-image": "",
"clipboard-text": "",
"cloze-body": "打ち込む",
+ "cloze-body-kana": "うちこむ",
"cloze-prefix": "cloze-prefix",
"cloze-suffix": "cloze-suffix",
"conjugation": "",
@@ -407,6 +416,7 @@
"clipboard-image": "",
"clipboard-text": "",
"cloze-body": "打ち込む",
+ "cloze-body-kana": "ぶちこむ",
"cloze-prefix": "cloze-prefix",
"cloze-suffix": "cloze-suffix",
"conjugation": "",
@@ -443,6 +453,7 @@
"clipboard-image": "",
"clipboard-text": "",
"cloze-body": "打ち込む",
+ "cloze-body-kana": "うちこむ",
"cloze-prefix": "cloze-prefix",
"cloze-suffix": "cloze-suffix",
"conjugation": "",
@@ -479,6 +490,7 @@
"clipboard-image": "",
"clipboard-text": "",
"cloze-body": "打ち込む",
+ "cloze-body-kana": "ぶちこむ",
"cloze-prefix": "cloze-prefix",
"cloze-suffix": "cloze-suffix",
"conjugation": "",
@@ -515,6 +527,7 @@
"clipboard-image": "",
"clipboard-text": "",
"cloze-body": "打ち",
+ "cloze-body-kana": "うち",
"cloze-prefix": "cloze-prefix",
"cloze-suffix": "cloze-suffix",
"conjugation": "masu stem",
@@ -551,6 +564,7 @@
"clipboard-image": "",
"clipboard-text": "",
"cloze-body": "打ち",
+ "cloze-body-kana": "ぶち",
"cloze-prefix": "cloze-prefix",
"cloze-suffix": "cloze-suffix",
"conjugation": "masu stem",
@@ -587,6 +601,7 @@
"clipboard-image": "",
"clipboard-text": "",
"cloze-body": "打ち",
+ "cloze-body-kana": "うち",
"cloze-prefix": "cloze-prefix",
"cloze-suffix": "cloze-suffix",
"conjugation": "masu stem",
@@ -623,6 +638,7 @@
"clipboard-image": "",
"clipboard-text": "",
"cloze-body": "打ち",
+ "cloze-body-kana": "ぶち",
"cloze-prefix": "cloze-prefix",
"cloze-suffix": "cloze-suffix",
"conjugation": "masu stem",
@@ -659,6 +675,7 @@
"clipboard-image": "",
"clipboard-text": "",
"cloze-body": "打",
+ "cloze-body-kana": "だ",
"cloze-prefix": "cloze-prefix",
"cloze-suffix": "cloze-suffix",
"conjugation": "",
@@ -695,6 +712,7 @@
"clipboard-image": "",
"clipboard-text": "",
"cloze-body": "打",
+ "cloze-body-kana": "ダース",
"cloze-prefix": "cloze-prefix",
"cloze-suffix": "cloze-suffix",
"conjugation": "",
@@ -736,6 +754,7 @@
"clipboard-image": "",
"clipboard-text": "",
"cloze-body": "画像",
+ "cloze-body-kana": "がぞう",
"cloze-prefix": "cloze-prefix",
"cloze-suffix": "cloze-suffix",
"conjugation": "",
@@ -777,6 +796,7 @@
"clipboard-image": "",
"clipboard-text": "",
"cloze-body": "だ",
+ "cloze-body-kana": "だ",
"cloze-prefix": "cloze-prefix",
"cloze-suffix": "cloze-suffix",
"conjugation": "",
@@ -818,6 +838,7 @@
"clipboard-image": "",
"clipboard-text": "",
"cloze-body": "ダース",
+ "cloze-body-kana": "ダース",
"cloze-prefix": "cloze-prefix",
"cloze-suffix": "cloze-suffix",
"conjugation": "",
@@ -859,6 +880,7 @@
"clipboard-image": "",
"clipboard-text": "",
"cloze-body": "うつ",
+ "cloze-body-kana": "うつ",
"cloze-prefix": "cloze-prefix",
"cloze-suffix": "cloze-suffix",
"conjugation": "",
@@ -895,6 +917,7 @@
"clipboard-image": "",
"clipboard-text": "",
"cloze-body": "うつ",
+ "cloze-body-kana": "うつ",
"cloze-prefix": "cloze-prefix",
"cloze-suffix": "cloze-suffix",
"conjugation": "",
@@ -936,6 +959,7 @@
"clipboard-image": "",
"clipboard-text": "",
"cloze-body": "ぶつ",
+ "cloze-body-kana": "ぶつ",
"cloze-prefix": "cloze-prefix",
"cloze-suffix": "cloze-suffix",
"conjugation": "",
@@ -972,6 +996,7 @@
"clipboard-image": "",
"clipboard-text": "",
"cloze-body": "ぶつ",
+ "cloze-body-kana": "ぶつ",
"cloze-prefix": "cloze-prefix",
"cloze-suffix": "cloze-suffix",
"conjugation": "",
@@ -1013,6 +1038,7 @@
"clipboard-image": "",
"clipboard-text": "",
"cloze-body": "うちこむ",
+ "cloze-body-kana": "うちこむ",
"cloze-prefix": "cloze-prefix",
"cloze-suffix": "cloze-suffix",
"conjugation": "",
@@ -1049,6 +1075,7 @@
"clipboard-image": "",
"clipboard-text": "",
"cloze-body": "うちこむ",
+ "cloze-body-kana": "うちこむ",
"cloze-prefix": "cloze-prefix",
"cloze-suffix": "cloze-suffix",
"conjugation": "",
@@ -1085,6 +1112,7 @@
"clipboard-image": "",
"clipboard-text": "",
"cloze-body": "うち",
+ "cloze-body-kana": "うち",
"cloze-prefix": "cloze-prefix",
"cloze-suffix": "cloze-suffix",
"conjugation": "masu stem",
@@ -1121,6 +1149,7 @@
"clipboard-image": "",
"clipboard-text": "",
"cloze-body": "うち",
+ "cloze-body-kana": "うち",
"cloze-prefix": "cloze-prefix",
"cloze-suffix": "cloze-suffix",
"conjugation": "masu stem",
@@ -1162,6 +1191,7 @@
"clipboard-image": "",
"clipboard-text": "",
"cloze-body": "ぶちこむ",
+ "cloze-body-kana": "ぶちこむ",
"cloze-prefix": "cloze-prefix",
"cloze-suffix": "cloze-suffix",
"conjugation": "",
@@ -1198,6 +1228,7 @@
"clipboard-image": "",
"clipboard-text": "",
"cloze-body": "ぶちこむ",
+ "cloze-body-kana": "ぶちこむ",
"cloze-prefix": "cloze-prefix",
"cloze-suffix": "cloze-suffix",
"conjugation": "",
@@ -1234,6 +1265,7 @@
"clipboard-image": "",
"clipboard-text": "",
"cloze-body": "ぶち",
+ "cloze-body-kana": "ぶち",
"cloze-prefix": "cloze-prefix",
"cloze-suffix": "cloze-suffix",
"conjugation": "masu stem",
@@ -1270,6 +1302,7 @@
"clipboard-image": "",
"clipboard-text": "",
"cloze-body": "ぶち",
+ "cloze-body-kana": "ぶち",
"cloze-prefix": "cloze-prefix",
"cloze-suffix": "cloze-suffix",
"conjugation": "masu stem",
@@ -1311,6 +1344,7 @@
"clipboard-image": "",
"clipboard-text": "",
"cloze-body": "がぞう",
+ "cloze-body-kana": "がぞう",
"cloze-prefix": "cloze-prefix",
"cloze-suffix": "cloze-suffix",
"conjugation": "",
@@ -1364,6 +1398,7 @@
"clipboard-image": "",
"clipboard-text": "",
"cloze-body": "打ち込む",
+ "cloze-body-kana": "うちこむ",
"cloze-prefix": "cloze-prefix",
"cloze-suffix": "cloze-suffix",
"conjugation": "",
@@ -1400,6 +1435,7 @@
"clipboard-image": "",
"clipboard-text": "",
"cloze-body": "打ち込む",
+ "cloze-body-kana": "ぶちこむ",
"cloze-prefix": "cloze-prefix",
"cloze-suffix": "cloze-suffix",
"conjugation": "",
@@ -1436,6 +1472,7 @@
"clipboard-image": "",
"clipboard-text": "",
"cloze-body": "打ち",
+ "cloze-body-kana": "うち",
"cloze-prefix": "cloze-prefix",
"cloze-suffix": "cloze-suffix",
"conjugation": "masu stem",
@@ -1472,6 +1509,7 @@
"clipboard-image": "",
"clipboard-text": "",
"cloze-body": "打ち",
+ "cloze-body-kana": "ぶち",
"cloze-prefix": "cloze-prefix",
"cloze-suffix": "cloze-suffix",
"conjugation": "masu stem",
@@ -1508,6 +1546,7 @@
"clipboard-image": "",
"clipboard-text": "",
"cloze-body": "打",
+ "cloze-body-kana": "だ",
"cloze-prefix": "cloze-prefix",
"cloze-suffix": "cloze-suffix",
"conjugation": "",
@@ -1544,6 +1583,7 @@
"clipboard-image": "",
"clipboard-text": "",
"cloze-body": "打",
+ "cloze-body-kana": "ダース",
"cloze-prefix": "cloze-prefix",
"cloze-suffix": "cloze-suffix",
"conjugation": "",
@@ -1585,6 +1625,7 @@
"clipboard-image": "",
"clipboard-text": "",
"cloze-body": "打ち込む",
+ "cloze-body-kana": "うちこむ",
"cloze-prefix": "cloze-prefix",
"cloze-suffix": "cloze-suffix",
"conjugation": "",
@@ -1621,6 +1662,7 @@
"clipboard-image": "",
"clipboard-text": "",
"cloze-body": "打ち",
+ "cloze-body-kana": "うち",
"cloze-prefix": "cloze-prefix",
"cloze-suffix": "cloze-suffix",
"conjugation": "masu stem",
@@ -1657,6 +1699,7 @@
"clipboard-image": "",
"clipboard-text": "",
"cloze-body": "打",
+ "cloze-body-kana": "だ",
"cloze-prefix": "cloze-prefix",
"cloze-suffix": "cloze-suffix",
"conjugation": "",
@@ -1693,6 +1736,7 @@
"clipboard-image": "",
"clipboard-text": "",
"cloze-body": "打",
+ "cloze-body-kana": "ダース",
"cloze-prefix": "cloze-prefix",
"cloze-suffix": "cloze-suffix",
"conjugation": "",
@@ -1734,6 +1778,7 @@
"clipboard-image": "",
"clipboard-text": "",
"cloze-body": "打ち込んでいませんでした",
+ "cloze-body-kana": "うちこんでいませんでした",
"cloze-prefix": "cloze-prefix",
"cloze-suffix": "cloze-suffix",
"conjugation": "-te « progressive or perfect « polite « negative « past",
@@ -1770,6 +1815,7 @@
"clipboard-image": "",
"clipboard-text": "",
"cloze-body": "打ち込んでいませんでした",
+ "cloze-body-kana": "ぶちこんでいませんでした",
"cloze-prefix": "cloze-prefix",
"cloze-suffix": "cloze-suffix",
"conjugation": "-te « progressive or perfect « polite « negative « past",
@@ -1806,6 +1852,7 @@
"clipboard-image": "",
"clipboard-text": "",
"cloze-body": "打ち込んでいませんでした",
+ "cloze-body-kana": "うちこんでいませんでした",
"cloze-prefix": "cloze-prefix",
"cloze-suffix": "cloze-suffix",
"conjugation": "-te « progressive or perfect « polite « negative « past",
@@ -1842,6 +1889,7 @@
"clipboard-image": "",
"clipboard-text": "",
"cloze-body": "打ち込んでいませんでした",
+ "cloze-body-kana": "ぶちこんでいませんでした",
"cloze-prefix": "cloze-prefix",
"cloze-suffix": "cloze-suffix",
"conjugation": "-te « progressive or perfect « polite « negative « past",
@@ -1878,6 +1926,7 @@
"clipboard-image": "",
"clipboard-text": "",
"cloze-body": "打ち",
+ "cloze-body-kana": "うち",
"cloze-prefix": "cloze-prefix",
"cloze-suffix": "cloze-suffix",
"conjugation": "masu stem",
@@ -1914,6 +1963,7 @@
"clipboard-image": "",
"clipboard-text": "",
"cloze-body": "打ち",
+ "cloze-body-kana": "ぶち",
"cloze-prefix": "cloze-prefix",
"cloze-suffix": "cloze-suffix",
"conjugation": "masu stem",
@@ -1950,6 +2000,7 @@
"clipboard-image": "",
"clipboard-text": "",
"cloze-body": "打ち",
+ "cloze-body-kana": "うち",
"cloze-prefix": "cloze-prefix",
"cloze-suffix": "cloze-suffix",
"conjugation": "masu stem",
@@ -1986,6 +2037,7 @@
"clipboard-image": "",
"clipboard-text": "",
"cloze-body": "打ち",
+ "cloze-body-kana": "ぶち",
"cloze-prefix": "cloze-prefix",
"cloze-suffix": "cloze-suffix",
"conjugation": "masu stem",
@@ -2022,6 +2074,7 @@
"clipboard-image": "",
"clipboard-text": "",
"cloze-body": "打",
+ "cloze-body-kana": "だ",
"cloze-prefix": "cloze-prefix",
"cloze-suffix": "cloze-suffix",
"conjugation": "",
@@ -2058,6 +2111,7 @@
"clipboard-image": "",
"clipboard-text": "",
"cloze-body": "打",
+ "cloze-body-kana": "ダース",
"cloze-prefix": "cloze-prefix",
"cloze-suffix": "cloze-suffix",
"conjugation": "",
@@ -2099,6 +2153,7 @@
"clipboard-image": "",
"clipboard-text": "",
"cloze-body": "打(う)ち込(こ)む",
+ "cloze-body-kana": "う(う)ち込(こ)む",
"cloze-prefix": "cloze-prefix",
"cloze-suffix": "cloze-suffix",
"conjugation": "",
@@ -2135,6 +2190,7 @@
"clipboard-image": "",
"clipboard-text": "",
"cloze-body": "打(う)ち込(こ)む",
+ "cloze-body-kana": "ぶ(う)ち込(こ)む",
"cloze-prefix": "cloze-prefix",
"cloze-suffix": "cloze-suffix",
"conjugation": "",
@@ -2171,6 +2227,7 @@
"clipboard-image": "",
"clipboard-text": "",
"cloze-body": "打(う)ち込(こ)む",
+ "cloze-body-kana": "う(う)ち込(こ)む",
"cloze-prefix": "cloze-prefix",
"cloze-suffix": "cloze-suffix",
"conjugation": "",
@@ -2207,6 +2264,7 @@
"clipboard-image": "",
"clipboard-text": "",
"cloze-body": "打(う)ち込(こ)む",
+ "cloze-body-kana": "ぶ(う)ち込(こ)む",
"cloze-prefix": "cloze-prefix",
"cloze-suffix": "cloze-suffix",
"conjugation": "",
@@ -2243,6 +2301,7 @@
"clipboard-image": "",
"clipboard-text": "",
"cloze-body": "打(う)ち",
+ "cloze-body-kana": "う(う)ち",
"cloze-prefix": "cloze-prefix",
"cloze-suffix": "cloze-suffix",
"conjugation": "masu stem",
@@ -2279,6 +2338,7 @@
"clipboard-image": "",
"clipboard-text": "",
"cloze-body": "打(う)ち",
+ "cloze-body-kana": "ぶ(う)ち",
"cloze-prefix": "cloze-prefix",
"cloze-suffix": "cloze-suffix",
"conjugation": "masu stem",
@@ -2315,6 +2375,7 @@
"clipboard-image": "",
"clipboard-text": "",
"cloze-body": "打(う)ち",
+ "cloze-body-kana": "う(う)ち",
"cloze-prefix": "cloze-prefix",
"cloze-suffix": "cloze-suffix",
"conjugation": "masu stem",
@@ -2351,6 +2412,7 @@
"clipboard-image": "",
"clipboard-text": "",
"cloze-body": "打(う)ち",
+ "cloze-body-kana": "ぶ(う)ち",
"cloze-prefix": "cloze-prefix",
"cloze-suffix": "cloze-suffix",
"conjugation": "masu stem",
@@ -2387,6 +2449,7 @@
"clipboard-image": "",
"clipboard-text": "",
"cloze-body": "打",
+ "cloze-body-kana": "だ",
"cloze-prefix": "cloze-prefix",
"cloze-suffix": "cloze-suffix",
"conjugation": "",
@@ -2423,6 +2486,7 @@
"clipboard-image": "",
"clipboard-text": "",
"cloze-body": "打",
+ "cloze-body-kana": "ダース",
"cloze-prefix": "cloze-prefix",
"cloze-suffix": "cloze-suffix",
"conjugation": "",
@@ -2464,6 +2528,7 @@
"clipboard-image": "",
"clipboard-text": "",
"cloze-body": "(打)(ち)(込)(む)",
+ "cloze-body-kana": "(打)(ち)(込)(む)",
"cloze-prefix": "cloze-prefix",
"cloze-suffix": "cloze-suffix",
"conjugation": "",
@@ -2500,6 +2565,7 @@
"clipboard-image": "",
"clipboard-text": "",
"cloze-body": "(打)(ち)(込)(む)",
+ "cloze-body-kana": "(打)(ち)(込)(む)",
"cloze-prefix": "cloze-prefix",
"cloze-suffix": "cloze-suffix",
"conjugation": "",
@@ -2536,6 +2602,7 @@
"clipboard-image": "",
"clipboard-text": "",
"cloze-body": "(打)(ち)(込)(む)",
+ "cloze-body-kana": "(打)(ち)(込)(む)",
"cloze-prefix": "cloze-prefix",
"cloze-suffix": "cloze-suffix",
"conjugation": "",
@@ -2572,6 +2639,7 @@
"clipboard-image": "",
"clipboard-text": "",
"cloze-body": "(打)(ち)(込)(む)",
+ "cloze-body-kana": "(打)(ち)(込)(む)",
"cloze-prefix": "cloze-prefix",
"cloze-suffix": "cloze-suffix",
"conjugation": "",
@@ -2608,6 +2676,7 @@
"clipboard-image": "",
"clipboard-text": "",
"cloze-body": "(打)(ち)",
+ "cloze-body-kana": "(打)(ち)",
"cloze-prefix": "cloze-prefix",
"cloze-suffix": "cloze-suffix",
"conjugation": "masu stem",
@@ -2644,6 +2713,7 @@
"clipboard-image": "",
"clipboard-text": "",
"cloze-body": "(打)(ち)",
+ "cloze-body-kana": "(打)(ち)",
"cloze-prefix": "cloze-prefix",
"cloze-suffix": "cloze-suffix",
"conjugation": "masu stem",
@@ -2680,6 +2750,7 @@
"clipboard-image": "",
"clipboard-text": "",
"cloze-body": "(打)(ち)",
+ "cloze-body-kana": "(打)(ち)",
"cloze-prefix": "cloze-prefix",
"cloze-suffix": "cloze-suffix",
"conjugation": "masu stem",
@@ -2716,6 +2787,7 @@
"clipboard-image": "",
"clipboard-text": "",
"cloze-body": "(打)(ち)",
+ "cloze-body-kana": "(打)(ち)",
"cloze-prefix": "cloze-prefix",
"cloze-suffix": "cloze-suffix",
"conjugation": "masu stem",
@@ -2752,6 +2824,7 @@
"clipboard-image": "",
"clipboard-text": "",
"cloze-body": "(打)",
+ "cloze-body-kana": "(打)",
"cloze-prefix": "cloze-prefix",
"cloze-suffix": "cloze-suffix",
"conjugation": "",
@@ -2788,6 +2861,7 @@
"clipboard-image": "",
"clipboard-text": "",
"cloze-body": "(打)",
+ "cloze-body-kana": "(打)",
"cloze-prefix": "cloze-prefix",
"cloze-suffix": "cloze-suffix",
"conjugation": "",
@@ -2829,6 +2903,7 @@
"clipboard-image": "",
"clipboard-text": "",
"cloze-body": "test",
+ "cloze-body-kana": "test",
"cloze-prefix": "cloze-prefix",
"cloze-suffix": "cloze-suffix",
"conjugation": "masu stem",
@@ -2870,6 +2945,7 @@
"clipboard-image": "",
"clipboard-text": "",
"cloze-body": "つtest",
+ "cloze-body-kana": "つtest",
"cloze-prefix": "cloze-prefix",
"cloze-suffix": "cloze-suffix",
"conjugation": "",
@@ -2911,6 +2987,7 @@
"clipboard-image": "",
"clipboard-text": "",
"cloze-body": "testました",
+ "cloze-body-kana": "testました",
"cloze-prefix": "cloze-prefix",
"cloze-suffix": "cloze-suffix",
"conjugation": "polite « past",
@@ -2952,6 +3029,7 @@
"clipboard-image": "",
"clipboard-text": "",
"cloze-body": "うちこむ",
+ "cloze-body-kana": "うちこむ",
"cloze-prefix": "cloze-prefix",
"cloze-suffix": "cloze-suffix",
"conjugation": "",
@@ -2988,6 +3066,7 @@
"clipboard-image": "",
"clipboard-text": "",
"cloze-body": "うち",
+ "cloze-body-kana": "うち",
"cloze-prefix": "cloze-prefix",
"cloze-suffix": "cloze-suffix",
"conjugation": "masu stem",
@@ -3029,6 +3108,7 @@
"clipboard-image": "",
"clipboard-text": "",
"cloze-body": "お手前",
+ "cloze-body-kana": "おてまえ",
"cloze-prefix": "cloze-prefix",
"cloze-suffix": "cloze-suffix",
"conjugation": "",
@@ -3070,6 +3150,7 @@
"clipboard-image": "",
"clipboard-text": "",
"cloze-body": "番号",
+ "cloze-body-kana": "ばんごう",
"cloze-prefix": "cloze-prefix",
"cloze-suffix": "cloze-suffix",
"conjugation": "",
@@ -3111,6 +3192,7 @@
"clipboard-image": "",
"clipboard-text": "",
"cloze-body": "中腰",
+ "cloze-body-kana": "ちゅうごし",
"cloze-prefix": "cloze-prefix",
"cloze-suffix": "cloze-suffix",
"conjugation": "",
@@ -3152,6 +3234,7 @@
"clipboard-image": "",
"clipboard-text": "",
"cloze-body": "所業",
+ "cloze-body-kana": "しょぎょう",
"cloze-prefix": "cloze-prefix",
"cloze-suffix": "cloze-suffix",
"conjugation": "",
@@ -3193,6 +3276,7 @@
"clipboard-image": "",
"clipboard-text": "",
"cloze-body": "土木工事",
+ "cloze-body-kana": "どぼくこうじ",
"cloze-prefix": "cloze-prefix",
"cloze-suffix": "cloze-suffix",
"conjugation": "",
@@ -3234,6 +3318,7 @@
"clipboard-image": "",
"clipboard-text": "",
"cloze-body": "好き",
+ "cloze-body-kana": "すき",
"cloze-prefix": "cloze-prefix",
"cloze-suffix": "cloze-suffix",
"conjugation": "",
@@ -3275,6 +3360,7 @@
"clipboard-image": "",
"clipboard-text": "",
"cloze-body": "構造",
+ "cloze-body-kana": "こうぞう",
"cloze-prefix": "cloze-prefix",
"cloze-suffix": "cloze-suffix",
"conjugation": "",
@@ -3316,6 +3402,7 @@
"clipboard-image": "",
"clipboard-text": "",
"cloze-body": "のたもうた",
+ "cloze-body-kana": "のたもうた",
"cloze-prefix": "cloze-prefix",
"cloze-suffix": "cloze-suffix",
"conjugation": "<ul><li>past</li><li>past « kansai-ben</li></ul>",
@@ -3357,6 +3444,7 @@
"clipboard-image": "",
"clipboard-text": "",
"cloze-body": "39",
+ "cloze-body-kana": "39",
"cloze-prefix": "cloze-prefix",
"cloze-suffix": "cloze-suffix",
"conjugation": "",
@@ -3398,6 +3486,7 @@
"clipboard-image": "",
"clipboard-text": "",
"cloze-body": "utsu",
+ "cloze-body-kana": "utsu",
"cloze-prefix": "cloze-prefix",
"cloze-suffix": "cloze-suffix",
"conjugation": "",
@@ -3434,6 +3523,7 @@
"clipboard-image": "",
"clipboard-text": "",
"cloze-body": "utsu",
+ "cloze-body-kana": "utsu",
"cloze-prefix": "cloze-prefix",
"cloze-suffix": "cloze-suffix",
"conjugation": "",
@@ -3475,6 +3565,7 @@
"clipboard-image": "",
"clipboard-text": "",
"cloze-body": "ウツ",
+ "cloze-body-kana": "ウツ",
"cloze-prefix": "cloze-prefix",
"cloze-suffix": "cloze-suffix",
"conjugation": "",
@@ -3511,6 +3602,7 @@
"clipboard-image": "",
"clipboard-text": "",
"cloze-body": "ウツ",
+ "cloze-body-kana": "ウツ",
"cloze-prefix": "cloze-prefix",
"cloze-suffix": "cloze-suffix",
"conjugation": "",
@@ -3552,6 +3644,7 @@
"clipboard-image": "",
"clipboard-text": "",
"cloze-body": "てきすと",
+ "cloze-body-kana": "てきすと",
"cloze-prefix": "cloze-prefix",
"cloze-suffix": "cloze-suffix",
"conjugation": "",
@@ -3593,6 +3686,7 @@
"clipboard-image": "",
"clipboard-text": "",
"cloze-body": "ウツ",
+ "cloze-body-kana": "ウツ",
"cloze-prefix": "cloze-prefix",
"cloze-suffix": "cloze-suffix",
"conjugation": "",
@@ -3629,6 +3723,7 @@
"clipboard-image": "",
"clipboard-text": "",
"cloze-body": "ウツ",
+ "cloze-body-kana": "ウツ",
"cloze-prefix": "cloze-prefix",
"cloze-suffix": "cloze-suffix",
"conjugation": "",
@@ -3670,6 +3765,7 @@
"clipboard-image": "",
"clipboard-text": "",
"cloze-body": "すっっごーーい",
+ "cloze-body-kana": "すっっごーーい",
"cloze-prefix": "cloze-prefix",
"cloze-suffix": "cloze-suffix",
"conjugation": "",
diff --git a/test/data/translator-test-results-note-data1.json b/test/data/translator-test-results-note-data1.json
index 5f140902..1c210862 100644
--- a/test/data/translator-test-results-note-data1.json
+++ b/test/data/translator-test-results-note-data1.json
@@ -138,6 +138,7 @@
"sentence": "",
"prefix": "",
"body": "",
+ "bodyKana": "",
"suffix": ""
}
},
@@ -303,6 +304,7 @@
"sentence": "",
"prefix": "",
"body": "",
+ "bodyKana": "",
"suffix": ""
}
},
@@ -615,6 +617,7 @@
"sentence": "",
"prefix": "",
"body": "",
+ "bodyKana": "",
"suffix": ""
},
"furiganaSegments": [
@@ -937,6 +940,7 @@
"sentence": "",
"prefix": "",
"body": "",
+ "bodyKana": "",
"suffix": ""
},
"furiganaSegments": [
@@ -1251,6 +1255,7 @@
"sentence": "",
"prefix": "",
"body": "",
+ "bodyKana": "",
"suffix": ""
},
"furiganaSegments": [
@@ -1564,6 +1569,7 @@
"sentence": "",
"prefix": "",
"body": "",
+ "bodyKana": "",
"suffix": ""
},
"furiganaSegments": [
@@ -1877,6 +1883,7 @@
"sentence": "",
"prefix": "",
"body": "",
+ "bodyKana": "",
"suffix": ""
},
"furiganaSegments": [
@@ -2190,6 +2197,7 @@
"sentence": "",
"prefix": "",
"body": "",
+ "bodyKana": "",
"suffix": ""
},
"furiganaSegments": [
@@ -2507,6 +2515,7 @@
"sentence": "",
"prefix": "",
"body": "",
+ "bodyKana": "",
"suffix": ""
},
"furiganaSegments": [
@@ -2829,6 +2838,7 @@
"sentence": "",
"prefix": "",
"body": "",
+ "bodyKana": "",
"suffix": ""
},
"furiganaSegments": [
@@ -3208,6 +3218,7 @@
"sentence": "",
"prefix": "",
"body": "",
+ "bodyKana": "",
"suffix": ""
},
"furiganaSegments": [
@@ -3629,6 +3640,7 @@
"sentence": "",
"prefix": "",
"body": "",
+ "bodyKana": "",
"suffix": ""
},
"furiganaSegments": [
@@ -4050,6 +4062,7 @@
"sentence": "",
"prefix": "",
"body": "",
+ "bodyKana": "",
"suffix": ""
},
"furiganaSegments": [
@@ -4471,6 +4484,7 @@
"sentence": "",
"prefix": "",
"body": "",
+ "bodyKana": "",
"suffix": ""
},
"furiganaSegments": [
@@ -4829,6 +4843,7 @@
"sentence": "",
"prefix": "",
"body": "",
+ "bodyKana": "",
"suffix": ""
},
"furiganaSegments": [
@@ -5144,6 +5159,7 @@
"sentence": "",
"prefix": "",
"body": "",
+ "bodyKana": "",
"suffix": ""
},
"furiganaSegments": [
@@ -5459,6 +5475,7 @@
"sentence": "",
"prefix": "",
"body": "",
+ "bodyKana": "",
"suffix": ""
},
"furiganaSegments": [
@@ -5774,6 +5791,7 @@
"sentence": "",
"prefix": "",
"body": "",
+ "bodyKana": "",
"suffix": ""
},
"furiganaSegments": [
@@ -6091,6 +6109,7 @@
"sentence": "",
"prefix": "",
"body": "",
+ "bodyKana": "",
"suffix": ""
},
"furiganaSegments": [
@@ -6413,6 +6432,7 @@
"sentence": "",
"prefix": "",
"body": "",
+ "bodyKana": "",
"suffix": ""
},
"furiganaSegments": [
@@ -6574,6 +6594,7 @@
"sentence": "",
"prefix": "",
"body": "",
+ "bodyKana": "",
"suffix": ""
},
"furiganaSegments": [
@@ -6892,6 +6913,7 @@
"sentence": "",
"prefix": "",
"body": "",
+ "bodyKana": "",
"suffix": ""
},
"furiganaSegments": [
@@ -7219,6 +7241,7 @@
"sentence": "",
"prefix": "",
"body": "",
+ "bodyKana": "",
"suffix": ""
},
"furiganaSegments": [
@@ -7533,6 +7556,7 @@
"sentence": "",
"prefix": "",
"body": "",
+ "bodyKana": "",
"suffix": ""
},
"furiganaSegments": [
@@ -7846,6 +7870,7 @@
"sentence": "",
"prefix": "",
"body": "",
+ "bodyKana": "",
"suffix": ""
},
"furiganaSegments": [
@@ -8164,6 +8189,7 @@
"sentence": "",
"prefix": "",
"body": "",
+ "bodyKana": "",
"suffix": ""
},
"furiganaSegments": [
@@ -8477,6 +8503,7 @@
"sentence": "",
"prefix": "",
"body": "",
+ "bodyKana": "",
"suffix": ""
},
"furiganaSegments": [
@@ -8860,6 +8887,7 @@
"sentence": "",
"prefix": "",
"body": "",
+ "bodyKana": "",
"suffix": ""
},
"furiganaSegments": [
@@ -9281,6 +9309,7 @@
"sentence": "",
"prefix": "",
"body": "",
+ "bodyKana": "",
"suffix": ""
},
"furiganaSegments": [
@@ -9639,6 +9668,7 @@
"sentence": "",
"prefix": "",
"body": "",
+ "bodyKana": "",
"suffix": ""
},
"furiganaSegments": [
@@ -9954,6 +9984,7 @@
"sentence": "",
"prefix": "",
"body": "",
+ "bodyKana": "",
"suffix": ""
},
"furiganaSegments": [
@@ -10337,6 +10368,7 @@
"sentence": "",
"prefix": "",
"body": "",
+ "bodyKana": "",
"suffix": ""
},
"furiganaSegments": [
@@ -10758,6 +10790,7 @@
"sentence": "",
"prefix": "",
"body": "",
+ "bodyKana": "",
"suffix": ""
},
"furiganaSegments": [
@@ -11116,6 +11149,7 @@
"sentence": "",
"prefix": "",
"body": "",
+ "bodyKana": "",
"suffix": ""
},
"furiganaSegments": [
@@ -11431,6 +11465,7 @@
"sentence": "",
"prefix": "",
"body": "",
+ "bodyKana": "",
"suffix": ""
},
"furiganaSegments": [
@@ -11596,6 +11631,7 @@
"sentence": "",
"prefix": "",
"body": "",
+ "bodyKana": "",
"suffix": ""
},
"furiganaSegments": [
@@ -12028,6 +12064,7 @@
"sentence": "",
"prefix": "",
"body": "",
+ "bodyKana": "",
"suffix": ""
}
},
@@ -12472,6 +12509,7 @@
"sentence": "",
"prefix": "",
"body": "",
+ "bodyKana": "",
"suffix": ""
}
},
@@ -12853,6 +12891,7 @@
"sentence": "",
"prefix": "",
"body": "",
+ "bodyKana": "",
"suffix": ""
}
},
@@ -13199,6 +13238,7 @@
"sentence": "",
"prefix": "",
"body": "",
+ "bodyKana": "",
"suffix": ""
}
},
@@ -13510,6 +13550,7 @@
"sentence": "",
"prefix": "",
"body": "",
+ "bodyKana": "",
"suffix": ""
}
},
@@ -13830,6 +13871,7 @@
"sentence": "",
"prefix": "",
"body": "",
+ "bodyKana": "",
"suffix": ""
}
},
@@ -14539,6 +14581,7 @@
"sentence": "",
"prefix": "",
"body": "",
+ "bodyKana": "",
"suffix": ""
}
},
@@ -15185,6 +15228,7 @@
"sentence": "",
"prefix": "",
"body": "",
+ "bodyKana": "",
"suffix": ""
}
},
@@ -15490,6 +15534,7 @@
"sentence": "",
"prefix": "",
"body": "",
+ "bodyKana": "",
"suffix": ""
}
},
@@ -15803,6 +15848,7 @@
"sentence": "",
"prefix": "",
"body": "",
+ "bodyKana": "",
"suffix": ""
}
},
@@ -16182,6 +16228,7 @@
"sentence": "",
"prefix": "",
"body": "",
+ "bodyKana": "",
"suffix": ""
},
"furiganaSegments": [
@@ -16609,6 +16656,7 @@
"sentence": "",
"prefix": "",
"body": "",
+ "bodyKana": "",
"suffix": ""
},
"furiganaSegments": [
@@ -17036,6 +17084,7 @@
"sentence": "",
"prefix": "",
"body": "",
+ "bodyKana": "",
"suffix": ""
},
"furiganaSegments": [
@@ -17463,6 +17512,7 @@
"sentence": "",
"prefix": "",
"body": "",
+ "bodyKana": "",
"suffix": ""
},
"furiganaSegments": [
@@ -17821,6 +17871,7 @@
"sentence": "",
"prefix": "",
"body": "",
+ "bodyKana": "",
"suffix": ""
},
"furiganaSegments": [
@@ -18136,6 +18187,7 @@
"sentence": "",
"prefix": "",
"body": "",
+ "bodyKana": "",
"suffix": ""
},
"furiganaSegments": [
@@ -18451,6 +18503,7 @@
"sentence": "",
"prefix": "",
"body": "",
+ "bodyKana": "",
"suffix": ""
},
"furiganaSegments": [
@@ -18766,6 +18819,7 @@
"sentence": "",
"prefix": "",
"body": "",
+ "bodyKana": "",
"suffix": ""
},
"furiganaSegments": [
@@ -19083,6 +19137,7 @@
"sentence": "",
"prefix": "",
"body": "",
+ "bodyKana": "",
"suffix": ""
},
"furiganaSegments": [
@@ -19405,6 +19460,7 @@
"sentence": "",
"prefix": "",
"body": "",
+ "bodyKana": "",
"suffix": ""
},
"furiganaSegments": [
@@ -19784,6 +19840,7 @@
"sentence": "",
"prefix": "",
"body": "",
+ "bodyKana": "",
"suffix": ""
},
"furiganaSegments": [
@@ -20205,6 +20262,7 @@
"sentence": "",
"prefix": "",
"body": "",
+ "bodyKana": "",
"suffix": ""
},
"furiganaSegments": [
@@ -20626,6 +20684,7 @@
"sentence": "",
"prefix": "",
"body": "",
+ "bodyKana": "",
"suffix": ""
},
"furiganaSegments": [
@@ -21047,6 +21106,7 @@
"sentence": "",
"prefix": "",
"body": "",
+ "bodyKana": "",
"suffix": ""
},
"furiganaSegments": [
@@ -21405,6 +21465,7 @@
"sentence": "",
"prefix": "",
"body": "",
+ "bodyKana": "",
"suffix": ""
},
"furiganaSegments": [
@@ -21720,6 +21781,7 @@
"sentence": "",
"prefix": "",
"body": "",
+ "bodyKana": "",
"suffix": ""
},
"furiganaSegments": [
@@ -22035,6 +22097,7 @@
"sentence": "",
"prefix": "",
"body": "",
+ "bodyKana": "",
"suffix": ""
},
"furiganaSegments": [
@@ -22350,6 +22413,7 @@
"sentence": "",
"prefix": "",
"body": "",
+ "bodyKana": "",
"suffix": ""
},
"furiganaSegments": [
@@ -22667,6 +22731,7 @@
"sentence": "",
"prefix": "",
"body": "",
+ "bodyKana": "",
"suffix": ""
},
"furiganaSegments": [
@@ -22989,6 +23054,7 @@
"sentence": "",
"prefix": "",
"body": "",
+ "bodyKana": "",
"suffix": ""
},
"furiganaSegments": [
@@ -23368,6 +23434,7 @@
"sentence": "",
"prefix": "",
"body": "",
+ "bodyKana": "",
"suffix": ""
},
"furiganaSegments": [
@@ -23789,6 +23856,7 @@
"sentence": "",
"prefix": "",
"body": "",
+ "bodyKana": "",
"suffix": ""
},
"furiganaSegments": [
@@ -24210,6 +24278,7 @@
"sentence": "",
"prefix": "",
"body": "",
+ "bodyKana": "",
"suffix": ""
},
"furiganaSegments": [
@@ -24631,6 +24700,7 @@
"sentence": "",
"prefix": "",
"body": "",
+ "bodyKana": "",
"suffix": ""
},
"furiganaSegments": [
@@ -24989,6 +25059,7 @@
"sentence": "",
"prefix": "",
"body": "",
+ "bodyKana": "",
"suffix": ""
},
"furiganaSegments": [
@@ -25304,6 +25375,7 @@
"sentence": "",
"prefix": "",
"body": "",
+ "bodyKana": "",
"suffix": ""
},
"furiganaSegments": [
@@ -25619,6 +25691,7 @@
"sentence": "",
"prefix": "",
"body": "",
+ "bodyKana": "",
"suffix": ""
},
"furiganaSegments": [
@@ -25934,6 +26007,7 @@
"sentence": "",
"prefix": "",
"body": "",
+ "bodyKana": "",
"suffix": ""
},
"furiganaSegments": [
@@ -26251,6 +26325,7 @@
"sentence": "",
"prefix": "",
"body": "",
+ "bodyKana": "",
"suffix": ""
},
"furiganaSegments": [
@@ -26573,6 +26648,7 @@
"sentence": "",
"prefix": "",
"body": "",
+ "bodyKana": "",
"suffix": ""
},
"furiganaSegments": [
@@ -26730,6 +26806,7 @@
"sentence": "",
"prefix": "",
"body": "",
+ "bodyKana": "",
"suffix": ""
},
"furiganaSegments": [
@@ -26889,6 +26966,7 @@
"sentence": "",
"prefix": "",
"body": "",
+ "bodyKana": "",
"suffix": ""
},
"furiganaSegments": [
@@ -27051,6 +27129,7 @@
"sentence": "",
"prefix": "",
"body": "",
+ "bodyKana": "",
"suffix": ""
},
"furiganaSegments": [
@@ -27770,6 +27849,7 @@
"sentence": "",
"prefix": "",
"body": "",
+ "bodyKana": "",
"suffix": ""
}
},
@@ -28416,6 +28496,7 @@
"sentence": "",
"prefix": "",
"body": "",
+ "bodyKana": "",
"suffix": ""
}
},
@@ -28653,6 +28734,7 @@
"sentence": "",
"prefix": "",
"body": "",
+ "bodyKana": "",
"suffix": ""
},
"furiganaSegments": [
@@ -28908,6 +28990,7 @@
"sentence": "",
"prefix": "",
"body": "",
+ "bodyKana": "",
"suffix": ""
},
"furiganaSegments": [
@@ -29095,6 +29178,7 @@
"sentence": "",
"prefix": "",
"body": "",
+ "bodyKana": "",
"suffix": ""
},
"furiganaSegments": [
@@ -29282,6 +29366,7 @@
"sentence": "",
"prefix": "",
"body": "",
+ "bodyKana": "",
"suffix": ""
},
"furiganaSegments": [
@@ -29469,6 +29554,7 @@
"sentence": "",
"prefix": "",
"body": "",
+ "bodyKana": "",
"suffix": ""
},
"furiganaSegments": [
@@ -29672,6 +29758,7 @@
"sentence": "",
"prefix": "",
"body": "",
+ "bodyKana": "",
"suffix": ""
},
"furiganaSegments": [
@@ -29868,6 +29955,7 @@
"sentence": "",
"prefix": "",
"body": "",
+ "bodyKana": "",
"suffix": ""
},
"furiganaSegments": [
@@ -29990,6 +30078,7 @@
"sentence": "",
"prefix": "",
"body": "",
+ "bodyKana": "",
"suffix": ""
},
"furiganaSegments": [
@@ -30091,6 +30180,7 @@
"sentence": "",
"prefix": "",
"body": "",
+ "bodyKana": "",
"suffix": ""
},
"furiganaSegments": [
@@ -30405,6 +30495,7 @@
"sentence": "",
"prefix": "",
"body": "",
+ "bodyKana": "",
"suffix": ""
},
"furiganaSegments": [
@@ -30718,6 +30809,7 @@
"sentence": "",
"prefix": "",
"body": "",
+ "bodyKana": "",
"suffix": ""
},
"furiganaSegments": [
@@ -31036,6 +31128,7 @@
"sentence": "",
"prefix": "",
"body": "",
+ "bodyKana": "",
"suffix": ""
},
"furiganaSegments": [
@@ -31349,6 +31442,7 @@
"sentence": "",
"prefix": "",
"body": "",
+ "bodyKana": "",
"suffix": ""
},
"furiganaSegments": [
@@ -31505,6 +31599,7 @@
"sentence": "",
"prefix": "",
"body": "",
+ "bodyKana": "",
"suffix": ""
},
"furiganaSegments": [
@@ -31819,6 +31914,7 @@
"sentence": "",
"prefix": "",
"body": "",
+ "bodyKana": "",
"suffix": ""
},
"furiganaSegments": [
@@ -32132,6 +32228,7 @@
"sentence": "",
"prefix": "",
"body": "",
+ "bodyKana": "",
"suffix": ""
},
"furiganaSegments": [
@@ -32253,6 +32350,7 @@
"sentence": "",
"prefix": "",
"body": "",
+ "bodyKana": "",
"suffix": ""
},
"furiganaSegments": [
diff --git a/types/ext/anki-templates.d.ts b/types/ext/anki-templates.d.ts
index 37c3d52f..efa0bad2 100644
--- a/types/ext/anki-templates.d.ts
+++ b/types/ext/anki-templates.d.ts
@@ -304,5 +304,6 @@ export type Cloze = {
sentence: string;
prefix: string;
body: string;
+ bodyKana: string;
suffix: string;
};