aboutsummaryrefslogtreecommitdiff
path: root/ext/data/templates
diff options
context:
space:
mode:
authorarbyste <144075975+arbyste@users.noreply.github.com>2024-01-27 02:29:36 -0700
committerGitHub <noreply@github.com>2024-01-27 09:29:36 +0000
commit1b9422d026dce0aedf5d2b94495222cccde4963e (patch)
tree38887dee249771e226f3dac2c4f9eeb6c5f839c2 /ext/data/templates
parent1c258f7207faad0c1489fb24fb31694e32064914 (diff)
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
Diffstat (limited to 'ext/data/templates')
-rw-r--r--ext/data/templates/default-anki-field-templates.handlebars4
1 files changed, 4 insertions, 0 deletions
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"}}