Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request: Show a simple mult choice .txt quiz #26

Open
astrojedi opened this issue Aug 28, 2020 · 4 comments
Open

Request: Show a simple mult choice .txt quiz #26

astrojedi opened this issue Aug 28, 2020 · 4 comments

Comments

@astrojedi
Copy link

Like many, I'm suffering from having to use Canvas when I have been used to using in classroom quizzes on paper. I've got .txt versions of my quizzes and found text2qti as (the only, so far as I can tell) possible solution to import them into Canvas. I've got Anaconda3, and got text2qti installed, and am now trying to process a quiz. but it keeps dumping with errors. Apparently my quiz is not in proper text format. I've tried changing it around in any way I could think of after reading your instructions - still it keeps dumping. It would be really great if in the documentation you could provide a very simple short 3 question complete multiple choice simple .txt file that will process successfully, and then we can just ape it in our own text quizzes. Mine are very simple and don't need any of the higher options. No images, no blocks, no multiple answers... My questions have only 1 right answer, which I put a * in front of. Each possible answer starts with a a) or b) or c) etc. Each multiple line block of lines defining a question or defining an answer have the text beginning in the same column as instructed. I've tried using 4 space (space bar) indentation, no indentation, and nothing succeeds. I keep getting untrapped errors inside the routines, and finishing with an error "Question must provide choices".

@gpoore
Copy link
Owner

gpoore commented Aug 28, 2020

Have you tried copying an example out of the README and pasting that into a .txt file?

There's an existing request for separate example files in #1, and I'll try to do that as I have time.

If you can upload a sample .txt file that doesn't work, or paste the content on GitHub, that would be helpful. There may be ways that the error messages can be improved.

@astrojedi
Copy link
Author

astrojedi commented Aug 28, 2020 via email

@gpoore
Copy link
Owner

gpoore commented Aug 28, 2020

In the quiz, all the lines after the first line with "Quiz title" are indented by two spaces. Once I removed that, everything worked for me. Titles, questions, answers, etc. all need to start on a line with no indentation. Any additional lines, including hard-wrapped lines, should be indented.

Quiz title: Quiz #1
1. Your instructor has distilled into a single sentence, perhaps
   the key to a life in harmony with Reality and happiness. It is:
a) I just want to know how to make my existing friends LIKE me
b) I want to believe
c) Reality is that which, when you stop believing in it,
   goes away
d) Well I was Wrong!
*e) I just want to know the Truth

2. What was the true nature of the "canals" seen on Mars by
   some early astronomers?
a) they were a network to bring water from the poles,
   constructed by intelligent Martians
b) they were fault scarps
*c) they were an optical illusion caused by the mind's
    tendency to fit difficult-to-perceive observed features
    into pre-existing categories
d) they were a hoax designed by the early astronomers to
   sell the notion of Martians to a gullible public

@astrojedi
Copy link
Author

astrojedi commented Aug 28, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants