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 -- 2 files changed, 33 insertions(+), 2 deletions(-) create mode 100644 ext/data/templates/anki-field-templates-upgrade-v37.handlebars (limited to 'ext/data/templates') 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}} -- cgit v1.2.3