From e14b52ef84be7feeab60167605fd10918a242cd3 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Sun, 4 Apr 2021 16:22:35 -0400 Subject: Update dictionary entry terminology (#1592) * Update terminology * Update terminology in display.js * Update terminology in display-audio.js * Update terminology in text-scanner.js * Update terminology in backend.js * Update terminology in mecab.js * Update terminology in audio-downloader.js * Update terminology in translator-vm.js * Update terminology in dictionary-data-util.js * Update terminology in dictionary-database.js * Update terminology in japanese-util.js * Change/upgrade {expression} to {term} * Update terminology in test-japanese.js * Update terminology in test-database.js * Update terminology in anki-templates-controller.js * Update terminology in anki-note-builder.js * Update terminology in backend.js * Update terminology in text-scanner.js * Update terminology in display.js * Update terminology in display.js --- ext/js/comm/api.js | 4 ++-- ext/js/comm/mecab.js | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'ext/js/comm') diff --git a/ext/js/comm/api.js b/ext/js/comm/api.js index a2eb004c..137cda41 100644 --- a/ext/js/comm/api.js +++ b/ext/js/comm/api.js @@ -68,8 +68,8 @@ class API { return this._invoke('suspendAnkiCardsForNote', {noteId}); } - getExpressionAudioInfoList(source, expression, reading, details) { - return this._invoke('getExpressionAudioInfoList', {source, expression, reading, details}); + getTermAudioInfoList(source, term, reading, details) { + return this._invoke('getTermAudioInfoList', {source, term, reading, details}); } commandExec(command, params) { diff --git a/ext/js/comm/mecab.js b/ext/js/comm/mecab.js index 4eff2927..9a706391 100644 --- a/ext/js/comm/mecab.js +++ b/ext/js/comm/mecab.js @@ -108,7 +108,7 @@ class Mecab { * { * name: (string), * lines: [ - * {expression: (string), reading: (string), source: (string)}, + * {term: (string), reading: (string), source: (string)}, * ... * ] * }, @@ -172,11 +172,11 @@ class Mecab { const lines = []; for (const rawLine of rawLines) { const line = []; - for (let {expression, reading, source} of rawLine) { - if (typeof expression !== 'string') { expression = ''; } + for (let {expression: term, reading, source} of rawLine) { + if (typeof term !== 'string') { term = ''; } if (typeof reading !== 'string') { reading = ''; } if (typeof source !== 'string') { source = ''; } - line.push({expression, reading, source}); + line.push({term, reading, source}); } lines.push(line); } -- cgit v1.2.3