From 49c6d1cecb85f6a55ba1bdc2b5bffef9ea7d15b6 Mon Sep 17 00:00:00 2001
From: David Rouquet <david.rouquet@tetras-libre.fr>
Date: Sun, 20 Apr 2025 11:50:06 +0200
Subject: [PATCH] Dropdowns

---
 .../schemes/macao-manual-edition.ttl          | 96 +++++++++++++++++++
 1 file changed, 96 insertions(+)

diff --git a/tetras_extraction/schemes/macao-manual-edition.ttl b/tetras_extraction/schemes/macao-manual-edition.ttl
index 9396e11..efb254e 100644
--- a/tetras_extraction/schemes/macao-manual-edition.ttl
+++ b/tetras_extraction/schemes/macao-manual-edition.ttl
@@ -378,6 +378,30 @@ macao:pg396
   ]
 }""" ;
 .
+macao:pg444
+  macao:surveyjs_json """{
+  \"correctComment\": \"C'est cela!\\n **FOR** est le seul mot commun aux deux énoncés.\",
+  'incorrectComment': 'Vous vous trompez.\\n **FOR** est le seul mot commun aux deux énoncés. Vous pouvez réécouter les énoncés.',
+  \"elements\": [
+    {
+      \"type\": \"dropdown\",
+      \"name\": \"question1\",
+      \"customFormat\": \"one_line\",
+      \"title\": \"<div><audio id=\\\"e29_macao1_2b91_01.mp3\\\" ><source src=\\\"/macao-hugo\\/macao\\/static\\/media\\/e29_macao1_2b91\\/e29_macao1_2b91_01.mp3\\\" type=\\\"audio\\/mpeg\\\"><\\/audio><button onclick=\\\"document.getElementById('e29_macao1_2b91_01.mp3').play()\\\">Play<\\/button><\\/div> <div><audio id=\\\"e29_macao1_2b101_01.mp3\\\" ><source src=\\\"\\/macao-hugo\\/macao\\/static\\/media\\/e29_macao1_2b101\\/e29_macao1_2b101_01.mp3\\\" type=\\\"audio\\/mpeg\\\"><\\/audio><button onclick=\\\"document.getElementById('e29_macao1_2b101_01.mp3').play()\\\">Play<\\/button><\\/div>\",
+      \"choices\": [
+        { \"value\": 1, \"text\": \"at\" },
+        { \"value\": 2, \"text\": \"for\" },
+        { \"value\": 3, \"text\": \"in\" },
+        { \"value\": 4, \"text\": \"of\" },
+        { \"value\": 5, \"text\": \"on\" },
+        { \"value\": 6, \"text\": \"to\" }
+      ],
+      \"enableHtml\": true,
+      \"correctAnswer\": 2,
+    }
+  ]
+}""" ;
+.
 macao:pg448
   rdf:type macao-manual-edition:ExerciceQC_manualEdit ;
   rdf:type macao:ExerciceQC_QCU ;
@@ -427,6 +451,30 @@ macao:pg448_3
   macao:index 2 ;
   rdfs:subClassOf macao:pg448 ;
 .
+macao:pg52
+  macao:surveyjs_json """{
+  \"correctComment\": \"C'est cela!\\n **TO** est le seul mot commun aux deux énoncés.\",
+  'incorrectComment': 'Vous vous trompez.\\n **TO** est le seul mot commun aux deux énoncés. Vous pouvez réécouter les énoncés.',
+  \"elements\": [
+    {
+      \"type\": \"dropdown\",
+      \"name\": \"question1\",
+      \"customFormat\": \"one_line\",
+      \"title\": \"<div><audio id=\\\"e29_macao1_2b51_01.mp3\\\" ><source src=\\\"/macao-hugo\\/macao\\/static\\/media\\/e29_macao1_2b51\\/e29_macao1_2b51_01.mp3\\\" type=\\\"audio\\/mpeg\\\"><\\/audio><button onclick=\\\"document.getElementById('e29_macao1_2b51_01.mp3').play()\\\">Play<\\/button><\\/div> <div><audio id=\\\"e29_macao1_2b61_01.mp3\\\" ><source src=\\\"\\/macao-hugo\\/macao\\/static\\/media\\/e29_macao1_2b61\\/e29_macao1_2b61_01.mp3\\\" type=\\\"audio\\/mpeg\\\"><\\/audio><button onclick=\\\"document.getElementById('e29_macao1_2b61_01.mp3').play()\\\">Play<\\/button><\\/div>\",
+      \"choices\": [
+        { \"value\": 1, \"text\": \"at\" },
+        { \"value\": 2, \"text\": \"for\" },
+        { \"value\": 3, \"text\": \"in\" },
+        { \"value\": 4, \"text\": \"of\" },
+        { \"value\": 5, \"text\": \"on\" },
+        { \"value\": 6, \"text\": \"to\" }
+      ],
+      \"enableHtml\": true,
+      \"correctAnswer\": 6,
+    }
+  ]
+}""" ;
+.
 macao:pg525
   macao:description_md_manual_edition """<head>
     <meta charset=\"UTF-8\">
@@ -589,6 +637,30 @@ macao:pg543_3
   macao:index 2 ;
   rdfs:subClassOf macao:pg543 ;
 .
+macao:pg558
+  macao:surveyjs_json """{
+  \"correctComment\": \"C'est cela!\\n **AT** est le seul mot commun aux deux énoncés.\",
+  'incorrectComment': 'Vous vous trompez.\\n **AT** est le seul mot commun aux deux énoncés. Vous pouvez réécouter les énoncés.',
+  \"elements\": [
+    {
+      \"type\": \"dropdown\",
+      \"name\": \"question1\",
+      \"customFormat\": \"one_line\",
+      \"title\": \"<div><audio id=\\\"e29_macao1_2b31_01.mp3\\\" ><source src=\\\"/macao-hugo\\/macao\\/static\\/media\\/e29_macao1_2b31\\/e29_macao1_2b31_01.mp3\\\" type=\\\"audio\\/mpeg\\\"><\\/audio><button onclick=\\\"document.getElementById('e29_macao1_2b31_01.mp3').play()\\\">Play<\\/button><\\/div> <div><audio id=\\\"e29_macao1_2b41_01.mp3\\\" ><source src=\\\"\\/macao-hugo\\/macao\\/static\\/media\\/e29_macao1_2b41\\/e29_macao1_2b41_01.mp3\\\" type=\\\"audio\\/mpeg\\\"><\\/audio><button onclick=\\\"document.getElementById('e29_macao1_2b21_41.mp3').play()\\\">Play<\\/button><\\/div>\",
+      \"choices\": [
+        { \"value\": 1, \"text\": \"at\" },
+        { \"value\": 2, \"text\": \"for\" },
+        { \"value\": 3, \"text\": \"in\" },
+        { \"value\": 4, \"text\": \"of\" },
+        { \"value\": 5, \"text\": \"on\" },
+        { \"value\": 6, \"text\": \"to\" }
+      ],
+      \"enableHtml\": true,
+      \"correctAnswer\": 1,
+    }
+  ]
+}""" ;
+.
 macao:pg60
   macao:surveyjs_json """{
   \"correctComment\": \"Bonnes réponses !\",
@@ -960,3 +1032,27 @@ macao:pg900_3
   macao:index 2 ;
   rdfs:subClassOf macao:pg900 ;
 .
+macao:pg948
+  macao:surveyjs_json """{
+  \"correctComment\": \"C'est cela!\\n **IN** est le seul mot commun aux deux énoncés.\",
+  'incorrectComment': 'Vous vous trompez.\\n **IN** est le seul mot commun aux deux énoncés. Vous pouvez réécouter les énoncés.',
+  \"elements\": [
+    {
+      \"type\": \"dropdown\",
+      \"name\": \"question1\",
+      \"customFormat\": \"one_line\",
+      \"title\": \"<div><audio id=\\\"e29_macao1_2b71_01.mp3\\\" ><source src=\\\"/macao-hugo\\/macao\\/static\\/media\\/e29_macao1_2b71\\/e29_macao1_2b71_01.mp3\\\" type=\\\"audio\\/mpeg\\\"><\\/audio><button onclick=\\\"document.getElementById('e29_macao1_2b71_01.mp3').play()\\\">Play<\\/button><\\/div> <div><audio id=\\\"e29_macao1_2b81_01.mp3\\\" ><source src=\\\"\\/macao-hugo\\/macao\\/static\\/media\\/e29_macao1_2b81\\/e29_macao1_2b81_01.mp3\\\" type=\\\"audio\\/mpeg\\\"><\\/audio><button onclick=\\\"document.getElementById('e29_macao1_2b81_01.mp3').play()\\\">Play<\\/button><\\/div>\",
+      \"choices\": [
+        { \"value\": 1, \"text\": \"at\" },
+        { \"value\": 2, \"text\": \"for\" },
+        { \"value\": 3, \"text\": \"in\" },
+        { \"value\": 4, \"text\": \"of\" },
+        { \"value\": 5, \"text\": \"on\" },
+        { \"value\": 6, \"text\": \"to\" }
+      ],
+      \"enableHtml\": true,
+      \"correctAnswer\": 3,
+    }
+  ]
+}""" ;
+.
-- 
GitLab