From 5a2bc4e542b7f22d1e6a4ba318cfcdc33817d34a Mon Sep 17 00:00:00 2001 From: Kuuuube <61125188+Kuuuube@users.noreply.github.com> Date: Fri, 2 Feb 2024 21:53:42 -0500 Subject: Add frequency number handlebars (#600) * Add frequencies-num handlebar * Fix handlebar name * Fix inconsistent variable name format * Add frequency-number to anki tests * Use full names for total and frequency variables * Migrate handlebars to JS, split rank and occurance, add average * Remove left behind frequency-number * Fix "occurrence" spelling * Cleanup types * Add frequency support for kanji cards * Fix code style * Clean up most of duplicate code and merge functions * Fix frequencies.length check * Use less witchcraft and remove redundant type casting --- test/utilities/anki.js | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'test/utilities') diff --git a/test/utilities/anki.js b/test/utilities/anki.js index d0e095bd..4c6c6d57 100644 --- a/test/utilities/anki.js +++ b/test/utilities/anki.js @@ -65,6 +65,10 @@ function getFieldMarkers(type) { 'document-title', 'expression', 'frequencies', + 'frequency-harmonic-rank', + 'frequency-harmonic-occurrence', + 'frequency-average-rank', + 'frequency-average-occurrence', 'furigana', 'furigana-plain', 'glossary', @@ -94,6 +98,11 @@ function getFieldMarkers(type) { 'cloze-suffix', 'dictionary', 'document-title', + 'frequencies', + 'frequency-harmonic-rank', + 'frequency-harmonic-occurrence', + 'frequency-average-rank', + 'frequency-average-occurrence', 'glossary', 'kunyomi', 'onyomi', -- cgit v1.2.3