diff --git a/anki-helper.yaml b/anki-helper.yaml index 7cbec86..d17d463 100644 --- a/anki-helper.yaml +++ b/anki-helper.yaml @@ -79,55 +79,57 @@ actions: # FieldVoiceover (unless skipVoiceover: true) - name: Word vars: - PRONOUN: "" - TENSE: _spanish-infinitive.png + pronoun: "" + tense: _spanish-infinitive.png - name: Explanation skipVoiceover: true - name: IndicativePresentYo vars: - PRONOUN: yo - TENSE: _spanish-tense-present.jpeg + pronoun: yo + tense: _spanish-tense-present.jpeg - name: IndicativePresentTu vars: - PRONOUN: tú - TENSE: _spanish-tense-present.jpeg + pronoun: tú + tense: _spanish-tense-present.jpeg - name: IndicativePresentEl vars: - PRONOUN: él/ella/usted - TENSE: _spanish-tense-present.jpeg + pronoun: él/ella/usted + tense: _spanish-tense-present.jpeg - name: IndicativePresentNosotros vars: - PRONOUN: nosotros - TENSE: _spanish-tense-present.jpeg + pronoun: nosotros + tense: _spanish-tense-present.jpeg - name: IndicativePresentVosotros vars: - PRONOUN: vosotros - TENSE: _spanish-tense-present.jpeg + pronoun: vosotros + tense: _spanish-tense-present.jpeg - name: IndicativePresentEllos vars: - PRONOUN: ellos/ellas/ustedes - TENSE: _spanish-tense-present.jpeg + pronoun: ellos/ellas/ustedes + tense: _spanish-tense-present.jpeg - name: ImperativeAffirmativeTu vars: - PRONOUN: tú - TENSE: _spanish-tense-imperative.jpeg + pronoun: tú + tense: _spanish-tense-imperative.jpeg - name: ImperativeAffirmativeUsted vars: - PRONOUN: usted - TENSE: _spanish-tense-imperative.jpeg + pronoun: usted + tense: _spanish-tense-imperative.jpeg - name: AutoConjugationIgnore skipVoiceover: true templates: # For each template a distinct card template is created for each field specified in forFields # The following meta-variables will be substituted in name, front and back before passing them to Anki: - # $$FIELD$$, $$FIELD_VOICEOVER$$ + # $$.Field$$, $$.FieldVoiceover$$ + # + # Additionally, variables attached to a field are available in the template as $$.Vars.varName$$. # - # Front layout is automatically wrapped with {{^$$FIELD$$}}{{/$$FIELD$$}}, so there is no need in + # Front layout is automatically wrapped with {{^$$.Field$$}}{{/$$.Field$$}}, so there is no need in # adding this manually - - name: "FillIn$$FIELD$$" + - name: "FillIn$$.Field$$" forFields: - Word - IndicativePresentYo @@ -139,11 +141,11 @@ actions: - ImperativeAffirmativeTu - ImperativeAffirmativeUsted front: | -

+

{{text:Explanation}}
-
$$PRONOUN$$ […]
+
$$.Vars.pronoun$$ […]
- {{type::$$FIELD$$}} + {{type::$$.Field$$}} back: | -

+

{{text:Explanation}}
-
$$PRONOUN$$ {{text:$$FIELD$$}}{{$$FIELD_VOICEOVER$$}}
+
$$.Vars.pronoun$$ {{text:$$.Field$$}}{{$$.FieldVoiceover$$}}

- {{type::$$FIELD$$}} + {{type::$$.Field$$}}