Is your feature request related to a problem? Please describe.
Currently each cloze-card changes only part of the text - answer-text: it hides it on the front of the card and hightlights on the back.
I.e. we are lacking an ability to alter the context of the answer-text, depending on the part we are testing.
Describe the solution you’d like
As the most general and basic solution I suggest to make a way to mark text to be shown on cloze-card-X only, i.e.:
1. to be hidden from back side of all other cards.
2. to look like a normal text on front and back side of the cloze-card-X
The syntax can look like this:
{{#c3::text-which-is-hidden-on-both-sides-unless-it-is-card-3::placeholder-to-be-shown-on-other-cards}}
placeholder can be skipped, then empty string is used instead.
nesting logic works like this: if one {{#cX::}} tag is inside of another {{#cY::}} it is ignored for the higher level cloze (cY).
Usecase1: make some items optional when recalling high-level of a nested cloze.
ClozeText:
List of groceries:
{{c4::
a) {{c1::Apple}} {{#c4::(it’s fine to confuse this with Oranges)}}
b) {{c2::Milk}} {{#c4::(it’s fine to forget completely)}}
c) {{c3::Toilet paper}}
}}
or more complex example with colorcoding:
List of groceries:
{{c4::
a) {{c1::10 {{#c4::<span style="color: lightgray;">}}small{{#c4::</span>}} Apples}}
b) {{c2::Milk, {{#c4::<span style="color: gray;">}}2%{{#c4::</span>}}, 1 litter}}
c) {{c3::Toilet paper}}
}}
Usecase2: it can replace hide-all addon:
ClozeText:
List of groceries:
a) {{#c1::{{c1::Apple}}::(food)}}
b) {{#c2::{{c2::Milk}}::(drinks)}}
c) {{#c3::{{c3::Toilet paper}}::…}}
Usecase3: it can limit amount of hints you have for the answer-text:
ClozeText:
Alphabet:
{{#c1::{{#c2::{{c1::A}}}}}}
{{#c1::{{#c2::{{#c3::{{c2::B}}}}}}}}
{{#c2::{{#c3::{{#c4::{{c3::C}}}}}}}}
{{#c3::{{#c4::{{#c5::{{c4::D}}}}}}}}
(and so on)
Describe alternatives you’ve considered
- There are conditional syntax in note templates, so we can add specific notes for each cloze, but:
а) this requires part of the text to be moved out of place, which kinda sticks out from the very idea of clozes.
b) it is not scalable. One would need to create 10+ hint fiels to cover all possible closes the hint can be required for.
2. One can simulate this with css/js and special tags/markings withing ClozeText. But this will make text field messy and may conflict with various addons/future features.
- One can use Basic note type for this, but this leads to a lot text duplicates and is hard to maintain/change/read
