From 609d4fe3347f87290a428e2ba1192acb991b2e38 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Tue, 13 Apr 2021 20:32:24 -0400 Subject: Replace furigana with reading (#1614) * Use "reading" instead of "furigana" for reading distribution * Update tests --- ext/js/data/anki-note-data-creator.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'ext/js/data') diff --git a/ext/js/data/anki-note-data-creator.js b/ext/js/data/anki-note-data-creator.js index 1c32c4b4..e3ff2ca0 100644 --- a/ext/js/data/anki-note-data-creator.js +++ b/ext/js/data/anki-note-data-creator.js @@ -596,6 +596,10 @@ class AnkiNoteDataCreator { } _getTermHeadwordFuriganaSegments(term, reading) { - return this._japaneseUtil.distributeFurigana(term, reading); + const result = []; + for (const {text, reading: reading2} of this._japaneseUtil.distributeFurigana(term, reading)) { + result.push({text, furigana: reading2}); + } + return result; } } -- cgit v1.2.3