Paul Shew thank you so much for the wonderful GIFT import feature - it is very much appreciated
Adding such a feature goes beyond the functions of the import format. It would mean adding a feature, not to the GIFT format, but to the quiz module's basic import routines--not so easy. A work around is to import the questions into a temporary question category. Then if you make a mistake, you can delete all of the questions in that category.
Paul.
Tim
EditPad Pro
how?????????? may help me a lot!
Thanks Peter
In order to get these tests into GIFT format, I copy a test or quiz to the clipboard and past it into EditPad Pro (a text processor like Windows Notepad, only a LOT more powerful (www.jgsoft.com) ). EditPad allows regular expressions in its search and replace feature, so I can cobble together some commands to do what I want.
For example, to strip the questions number from a file (they are tab separated), I can use \t[0-9][0-9].\t and replace it with nothing. I process various regular expression commands until I get all of the questions in GIFT format. Then I can save the test or quiz as a text file and import it to the Quiz area. As I have gotten better with regular expressions, I make fewer mistakes, so deleting questions after they are uploaded is needed less and less.
EditPad Pro costs about $40 but there is a free version (although I don't know if it will allow you to use regular expressions). I suspect other Moodlers can suggest other text processors that are free or inexpensive that can do similar things. I have been using EditPad Pro for quite a while and like it, so it is my choice.
I would like to write my own PHP script to process these text files as I now manually do - I just never seem to get the time to sit down and tackle it.
sounds great ... I will try this,
because dealing with a lot of questions moodle is very - clumsy (hey I learned a new phrase from you!) - and slow..., because moodle can not import automatic grades to quiz and that takes a lot of time ...
Local manipulation and upload and download and exchange ... wish for the future (is here any quiz - developer who can read this? )
Peter
1. How to convert existing tests/quizzes in various formats such as Word and text files into GIFT formated files suitable to be imported into Moodle? and
2. If we import our GIFT tests/quizzes into a "Test" category, how do we delete that category without first deleting each question one-by-one?
For #2, your PHP scripts discussed elsewhere may do the trick, but for #1 there aren't any easy answers.
Since there are so many variations on how a test or quiz can be formated, it is impossible to create a "one-program-fits-all" conversion program. It may be possible, however to create a program that would convert a test or quiz to uploadable GIFT format that would require a minimum of modifications to the original file. That type of program could be written for the OS the tests/quizzes reside on, or a PHP script could also be written to convert those files after they are uploaded to the server.
I teach VB.NET and if I can ever get some free time, I am going to try to write something that would allow me to convert (for example) this:
to this:
I am sure many teachers have lots of tests/quizzes in similar format that they would love to get into GIFT format. Using EditPad to convert them works "okay", but a program to help would certainly be nice. If I ever get chance to do what I want, I will post my code.
I am sure, that for #1 there will be solutions,
- because it is not logical, that you can add selected questions from a category
- but you can not delete seleted questions from a category, if they are NOT used in other tests ..
For #2
- Our members prefer writing in a textfile, and they have no problems with yout GIFT - Filter (SUPER Solution!!!), with some easys examples
- The works starts with the given points in the left screen, when you have selected questions for a test
- Now we write in the title in "(3)" the points and only ha´ve to read and change, that makes it possible
- Maybe a change in the quiz with "default points" in the first question definition and than - if you like - overrule this in the left site ...
I am sure you will find time - moodler find time.
now ( in 1 hour) we will start testing (optics) pupils (age 13-14) of my wife, her school uses moodle since a month ..
Greatings from the green heart of Austria, Styria,
Peter
Re: GIFT Import "Pre-Load" Analysis? - regular expressions 4 reformatting
free editors for php and so on * PSPad http://www.pspad.com/en/ freeware but not OS (imho, better than EditPlus or UltraEdit) * tsWebEditor http://phpeditor.net.tf/ OS not bad, still improoving, has ability to automatically check php syntax and errors (via php.exe).
visual RegExp tools: * http://www.cfregex.com. - visually construct Your RE (free) * http://www.powergrep.com/screen.html#replace visually see the effect of RE (14 day shareware - enough to construct RE's You need for transforming your quizes to GIFT ) * RegEx Coach and RegExp Editor - free scroll down * perl RegExp plugin or RegExp Tester for Eclipse * RegExp Tester online
Re: GIFT Import "Pre-Load" Analysis? - regular expressions 4 reformatting
Thanks for all the great links!
The AON format does deals with exactly this type of question doesn't it?
Or rather you would have to get rid of "・・・・・Objective ...Page:200・・・・・"
which could be done with an MS word search and replace.
I do have tests in other forms, however (T-F, etc.), and GIFT certainly does the job - it has also forced me to learn some valuable new text file editing techniques.
Same situation as you,
my workarround:
- I delete all questions from a categoryNr with an php/sql skript
Its to special written on my situation, that i could post ist ... - Than I have to save Test once
- and questions are gone - you can delete category ..
- QUIZ dont recognise in this -first - situation, that there are no questions any longer ...
Peter
Hi Paul,
Scripts are on the way to you.
Here are some hints and known problems and problems that may raise up:
- I found out, that there are NO problems in deleting questions, if they are not assigned to a quiz
- If questions are assigned to a quiz or more than one quiz, this will/may happens (I got a lot of troubles and will not test this again!!!!)
- Questions are deleted but the number of defined grades (or points which verb is here correct for "sum of points which are defined in the quiz definition area, where you are able to edit the questions) and than this may/will happens:
- You get wrong results in the quiz overview table but correct result in grades view (!!!!)
- You get wrong results in advanced statistics, deleted questions are shown as empty cells (!)
- I corrected the wrong number of points by adding a new question, saving it and deleting it again, to override the wrong cellinformation in mdl_quiz. No resultview is correct but advanced statistic has another wrong line ...
- The best way would be a function
- first delete questions in quiz with correcting the grades
- second delete questions totaly
- Horror : deleting questions without that safety-mode and this questions are used by another teacher ....
or will that have no influence (I will not test it )
May be in this situation only admins are allowed to delete this ..
- Questions are deleted but the number of defined grades (or points which verb is here correct for "sum of points which are defined in the quiz definition area, where you are able to edit the questions) and than this may/will happens:
Maybe ... some quiz developer in moodle will include this idea in next quiz release, because question management in moodle is nearly clumbsy as user management ..
Peter