Diskussion:GIFT format

Från MoodleDocs
Hoppa till:navigering, sök

There are some broken links that should be fixed/removed ...German Valero (diskussion) 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 (diskussion) 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 (diskussion) 15:17, 25 November 2021 (UTC)