Memrise card template [support thread]

Many thanks for your CourseDump2022 Google Chrome extension for exporting courses from Memrise and for this card template - brilliant! I was wondering whether you are planning to implement any of these Memrise functions…

  1. Hint button
  2. Limited alphabet from which to choose letters
  3. Set of words from which to choose to construct phrases (I have some courses that contain a large number of phrases)
  4. Option to choose correct answer from four or six possible (similar) answers
  5. Option to choose answer from three possible audio options
    Greatly appreciate all the effort you have put in so far and understand that there would be a lot of effort implementing these functions but curious to know whether they are in your future plans. Thanks.
1 Like

Thank you for the template and all the work going into the Course Dump addon. Really, thank you so much. You’ve heard the stories all boiling down to Memrise not useable as it once was. For me it’s been years of use. I’m in my 70’s and can usually figure out how to make these things work. The addon, no sweat, all of the courses I want are downloaded. But the template isn’t working out right for me, I misunderstand it’s use, or, I’m doing something wrong. As I understand it, it could/should function as Memrise does by offering a “hint” and an automatic correct answer (green or something). I’m guessing I’m not correctly setting up or mapping the note type which came with the template. Maybe it also depends on the decks? But other than the familiar Memrise background, for me, it only functions like Anki usually does. One other thing, I am doing 3 Hebrew courses and the 7 Mexican Spanish course by Memrise. The Hebrew are three different community made courses. So, I was hoping that as in Memrise, I can have the foreign characters below the box for clicking to type, Spanish and Hebrew as in Memrise when typing character is required. I’ll be happy to answer any questions, provide screenshots etc. if someone can help me out. Thanks.

Thank you.

The on-screen keyboard and the multiple-choice cards are on the way (which makes for your points 2 and 4). 1 and 5 should not be too hard to implement after that, so I’ll keep those in mind for the future.

I wasn’t planning on adding the construction of phrases out of words, as the usefulness of this feature always seemed very limited to me personally. But if people keep requesting it, I’ll reconsider.

I’m sorry, but from the text description alone it is not clear what exactly in the template is not working for you, or what you expect to function differently. Screenshots would be very helpful here.

Yes, the on-screen keyboard is in the works. I’ve added it to the demo page and (hopefully) will port this code to the template before too long.

1 Like

Thanks for trying. Let me get back to this when I can figure out what I can try first by reading this all again and being more familiar with Anki and mapping.

Hello, thank you so much for the template and for the CourseDump too.

I have the same problem as “khong” - basically, on ankidroid, if I leave the box empty and just press “show answer”, I get an empty green box (as “khong” posted). It’s not critical, as I can just type in a random letter before pressing “show answer” and then it works, but it would be even better if I could just select “show answer”. I’m not on dark mode, so it’s not that.

Thanks again for all the great work you’ve done.

1 Like

I’ll look forward to the extra functionality that you are planning. Many thanks once again!

Hello! I’m one of the many people looking for an alternative to memrise right now, and I adore your template. I’m using memrise for Japanese, so it means for each term (kanji) there is both the reading and definition. On memrise, I’d have one level where I’d be prompted with the kanji and fill in the reading, and then the same level, but where I’d be prompted with the definition and fill in the kanji. I’d like to have one set of cards where I fill in the reading based on the kanji, and another where I fill in the kanji based on the definition. I was thinking I could just duplicate the original set and then change the fields around a bit, but perhaps there’s a better way to go about this? Many thanks to you and your wonderful template.

1 Like

Absolutely! You can set up the template so that Anki would generate several cards from each note in your collection (no need to keep the same information in two separate levels with different settings, as was the case with Memrise).

  1. It’s probably better to rename the fields on your version of the template first to make it more intuitive. You can do this by going to Tools → Manage Note Types → select the template → Fields from the main menu (or by pressing the Fields button in the browser when one of the cards from the template is selected). I would suggest renaming “Learnable” to “Kanji”, “Definition” to “English”, and “Extra” to “Kana”. You can also rename the template itself to something like “Memrise Japanese” from the Manage Note Types menu.
  2. After saving the changes go to Cards the same way. On the top, you will see the selection for the types of cards the template generates (there is only one by default). You can create the second one by clicking Options → Add Card Type. You can rename the types to “Translation” and “Reading”, for example, from the same Options menu.
  3. To change the actual content of each card type you need to make some adjustments to the code on the left:
    1. The “Translation” card should function as is, but you might want to change here what labels for each field are displayed to make them match after the renaming:

      image

      Look for text inside the <label> tags. There are two labels on the front of the card to be renamed (“Extra” → “Kana” and “Definition” → “Japanese”), and three on the back (“Learnable” → “Japanese”, “Defenition” → “English”, and “Extra” → “Kana”)

      I just realized that my labeling on the front side in the template is wrong, which is why the renamings for the front and the back differ. Hope it won’t make the whole thing too confusing

    2. On the “Reading” card the fields should be swapped to make the “Kanji” field the question and “Kana” the answer. So for the front of the Card you should change the following parts:

      details

      The essential ones are highlighted by red: the middle two correspond to the question and the answer respectively, while the first and the last ones change the condition under which a card is generated so that you would be asked to type reading only for those words that have both Kanji and Kana fields, and not for those, which are written completely in Kana, for example.

      Yellow ones are just the extra info which is displayed at the top after you submit the answer on Memrise.

      The gray parts are the same labels from the previous step + the question instruction, which you might want to adjust to your liking or delete altogether.

      Similarly, the fields and labels on the back of the “Reading” card should be changed like this:

    3. Save the changes, closing the window

    4. Now the template should work as desired, generating either of the “Translation” and “Reading” cards for each note, depending on which Fields are filled. Some empty cards might have been generated, however, if you have been saving at intermediate steps during edit. To make sure everything is in order, go to Tools → Empty Cards from the main menu and delete if there are any.

