Cloze deletions: hide/show hints?
Hi everybody,
I've made a number of cloze deletion cards looking like this:
Je mange une pomme {{c1::rouge::red}}.
Is there a way to give me a "show hint" button at the front of my card, so that normally my card says
Je mange une pomme [..].
but when I click the hint button it says
Je mange une pomme [red].
?
Posted May 22, 2017, 8:43 PM UTC
25
Easy. By clicking each
[..]Also you can see the hint in title popup (on mouse over): rouge hints red
Next click will cloze
[red]again into[..].Just use JavaScript in your Front Template:
If you need exactly the button to hint all together now
then add one script more:
Hotkey
Alt+Zdoes not work when focus is onShow Anserbutton.You can disable this button, if Front Side does not have any cloze with hint at all:
Please, pay attention: this script should go after INPUT button, not before.
If you want to create a placeholder for such button on the Back Side, you can use:
If you want to style such clozes other way than clozes without hint,
use in Styling section:
Wow, that's great, thank you.
It works beautifully on PC and AnkiDroid with my existing massive-context cloze deletion cards.
I was contemplating to convert all my cards into standard cloze texts without hints and make an extra hint field like in this video, but your solution works even better for me. Thanks a lot!
Thanks for the interesting question.
Great job, once again! Your solutions never seize to impress.
Thanks. You can take a look at further modifications of these scripts
in the sample deck Anki Cloze OneByOne or on GitHub