Note: You are currently viewing documentation for Moodle 3.11. Up-to-date documentation for the latest stable version of Moodle may be available here: GIFT format.

Talk:GIFT format: Difference between revisions

From MoodleDocs
(There are some broken links that should be fixed/removed)
 
(respond about escaping equals sign)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
There are some broken links that should be fixed/removed ...[[User:German Valero|German Valero]] ([[User talk:German Valero|talk]]) 22:49, 26 August 2014 (WST)
There are some broken links that should be fixed/removed ...[[User:German Valero|German Valero]] ([[User talk: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 <pre>::Q1:: 1+1=2 {T}</pre> 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 [https://fuhrmanator.github.io/GIFT-grammar-PEG.js/editor/editor.html GIFT Question Editor] require proper escaping, this [https://pypi.org/project/pygiftparserrgmf/ Python GIFT parser library] accepts both versions but doesn't unescape outside of '{}' and the [https://www.tsugi.org/gift2qti/ GIFT2QTI converter] even fails when escaped. --[[User:Silvan Wegmann|Silvan Wegmann]] ([[User talk: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. [[User:Cris Fuhrman|Cris Fuhrman]] ([[User talk:Cris Fuhrman|talk]]) 15:17, 25 November 2021 (UTC)

Latest revision as of 15:17, 25 November 2021

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)