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 4 forks source link

First letter without blanks. #2

Closed gitjamd closed 8 years ago

gitjamd commented 8 years ago

I like the idea behind your add-on; however, I'm looking to just add first letter of each cloze with no blanks. Ideas on how I can accomplish that with your code? Thanks.

Arthaey commented 8 years ago

Done! If you grab the updated version, all you have to do is edit it like so:

Restart Anki and it should be good to go! Let me know if you have any other problems or suggestions. :)

gitjamd commented 8 years ago

So, excited about this. Works great! Any way to force capital letters and/or have something like "[R c]" look like [RC] or just [R]? That would make for a really solid add-on. Thanks for the help!

On Mar 13, 2016, at 8:21 PM, Arthaey Angosii notifications@github.com wrote:

Done! If you grab the updated version, all you have to do is edit it like so:

enable "includeFirstLetter" : True, if you haven't already done so (currently line 21 https://github.com/Arthaey/anki-cloze-blanks/blob/b02bc4bc5bff025b7e8d50df34f26eb778921981/ClozeBlanks.py#L21) change the blank character from underscore to nothing: BLANK = "" (currently line 25 https://github.com/Arthaey/anki-cloze-blanks/blob/b02bc4bc5bff025b7e8d50df34f26eb778921981/ClozeBlanks.py#L25) Restart Anki and it should be good to go! Let me know if you have any other problems or suggestions. :)

— Reply to this email directly or view it on GitHub https://github.com/Arthaey/anki-cloze-blanks/issues/2#issuecomment-196086994.