c-okelly / org_to_anki

Python3 module to convert Txt, Org or LibreOffice files into Anki decks
MIT License
64 stars 10 forks source link

Add support for Cloze overlapper cards #44

Open c-okelly opened 5 years ago

c-okelly commented 5 years ago

Support the creation of cloze overlapper cards as generated

Points

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": ""
            }
        }
    }
}