From 6998ebeee2f68158428ee58de2e77fcf658e53ab Mon Sep 17 00:00:00 2001 From: Kuuuube <61125188+Kuuuube@users.noreply.github.com> Date: Tue, 21 May 2024 13:08:27 -0400 Subject: Remove No pitch accent data from pitch handlebars (#982) * Remove No pitch accent data from pitch handlebars * Update tests * Fix newline --- .../anki-field-templates-upgrade-v37.handlebars | 33 ++ .../default-anki-field-templates.handlebars | 2 - ext/js/data/options-util.js | 11 +- test/data/anki-note-builder-test-results.json | 576 ++++++++++----------- test/options-util.test.js | 2 +- 5 files changed, 332 insertions(+), 292 deletions(-) create mode 100644 ext/data/templates/anki-field-templates-upgrade-v37.handlebars diff --git a/ext/data/templates/anki-field-templates-upgrade-v37.handlebars b/ext/data/templates/anki-field-templates-upgrade-v37.handlebars new file mode 100644 index 00000000..b6effdda --- /dev/null +++ b/ext/data/templates/anki-field-templates-upgrade-v37.handlebars @@ -0,0 +1,33 @@ +{{<<<<<<<}} +{{#*inline "pitch-accent-list"}} + {{~#if (op ">" pitchCount 0)~}} + {{~#if (op ">" pitchCount 1)~}}
    {{~/if~}} + {{~#each pitches~}} + {{~#each pitches~}} + {{~#if (op ">" ../../pitchCount 1)~}}
  1. {{~/if~}} + {{~> pitch-accent-item-disambiguation~}} + {{~> pitch-accent-item format=../../format~}} + {{~#if (op ">" ../../pitchCount 1)~}}
  2. {{~/if~}} + {{~/each~}} + {{~/each~}} + {{~#if (op ">" pitchCount 1)~}}
{{~/if~}} + {{~else~}} + No pitch accent data + {{~/if~}} +{{/inline}} +{{=======}} +{{#*inline "pitch-accent-list"}} + {{~#if (op ">" pitchCount 0)~}} + {{~#if (op ">" pitchCount 1)~}}
    {{~/if~}} + {{~#each pitches~}} + {{~#each pitches~}} + {{~#if (op ">" ../../pitchCount 1)~}}
  1. {{~/if~}} + {{~> pitch-accent-item-disambiguation~}} + {{~> pitch-accent-item format=../../format~}} + {{~#if (op ">" ../../pitchCount 1)~}}
  2. {{~/if~}} + {{~/each~}} + {{~/each~}} + {{~#if (op ">" pitchCount 1)~}}
{{~/if~}} + {{~/if~}} +{{/inline}} +{{>>>>>>>}} \ No newline at end of file diff --git a/ext/data/templates/default-anki-field-templates.handlebars b/ext/data/templates/default-anki-field-templates.handlebars index bbeff830..7b4f3802 100644 --- a/ext/data/templates/default-anki-field-templates.handlebars +++ b/ext/data/templates/default-anki-field-templates.handlebars @@ -257,8 +257,6 @@ {{~/each~}} {{~/each~}} {{~#if (op ">" pitchCount 1)~}}{{~/if~}} - {{~else~}} - No pitch accent data {{~/if~}} {{/inline}} diff --git a/ext/js/data/options-util.js b/ext/js/data/options-util.js index e2fd2789..2dc23229 100644 --- a/ext/js/data/options-util.js +++ b/ext/js/data/options-util.js @@ -543,7 +543,8 @@ export class OptionsUtil { this._updateVersion33, this._updateVersion34, this._updateVersion35, - this._updateVersion36 + this._updateVersion36, + this._updateVersion37 ]; /* eslint-enable @typescript-eslint/unbound-method */ if (typeof targetVersion === 'number' && targetVersion < result.length) { @@ -1295,6 +1296,14 @@ export class OptionsUtil { await this._applyAnkiFieldTemplatesPatch(options, '/data/templates/anki-field-templates-upgrade-v36.handlebars'); } + /** + * - Removed `No pitch accent data` return from pitch handlebars when no data is found + * @type {import('options-util').UpdateFunction} + */ + async _updateVersion37(options) { + await this._applyAnkiFieldTemplatesPatch(options, '/data/templates/anki-field-templates-upgrade-v37.handlebars'); + } + /** * @param {string} url * @returns {Promise} diff --git a/test/data/anki-note-builder-test-results.json b/test/data/anki-note-builder-test-results.json index 1c78c0db..1ec8d4cd 100644 --- a/test/data/anki-note-builder-test-results.json +++ b/test/data/anki-note-builder-test-results.json @@ -96,10 +96,10 @@ "glossary-first-brief": "
", "glossary-first-no-dictionary": "
(n)
", "part-of-speech": "Noun", - "pitch-accents": "No pitch accent data", - "pitch-accent-graphs": "No pitch accent data", - "pitch-accent-graphs-jj": "No pitch accent data", - "pitch-accent-positions": "No pitch accent data", + "pitch-accents": "", + "pitch-accent-graphs": "", + "pitch-accent-graphs-jj": "", + "pitch-accent-positions": "", "pitch-accent-categories": "", "phonetic-transcriptions": "", "reading": "だ", @@ -137,10 +137,10 @@ "glossary-first-brief": "
", "glossary-first-no-dictionary": "
(abbr, n)
", "part-of-speech": "Noun", - "pitch-accents": "No pitch accent data", - "pitch-accent-graphs": "No pitch accent data", - "pitch-accent-graphs-jj": "No pitch accent data", - "pitch-accent-positions": "No pitch accent data", + "pitch-accents": "", + "pitch-accent-graphs": "", + "pitch-accent-graphs-jj": "", + "pitch-accent-positions": "", "pitch-accent-categories": "", "phonetic-transcriptions": "", "reading": "ダース", @@ -183,10 +183,10 @@ "glossary-first-brief": "
", "glossary-first-no-dictionary": "
(vt)
", "part-of-speech": "Godan verb", - "pitch-accents": "No pitch accent data", - "pitch-accent-graphs": "No pitch accent data", - "pitch-accent-graphs-jj": "No pitch accent data", - "pitch-accent-positions": "No pitch accent data", + "pitch-accents": "", + "pitch-accent-graphs": "", + "pitch-accent-graphs-jj": "", + "pitch-accent-positions": "", "pitch-accent-categories": "", "phonetic-transcriptions": "", "reading": "うつ", @@ -224,10 +224,10 @@ "glossary-first-brief": "
", "glossary-first-no-dictionary": "
(vt)
", "part-of-speech": "Godan verb", - "pitch-accents": "No pitch accent data", - "pitch-accent-graphs": "No pitch accent data", - "pitch-accent-graphs-jj": "No pitch accent data", - "pitch-accent-positions": "No pitch accent data", + "pitch-accents": "", + "pitch-accent-graphs": "", + "pitch-accent-graphs-jj": "", + "pitch-accent-positions": "", "pitch-accent-categories": "", "phonetic-transcriptions": "", "reading": "ぶつ", @@ -265,10 +265,10 @@ "glossary-first-brief": "
", "glossary-first-no-dictionary": "
(vt)
", "part-of-speech": "Godan verb", - "pitch-accents": "No pitch accent data", - "pitch-accent-graphs": "No pitch accent data", - "pitch-accent-graphs-jj": "No pitch accent data", - "pitch-accent-positions": "No pitch accent data", + "pitch-accents": "", + "pitch-accent-graphs": "", + "pitch-accent-graphs-jj": "", + "pitch-accent-positions": "", "pitch-accent-categories": "", "phonetic-transcriptions": "", "reading": "うつ", @@ -306,10 +306,10 @@ "glossary-first-brief": "
", "glossary-first-no-dictionary": "
(vt)
", "part-of-speech": "Godan verb", - "pitch-accents": "No pitch accent data", - "pitch-accent-graphs": "No pitch accent data", - "pitch-accent-graphs-jj": "No pitch accent data", - "pitch-accent-positions": "No pitch accent data", + "pitch-accents": "", + "pitch-accent-graphs": "", + "pitch-accent-graphs-jj": "", + "pitch-accent-positions": "", "pitch-accent-categories": "", "phonetic-transcriptions": "", "reading": "ぶつ", @@ -347,10 +347,10 @@ "glossary-first-brief": "
", "glossary-first-no-dictionary": "
(n)
", "part-of-speech": "Noun", - "pitch-accents": "No pitch accent data", - "pitch-accent-graphs": "No pitch accent data", - "pitch-accent-graphs-jj": "No pitch accent data", - "pitch-accent-positions": "No pitch accent data", + "pitch-accents": "", + "pitch-accent-graphs": "", + "pitch-accent-graphs-jj": "", + "pitch-accent-positions": "", "pitch-accent-categories": "", "phonetic-transcriptions": "", "reading": "だ", @@ -388,10 +388,10 @@ "glossary-first-brief": "
", "glossary-first-no-dictionary": "
(abbr, n)
", "part-of-speech": "Noun", - "pitch-accents": "No pitch accent data", - "pitch-accent-graphs": "No pitch accent data", - "pitch-accent-graphs-jj": "No pitch accent data", - "pitch-accent-positions": "No pitch accent data", + "pitch-accents": "", + "pitch-accent-graphs": "", + "pitch-accent-graphs-jj": "", + "pitch-accent-positions": "", "pitch-accent-categories": "", "phonetic-transcriptions": "", "reading": "ダース", @@ -598,10 +598,10 @@ "glossary-first-brief": "
", "glossary-first-no-dictionary": "
(vt)
", "part-of-speech": "Godan verb", - "pitch-accents": "No pitch accent data", - "pitch-accent-graphs": "No pitch accent data", - "pitch-accent-graphs-jj": "No pitch accent data", - "pitch-accent-positions": "No pitch accent data", + "pitch-accents": "", + "pitch-accent-graphs": "", + "pitch-accent-graphs-jj": "", + "pitch-accent-positions": "", "pitch-accent-categories": "", "phonetic-transcriptions": "", "reading": "うつ", @@ -639,10 +639,10 @@ "glossary-first-brief": "
", "glossary-first-no-dictionary": "
(vt)
", "part-of-speech": "Godan verb", - "pitch-accents": "No pitch accent data", - "pitch-accent-graphs": "No pitch accent data", - "pitch-accent-graphs-jj": "No pitch accent data", - "pitch-accent-positions": "No pitch accent data", + "pitch-accents": "", + "pitch-accent-graphs": "", + "pitch-accent-graphs-jj": "", + "pitch-accent-positions": "", "pitch-accent-categories": "", "phonetic-transcriptions": "", "reading": "ぶつ", @@ -680,10 +680,10 @@ "glossary-first-brief": "
", "glossary-first-no-dictionary": "
(vt)
", "part-of-speech": "Godan verb", - "pitch-accents": "No pitch accent data", - "pitch-accent-graphs": "No pitch accent data", - "pitch-accent-graphs-jj": "No pitch accent data", - "pitch-accent-positions": "No pitch accent data", + "pitch-accents": "", + "pitch-accent-graphs": "", + "pitch-accent-graphs-jj": "", + "pitch-accent-positions": "", "pitch-accent-categories": "", "phonetic-transcriptions": "", "reading": "うつ", @@ -721,10 +721,10 @@ "glossary-first-brief": "
", "glossary-first-no-dictionary": "
(vt)
", "part-of-speech": "Godan verb", - "pitch-accents": "No pitch accent data", - "pitch-accent-graphs": "No pitch accent data", - "pitch-accent-graphs-jj": "No pitch accent data", - "pitch-accent-positions": "No pitch accent data", + "pitch-accents": "", + "pitch-accent-graphs": "", + "pitch-accent-graphs-jj": "", + "pitch-accent-positions": "", "pitch-accent-categories": "", "phonetic-transcriptions": "", "reading": "ぶつ", @@ -762,10 +762,10 @@ "glossary-first-brief": "
", "glossary-first-no-dictionary": "
(n)
", "part-of-speech": "Noun", - "pitch-accents": "No pitch accent data", - "pitch-accent-graphs": "No pitch accent data", - "pitch-accent-graphs-jj": "No pitch accent data", - "pitch-accent-positions": "No pitch accent data", + "pitch-accents": "", + "pitch-accent-graphs": "", + "pitch-accent-graphs-jj": "", + "pitch-accent-positions": "", "pitch-accent-categories": "", "phonetic-transcriptions": "", "reading": "だ", @@ -803,10 +803,10 @@ "glossary-first-brief": "
", "glossary-first-no-dictionary": "
(abbr, n)
", "part-of-speech": "Noun", - "pitch-accents": "No pitch accent data", - "pitch-accent-graphs": "No pitch accent data", - "pitch-accent-graphs-jj": "No pitch accent data", - "pitch-accent-positions": "No pitch accent data", + "pitch-accents": "", + "pitch-accent-graphs": "", + "pitch-accent-graphs-jj": "", + "pitch-accent-positions": "", "pitch-accent-categories": "", "phonetic-transcriptions": "", "reading": "ダース", @@ -849,10 +849,10 @@ "glossary-first-brief": "
", "glossary-first-no-dictionary": "
(n)
", "part-of-speech": "Noun", - "pitch-accents": "No pitch accent data", - "pitch-accent-graphs": "No pitch accent data", - "pitch-accent-graphs-jj": "No pitch accent data", - "pitch-accent-positions": "No pitch accent data", + "pitch-accents": "", + "pitch-accent-graphs": "", + "pitch-accent-graphs-jj": "", + "pitch-accent-positions": "", "pitch-accent-categories": "", "phonetic-transcriptions": "", "reading": "がぞう", @@ -895,10 +895,10 @@ "glossary-first-brief": "
", "glossary-first-no-dictionary": "
(n)
", "part-of-speech": "Noun", - "pitch-accents": "No pitch accent data", - "pitch-accent-graphs": "No pitch accent data", - "pitch-accent-graphs-jj": "No pitch accent data", - "pitch-accent-positions": "No pitch accent data", + "pitch-accents": "", + "pitch-accent-graphs": "", + "pitch-accent-graphs-jj": "", + "pitch-accent-positions": "", "pitch-accent-categories": "", "phonetic-transcriptions": "", "reading": "だ", @@ -941,10 +941,10 @@ "glossary-first-brief": "
", "glossary-first-no-dictionary": "
(abbr, n)
", "part-of-speech": "Noun", - "pitch-accents": "No pitch accent data", - "pitch-accent-graphs": "No pitch accent data", - "pitch-accent-graphs-jj": "No pitch accent data", - "pitch-accent-positions": "No pitch accent data", + "pitch-accents": "", + "pitch-accent-graphs": "", + "pitch-accent-graphs-jj": "", + "pitch-accent-positions": "", "pitch-accent-categories": "", "phonetic-transcriptions": "", "reading": "ダース", @@ -982,10 +982,10 @@ "glossary-first-brief": "
", "glossary-first-no-dictionary": "
(n)
", "part-of-speech": "Noun", - "pitch-accents": "No pitch accent data", - "pitch-accent-graphs": "No pitch accent data", - "pitch-accent-graphs-jj": "No pitch accent data", - "pitch-accent-positions": "No pitch accent data", + "pitch-accents": "", + "pitch-accent-graphs": "", + "pitch-accent-graphs-jj": "", + "pitch-accent-positions": "", "pitch-accent-categories": "", "phonetic-transcriptions": "", "reading": "だ", @@ -1028,10 +1028,10 @@ "glossary-first-brief": "
", "glossary-first-no-dictionary": "
(vt)
", "part-of-speech": "Godan verb", - "pitch-accents": "No pitch accent data", - "pitch-accent-graphs": "No pitch accent data", - "pitch-accent-graphs-jj": "No pitch accent data", - "pitch-accent-positions": "No pitch accent data", + "pitch-accents": "", + "pitch-accent-graphs": "", + "pitch-accent-graphs-jj": "", + "pitch-accent-positions": "", "pitch-accent-categories": "", "phonetic-transcriptions": "", "reading": "うつ", @@ -1069,10 +1069,10 @@ "glossary-first-brief": "
", "glossary-first-no-dictionary": "
(vt)
", "part-of-speech": "Godan verb", - "pitch-accents": "No pitch accent data", - "pitch-accent-graphs": "No pitch accent data", - "pitch-accent-graphs-jj": "No pitch accent data", - "pitch-accent-positions": "No pitch accent data", + "pitch-accents": "", + "pitch-accent-graphs": "", + "pitch-accent-graphs-jj": "", + "pitch-accent-positions": "", "pitch-accent-categories": "", "phonetic-transcriptions": "", "reading": "うつ", @@ -1115,10 +1115,10 @@ "glossary-first-brief": "
", "glossary-first-no-dictionary": "
(vt)
", "part-of-speech": "Godan verb", - "pitch-accents": "No pitch accent data", - "pitch-accent-graphs": "No pitch accent data", - "pitch-accent-graphs-jj": "No pitch accent data", - "pitch-accent-positions": "No pitch accent data", + "pitch-accents": "", + "pitch-accent-graphs": "", + "pitch-accent-graphs-jj": "", + "pitch-accent-positions": "", "pitch-accent-categories": "", "phonetic-transcriptions": "", "reading": "ぶつ", @@ -1156,10 +1156,10 @@ "glossary-first-brief": "
", "glossary-first-no-dictionary": "
(vt)
", "part-of-speech": "Godan verb", - "pitch-accents": "No pitch accent data", - "pitch-accent-graphs": "No pitch accent data", - "pitch-accent-graphs-jj": "No pitch accent data", - "pitch-accent-positions": "No pitch accent data", + "pitch-accents": "", + "pitch-accent-graphs": "", + "pitch-accent-graphs-jj": "", + "pitch-accent-positions": "", "pitch-accent-categories": "", "phonetic-transcriptions": "", "reading": "ぶつ", @@ -1284,10 +1284,10 @@ "glossary-first-brief": "
", "glossary-first-no-dictionary": "
(vt)
", "part-of-speech": "Godan verb", - "pitch-accents": "No pitch accent data", - "pitch-accent-graphs": "No pitch accent data", - "pitch-accent-graphs-jj": "No pitch accent data", - "pitch-accent-positions": "No pitch accent data", + "pitch-accents": "", + "pitch-accent-graphs": "", + "pitch-accent-graphs-jj": "", + "pitch-accent-positions": "", "pitch-accent-categories": "", "phonetic-transcriptions": "", "reading": "うつ", @@ -1325,10 +1325,10 @@ "glossary-first-brief": "
", "glossary-first-no-dictionary": "
(vt)
", "part-of-speech": "Godan verb", - "pitch-accents": "No pitch accent data", - "pitch-accent-graphs": "No pitch accent data", - "pitch-accent-graphs-jj": "No pitch accent data", - "pitch-accent-positions": "No pitch accent data", + "pitch-accents": "", + "pitch-accent-graphs": "", + "pitch-accent-graphs-jj": "", + "pitch-accent-positions": "", "pitch-accent-categories": "", "phonetic-transcriptions": "", "reading": "うつ", @@ -1453,10 +1453,10 @@ "glossary-first-brief": "
", "glossary-first-no-dictionary": "
(vt)
", "part-of-speech": "Godan verb", - "pitch-accents": "No pitch accent data", - "pitch-accent-graphs": "No pitch accent data", - "pitch-accent-graphs-jj": "No pitch accent data", - "pitch-accent-positions": "No pitch accent data", + "pitch-accents": "", + "pitch-accent-graphs": "", + "pitch-accent-graphs-jj": "", + "pitch-accent-positions": "", "pitch-accent-categories": "", "phonetic-transcriptions": "", "reading": "ぶつ", @@ -1494,10 +1494,10 @@ "glossary-first-brief": "
", "glossary-first-no-dictionary": "
(vt)
", "part-of-speech": "Godan verb", - "pitch-accents": "No pitch accent data", - "pitch-accent-graphs": "No pitch accent data", - "pitch-accent-graphs-jj": "No pitch accent data", - "pitch-accent-positions": "No pitch accent data", + "pitch-accents": "", + "pitch-accent-graphs": "", + "pitch-accent-graphs-jj": "", + "pitch-accent-positions": "", "pitch-accent-categories": "", "phonetic-transcriptions": "", "reading": "ぶつ", @@ -1540,10 +1540,10 @@ "glossary-first-brief": "
", "glossary-first-no-dictionary": "
(n)
", "part-of-speech": "Noun", - "pitch-accents": "No pitch accent data", - "pitch-accent-graphs": "No pitch accent data", - "pitch-accent-graphs-jj": "No pitch accent data", - "pitch-accent-positions": "No pitch accent data", + "pitch-accents": "", + "pitch-accent-graphs": "", + "pitch-accent-graphs-jj": "", + "pitch-accent-positions": "", "pitch-accent-categories": "", "phonetic-transcriptions": "", "reading": "がぞう", @@ -1680,10 +1680,10 @@ "glossary-first-brief": "
", "glossary-first-no-dictionary": "
(vt)
", "part-of-speech": "Godan verb", - "pitch-accents": "No pitch accent data", - "pitch-accent-graphs": "No pitch accent data", - "pitch-accent-graphs-jj": "No pitch accent data", - "pitch-accent-positions": "No pitch accent data", + "pitch-accents": "", + "pitch-accent-graphs": "", + "pitch-accent-graphs-jj": "", + "pitch-accent-positions": "", "pitch-accent-categories": "", "phonetic-transcriptions": "", "reading": "うつ", @@ -1721,10 +1721,10 @@ "glossary-first-brief": "
", "glossary-first-no-dictionary": "
(vt)
", "part-of-speech": "Godan verb", - "pitch-accents": "No pitch accent data", - "pitch-accent-graphs": "No pitch accent data", - "pitch-accent-graphs-jj": "No pitch accent data", - "pitch-accent-positions": "No pitch accent data", + "pitch-accents": "", + "pitch-accent-graphs": "", + "pitch-accent-graphs-jj": "", + "pitch-accent-positions": "", "pitch-accent-categories": "", "phonetic-transcriptions": "", "reading": "ぶつ", @@ -1762,10 +1762,10 @@ "glossary-first-brief": "
", "glossary-first-no-dictionary": "
(n)
", "part-of-speech": "Noun", - "pitch-accents": "No pitch accent data", - "pitch-accent-graphs": "No pitch accent data", - "pitch-accent-graphs-jj": "No pitch accent data", - "pitch-accent-positions": "No pitch accent data", + "pitch-accents": "", + "pitch-accent-graphs": "", + "pitch-accent-graphs-jj": "", + "pitch-accent-positions": "", "pitch-accent-categories": "", "phonetic-transcriptions": "", "reading": "だ", @@ -1803,10 +1803,10 @@ "glossary-first-brief": "
", "glossary-first-no-dictionary": "
(abbr, n)
", "part-of-speech": "Noun", - "pitch-accents": "No pitch accent data", - "pitch-accent-graphs": "No pitch accent data", - "pitch-accent-graphs-jj": "No pitch accent data", - "pitch-accent-positions": "No pitch accent data", + "pitch-accents": "", + "pitch-accent-graphs": "", + "pitch-accent-graphs-jj": "", + "pitch-accent-positions": "", "pitch-accent-categories": "", "phonetic-transcriptions": "", "reading": "ダース", @@ -1890,10 +1890,10 @@ "glossary-first-brief": "
", "glossary-first-no-dictionary": "
(vt) (うつ only)
", "part-of-speech": "Godan verb", - "pitch-accents": "No pitch accent data", - "pitch-accent-graphs": "No pitch accent data", - "pitch-accent-graphs-jj": "No pitch accent data", - "pitch-accent-positions": "No pitch accent data", + "pitch-accents": "", + "pitch-accent-graphs": "", + "pitch-accent-graphs-jj": "", + "pitch-accent-positions": "", "pitch-accent-categories": "", "phonetic-transcriptions": "", "reading": "うつ、ぶつ", @@ -1931,10 +1931,10 @@ "glossary-first-brief": "
", "glossary-first-no-dictionary": "
(n)
", "part-of-speech": "Noun", - "pitch-accents": "No pitch accent data", - "pitch-accent-graphs": "No pitch accent data", - "pitch-accent-graphs-jj": "No pitch accent data", - "pitch-accent-positions": "No pitch accent data", + "pitch-accents": "", + "pitch-accent-graphs": "", + "pitch-accent-graphs-jj": "", + "pitch-accent-positions": "", "pitch-accent-categories": "", "phonetic-transcriptions": "", "reading": "だ", @@ -1972,10 +1972,10 @@ "glossary-first-brief": "
", "glossary-first-no-dictionary": "
(abbr, n)
", "part-of-speech": "Noun", - "pitch-accents": "No pitch accent data", - "pitch-accent-graphs": "No pitch accent data", - "pitch-accent-graphs-jj": "No pitch accent data", - "pitch-accent-positions": "No pitch accent data", + "pitch-accents": "", + "pitch-accent-graphs": "", + "pitch-accent-graphs-jj": "", + "pitch-accent-positions": "", "pitch-accent-categories": "", "phonetic-transcriptions": "", "reading": "ダース", @@ -2182,10 +2182,10 @@ "glossary-first-brief": "
", "glossary-first-no-dictionary": "
(vt)
", "part-of-speech": "Godan verb", - "pitch-accents": "No pitch accent data", - "pitch-accent-graphs": "No pitch accent data", - "pitch-accent-graphs-jj": "No pitch accent data", - "pitch-accent-positions": "No pitch accent data", + "pitch-accents": "", + "pitch-accent-graphs": "", + "pitch-accent-graphs-jj": "", + "pitch-accent-positions": "", "pitch-accent-categories": "", "phonetic-transcriptions": "", "reading": "うつ", @@ -2223,10 +2223,10 @@ "glossary-first-brief": "
", "glossary-first-no-dictionary": "
(vt)
", "part-of-speech": "Godan verb", - "pitch-accents": "No pitch accent data", - "pitch-accent-graphs": "No pitch accent data", - "pitch-accent-graphs-jj": "No pitch accent data", - "pitch-accent-positions": "No pitch accent data", + "pitch-accents": "", + "pitch-accent-graphs": "", + "pitch-accent-graphs-jj": "", + "pitch-accent-positions": "", "pitch-accent-categories": "", "phonetic-transcriptions": "", "reading": "ぶつ", @@ -2264,10 +2264,10 @@ "glossary-first-brief": "
", "glossary-first-no-dictionary": "
(vt)
", "part-of-speech": "Godan verb", - "pitch-accents": "No pitch accent data", - "pitch-accent-graphs": "No pitch accent data", - "pitch-accent-graphs-jj": "No pitch accent data", - "pitch-accent-positions": "No pitch accent data", + "pitch-accents": "", + "pitch-accent-graphs": "", + "pitch-accent-graphs-jj": "", + "pitch-accent-positions": "", "pitch-accent-categories": "", "phonetic-transcriptions": "", "reading": "うつ", @@ -2305,10 +2305,10 @@ "glossary-first-brief": "
", "glossary-first-no-dictionary": "
(vt)
", "part-of-speech": "Godan verb", - "pitch-accents": "No pitch accent data", - "pitch-accent-graphs": "No pitch accent data", - "pitch-accent-graphs-jj": "No pitch accent data", - "pitch-accent-positions": "No pitch accent data", + "pitch-accents": "", + "pitch-accent-graphs": "", + "pitch-accent-graphs-jj": "", + "pitch-accent-positions": "", "pitch-accent-categories": "", "phonetic-transcriptions": "", "reading": "ぶつ", @@ -2346,10 +2346,10 @@ "glossary-first-brief": "
", "glossary-first-no-dictionary": "
(n)
", "part-of-speech": "Noun", - "pitch-accents": "No pitch accent data", - "pitch-accent-graphs": "No pitch accent data", - "pitch-accent-graphs-jj": "No pitch accent data", - "pitch-accent-positions": "No pitch accent data", + "pitch-accents": "", + "pitch-accent-graphs": "", + "pitch-accent-graphs-jj": "", + "pitch-accent-positions": "", "pitch-accent-categories": "", "phonetic-transcriptions": "", "reading": "だ", @@ -2387,10 +2387,10 @@ "glossary-first-brief": "
", "glossary-first-no-dictionary": "
(abbr, n)
", "part-of-speech": "Noun", - "pitch-accents": "No pitch accent data", - "pitch-accent-graphs": "No pitch accent data", - "pitch-accent-graphs-jj": "No pitch accent data", - "pitch-accent-positions": "No pitch accent data", + "pitch-accents": "", + "pitch-accent-graphs": "", + "pitch-accent-graphs-jj": "", + "pitch-accent-positions": "", "pitch-accent-categories": "", "phonetic-transcriptions": "", "reading": "ダース", @@ -2597,10 +2597,10 @@ "glossary-first-brief": "
", "glossary-first-no-dictionary": "
(vt)
", "part-of-speech": "Godan verb", - "pitch-accents": "No pitch accent data", - "pitch-accent-graphs": "No pitch accent data", - "pitch-accent-graphs-jj": "No pitch accent data", - "pitch-accent-positions": "No pitch accent data", + "pitch-accents": "", + "pitch-accent-graphs": "", + "pitch-accent-graphs-jj": "", + "pitch-accent-positions": "", "pitch-accent-categories": "", "phonetic-transcriptions": "", "reading": "うつ", @@ -2638,10 +2638,10 @@ "glossary-first-brief": "
", "glossary-first-no-dictionary": "
(vt)
", "part-of-speech": "Godan verb", - "pitch-accents": "No pitch accent data", - "pitch-accent-graphs": "No pitch accent data", - "pitch-accent-graphs-jj": "No pitch accent data", - "pitch-accent-positions": "No pitch accent data", + "pitch-accents": "", + "pitch-accent-graphs": "", + "pitch-accent-graphs-jj": "", + "pitch-accent-positions": "", "pitch-accent-categories": "", "phonetic-transcriptions": "", "reading": "ぶつ", @@ -2679,10 +2679,10 @@ "glossary-first-brief": "
", "glossary-first-no-dictionary": "
(vt)
", "part-of-speech": "Godan verb", - "pitch-accents": "No pitch accent data", - "pitch-accent-graphs": "No pitch accent data", - "pitch-accent-graphs-jj": "No pitch accent data", - "pitch-accent-positions": "No pitch accent data", + "pitch-accents": "", + "pitch-accent-graphs": "", + "pitch-accent-graphs-jj": "", + "pitch-accent-positions": "", "pitch-accent-categories": "", "phonetic-transcriptions": "", "reading": "うつ", @@ -2720,10 +2720,10 @@ "glossary-first-brief": "
", "glossary-first-no-dictionary": "
(vt)
", "part-of-speech": "Godan verb", - "pitch-accents": "No pitch accent data", - "pitch-accent-graphs": "No pitch accent data", - "pitch-accent-graphs-jj": "No pitch accent data", - "pitch-accent-positions": "No pitch accent data", + "pitch-accents": "", + "pitch-accent-graphs": "", + "pitch-accent-graphs-jj": "", + "pitch-accent-positions": "", "pitch-accent-categories": "", "phonetic-transcriptions": "", "reading": "ぶつ", @@ -2761,10 +2761,10 @@ "glossary-first-brief": "
", "glossary-first-no-dictionary": "
(n)
", "part-of-speech": "Noun", - "pitch-accents": "No pitch accent data", - "pitch-accent-graphs": "No pitch accent data", - "pitch-accent-graphs-jj": "No pitch accent data", - "pitch-accent-positions": "No pitch accent data", + "pitch-accents": "", + "pitch-accent-graphs": "", + "pitch-accent-graphs-jj": "", + "pitch-accent-positions": "", "pitch-accent-categories": "", "phonetic-transcriptions": "", "reading": "だ", @@ -2802,10 +2802,10 @@ "glossary-first-brief": "
", "glossary-first-no-dictionary": "
(abbr, n)
", "part-of-speech": "Noun", - "pitch-accents": "No pitch accent data", - "pitch-accent-graphs": "No pitch accent data", - "pitch-accent-graphs-jj": "No pitch accent data", - "pitch-accent-positions": "No pitch accent data", + "pitch-accents": "", + "pitch-accent-graphs": "", + "pitch-accent-graphs-jj": "", + "pitch-accent-positions": "", "pitch-accent-categories": "", "phonetic-transcriptions": "", "reading": "ダース", @@ -3012,10 +3012,10 @@ "glossary-first-brief": "
", "glossary-first-no-dictionary": "
(vt)
", "part-of-speech": "Godan verb", - "pitch-accents": "No pitch accent data", - "pitch-accent-graphs": "No pitch accent data", - "pitch-accent-graphs-jj": "No pitch accent data", - "pitch-accent-positions": "No pitch accent data", + "pitch-accents": "", + "pitch-accent-graphs": "", + "pitch-accent-graphs-jj": "", + "pitch-accent-positions": "", "pitch-accent-categories": "", "phonetic-transcriptions": "", "reading": "うつ", @@ -3053,10 +3053,10 @@ "glossary-first-brief": "
", "glossary-first-no-dictionary": "
(vt)
", "part-of-speech": "Godan verb", - "pitch-accents": "No pitch accent data", - "pitch-accent-graphs": "No pitch accent data", - "pitch-accent-graphs-jj": "No pitch accent data", - "pitch-accent-positions": "No pitch accent data", + "pitch-accents": "", + "pitch-accent-graphs": "", + "pitch-accent-graphs-jj": "", + "pitch-accent-positions": "", "pitch-accent-categories": "", "phonetic-transcriptions": "", "reading": "ぶつ", @@ -3094,10 +3094,10 @@ "glossary-first-brief": "
", "glossary-first-no-dictionary": "
(vt)
", "part-of-speech": "Godan verb", - "pitch-accents": "No pitch accent data", - "pitch-accent-graphs": "No pitch accent data", - "pitch-accent-graphs-jj": "No pitch accent data", - "pitch-accent-positions": "No pitch accent data", + "pitch-accents": "", + "pitch-accent-graphs": "", + "pitch-accent-graphs-jj": "", + "pitch-accent-positions": "", "pitch-accent-categories": "", "phonetic-transcriptions": "", "reading": "うつ", @@ -3135,10 +3135,10 @@ "glossary-first-brief": "
", "glossary-first-no-dictionary": "
(vt)
", "part-of-speech": "Godan verb", - "pitch-accents": "No pitch accent data", - "pitch-accent-graphs": "No pitch accent data", - "pitch-accent-graphs-jj": "No pitch accent data", - "pitch-accent-positions": "No pitch accent data", + "pitch-accents": "", + "pitch-accent-graphs": "", + "pitch-accent-graphs-jj": "", + "pitch-accent-positions": "", "pitch-accent-categories": "", "phonetic-transcriptions": "", "reading": "ぶつ", @@ -3176,10 +3176,10 @@ "glossary-first-brief": "
", "glossary-first-no-dictionary": "
(n)
", "part-of-speech": "Noun", - "pitch-accents": "No pitch accent data", - "pitch-accent-graphs": "No pitch accent data", - "pitch-accent-graphs-jj": "No pitch accent data", - "pitch-accent-positions": "No pitch accent data", + "pitch-accents": "", + "pitch-accent-graphs": "", + "pitch-accent-graphs-jj": "", + "pitch-accent-positions": "", "pitch-accent-categories": "", "phonetic-transcriptions": "", "reading": "だ", @@ -3217,10 +3217,10 @@ "glossary-first-brief": "
", "glossary-first-no-dictionary": "
(abbr, n)
", "part-of-speech": "Noun", - "pitch-accents": "No pitch accent data", - "pitch-accent-graphs": "No pitch accent data", - "pitch-accent-graphs-jj": "No pitch accent data", - "pitch-accent-positions": "No pitch accent data", + "pitch-accents": "", + "pitch-accent-graphs": "", + "pitch-accent-graphs-jj": "", + "pitch-accent-positions": "", "pitch-accent-categories": "", "phonetic-transcriptions": "", "reading": "ダース", @@ -3263,10 +3263,10 @@ "glossary-first-brief": "
to read
", "glossary-first-no-dictionary": "
(vt) to read
", "part-of-speech": "Godan verb", - "pitch-accents": "No pitch accent data", - "pitch-accent-graphs": "No pitch accent data", - "pitch-accent-graphs-jj": "No pitch accent data", - "pitch-accent-positions": "No pitch accent data", + "pitch-accents": "", + "pitch-accent-graphs": "", + "pitch-accent-graphs-jj": "", + "pitch-accent-positions": "", "pitch-accent-categories": "", "phonetic-transcriptions": "", "reading": "よむ", @@ -3309,10 +3309,10 @@ "glossary-first-brief": "
strong point
", "glossary-first-no-dictionary": "
(n) strong point
", "part-of-speech": "Noun", - "pitch-accents": "No pitch accent data", - "pitch-accent-graphs": "No pitch accent data", - "pitch-accent-graphs-jj": "No pitch accent data", - "pitch-accent-positions": "No pitch accent data", + "pitch-accents": "", + "pitch-accent-graphs": "", + "pitch-accent-graphs-jj": "", + "pitch-accent-positions": "", "pitch-accent-categories": "", "phonetic-transcriptions": "", "reading": "つよみ", @@ -3355,10 +3355,10 @@ "glossary-first-brief": "
to read
", "glossary-first-no-dictionary": "
(vt) to read
", "part-of-speech": "Godan verb", - "pitch-accents": "No pitch accent data", - "pitch-accent-graphs": "No pitch accent data", - "pitch-accent-graphs-jj": "No pitch accent data", - "pitch-accent-positions": "No pitch accent data", + "pitch-accents": "", + "pitch-accent-graphs": "", + "pitch-accent-graphs-jj": "", + "pitch-accent-positions": "", "pitch-accent-categories": "", "phonetic-transcriptions": "", "reading": "よむ", @@ -3442,10 +3442,10 @@ "glossary-first-brief": "
", "glossary-first-no-dictionary": "
(vt) (うつ only)
", "part-of-speech": "Godan verb", - "pitch-accents": "No pitch accent data", - "pitch-accent-graphs": "No pitch accent data", - "pitch-accent-graphs-jj": "No pitch accent data", - "pitch-accent-positions": "No pitch accent data", + "pitch-accents": "", + "pitch-accent-graphs": "", + "pitch-accent-graphs-jj": "", + "pitch-accent-positions": "", "pitch-accent-categories": "", "phonetic-transcriptions": "", "reading": "うつ、ぶつ", @@ -3718,10 +3718,10 @@ "glossary-first-brief": "
suki definition
", "glossary-first-no-dictionary": "
(adj-na, n) suki definition
", "part-of-speech": "Unknown", - "pitch-accents": "No pitch accent data", - "pitch-accent-graphs": "No pitch accent data", - "pitch-accent-graphs-jj": "No pitch accent data", - "pitch-accent-positions": "No pitch accent data", + "pitch-accents": "", + "pitch-accent-graphs": "", + "pitch-accent-graphs-jj": "", + "pitch-accent-positions": "", "pitch-accent-categories": "", "phonetic-transcriptions": "", "reading": "すき", @@ -3764,10 +3764,10 @@ "glossary-first-brief": "
", "glossary-first-no-dictionary": "
(n)
", "part-of-speech": "Noun", - "pitch-accents": "No pitch accent data", - "pitch-accent-graphs": "No pitch accent data", - "pitch-accent-graphs-jj": "No pitch accent data", - "pitch-accent-positions": "No pitch accent data", + "pitch-accents": "", + "pitch-accent-graphs": "", + "pitch-accent-graphs-jj": "", + "pitch-accent-positions": "", "pitch-accent-categories": "", "phonetic-transcriptions": "", "reading": "こうぞう", @@ -3810,10 +3810,10 @@ "glossary-first-brief": "
notamau definition
", "glossary-first-no-dictionary": "
(v5) notamau definition
", "part-of-speech": "Godan verb", - "pitch-accents": "No pitch accent data", - "pitch-accent-graphs": "No pitch accent data", - "pitch-accent-graphs-jj": "No pitch accent data", - "pitch-accent-positions": "No pitch accent data", + "pitch-accents": "", + "pitch-accent-graphs": "", + "pitch-accent-graphs-jj": "", + "pitch-accent-positions": "", "pitch-accent-categories": "", "phonetic-transcriptions": "", "reading": "のたまう", @@ -3856,10 +3856,10 @@ "glossary-first-brief": "
sankyuu definition
", "glossary-first-no-dictionary": "
sankyuu definition
", "part-of-speech": "Unknown", - "pitch-accents": "No pitch accent data", - "pitch-accent-graphs": "No pitch accent data", - "pitch-accent-graphs-jj": "No pitch accent data", - "pitch-accent-positions": "No pitch accent data", + "pitch-accents": "", + "pitch-accent-graphs": "", + "pitch-accent-graphs-jj": "", + "pitch-accent-positions": "", "pitch-accent-categories": "", "phonetic-transcriptions": "", "reading": "さんきゅう", @@ -3902,10 +3902,10 @@ "glossary-first-brief": "
", "glossary-first-no-dictionary": "
(vt)
", "part-of-speech": "Godan verb", - "pitch-accents": "No pitch accent data", - "pitch-accent-graphs": "No pitch accent data", - "pitch-accent-graphs-jj": "No pitch accent data", - "pitch-accent-positions": "No pitch accent data", + "pitch-accents": "", + "pitch-accent-graphs": "", + "pitch-accent-graphs-jj": "", + "pitch-accent-positions": "", "pitch-accent-categories": "", "phonetic-transcriptions": "", "reading": "うつ", @@ -3943,10 +3943,10 @@ "glossary-first-brief": "
", "glossary-first-no-dictionary": "
(vt)
", "part-of-speech": "Godan verb", - "pitch-accents": "No pitch accent data", - "pitch-accent-graphs": "No pitch accent data", - "pitch-accent-graphs-jj": "No pitch accent data", - "pitch-accent-positions": "No pitch accent data", + "pitch-accents": "", + "pitch-accent-graphs": "", + "pitch-accent-graphs-jj": "", + "pitch-accent-positions": "", "pitch-accent-categories": "", "phonetic-transcriptions": "", "reading": "うつ", @@ -3989,10 +3989,10 @@ "glossary-first-brief": "
", "glossary-first-no-dictionary": "
(vt)
", "part-of-speech": "Godan verb", - "pitch-accents": "No pitch accent data", - "pitch-accent-graphs": "No pitch accent data", - "pitch-accent-graphs-jj": "No pitch accent data", - "pitch-accent-positions": "No pitch accent data", + "pitch-accents": "", + "pitch-accent-graphs": "", + "pitch-accent-graphs-jj": "", + "pitch-accent-positions": "", "pitch-accent-categories": "", "phonetic-transcriptions": "", "reading": "うつ", @@ -4030,10 +4030,10 @@ "glossary-first-brief": "
", "glossary-first-no-dictionary": "
(vt)
", "part-of-speech": "Godan verb", - "pitch-accents": "No pitch accent data", - "pitch-accent-graphs": "No pitch accent data", - "pitch-accent-graphs-jj": "No pitch accent data", - "pitch-accent-positions": "No pitch accent data", + "pitch-accents": "", + "pitch-accent-graphs": "", + "pitch-accent-graphs-jj": "", + "pitch-accent-positions": "", "pitch-accent-categories": "", "phonetic-transcriptions": "", "reading": "うつ", @@ -4076,10 +4076,10 @@ "glossary-first-brief": "
", "glossary-first-no-dictionary": "
(n)
", "part-of-speech": "Noun", - "pitch-accents": "No pitch accent data", - "pitch-accent-graphs": "No pitch accent data", - "pitch-accent-graphs-jj": "No pitch accent data", - "pitch-accent-positions": "No pitch accent data", + "pitch-accents": "", + "pitch-accent-graphs": "", + "pitch-accent-graphs-jj": "", + "pitch-accent-positions": "", "pitch-accent-categories": "", "phonetic-transcriptions": "", "reading": "テキスト", @@ -4122,10 +4122,10 @@ "glossary-first-brief": "
", "glossary-first-no-dictionary": "
(vt)
", "part-of-speech": "Godan verb", - "pitch-accents": "No pitch accent data", - "pitch-accent-graphs": "No pitch accent data", - "pitch-accent-graphs-jj": "No pitch accent data", - "pitch-accent-positions": "No pitch accent data", + "pitch-accents": "", + "pitch-accent-graphs": "", + "pitch-accent-graphs-jj": "", + "pitch-accent-positions": "", "pitch-accent-categories": "", "phonetic-transcriptions": "", "reading": "うつ", @@ -4163,10 +4163,10 @@ "glossary-first-brief": "
", "glossary-first-no-dictionary": "
(vt)
", "part-of-speech": "Godan verb", - "pitch-accents": "No pitch accent data", - "pitch-accent-graphs": "No pitch accent data", - "pitch-accent-graphs-jj": "No pitch accent data", - "pitch-accent-positions": "No pitch accent data", + "pitch-accents": "", + "pitch-accent-graphs": "", + "pitch-accent-graphs-jj": "", + "pitch-accent-positions": "", "pitch-accent-categories": "", "phonetic-transcriptions": "", "reading": "うつ", @@ -4209,10 +4209,10 @@ "glossary-first-brief": "
sugoi definition
", "glossary-first-no-dictionary": "
(adj-i) sugoi definition
", "part-of-speech": "I-adjective", - "pitch-accents": "No pitch accent data", - "pitch-accent-graphs": "No pitch accent data", - "pitch-accent-graphs-jj": "No pitch accent data", - "pitch-accent-positions": "No pitch accent data", + "pitch-accents": "", + "pitch-accent-graphs": "", + "pitch-accent-graphs-jj": "", + "pitch-accent-positions": "", "pitch-accent-categories": "", "phonetic-transcriptions": "", "reading": "すごい", @@ -4255,10 +4255,10 @@ "glossary-first-brief": "
English definition
", "glossary-first-no-dictionary": "
(n) English definition
", "part-of-speech": "Noun", - "pitch-accents": "No pitch accent data", - "pitch-accent-graphs": "No pitch accent data", - "pitch-accent-graphs-jj": "No pitch accent data", - "pitch-accent-positions": "No pitch accent data", + "pitch-accents": "", + "pitch-accent-graphs": "", + "pitch-accent-graphs-jj": "", + "pitch-accent-positions": "", "pitch-accent-categories": "", "phonetic-transcriptions": "", "reading": "English", @@ -4301,10 +4301,10 @@ "glossary-first-brief": "
language definition
", "glossary-first-no-dictionary": "
(n) language definition
", "part-of-speech": "Noun", - "pitch-accents": "No pitch accent data", - "pitch-accent-graphs": "No pitch accent data", - "pitch-accent-graphs-jj": "No pitch accent data", - "pitch-accent-positions": "No pitch accent data", + "pitch-accents": "", + "pitch-accent-graphs": "", + "pitch-accent-graphs-jj": "", + "pitch-accent-positions": "", "pitch-accent-categories": "", "phonetic-transcriptions": "", "reading": "language", @@ -4347,10 +4347,10 @@ "glossary-first-brief": "
masida definition
", "glossary-first-no-dictionary": "
(v) masida definition
", "part-of-speech": "v", - "pitch-accents": "No pitch accent data", - "pitch-accent-graphs": "No pitch accent data", - "pitch-accent-graphs-jj": "No pitch accent data", - "pitch-accent-positions": "No pitch accent data", + "pitch-accents": "", + "pitch-accent-graphs": "", + "pitch-accent-graphs-jj": "", + "pitch-accent-positions": "", "pitch-accent-categories": "", "phonetic-transcriptions": "", "reading": "마시다", @@ -4393,10 +4393,10 @@ "glossary-first-brief": "
English definition
", "glossary-first-no-dictionary": "
(n) English definition
", "part-of-speech": "Noun", - "pitch-accents": "No pitch accent data", - "pitch-accent-graphs": "No pitch accent data", - "pitch-accent-graphs-jj": "No pitch accent data", - "pitch-accent-positions": "No pitch accent data", + "pitch-accents": "", + "pitch-accent-graphs": "", + "pitch-accent-graphs-jj": "", + "pitch-accent-positions": "", "pitch-accent-categories": "", "phonetic-transcriptions": "", "reading": "English", diff --git a/test/options-util.test.js b/test/options-util.test.js index 70404ce5..4b4c3df9 100644 --- a/test/options-util.test.js +++ b/test/options-util.test.js @@ -605,7 +605,7 @@ function createOptionsUpdatedTestData1() { } ], profileCurrent: 0, - version: 36, + version: 37, global: { database: { prefixWildcardsSupported: false -- cgit v1.2.3