From 1b9422d026dce0aedf5d2b94495222cccde4963e Mon Sep 17 00:00:00 2001 From: arbyste <144075975+arbyste@users.noreply.github.com> Date: Sat, 27 Jan 2024 02:29:36 -0700 Subject: Adding a handlebar to return pitch accent categories of a word (#563) * Fixing logic in isNonNounVerbOrAdjective function * Adding handlebar to return pitch accent categories of a word --- ext/data/templates/default-anki-field-templates.handlebars | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ext/data/templates') diff --git a/ext/data/templates/default-anki-field-templates.handlebars b/ext/data/templates/default-anki-field-templates.handlebars index 818677ce..0ea98e5e 100644 --- a/ext/data/templates/default-anki-field-templates.handlebars +++ b/ext/data/templates/default-anki-field-templates.handlebars @@ -227,6 +227,10 @@ {{#*inline "pitch-accent-positions"}} {{~> pitch-accent-list format='position'~}} {{/inline}} + +{{~#*inline "pitch-accent-categories"~}} + {{~#each (pitchCategories @root)~}}{{~.~}}{{~#unless @last~}},{{~/unless~}}{{~/each~}} +{{~/inline~}} {{! End Pitch Accents }} {{#*inline "phonetic-transcriptions"}} -- cgit v1.2.3