summaryrefslogtreecommitdiff
path: root/ext/js/data/anki-note-data-creator.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2021-04-13 20:32:24 -0400
committerGitHub <noreply@github.com>2021-04-13 20:32:24 -0400
commit609d4fe3347f87290a428e2ba1192acb991b2e38 (patch)
tree57a37b970bc5564ab7a958aa695b5351aecdb793 /ext/js/data/anki-note-data-creator.js
parentbbf47865ffa616128543396c97aa861d8a423a36 (diff)
Replace furigana with reading (#1614)
* Use "reading" instead of "furigana" for reading distribution * Update tests
Diffstat (limited to 'ext/js/data/anki-note-data-creator.js')
-rw-r--r--ext/js/data/anki-note-data-creator.js6
1 files changed, 5 insertions, 1 deletions
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;
}
}