org_to_anki icon indicating copy to clipboard operation
org_to_anki copied to clipboard

Add support for Cloze overlapper cards

Open c-okelly opened this issue 4 years ago • 0 comments

Support the creation of cloze overlapper cards as generated

Points

  • Need to check the correct model exists
  • Generate format from list
  • Expand on more complicated use cases

Example of the json the needs to be generated in order to make the card

{
    "action": "addNote",
    "version": 6,
    "params": {
        "note": {
            "deckName": "Remote Decks",
            "modelName": "Cloze (overlapping)",
            "tags": [],
            "fields": {
                "Title": "title",
                "Full": "<div>{{c21::Item 1}}</div><div>{{c21::Item 1}}</div><div>{{c21::Item 1}}</div>",
                "Text2": "<div>Item 1</div><div>{{c2::Item 1}}</div><div>...</div>",
                "Text3": "<div>...</div><div>Item 1</div><div>{{c3::Item 1}}</div>",
                "Text1": "<div>{{c1::Item 1}}</div><div>...</div><div>...</div>",
                "Settings": "1,1,0 | n,n,n,n",
                "Original": "Item 1<div>Item 1</div><div>Item 1</div>",
                "Sources": ""
            }
        }
    }
}

c-okelly avatar Jul 12 '19 14:07 c-okelly