Closed RoseWebb closed 1 year ago
I created a temporary solution by running a shell command on region usually bound to M-|
from Emacs to a Python script
I will paste it here in case someone might find it useful. Most of it is from the original anki addon:
Thanks, will try to look into this soon! :) Have been swamped at work..
Hi @RoseWebb, could you also add an example org entry that would be converted into an overlapping Cloze, such that I would understand what the org source text looks like? There is an org example in the very first comment, but it doesn't have any {{..}}
in it -- how would we know which fields to hide?
This is the Anki extension that this would support, right: https://ankiweb.net/shared/info/969733775 ?
Hi @eyeinsky, sorry for the late reply and thanks for looking into this issue.
Yes, you are linking to the right Anki addon:
This addon works by taking a list of items and user defined settings to generate mutable cloze cards. The default setting is to show one item before the cloze prompt for each list item and one card asking for the full list. Therefore, for a list of 3 items, it will create 4 cloze cards. Here is a video explanation from the addon developer:
for an org example using the default setting, I suggest something like:
* title
:PROPERTIES:
:ANKI_NOTE_ID: 1675532440856
:ANKI_DECK: example_deck
:ANKI_CARDTYPE: cloze (overlapping)
:ANKI_CLOZE: 1,1,0 | n,n,n,n
:END:
- item 1
- item 2
- item 3
which the addon will convert into 4 cards: card 1:
title
{{c1::- item 1}}
...
...
card 2
title
- item 1
{{c2::- item 2}}
...
card 3
title
...
- item 2
{{c3::- item 3}}
card 4
title
{{c20::- item 1}}
{{c20::- item 2}}
{{c20::- item 3}}
I found a project implementing the cloze overlapping concept into the card template itself via JS. Therefore, there is no need to support the original cloze overlapper addon. https://github.com/michalrus/anki-simple-cloze-overlapper/blob/main/front.html
One could use multi line cloze in the org file, then change the note type from Anki. The note in the org file can also be updated with no issues note the card is set to this template in Anki.
Is there any way this could be made more convenient? :)
Currently there is a hardcoded test org-anki--is-cloze
which changes note type to Cloze if it finds cloze syntax in org entry's title or body. Maybe this test could be customized such that a user could define their own test-fn/note-type pairs -- this way you wouldn't need to go and manually change every single note.
It would be very useful to have support for cloze overlapping cards.
Card type can be defined in the property drawer. Perhaps by prompting the user to chose a card type when the heading have mutable items.
Here is an example based on this issue in a similar project
example jason for anki-connect: