7 Replies Latest reply: Jul 15, 2014 10:54 PM by David-OZ RSS

    Importing GIFT format files from Moodle 2.7

    David-OZ Community Member

      I downloaded the Captivate 8 trial and tried to import a simple multi-choice GIFT format file that I exported from Moodle 2.7, however it added the HTML <p>  </p> tags to every text line that was imported. This is a problem, especially if you have to import allot of question data.

       

      Is there a fix or way around this, so you don't have to edit and delete every <p> </p> wrapper on every imported line of question text ?

       

      COPY OF IMPORTED GIFT question data below;

       

      <p>What state is Melbourne in ?</p>

       

      ( )  A) <p>NSW</p>

      ( )  B) <p>QLD</p>

      (*)  C) <p>VIC</p>

      ( )  D) <p>WA</p>

      ( )  E) <p>NT</p>

       

      Thanks.

      David

      4 July 2014

        • 1. Re: Importing GIFT format files from Moodle 2.7
          Russ_E Community Member

          I have faced similar challenges with using GIFT data between different systems.

          It all depends on having the GIFT file formatted correctly before you import it.

          It's just a text file, so the simplest way to fix it is this.

           

          Open the file in notepad (or other text editor).

          Run find/replace twice.

          First time, replace "<p>" with "", (in other words you are replacing it with nothing).

          Then do the same for the closing tag, replace "</p>" with nothing.

           

          That should remove all of the opening and closing paragraph tags and not add any extra spaces to your file.

          The file will actually get a little smaller as a result.

           

          Just make sure you are using a pure text editor, like notepad, and not a document editor.

          Sometimes the latter can add in extra formatting you don't want or need.

          And for the "replace with", you are leaving it completely blank; not typing a space or empty quotes or anything.

           

          Let me know if that does not make sense or if I missed the point of your question.

          Hope it helps.

          Russ

          • 2. Re: Importing GIFT format files from Moodle 2.7
            David-OZ Community Member

            Ahh thanks Russ. That sounds like a useful work around.

             

            I wonder why this HTML <p> </p> text gets included in the Moodle exported GIFT file?

             

            Do you think this is a fault with Moodle? or a fault with the Adobe Captivate import function?

             

            Surely this text either is or isn't a part of the standard GIFT format.

             

            Thanks,
            David

            • 3. Re: Importing GIFT format files from Moodle 2.7
              Russ_E Community Member

              Don't think it's necessarily a fault of either.

              There are always nuances of difference between systems.

              But there is usually a work around.

              • 4. Re: Importing GIFT format files from Moodle 2.7
                David-OZ Community Member

                So is HTML "<p>" and "</p>" in the GIFT standard or not? That would seem to answer the question of where the solution lies.

                • 6. Re: Importing GIFT format files from Moodle 2.7
                  David-OZ Community Member

                  Thanks, yes I looked at the Moodle docs on GIFT format.  GIFT seems to support HTML and plain text formats, but the export function only seems to include html tags by default and there does not seem any option to strip html tags out of the exported data. Seems the default format is [moodle], whatever that is.

                   

                  From Moodle Docs if this is relevant to this matter;

                   

                  "[...format...] The format of the following bit of text. Options are [html], [moodle], [plain] and [markdown]. The default is [moodle] for the question text, other parts of the question default to the format used for the question text.

                  "

                  • 7. Re: Importing GIFT format files from Moodle 2.7
                    David-OZ Community Member

                    Would be good if Captivate either properly interpreted html tags, rather than treat them as part of the question text and or had an import option to ignore html tags.