From 3486c0a96c477d1d5ec66c947bb7e94b44c8554a Mon Sep 17 00:00:00 2001 From: Kuuuube <61125188+Kuuuube@users.noreply.github.com> Date: Thu, 8 Feb 2024 06:54:30 -0500 Subject: Add cloze-body-kana handlebar (#650) * Add cloze-body-kana handlebar * Convert if else to ternary --- .../default-anki-field-templates.handlebars | 4 + ext/js/data/anki-template-util.js | 1 + ext/js/data/sandbox/anki-note-data-creator.js | 12 ++- test/data/anki-note-builder-test-results.json | 96 +++++++++++++++++++++ test/data/translator-test-results-note-data1.json | 98 ++++++++++++++++++++++ types/ext/anki-templates.d.ts | 1 + 6 files changed, 211 insertions(+), 1 deletion(-) 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": "