Arthaey / anki-cloze-blanks

An Anki add-on that adds "fill in the blank"-style hints to cloze cards. ID: 546020849
https://ankiweb.net/shared/info/546020849
7 stars 3 forks source link

generate one cloze instead of several #8

Closed evilisforever closed 5 years ago

evilisforever commented 7 years ago

Hi. Would it be possible to add an option to generate something like this instead of multiple cloze deletions (one card out of many words)?

{{c1::Those::T}} {{c1::who::w}} {{c1::can::c}} {{c1::make::m}} {{c1::you::y_}} {{c1::believe::b_}} {{c1::absurdities::a___}} {{c1::can::c_}} {{c1::make::m}} {{c1::you::y}} {{c1::commit::c}} {{c1::atrocities.::a_}} {{c1::Voltaire::V}}

Arthaey commented 5 years ago

Find line 126 of ClozeBlanks.py, where it says:

return u"{{{{c{0}::{1}::{2}}}}}".format(num, text, blanks)

Change it to this:

return u"{{{{c{0}::{1}::{2}}}}}".format("1", text, blanks)

Restart Anki and it should make all clozes the same cloze number.