Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[.interview] incorrect parsing of questions as body #6

Open
six5536 opened this issue Apr 3, 2023 · 0 comments
Open

[.interview] incorrect parsing of questions as body #6

six5536 opened this issue Apr 3, 2023 · 0 comments

Comments

@six5536
Copy link

six5536 commented Apr 3, 2023

Describe the bug
[.interview] incorrect parsing of questions as body. The first and second questions are interpreted as ‘body’.

To Reproduce
Parse the following bitmark to produce JSON output:

[.interview:bitmark--&image]
[@id:136477]
[%2]
[&image:https://docs.bitmark.cloud/bit-books/aufnahmepruefung_gymnasium_kt_zh/mathe_2019/web-resources/images/aufnahmepruefung1.png]

[!__Auf dem Ponyhof__]
===
a) Wie gross ist der Futterbedarf im Monat März für alle Ponys?
===
b) Wie viel sollte ein Reiter eines Ponys mit durchschnittlichem Gewicht höchstens wiegen?
===
c) Einmal pro Tag wird Wasser für die Ponys bereitgestellt. Wie viele Wassertröge werden mindestens benötigt?
===

The following JSON is produced:

{
 "bitmark": "[.interview:bitmark--&image]\n[@id:136477]\n[%2]\n[&image:https://docs.bitmark.cloud/bit-books/aufnahmepruefung_gymnasium_kt_zh/mathe_2019/web-resources/images/aufnahmepruefung1.png]\n\n[!__Auf dem Ponyhof__]\n===\na) Wie gross ist der Futterbedarf im Monat März für alle Ponys?\n===\nb) Wie viel sollte ein Reiter eines Ponys mit durchschnittlichem Gewicht höchstens wiegen?\n===\nc) Einmal pro Tag wird Wasser für die Ponys bereitgestellt. Wie viele Wassertröge werden mindestens benötigt?\n===",
 "bit": {
   "type": "interview",
   "format": "bitmark--",
   "item": "2",
   "instruction": "__Auf dem Ponyhof__",
   "body": "a) Wie gross ist der Futterbedarf im Monat März für alle Ponys?b) Wie viel sollte ein Reiter eines Ponys mit durchschnittlichem Gewicht höchstens wiegen?",
   "footer": "",
   "hint": "",
   "questions": [
     {
       "item": "",
       "question": "a) Wie gross ist der Futterbedarf im Monat März für alle Ponys?",
       "instruction": "",
       "hint": "",
       "isExample": false,
       "example": "",
       "sampleSolution": "",
       "partialAnswer": "",
       "isShortAnswer": true
     },
     {
       "item": "",
       "question": "b) Wie viel sollte ein Reiter eines Ponys mit durchschnittlichem Gewicht höchstens wiegen?",
       "instruction": "",
       "hint": "",
       "isExample": false,
       "example": "",
       "sampleSolution": "",
       "partialAnswer": "",
       "isShortAnswer": true
     },
     {
       "item": "",
       "question": "c) Einmal pro Tag wird Wasser für die Ponys bereitgestellt. Wie viele Wassertröge werden mindestens benötigt?",
       "instruction": "",
       "hint": "",
       "isExample": false,
       "example": "",
       "sampleSolution": "",
       "partialAnswer": "",
       "isShortAnswer": true
     }
   ],
   "id": [
     "136477"
   ],
   "resource": {
     "type": "image",
     "image": {
       "src": "https://docs.bitmark.cloud/bit-books/aufnahmepruefung_gymnasium_kt_zh/mathe_2019/web-resources/images/aufnahmepruefung1.png",
       "showInIndex": false,
       "format": "png",
       "width": null,
       "height": null,
       "alt": "",
       "caption": "",
       "license": "",
       "copyright": ""
     }
   }
 }
}

Expected behavior
The questions are not included in the 'body'

versions
1.0.38

nodayoshikazu added a commit that referenced this issue Apr 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant