# Memrise card template \[support thread\]

**URL:** <https://forums.ankiweb.net/t/memrise-card-template-support-thread/34233>\
**Category:** Card Design\
**Created:** [September 13, 2023, 6:25am UTC](https://forums.ankiweb.net/t/memrise-card-template-support-thread/34233 "2023-09-13T06:25:44Z")\
**Posts on this page:** 1\
**Showing post:** 44

<div class="post-metadata">

**Author:** ![Eltaurus](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/eltaurus/32/10287_2.png) [@Eltaurus](https://forums.ankiweb.net/u/Eltaurus)\
**Post date:** [April 7, 2024, 4:59pm UTC](https://forums.ankiweb.net/t/memrise-card-template-support-thread/34233/44 "2024-04-07T16:59:20Z")

</div>

Sorry for taking a while with the updates and leaving several comments unanswered, everyone. Life happened, and I got preoccupied with other matters for the past few months. Fortunately, I have some more time to put into working on the template again. There are quite a few new features implemented, so hopefully, it all worth the wait.

* * *

**Improved Android support**

1. [The bug with missing spaces](https://forums.ankiweb.net/t/memrise-card-template-support-thread/34233/11) found by @mthierst is fixed.

> **Details**
>
> It turned out to be a purely visual bug, caused by differences between default css in desktop and Android versions of Anki, which could be observed only under very specific conditions: an incorrect answer containing white space should be submitted to a question with a correct answer that also contains a white space between two different letters. On top of that, it requires the input text to be centered vertically, as in this Memrise card template, and otherwise does not manifest itself in any way (which is why it can’t be seen in the default Anki cards, for example).
> 
> In any case, new version of the cards should be working fine on both desktop and Android. I also submitted an [issue to the AnkiDroid GitHub](https://github.com/ankidroid/Anki-Android/issues/16100), and it got patched. So even old cards should start working in the future releases of AnkiDroid.

2. [The bug with an empty answer being accepted as correct](https://forums.ankiweb.net/t/memrise-card-template-support-thread/34233/22), reported by @khong and @g0thi is also fixed.

> **Details**
>
> Despite looking very simple, it turned out to be quite an elaborate one. My current theory is that it is caused by some bug in LaTeX preprocessor of AnkiDroid, which gets triggered by escaped brackets in a regular expression in the card’s script (because in LaTeX same combinations of symbols mark beginning and end of an equation block). As a result, the source JS code gets messed up before it is executed. We may still get more info on it from [this bug report](https://github.com/ankidroid/Anki-Android/issues/16125).
> 
> For this reason, the new version of cards uses a different RegEx notation in order to avoid this issue altogether. So it should be working regardless of whether the related AnkiDroid bug gets fixed or not.

3. Margins on the cards got adjusted to better fit narrow screens.
4. Correct answers now get auto-accepted as they do on desktop Anki.

Also note, that the Memrise-styled text input box can be enabled on cards instead of the default Android one. To do so, go to the `Advanced` section in the AnkiDroid settings and turn on the `Type answer into the card` option:

 ![Native Android input](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/3X/4/8/481e26d0810af28c784f4c11d38a6073c66256c6.png)&nbsp;&nbsp;&nbsp; ![Card input](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/3X/d/d/dde1388d52ab69d3101c4b276be32812adb988fb.png)

* * *

**Audio cards**

> [@lastdemocrat](#):
>
> I am also waiting for the audio cards! 🙂

Fully functioning audio cards are here:

![Audio card](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/3X/2/4/24461969ee84c9a1247cb30979de3f76c379c064.gif)

Note, that **there are two different Note types** in the provided deck now:

1. `Memrise Template (Lτ) v2.81` is the new version of the same core template, which is meant to be customized to fit everyone’s individual needs. By default, it looks almost the same as the previous version, but it has all new styles and scripts built in. If, for example, a card containing audio in the question field is created, [as described in this post](https://forums.ankiweb.net/t/memrise-card-template-support-thread/34233/6), it is now automatically formatted with all the appropriate Memrise-style buttons and animations on both the front and the back.

2. `Memrise Preset [Translation+Listening] (Lτ) v2.81` is a preset that is meant to serve as a specific example of the template customization and as a premade option for people who don’t want to get involved with customization themselves, only looking for a ready-to-use solution which provides both text and audio cards.

Also, buttons are created with vector shapes, instead of PNGs, so they do not have rasterization artifacts:

![Audio rasterization artifacts](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/3X/d/f/df50b63ae0b4a14d1fc23939a416e7c6d9441304.gif)

* * *

**Spelling corrections**

> [@noty](#):
>
> In the current situation, it does not compare the input to the correct answer.

I thought about it a little more and decided, that it would be appropriate to revive the style from an older version of Memrise, which used to have this feature, even if the new Memrise no longer has it. So in the new version of the card template, the corrections to the typed answer are shown right below the expected correct one:

 ![New Template](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/3X/3/6/367296f4280e5ee9b0e3944db1e1454b6ef2b7fd.png)

For comparison, older Memrise style:

 ![Old Memrise](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/3X/1/4/142517bf275a299a61e903d992311f022ee0786b.png)

* * *

The current version of the card template (v2.81) is available on [the GitHub page](https://github.com/Eltaurus-Lt/Anki-Card-Templates) (I don’t want to update the Ankiweb page right away since each edit takes it down for a day, and I still plan to upload more changes to the template and the aforementioned tutorial in the immediate future).

---

_[View the full topic](https://forums.ankiweb.net/t/memrise-card-template-support-thread/34233)._
