From e5e0152cb0f15c7b57b3d8af7bb475ebee75868e Mon Sep 17 00:00:00 2001 From: Lev Khotov Date: Sat, 31 Dec 2022 12:47:50 +0100 Subject: [PATCH] Add gender-dependent card meta-template. --- anki-helper.yaml | 89 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 89 insertions(+) diff --git a/anki-helper.yaml b/anki-helper.yaml index b8491fc..c50a39f 100644 --- a/anki-helper.yaml +++ b/anki-helper.yaml @@ -215,6 +215,95 @@ actions: color: blue; } + - name: SpanishGenderDependent + fields: + - name: Explanation + skipVoiceover: true + - name: Synonyms + skipVoiceover: true + - name: Male + vars: + gender: masculino + number: singular + - name: Female + vars: + gender: femenino + number: singular + - name: PluralMale + vars: + gender: masculino + number: plural + - name: PluralFemale + vars: + gender: femenino + number: plural + templates: + - name: "FillIn$$.Field$$" + forFields: + - Male + - Female + - PluralMale + - PluralFemale + front: | +
Adjetivo/nacionalidad/ocupación/etc.
+
+ $$.Vars.gender$$ + $$.Vars.number$$ +
+ + {{Explanation}} + + {{#Synonyms}} +
+ Sinónimos: {{Synonyms}} +
+ {{/Synonyms}} + + {{type:$$.Field$$}} + back: | +
Adjetivo/nacionalidad/ocupación/etc.
+
+ $$.Vars.gender$$ + $$.Vars.number$$ +
+ + {{Explanation}} {{$$.FieldVoiceover$$}} + + {{#Synonyms}} +
+ Sinónimos: {{Synonyms}} +
+ {{/Synonyms}} + +
+ + {{type:$$.Field$$}} + css: | + .card { + font-family: arial; + font-size: 20px; + text-align: center; + color: black; + background-color: white; + } + + .masculino { + font-weight: bold; + color: blue; + } + + .femenino { + font-weight: bold; + color: hotpink; + } + + .singular { + font-style: italic; + } + + .plural { + font-weight: bold; + } noteProcessing: - noteFilter: | (IndicativePresentYo:- -tag:conjugation_skip:IndicativePresentYo)