hgiesel / closet

The Web Framework for Flashcards
https://closetengine.com
GNU General Public License v3.0
65 stars 6 forks source link

Need clarification on usage of clozes. #60

Closed talenelat-elin closed 3 years ago

talenelat-elin commented 3 years ago

EDIT: IGNORE THIS ISSUE FOR NOW

I went back and checked out the video again and I think that the answers to my questions are there itself, I shall watch it again and see if I can get them myself.

I'm unsure if this is the right medium for this, but I couldn't find any other way to communicate this to you.

I'm having trouble understanding how to use the cloze functionality in Closet. I get how hiding, revealing, always-active, and inactive clozes, provide much greater functionality as compared to Anki's default cloze behaviour. But how do I implement them while building my cards.

To begin with, numbered clozes that are only supposed to be active in cards that bear the respective number: eg. I make a card with a field containing

  [[c1::Numbah One]]
  [[c2::Numbah Two]]

Now, the Basic Note type only has one card, which is Card 1, and will show something like:

  Front: 
  [...]
  Numbah Two

  Back:
  Numbah One
  Numbah Two

Which is as intended. But to create a card showing

  Front: 
  Numbah One
  [...]

  Back:
  Numbah One
  Numbah Two

I have to create a Card 2 in that note template. And if later I wish to add a card with that same Note Type, with only one cloze: eg. This is a [[c1::test.]], it will still generate two cards:

  Card 1        |   Card 2
  Front:        |   Front: 
  This is a [...]   |   This is a test.
          |
  Back:     |   Back:
  This is a test.   |   This is a test.

As you can see, the second is unneeded.

The problem is compounded if you wish to increase the maximum number of independent clozes in your note. (eg: c1, c2, c3.... c8) In the default Anki cloze functionality, cards are only generated according to the cloze numbers present in the cloze field, whereas Closet's numbered clozes depend upon their respective card having already been added to the note template.

I just wish to know if there is a workaround for this, or a planned fix, or if there is a way to combine Closet's functionality of revealing clozes, hiding clozes, and permanently active/inactive clozes to Anki's native cloze functionality.

talenelat-elin commented 3 years ago

I did answer most of my questions, so I'll close this issue, but I still wonder if it'll be possible for you to integrate this powerful cloze functionality into the default Anki clozes. As that would solve the need for creation and management of a card type having 25-30 fields.

P.S. This is a really powerful and versatile addon, and I'll be watching to see how far it goes. Thank you for making it :)