Talk:GIFT format

From MoodleDocs
Revision as of 15:17, 25 November 2021 by Cris Fuhrman (talk | contribs) (respond about escaping equals sign)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

There are some broken links that should be fixed/removed ...German Valero (talk) 22:49, 26 August 2014 (WST)

Can someone help me to understand the following inconsistency in the format description? The specification says that special characters like '=' or ':' need to be escaped in GIFT descriptions. However in the examples section we have the one

::Q1:: 1+1=2 {T}

where the '='-character is not escaped. Is there a clear answer for that? Even the various tools seem to have different opinions. Moodle importing will unescape these characters as long as they are not inside '{}', Ethan Ou's VSCode plugin and the GIFT Question Editor require proper escaping, this Python GIFT parser library accepts both versions but doesn't unescape outside of '{}' and the GIFT2QTI converter even fails when escaped. --Silvan Wegmann (talk) 14:47, 21 November 2021 (UTC)

If I create your 1+1=2 question in Moodle itself and export it to GIFT, the = character will be escaped. As the developer of the GIFT-grammar-PEG.js project, exporting to GIFT from the latest version of Moodle is the "oracle" I use to answer such questions. Cris Fuhrman (talk) 15:17, 25 November 2021 (UTC)