edesiocs / ingatan

Automatically exported from code.google.com/p/ingatan
Other
0 stars 0 forks source link

Fill in the table questions do not convert between [] and the rich text codes (e.g. !osqb; and !csqb;) properly. #48

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a flexi question with a fill in the table type answer field.
2. In an answer cell, type something like Cr[acac]3
3. Go into quiz mode and attempt to answer the question with this text.

What is the expected output? What do you see instead?
It is expected that the question be marked correctly, instead it is marked 
incorrect with the following shown: Cr!osqb;acac!csqb;3.

Please use labels and text to provide additional information.
Have a look at the serialisation code in the answer field itself... or failing 
that, check that the parser for library files is reconverting these codes.

Original issue reported on code.google.com by tom.eve...@gmail.com on 3 Apr 2011 at 8:59

GoogleCodeExporter commented 9 years ago
Same for simple text field. It appears many answer fields are not deserialising 
with the character codes being replaced. Look in Parser class.

Original comment by tom.eve...@gmail.com on 3 Apr 2011 at 9:44

GoogleCodeExporter commented 9 years ago

Original comment by tom.eve...@gmail.com on 3 Apr 2011 at 9:45

GoogleCodeExporter commented 9 years ago

Original comment by tom.eve...@gmail.com on 3 Apr 2011 at 9:45

GoogleCodeExporter commented 9 years ago
Problem is widespread and also affects answer fields that serialise 
RichTextArea compatible markup (i.e. AnsFieldHint, AnsFieldSelfGraded, and 
AnsFieldMultiChoice) as this markup is then contained within RichTextArea 
markup. The solution here is to use unique character codes for these three 
classes. This provides distinction between answer area tag square brackets, 
answer area text square brackets, answer field tag square brackets, and answer 
field text square brackets. Changes included on next commit. Other aspects of 
this issue still in progress.

Original comment by tom.eve...@gmail.com on 27 Mar 2012 at 4:31

GoogleCodeExporter commented 9 years ago
Could not reproduce original issue. It may have been fixed a while ago before I 
got too busy to keep working on Ingatan.

Another square bracket issue that has been fixed is that of Table Questions - 
square brackets in question terms were being lost when displayed at quiz time 
because the question text was being loaded into the rich text area with square 
bracket characters read as tag characters. Solution was to replace them with 
the RichTextArea markup charcodes before loading into the question rich text 
area. See change 22f890f1c29f.

Original comment by tom.eve...@gmail.com on 27 Mar 2012 at 5:38

GoogleCodeExporter commented 9 years ago

Original comment by tom.eve...@gmail.com on 28 Mar 2012 at 1:50