Hallgrim - an ILIAS task generator in Python
Usage
Invoke the script with python3 grim.py -h
in order to see usage. Currently
many features are not yet implemented. Single and Multiple Chice questions
can be generated also in parametrized form.
Example scripts can be found in scripts/
.
A first version of the tool that relied on autoilias is still in the repository
(see generator.py
). It will be removed as soon as the necessary features are
implemented.
Dependencies
pip install mistune
TODO
- Add a good description / documentation.
- Add more functionality (gap, alignment, etc.)
- Make parsers more robust.
- reverse ILIAS authentication mechanism for automated upload.
- Create whole test object with questions for direct import. Create two versions (one for internal use and one for the test.)
- move moints from meta to parser
Notes
The final data is produced in three steps:
- A python script file with predefined structure that has to export certain variables in a specified format.
- An intermediate representation (probably an array that contains relevant data and assumes unknown properties)
- The XML structure for one or multiple questions, readable by Ilias.
- An Ilias object packed as .zip file, ready for upload.
LaTeX Support
Hallgrim supports the native latex approach by ILIAS. To typeset a formula just
out in backets like this [[\\sum_{i=1}^n i = \\frac{n(n+1)}{2}]]
. Special
carecters (mostly \
) have to be escaped unless you use raw strings (r'a raw string'
).