My programming knowledge is zero, So please excuse me if the doubt is silly… Thank you @hengiesel for such a wonderful addon.
my problem.>>> I am not able to create a card with image occlusion.
What I did so far? >>> watched your youtube video and gone through the closetengine.com
After some trial and error, I was able to manage the cloze function but not image occlusion
Details of the problem>>>
-
copied image to a multi-card as made in the youtube tutorial [ no problem detected]
-
clicked the small square button on the toolbar and made small rectangles to occlude some of the details
-
clicked right button and clicked “accept occlusion”
-
clicked right button in the ‘Cmdsall’ space and pasted… >>[ problem>>> nothing gets pasted]
-
[second try] i tried to make small squares by directly writing the code [[recthc1:: 100,100,110,110]]. but this is not getting reflected in the card when reviewing…
here i am posting my multicard java script
const elements = closet.template.anki.getQaChildNodes();
const memory = chooseMemory(“closet__1”);
const filterManager = closet.FilterManager.make(preset, memory.map);
const output = [[elements, memory, filterManager]];
/* here goes the setup - change it to fit your own needs */
globalThis.target = closet.browser.recipes.occlusionEditor()(filterManager.registrar)
filterManager.install(
closet.recipes.shuffle({ tagname: “mix” }),
closet.recipes.order({ tagname: “ord” }),
/here is where I made the changes/
closet.recipes.cloze.show({ tagname: ‘c’ }),
closet.recipes.cloze.hide({ tagname: ‘ch’ }),
closet.recipes.cloze.reveal({ tagname: ‘cr’ }),
closet.browser.recipes.rect.show({ tagname: ‘rect’ }),
closet.browser.recipes.rect.reveal({ tagname: ‘rectr’ }),
closet.browser.recipes.rect.hide({ tagname: ‘recth’ }),
/My experiments ends here/
closet.flashcard.recipes.multipleChoice({
tagname: “mc”,
defaultBehavior: closet.flashcard.behaviors.Show,
}),
closet.flashcard.recipes.sort({
tagname: “sort”,
defaultBehavior: closet.flashcard.behaviors.Show,
}),
closet.browser.recipes.rect({
tagname: "rect",
defaultBehavior: closet.flashcard.behaviors.Show,
}),
/** Make occlusions */
);;
Please tell me what changes I should make //
Also
Ever since i used asset manager and changed the Basic card as explained in the Youtube tutorial, in ankidoid all Basic cards are seen as blank… no texts are visible… but when we take edit window we can see the texts
please tell if there is any way we can make this addon work in ankidroid as welll
Thanks for your valuable time…
my setup
- ubuntu 18.04
2)anki 2.1.43
- ankidoid- 2.14.6