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
54 stars 12 forks source link

Type answers #5

Open BrucePlumb opened 4 years ago

BrucePlumb commented 4 years ago

Not being able to type the answers is a major drawback for me. It means I will not use anki_cloze_anything. I often can't decide whether to make a standard note or a Cloze Note. Combining the two is a great solution! I enthusiastically set up my normal custom Note type to include 6 more cards and was already to convert all my custom Cloze cards when suddenly I found I couldn't type the answers. Big disappointment. Are there any plans to add typing in the near future?

matthayes commented 4 years ago

Hey sorry about that. I do mention it in the readme but it’s buried pretty far down in the page so it’s probably hard to see. I’ll update the readme and move it higher.

I have been thinking about adding type the answer as a feature. I hadn’t done it yet because I didn’t need this and it’s trickier to implement. Now that I know at least one person wants it I can begin looking into it. I think it should be possible. It’s less straightforward because I need to determine the best way to store the state from the question side so the answer side can use it for comparison.

thiswillbeyourgithub commented 4 years ago

Just in case you didn't know, this addon exists https://ankiweb.net/shared/info/1933645497

Maybe the code can be useful, I have not looked at it

BrucePlumb commented 4 years ago

Thanks. Your suggested add-on just adds some fancy coloring. Other than that I am already using the standard {{cloze:fieldName}} followed by {{type:cloze:fieldName}} in my customized Cloze cards. I was hoping to be able to generated standard cards and cloze cards from the same note. If you are motivated to implement it I have one request: please keep the same variable names that Anki uses for the typed answer colors so that they can be customized.

.typeGood { background: rgb( --,-- --); }

.typeBad { background: rgb( --,-- --); }

.typeMissed { background: rgb( --,-- --); }

I strongly dislike Anki's default colors and have done a lot of customizing to make my cards more pleasant looking.

May I even suggest that you improve the default colors for you add-on?

Thank you for contributing to this wonderfully flexible and useful application.

Bruce Plumb

On Wed, May 20, 2020 at 2:41 AM thiswillbeyourgithub < notifications@github.com> wrote:

Just in case you didn't know, this addon exists https://ankiweb.net/shared/info/1933645497

Maybe the code can be useful, I have not looked at it

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/matthayes/anki_cloze_anything/issues/5#issuecomment-630975230, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJIHHCL4BYF3ZC5KOP6NOZ3RSLADJANCNFSM4NDMAGWQ .

matthayes commented 4 years ago

Sure if I implement this I will try to make it match Anki as much as possible, including the class names. If you have a suggestion for a better default color scheme I'll consider it. I think I was trying to replicate Anki's color scheme.

BrucePlumb commented 4 years ago

Many people are coming up with ways of beautifying Anki. That is not the purpose of a functional add-on like yours. But anything would be an improvement over Anki's harsh colors. A simple softening of the colors would be enough. People like me will then customize it further anyway.

Bruce Plumb

On Fri, May 22, 2020 at 1:36 PM Matthew Hayes notifications@github.com wrote:

Sure if I implement this I will try to make it match Anki as much as possible, including the class names. If you have a suggestion for a better default color scheme I'll consider it. I think I was trying to replicate Anki's color scheme.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

rwmpelstilzchen commented 3 years ago

It’s less straightforward because I need to determine the best way to store the state from the question side so the answer side can use it for comparison.

Maybe we don’t need to store the answers so the user’s input persists between sides. If the user types the answers on the question side (preferably in situ), we can compare them on the fly with the correct ones and signal when an answer is correct (by changing colour to green, for example). The answer side will stay the same, showing the correct answer.

matthayes commented 3 years ago

Interesting idea @rwmpelstilzchen. When I find time to look into this I'll consider that.

rwmpelstilzchen commented 3 years ago

Thanks!

I suggest that if data-cloze-replace-same-length is enabled, the typed text replaces the blanks. For example, if the deleted part is a cat (showing as _ ___), after typing a it will show a ___, then (after each keystroke) a ___, a c__, a ca_ and a cat (now with green background). If a dog is typed, the background should turn red upon typing the last letter. I think the feedback should be given only after the last letter is typed (in our example, the state a d__ remains without feedback).

Deleting and moving the caret should be supported, of course.