I hope this helps you achieve the setup you want, and also get an idea of how things are customized in Anki. Don’t hesitate to ask further questions if you’d like me to elaborate on any of the steps involved.

2 Likes

Thank you so much for your detailed response, Eltaurus! After editing the CSVs to remove duplicate entries with the columns swapped, this works like a charm. One thing I am noticing, is that on macOS, I can’t use the Japanese text input interface with this template. It might be an issue with anki, but it doesn’t allow me to change between different kanji with the same reading when I type them in. Is there a workaround for this that you know of?

1 Like

I don’t know anything about macOS, unfortunately. I found quite a few threads on this forum that seem to describe the same bug, which appears to be a bug in Qt (one of the libraries Anki is built with). The solution seems to be using Qt5 version instead of Qt6 one. Also this might be helpful as well.

2 Likes

Thanks again, Eltaurus. I’ll see how it goes with Qt5. Hopefully it’ll be fixed in the next update!

1 Like

Thank you so much for your CourseDump addon, it has saved me a lot of trouble in exporting my courses.

I have a question about the memrise template. When I downloaded the memrise template apkg it does not appear to implement the functionality. When I type an answer the color does not change depending on its correctness, there is no info page for when they are wrong and there are still the Anki buttons for again, hard, good, easy.

I think I must have implemented the template incorrectly but I cant seem to figure it out.

I just downloaded the template apkg, opened it, then imported a course using that card template.

Thanks again, you’re a lifesaver.

Can you provide more details on what did you do to import a course, how do you review the cards, and what you are seeing? Screenshots would be very helpful.
Also, what system you are on and what Anki version are you using?

Sure, I’m using Windows 10 Home right now. I don’t know what version of anki I was using before but I reinstalled it yesterday so now I have version 23.12.1 Qt5. (Just the one on the main Anki page.)

So this folder
image
Just opened this apkg
image

Then went to anki and imported a course with the CSV file I obtained from the Coursedump script. So I clicked import file, then selected the CSV and received this screen.


select course using template
image

how it looks


correct answer:

incorrect answer:

To elaborate, it seems like everything but the Javascript is working as it should. The Javascript doesn’t appear to be getting utilized.

Everything about importing seems alright, so there shouldn’t be anything wrong with what you are doing. It’s probably not the settings as well, at least I’m not aware of any option that might have such effect. And I couldn’t find a known bug that could be responsible for this kind of failure.

My guess is, it has to be something specific to your system, maybe the IME or the locale. It’s not just javascript either – the outline on the first card screen doesn’t look right, so some parts of css might be broken as well (although it might be only this specific one being overwritten by system setting because it is an accessibility thing).

You might want to try Qt6 version of Anki (except for some special cases it seems to be more reliable), or try and test the template on another machine if possible. Testing it with other languages, primarily with Latin script, might be informative (I tried the template with Korean input on my system, but it worked just as usual).
If you are open to some debugging, you can try deleting this “back” class on the back of the card to see if the rest of css is ok:
image
To test Javascript, you can try installing this addon and checking the JS console. The script logs the parsed answer in there (this is the output from the default example in the card editor):
image
so it might be helpful for finging out if it is just parts of the script that don’t work or JS in general.

Do the front and back look as they should?

Also the addon shows this in the console

and this error for the reviewer.css.map and webview.css.map

image

Looks like I managed to fix it!

I had to go to the Anki page, alternative downloads, and then I installed the Anki Qt6 version from 2023 November instead of the latest one, also deleted the template, and added it in again and now everything is working.

I’m not sure what specifically was the problem but all is well now.
Thanks again.

1 Like

Great, I’m glad that it got resolved.
Maybe you should file a bug report so that it would be accounted for in the future versions of Anki. The warnings in the console that you posted are normal, but if there wasn’t a plain text with the typed answer among them, then it is likely that js from the card wasn’t running at all for some reason.


@Windance I’m not sure if it is the same issue that you faced, but since it sounded somewhat similar, maybe this solution will help you as well: