/AnkiIgnoreCase

Simply makes {type:} answers case insensitive.

Primary LanguageJavaScriptISC LicenseISC

AnkiIgnoreCase

Case insensitivity for {{type:}} field

⏬🔽⏬

Simply makes {{type:}} answers case insensitive.

Installation

  • Automatic install

Simply install the addon on your AnkiDesktop. The changes made by the addon will apply to both AnkiDesktop and AnkiDroid.

  • Manual install

Simply add this line to the Back Template of your Anki Cards.

<script src="https://derdemystifier.github.io/AnkiIgnoreCase/ignoreCase.min.js"></script>

FAQ

I want this to work even when I don't have Internet Access.

If you install the addon. This will apply even when you don't have Internet access. But it won't if you chose manual install; Since the script tag above fetches the script, you will need Internet access. If that's not always available, then:

  1. Copy the content of the file ignoreCase.min.js.
  2. Paste it in the Back Template of your Anki card like so:
<script>
(()=>{"use strict";!function() ....etc.....
</script>

↑ OR ↓

  1. Save the content of the file ignoreCase.min.js in the collection.media folder as _ignoreCase.min.js.
  2. Paste this HTML tag in the Back Template of your Anki card like so:
<script role='ignoreCase' src="_ignoreCase.min.js"></script>

What the Heck is the "Back Template" of my Anki Cards?

The Back Template is the other side of the flashcard, it's the code that's rendered when you show the answer.

How do I get to this "Back Template"?

  1. Click Tools in the Anki Toolbar.
  2. Select the Card that has the {{type:}} fields.
  3. Click Cards button on the right.
  4. TA DAAAAAA!

How does this work?

As you would think, simply compares your input with the answer without matching case. So ANKI ↔ Anki. Technically speaking, it injects a script tag to your card templates that have a {{type:}} field. It doesn't touch any existing code in the template. The script enables the addon to work both on AnkiDesktop and AnkiDroid.

How to uninstall?

Go to Addons->ignoreCase->Config and change "enabled" with false, then restart Anki. That's it! You can then delete the addon if you wish by hitting the uninstall button. If you had opted for manual install, then you need to manually uninstalling by retracing the steps. Basically, delete the <script> tag from your card(s).

Does this work in Anki Version 2.x.xx

I've tested on Anki Version 2.1.48 and Version 2.1.63. I would assume it to be working in later versions as well. If not, please open a support ticket above, labelled Issues.