Add folder of files into a text document (Mac OS)

Suoritettu Julkaistu 1 vuosi sitten Maksettu toimituksen yhteydessä
Suoritettu Maksettu toimituksen yhteydessä

Add files from a folder into an text document (file extension SQQ).

If the file is a JPG, PNG or MP3, it should be encoded into BASE64 format and added between the <picture></picture> tags.

If the file is not a JPG or PNG, the <picture></picture> tags should not be added.

Any text before QQ_ in the filename should be ignored.

These characters should be replaced before adding to the text document.

^^ should be replaced by ?

'' should be replaced by "

;; should be replaced by :

++ should be replaced by *

{{ should be replaced by /

}} should be replaced by \

[[ should be replaced by <

]] should be replaced by >

The base template is as follows, all the templates below will go in between the <questions></questions> tags.

<?xml version="1.0" encoding="utf-8"?>

<round>

<game>Quizsentials</game>

<title>Generated from SQQM - 21/01/23</title>

<points_per_question>4</points_per_question>

<go_wide>false</go_wide>

<speed_bonus>true</speed_bonus>

<questions>

</questions>

</round>

=====

Multiple Choice file named as follows:

QQ_QUESTION_OPTIONA_OPTIONB_OPTIONC_OPTIOND_OPTIONE_OPTIONF_SHORTANSWER_INFO

Should be added to the text file as follows:

<question>

<user_view>multi</user_view>

<q>QUESTION</q>

<short_answer>SHORTANSWER</short_answer>

<long_answer>INFO</long_answer>

<options>

<option>OPTIONA</option>

<option>OPTIONB</option>

<option>OPTIONC</option>

<option>OPTIOND</option>

<option>OPTIONE</option>

<option>OPTIONF</option>

</options>

<picture>PICTURE</picture>

</question>

=====

Sequence file named as follows:

QQ_QUESTION_OPTION1_OPTION2_OPTION3_OPTION4_OPTION5_OPTION6__

Should be added to the text file as follows:

<question>

<user_view>sequence</user_view>

<q>QUESTION</q>

<short_answer></short_answer>

<long_answer>OPTION1 / OPTION2 / OPTION3 / OPTION4/ OPTION5/ OPTION6</long_answer>

<options>

<option>OPTION1</option>

<option>OPTION2</option>

<option>OPTION3</option>

<option>OPTION4</option>

<option>OPTION5</option>

<option>OPTION6</option>

</options>

<picture>PICTURE</picture>

</question>

=====

Letters file named as follows:

QQ_QUESTION_SHORTANSWER_LONGANSWER

Should be added to the text file as follows:

<question>

<user_view>letters</user_view>

<q>QUESTION</q>

<short_answer>SHORTANSWER</short_answer>

<long_answer>LONGANSWER</long_answer>

<picture>PICTURE</picture>

</question>

=====

Number questions are exactly the same as Letters questions, but SHORTANSWER will contain a number.

Number Question file named as follows:

QQ_QUESTION_SHORTANSWER_LONGANSWER

Should be added to the text file as follows:

<question>

<user_view>numbers</user_view>

<q>QUESTION</q>

<short_answer>SHORTANSWER</short_answer>

<long_answer>LONGANSWER</long_answer>

<picture>PICTURE</picture>

</question>

Mac OS XML

Projektin tunnus: #35809918

Tietoa projektista

1 ehdotus Etäprojekti Aktiivinen 1 vuosi sitten

Myönnetty käyttäjälle:

gangabass

I can create a simple GUI tool for MacOS that will work exactly like you want. I can complete it in 24 hours for just $120. Roman

$120 USD 1 päivässä
(79 Arvostelua)
5.9