zjosua / anki-mc Goto Github PK
View Code? Open in Web Editor NEWMultiple choice questions for Anki.
Home Page: https://ankiweb.net/shared/info/1566095810
License: GNU Affero General Public License v3.0
Multiple choice questions for Anki.
Home Page: https://ankiweb.net/shared/info/1566095810
License: GNU Affero General Public License v3.0
I've tried adding templates (anki closet and persistence) for closing answers in a question. For example, what is [[ch0::answer here]] then it shows, of course, the answer after you have chosen from the choices from the qtable. Anyway, after adding the templates, i noticed that the radio buttons weren't marked the way they should've been. It bothered me, although it shows the correct answer from the close ([[ch0::), as well as the correct answers from the qtable which are marked green. So is there any way to show the correct answer/s only? Including the wrong answer you might have chosen. I never had really thought of having such profound interest for using anki until now.
I'm using Anki Version 2.1.23 (de9543ff)
The colors for right and wrong answers seem to be reversed on mobile. I think its because a tap on mobile is like "show answer" so it never gets a chance to grab the touch input for the checkbox or radio bullet. Then probably it thinks the questions was never answered.
Snapshot from iPhone shows the issue:
Just to make sure that this is not a configuration issue on my side rather than an actual bug, I'm including the card source and resulting snapshot.
Basically the plugin is all right but what should I do if I need a "Q_6" too?
I added it (Anki for PC allows it) but it still isn't showing up and "0 0 0 0 0 1" does not work either in the "Answers" field.
When I use this card I get the following error message:
Invalid HTML on card: TypeError: Cannot read property 'innerHTML' of undefined
TypeError: Cannot read property 'innerHTML' of undefined
at onShuffle (eval at (http://127.0.0.1:6827/_anki/jquery.js:2:2651), :71:111)
at generateTable (eval at (http://127.0.0.1:6827/_anki/jquery.js:2:2651), :32:9)
at eval (eval at (http://127.0.0.1:6827/_anki/jquery.js:2:2651), :130:20)
at eval ()
at http://127.0.0.1:6827/_anki/jquery.js:2:2651
at Function.globalEval (http://127.0.0.1:6827/_anki/jquery.js:2:2662)
at Ha (http://127.0.0.1:6827/_anki/jquery.js:3:21262)
at n.fn.init.append (http://127.0.0.1:6827/_anki/jquery.js:3:22791)
at n.fn.init. (http://127.0.0.1:6827/_anki/jquery.js:3:24070)
at Y (http://127.0.0.1:6827/_anki/jquery.js:3:4515)
Using this on Windows 10 PC.
On android device the card is showing but I get "Correct answer x%"
Its too easy to memorize the position on MC questions?
anki-mc/src/multiple_choice/template.py
Line 512 in ed05364
update
in front?). And the model variable seems to be outdated as well (kprim_model
should probably be aio_model
).
This should fix #40 as well.
use A-E instead of 1-5
I was trying to use this addon (Single Choice) on AnkiDroid but it behaves differently from the computer version.
It doesn't wait for the SHOW ANSWER button but as soon as I tap one of the radio buttons, the answer is displayed immediately.
What's even worse, if I don't tap precisely enough, none of the radio buttons will be selected and my answer is going to be wrong.
here someone perhaps made it mobile available - don't know if it's similiar to this addon or possible https://ankiweb.net/shared/info/413154037 - last comment (or the oldest)
Is there somewhere that shows how to use this? Like how to make the CSV and what to do when you import?
I have 3 answers, but 4 and 5 are still showing up even if I don't put anything in there and don't assign it a 0,1
I can't change the text alignment to center
If one of the answer fields (MC_1 ... MC_5) contains only a number from 1-5, the wron answer might be shown.
answers don't show while reviewing a card on windows. The question shows but there are no multiple choice options. Addon works fine with android.
Good day! I'd just like to report this problem I've encountered with the add-on. Every time I answer the correct choice in the multiple choice question format, the correct answer and color coding (marked green at 100%) comes up; this works fine. [refer to image below]
However, once I select the incorrect answer in the multiple choice question, the backside of the card shows the following:
I have followed all the settings indicated in the add-on page. Specifically, for the sample question using multiple choice option above. The settings used for the sample question are as follows:
Although I'm glad the correct answer is indicated by the ticked checkbox at the backside of the card, the red color and indication of "correct answers: 50%" is quite disorienting and confuses me at times since it would be more efficient to simply look for the single green option (to indicate it as correct) and see the "correct answers: 0%" to know that you've got the entire question wrong. I hope someone can help me on this! Overall, thank you for working on this add-on. Kudos!
Edit: some formatting errors
another addon would be great, that fills the fields "question" and MC1 to MC5 automatically: so you can copy the question including the answers a to e [trigger for "a", "a)", "(a)", and "A",.. an "1",.. etc.] - paste it and the addon will put it in the right fields - would save a lot of time. Or perhaps even as an multi import tool for a lot of questions and answers - the whole exam in one copy-and-paste procedure to Anki ;-)
With the latest updates of Ankidroid (both 2.14.5 and 2.14.6) answers don't seem to be persistent any longer so the card back doesn't show the answers anymore.
I even reverted my note types back to commit 9a5c9dc but to no change.
This add-on does not appear to be usable on Ankimobile (ios). Everything is flagged as the wrong answer - it doesn't register the user selection. As another reviewer has said: "as soon as I touch the screen to select an answer, the add-on switches to "answer" (which is obviously marked as wrong)." Apparently works well on other platforms.
Hi,
I have downloaded the latest Anki for desktop macOS and the latest app for iOS.
This plugin works fine in desktop but in mobile the behaviour for the multiple choice type (checkbox) is that it shows the answer immediately without checking the checkbox.
Expected behaviour: when is a multiple choice type, a tap should select an option and the user should be able to keep selecting options.
Is this known? Is there a special config I need to set?
Thanks!
updated to v2.4.0, I have the same issue, but pressing edit still doesn't load the card. I can load the other cards after that if I click show answer for the first (it shows a blank card), then it works smoothly. It ruins the scheduling for that first card, unfortunately.
Edit: also getting the missing packaging error
Originally posted by @Ratonu13 in #32 (comment)
It's my favorite addon :-)
But: My correctly selected answers are marked in red.
And are also counted as wrong.
This problem does not exist with the iPhone or Web-Version, only on my Mac-Version 2.1.35.
I've been dealing with it for days but can't find the fault.
Please excuse my english. Unfortunately, I have to work with the google translator.
It would be interesting to have support for Katex.
I tried to adapt the two codes but got some errors.
https://ankiweb.net/shared/info/1087328706
Anki Issue.pptx
Hi everyone. I'm writing seeking assistance with a very specific issue using this Add-on. Is my first time using Anki, and this is the first add-on that I use ever:
When trying to create my flashcards using this add-on I'm having the issue that it's impossible to have the answers in a fixed way, you know, to have them not randomized. This is especially irritating because there are some questions that are multiple-choice with one single answer that can have incorporated the options "All of the above" or "None of the above", or the case in which one of the options implies more than one answer. For example:
Question 1: Which of the following is a unifying characteristic of life?
a- Ability to reproduce
b- Ability to develop
c- Ability to utilize energy
d- The presence of cells
e- All of the above
f- None of the above
Obviously, the correct answer is e- All of the above.
Question 2: Which of the following molecules can be dissolved in water?
a- sugar
b- salt
c- cholesterol
d- A and B
e- All of the above
f- None of the above
The correct answer is d- A and B.
My questions here are:
Thank you so much for the help. Kind regards,
Sergio
Windows 10 - 64bit
Egal welche Anki-Version ich nehme, 2.1.41 - 2.1.43, auch eine Neuinstallation auf einem anderen PC. Immer dieselbe Antwort "Correct answers: x %".
Ich habe auch, wie jemand schrieb, den Code aus "template.py" hinein kopiert, alles bleibt wie gehabt.
Auf Android 11 funktioniert es ebenfalls nicht.
Restarting Anki after updating to 2.4.0 leads to:
When loading 'Multiple Choice for Anki':
Traceback (most recent call last):
File "aqt/addons.py", line 210, in loadAddons
File "/home/3ter/.local/share/Anki2/addons21/1566095810/init.py", line 37, in
from .config import *
File "/home/3ter/.local/share/Anki2/addons21/1566095810/config.py", line 43, in
from .packaging.packaging import version
ModuleNotFoundError: No module named '1566095810.packaging'
~/.local/share/Anki2/addons21/1566095810
$ tree
.
├── config.py
├── __init__.py
├── LICENSE.txt
├── manifest.json
├── meta.json
└── template.py
Hi there!
First of all, thanks for your work.
I'm using the add for a single choice from 4 quiz and,
I have a question...
is there any option to use keyboard shortcuts to answer on the reviews? Like numbers or commands to choose whatever Q you want?
I would love to do that to go faster on the reviews...
thanks in advance!
Hi!
I’m currently using Anki version 2.1.30 in my desktop. I tried using this add on with the ‘kprim’ QType and the correct answers don’t display right (i.e. it’s not a color problem; when the ‘correct answers’ display, the shaded items under the ‘yes/no’ is wrong). Specifically, when the correct shaded answers are displayed, only 1 choice is under the ‘yes’ column and everything else is a ‘no.’ (I don’t understand why because my answer pattern was 10101) :(
I also have a similar issue with the ‘multiple choice’ QType. When the answers are displayed, only 1 choice has a check mark on it’s box. All the other boxes are empty and the ones I marked with a check mark when I answered the question (i.e. the correct answers) are marked wrong, except for the 1 item that shows a check mark when the answers are displayed. The boxes that were meant to be empty did display a color green though. But those that were meant to be correct were highlighted orange and did not have a check mark when the answers are displayed.
Invalid HTML on card: TypeError: Persistence.getItem is not a function
TypeError: Persistence.getItem is not a function
at onLoad (eval at (http://127.0.0.1:56789/_anki/jquery.js:2:2651), :9:52)
at run (eval at (http://127.0.0.1:56789/_anki/jquery.js:2:2651), :95:20)
at eval (eval at (http://127.0.0.1:56789/_anki/jquery.js:2:2651), :115:9)
at eval ()
at http://127.0.0.1:56789/_anki/jquery.js:2:2651
at Function.globalEval (http://127.0.0.1:56789/_anki/jquery.js:2:2662)
at Ha (http://127.0.0.1:56789/_anki/jquery.js:3:21262)
at n.fn.init.append (http://127.0.0.1:56789/_anki/jquery.js:3:22791)
at n.fn.init. (http://127.0.0.1:56789/_anki/jquery.js:3:24070)
at Y (http://127.0.0.1:56789/_anki/jquery.js:3:4515)
The "Multiple choice for Anki" Add-on is not opening and is showing in gray with "disabled" written on it. When double-clicked it pops up "Add-on has no configuration". Please help me fix this. Thanks.
Hi,
I'd like to add another 10 choices to my questions. How to edit the code of your add on to add 10 fields more?
Hello everyone! Is is possible to turn off the shuffling somehow?
Also: is it possible to make the squares in front of the question bigger?
Thank you very much and best regards!
Marvin
Viewing the questions is fine.
When I select an answer for a single choice question or multiple answers for a multiple choice questions, then I show the answer, it's always wrongly marketing my selections as wrong.
I think that problem might be than when I hit 'show answer' it deselects my answers in the questions.
Eg in this example I selected the correct answer before pressing 'Show answer' but as you can see it has been deselected and I got the answer wrong.
Please let me know how to resolve this problem.
What do kprim, mc and sc stand for? There's nothing about it in the "usage" section. Could you please let me know?
Sorry, just saw that you listed a issue tracker on the add-on page. I'll just copy and paste my original post here. I've attached screenshots to help navigate through the issue. Thanks again!
Super cool add-on! I know a lot of anki users think that MC is kind of a passive way to study but I find it challenging just to sit there and try to think up challenging questions (especially those tough all of the answers apply except or those multiple answer questions). Anyways, I'm looking forward to using this add-on but I had a problem displaying the answers. I'm using the AllInOne (kprim, mc, sc) note type and when I answer the question it only displays the question and the extra field. Any thoughts to why that might be happening? I'm on Anki Version 2.1.24 (359b9f5c). Thanks for all the great work!
Cards initially don't display the choices.
After opening the card in the editor and closing the editor again, the cards are displayed correctly. Also, the first card after clicking "Study Now" is displayed correctly.
Seems like they are initialized correctly after a reload of the Reviewer, but not after answering the previous card.
No matter which answer I choose all it says on the back of the card is "Correct answers: x %"
This is happening to me with the brand new Anki update (2.1.42) on Windows 10 64 bit.
Best regards.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.