matthayes / anki_cloze_anything

Add cloze deletions to any existing Anki notes without any modification to Anki
https://ankiweb.net/shared/info/330680661
Apache License 2.0
52 stars 10 forks source link

New option: retain parts of the cloze as text using a regular expression #14

Closed rwmpelstilzchen closed 3 years ago

rwmpelstilzchen commented 3 years ago

First of all, I want to thank you for Anki Cloze Anything. I use it daily in my Anki reviews, and it made a tremendous impact on my use of Anki for improving my language production ability in Norwegian and Welsh (as opposed to reading and listening comprehension, which do not benefit from cloze deletion). 🌼

One thing I found lacking is Anki Cloze Anything’s inability to distinguish punctuation and non-punctuation characters (with data-cloze-replace-same-length set), leading to ((c1::Hello, my name is Inigo Montoya.)) appearing in the cloze as ______ __ ____ __ _____ ________ (6, 2, 4, 2, 5, 8 characters), instead of the more reasonable _____, __ ____ __ _____ _______. (5, 2, 4, 2, 5, 7 characters).

This pull request aims at fixing this, allowing users to determine what what parts of the text should not be replace with blanks. I tried to write it in the same manner and style of the project (I even used two spaces in README.md… 🙂). I hope you find this well-written and helpful, and merge it to the main repository.

matthayes commented 3 years ago

Hey I'm happy to hear you're finding it useful. Thanks for implementing this! It's been something on my list of things to improve but I hadn't gotten around to it yet. The change looks good to me. I'll merge it and release a new version of the template after I do some additional testing.

rwmpelstilzchen commented 3 years ago

Great! ^_^