moodleou / moodle-qtype_pmatch

Pattern-match question type for Moodle
12 stars 23 forks source link

Superscript issue #52

Open garetharnott opened 4 years ago

garetharnott commented 4 years ago

Hi guys - I've been spear-heading this amazing question type at our institution since last year. I do not know where to report bugs, but something weird is happening. I have a question that needs superscripts for correct input (i.e. a formula). Last year we used it in the exam with 100% success (really truly amazing as there were over 800 unique answers). Now the same question is broken? I have tracked the issue to the following. The text I am looking for is programmed in as follows:

match_w (2n)

this will not work, but if I tell pmatch to remove '<' and '>' and convert to space, then the following

match_w (2 sup n /sup)

now works. It is a very bizarre thing. Note also that the subscript version does work, so ... weird. Is there any reason for this? I have attached the question type as it originally stood. The XML file is renamed as TXT

--Gareth pmatch Q with superscript issue.txt