text2qti icon indicating copy to clipboard operation
text2qti copied to clipboard

Request: Show a simple mult choice .txt quiz

Open astrojedi opened this issue 3 years ago • 4 comments

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".

astrojedi avatar Aug 28 '20 01:08 astrojedi

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.

gpoore avatar Aug 28 '20 03:08 gpoore

Thank you, Geoffrey for your quick reply! I wasn't looking for it in my email. Sorry I'm late in responding.

I saw bits of text of what questions can look like in the README, but not a self-contained file. I worry that I have no markdown characters in my file. It's a text file generated by a fortran program I wrote which generates exams from my database. It's really strictly text with no markdown coding.

I'll attach a version of the quiz file I'm playing with to see if I can get it to go through successfully, and also the original quiz which is as it comes out of my FORTRAN program.

 On Thursday, August 27, 2020, 08:27:01 PM PDT, Geoffrey Poore <[email protected]> wrote:  

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.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

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 avatar Aug 28 '20 06:08 astrojedi

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

gpoore avatar Aug 28 '20 12:08 gpoore

thank you! That's an easy rule that somehow escaped my notice!

 On Friday, August 28, 2020, 05:40:47 AM PDT, Geoffrey Poore <[email protected]> wrote:  

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 #11. 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 meb) I want to believec) Reality is that which, when you stop believing in it, goes awayd) Well I was Wrong!e) I just want to know the Truth2. 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 Martiansb) they were fault scarpsc) they were an optical illusion caused by the mind's tendency to fit difficult-to-perceive observed features into pre-existing categoriesd) they were a hoax designed by the early astronomers to sell the notion of Martians to a gullible public — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

astrojedi avatar Aug 28 '20 15:08 astrojedi