Skip to content

Commit

Permalink
Adding handlebar to return pitch accent categories of a word
Browse files Browse the repository at this point in the history
  • Loading branch information
arbyste committed Jan 23, 2024
1 parent f9522be commit 4ead468
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ext/data/templates/default-anki-field-templates.handlebars
Original file line number Diff line number Diff line change
Expand Up @@ -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"}}
Expand Down
1 change: 1 addition & 0 deletions ext/js/pages/settings/anki-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ export class AnkiController {
'pitch-accents',
'pitch-accent-graphs',
'pitch-accent-positions',
'pitch-accent-categories',
'phonetic-transcriptions',
'reading',
'screenshot',
Expand Down

0 comments on commit 4ead468

Please sign in to comment.