We have utilized this tool succesfully at the Helsinki University of Technology (TKK).
Thank you Mikko
We were just starting to write something to do this and you have saved us a lot of time.
we are having some word documents with some questionaries.we want to convert them to gift format automatically.Are there any tools to make such conversions.
Any Help is invited.Thanks in advance
I suppose, you could add the GIFT formatting with some Search & Replace operations as it is not a very complicated format.
You have don a terrific work!! That template is fantastic!!
I had something much simpler developed for myself in OpenOffice. Actually, a set of styles I applied "by hand". You have just remainded me that Word do have styles also, and that custom toolbars can be configured and macros attached to them.
Many teachers at ULPGC make little use of Moodle quizzes because importing questions from Word files is seen as a mess (a lot of teachers has zillions of old questions in Word format). Your approach has open my eyes wide. Now, there is a selling point to both Moodle AND styles, a smooth pathway to migrate all those question files to Moodle.
Thanks a lot!!
- Enrique -
You must of been posting at about the same time I was.
You have something similar for OpenOffice??
I used to have my documents in MS-Word, but some 2 years ago I decided to move to OpenOffice. I'm the only one at my Department, but I evangelize as much as I can (last week I gave a course on OpenOffice for University staff, and I set a Moodle course as on-line support!)
I do have an OpenOffice Writer template with styles defined for questions and answers. But that's all, it doesn't have the grade of automation that Mikko's document has achieved. I had to export as XHTM, reopen in OpenOffice and run manually a macro.
But now I am committed to write such a "quiz writing form". With some important modifications: as far as I have tested any formatting is lost when the quiz is exported to GIFT. The procedure I had (via XHTML) preserved formatting of texts and special characters: I am a biochemist, I do write a lot of alphas, betas and so on. And I am in Spain, so I need to cope with accented vowels and ñ.
Next week I have all afternoons reserved for students. VB macros cannot be imported to OpenOffice, they need to be rewritten from scratch. I promise that in a couple of weeks I will post here a full functioning version of Mikko's macros for OOo. If not, please remember it to me, severely .
- Enrique -
I wish I know how to program in VB but I still am trying to get the PHP thingy together. I would enjoy working on a program for OO that would create SCORM which would easily work with the MoodleScorm. Oh! Well!
Do you have a style called "normal"?
Go to the begging of the macro window and you will see a list of constants declared. They are the names of the styles used by the template¯o. There you will have STYLE_NORMAL = "normal".
If the "normal", or "default" paragraph style of your document is not called "normal" (perhaps teh same in Dutch) then you have that error. Rename either the style or the STYLE_NORMAL string that identifies the "default" style.
I have not forgotten the macro for OOo (OOo is built around styles). I have Mikko's macro translated to OOo, but coping with symbols and XML/XHTML is more tricky than expected. OOo does some weird things sometimes. I am still working on that. If I see it can take too much, I will post just the equivalent to Mikko's, without extra formatting and symbols.
- Enrique -
In the top of the macro you can define the name of the template, that is HIGHER IN THE FILE THEN THE PLACE WITH THE YELLOW ERROR MESSAGE!)
' Style definitions. The styles defined below are used in the conversion.
' General purpose styles.
Const STYLE_FEEDBACK = "Feedback"
Const STYLE_ANSWERWEIGHT = "AnswerWeight"
Const STYLE_NORMAL = "Standaard"
Works for me in Word 2003 but not for my Friend in an older Word
It works in word 2002 (sp3).
Yes.. handling symbols in quizz answers for Science is for students essential: is the answer 2V, 2A or 2 OHM (The Greek Omega is not in the char listt.)
OO 2 is now out... any chance of a moodle GIFT format generator?
I am back again working on Moodle stuff. In other thread I have posted the new version of the template that solves chrashes with OOo <2.0.1. Only OOo 2.0.1 will work, any previous version will have this or that failure.
This set of OOo macros were inspired in teh GIFTConverter template for MS-Word published here by Mikko Rusama, but extended to allow more freedom (and visual aid) when writing quizzes.
I am going to try to use it with Word.
- Is it version specific, that is, will it work with all versions of Word or just with, for example, only Word 2000 and XP?
- Have you thought about doing the same for OpenOffice? I believe that OpenOffice v2.0 is due out this month sometime?
I tested the template and imported the questions. For some reason it brought in other questions that were not part of original questions, and I have no idea where they came from. In the following picture, only the two questions relating to capitals and the math question were the ones i created.
Any idea where the other ones came from?
I put together some step-by-step screenshots of how to use the macro/template and the 13-page How-to is available at:
My students will all be creating GIFTed questions from each other's errors on forum postings...
Thanks, Mark, for going to all this trouble.
Hi Mark - I see from your profile you are still Moodling so I wondered if this resource is still available (this link is broken). I have found the old template file lurking in an old work directory but have never used it.
Has it been trumped by something more modern do you know? (I'm returning to Moodle after some years away) if not I'd appreciate a copy of your tutorial.
I don't know how menu's commands spell in english but I'm trying to guess it.
1. Do right click wherever on toolbar.
2. In context menu select last command (Options... ?)
3. Now, when you'll see dialog window, do right click on any button on Moodle's toolbar.
4. You'll see item "Name" and can change caption on this button!
In Russian version I reorganized this toolbar. It was necessary because in Russian the captions on buttons is longer than in English (see picture).
PS: You can translate paragraph's styles too. You'll should change VB Script for it.
I found this Word model terrific...but I meet some troubles with it.
Each time I use it one bug appears in Private Sub RemoveFormatting() as seen on the capture in the attachment.
What is the problem ?
i got the same pb !
I have this problem only with word 2000. With higher versions there isn' t a problem on my system.
Hope this help.
I am curious; is the template being actively developed? I am considering making some improvements, but I do not want to replicate other people's efforts and if I go to this effort I would want to share the improvements with other Moodlers.
Specifically, I am considering making the Export function a little smarter about exporting symbols and character styles. I am a math teacher, so I need to include superscripts (exponents) and greek symbols in my quizzes. I can use the template as-is, typing π<i>r</i><sup>2</sup> when I want to type "pi r squared", but it would be nicer if I could just put a pi symbol, make the r italic and make the 2 a superscript in Word. Then the export function would have to look for some symbols, for italics, bold, superscript, subscript, and maybe a couple other styles, and convert those styles to HTML on the way to the GIFT file.
Any opinions on whether this is worth pursuing? I do have some experience parsing Word styles into XML in a part-time engineering gig over the past year, so this is right up my alley.
Anyone having bugs with 1.7.1 when importing fill in the blank (missingwordq)?
I changed the STYLE_NORMAL = "Standard" to STYLE_NORMAL = "Normal"
It successfully completes the export of a quiz to a .txt file but all of the supercripts and subscripts have disappeared.
Is there something I'm missing?
once i have enabled the macro, they should be available in the ADD IN section o the menu bar.
otherwise, you can customise your quick access toolbar up the top and add the different quiz options.
BUT... i get this error again when i try to export it. (the section in red is highlighted) Any ideas?
' Inserts text at the end of the paragraph before the trailing VbCr
Sub InsertAfterBeforeCR(ByVal text As String, ByVal aRange As Range)
aRange.End = aRange.End - 1 ' insert text before cr
.Style = Normal
.Move Unit:=wdParagraph, Count:=1
Could any one tell me where I can find it, so that I can use
Hi all - I have a copy of the file and attatch it here - no idea of the creator so can't credit, sorry.
I have no idea how to use it - so if anyone can share that info please post.
Thank you Joy Pegrum, your file was really useful to me. I have a FAQ about it, but it is in Catalan language, I don't think it could be of any use for you. I will try to get familiar with the program and post here some basics.
Here is the current site for this template (makes a moodle XML file, which you import in the Quiz questions page) - includes readme file (PDF) in English!
This looks really nice but doesn't seem to work with Office 2010. Can anyone help?