Eltaurus-Lt / Anki-Card-Templates

Decks of templates + source code for Anki cards
GNU General Public License v3.0
60 stars 3 forks source link

Multiple choice not showing up; need to support images in multiple choices. #18

Closed whereistimbo closed 1 month ago

whereistimbo commented 4 months ago

For comparison: In Anki Card Templates:

Screen Shot 2024-07-06 at 23 16 43

In Memrise Community Course:

Screen Shot 2024-07-06 at 23 21 36

Debug info: Anki 24.06.3 (d678e393) (ao) Python 3.9.18 Qt 6.6.2 PyQt 6.6.1 Platform: macOS-11.7.10-x86_64-i386-64bit

===Add-ons (active)=== (add-on provided name [Add-on folder, installed at, version, is config changed]) Memrise Cards Lt ['884199977', 2024-04-11T13:48, 'None', '']

===IDs of active AnkiWeb add-ons=== 884199977

===Add-ons (inactive)=== (add-on provided name [Add-on folder, installed at, version, is config changed])

whereistimbo commented 4 months ago

Course link: https://community-courses.memrise.com/community/course/1087087/hebrew-alef-bet-print/ My downloaded course: hebrew-alef-bet-print by Mazzorano [1087087].zip

Eltaurus-Lt commented 4 months ago

As mentioned in the release notes:

Images in the multiple-choice fields will not work in the current version.

The update for that is being prepared, and already works on most of the systems. You can try it out (at your own risk) from this branch: https://github.com/Eltaurus-Lt/Anki-Card-Templates/tree/31e8b199c2bb83539c0cea567ad7df5a086b839d/Add-on/Source%20code

whereistimbo commented 4 months ago

I'm so sorry for my foolishness, thanks for the heads up, should I keep this issue open?

Eltaurus-Lt commented 4 months ago

It's alright. If you leave the thread I'll link it to the respective fixes later. This way you should get notified when they are merged into the main branch (and the issue will be closed automatically).

Eltaurus-Lt commented 4 months ago

@whereistimbo if you don't mind me asking, did you use some extension to enable a dark theme on the Memrise site?

whereistimbo commented 4 months ago

@whereistimbo if you don't mind me asking, did you use some extension to enable a dark theme on the Memrise site?

No, I'm using built-in feature of Microsoft Edge on macOS Big Sur to enable dark mode (behind feature flags).

Eltaurus-Lt commented 1 month ago

The images in multiple-choice questions are fully supported in the updated version (v4.2).

Moreover, the template has dedicated dark themes now: image

You can also make your letter images appear without background (the white rectangles) and change color depending on light/dark theme by adding a small piece of code to the "⚙️ USER STYLES ⚙️" section (you'll find it at the very bottom of the Styling tab when editing the new template):

img {
 mix-blend-mode: multiply;
}

body:is(.nightMode, .night_mode) img {
 filter: invert();
 mix-blend-mode: screen;
}