glutanimate / cloze-overlapper

Anki add-on for memorizing lists and enumerations
https://ankiweb.net/shared/info/969733775
Other
228 stars 38 forks source link

Ability To Type in Cloze #1

Open garrett-hopper opened 7 years ago

garrett-hopper commented 7 years ago

I'm not sure where you want features such as this @Glutanimate.

The ability to type in the cloze would be helpful at times. I'm not sure how difficult it would be to implement it with this addon though. I've tried a few {{type:cloze:}} combinations, but it doesn't look like it's going to be that simple.

I'll look into this later when I have time to dig into the code.

glutanimate commented 7 years ago

GitHub is fine, @Jumblemuddle . I usually advertise the support thread on the Anki forums, but that's more for users who aren't familiar with issue trackers.

I honestly had no idea that typing in the answer worked for cloze deletions! I just gave it a quick try myself and it seems to work fine as long as you only use the type: tag in one of the cloze fields (using the syntax described in the manual). Anything more than that and the templates begin to malfunction.

Looking through the manual and forums, it seems like this is a general problem with Anki. Apparently it only supports one type: field by default:

https://anki.tenderapp.com/discussions/ankidesktop/726-multiple-type-typing-answer-support

There is an add-on out there that's supposed to add support for multiple type fields, but it doesn't seem to be compatible with Cloze Overlapper. For regular cloze notes it seems to work fine, but it presents you will all type fields at once which is probably not ideal. (I imagine that it might also cause issues with AnkiWeb and mobile clients, which more than likely don't support multiple type fields, either)

In any case, this is something I don't think I'll be able to add support for in CO. However, if you do end up finding a way to make CO compatible with the add-on above for instance (without breaking compatibility with any of the existing features), I'd be more than happy to merge that PR.

HuShifang commented 7 years ago

It's only a partial workaround, but one could conceivably use the Multi-Line Input Box add-on (https://ankiweb.net/shared/info/1135197346) and put the {{typebox:}} field on the Cloze (overlapping) card. Your response won't be assessed, you'll have to use "Alt+Enter" rather than just "Enter" to reveal the card's correct answer, and you won't (as far as I know) be able to type in responses on AnkiDroid, but you might still get the added benefit of active, typed-out "rehearsal" (and I tend not to type answers in on mobile devices anyway).

(CO is great, btw. Thanks for all the work on it.)

aleksejrs commented 5 years ago

See https://github.com/glutanimate/cloze-overlapper/issues/10#issuecomment-471624033 for a way to do it. Unfortunately, it requires as many additional fields as there are cards that need typing.