-
Notifications
You must be signed in to change notification settings - Fork 129
/
semantics.json
929 lines (929 loc) · 27.7 KB
/
semantics.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
[
{
"name": "presentation",
"type": "group",
"importance": "high",
"widget": "coursepresentation",
"fields": [
{
"name": "slides",
"importance": "high",
"type": "list",
"field": {
"name": "slide",
"importance": "high",
"type": "group",
"fields": [
{
"name": "elements",
"importance": "high",
"type": "list",
"field": {
"name": "element",
"importance": "high",
"type": "group",
"fields": [
{
"name": "x",
"importance": "low",
"type": "number",
"widget": "none"
},
{
"name": "y",
"importance": "low",
"type": "number",
"widget": "none"
},
{
"name": "width",
"importance": "low",
"type": "number",
"widget": "none",
"optional": true
},
{
"name": "height",
"importance": "low",
"type": "number",
"widget": "none",
"optional": true
},
{
"name": "action",
"type": "library",
"importance": "high",
"options": [
"H5P.AdvancedText 1.1",
"H5P.Link 1.3",
"H5P.Image 1.1",
"H5P.Shape 1.0",
"H5P.Video 1.6",
"H5P.Audio 1.5",
"H5P.Blanks 1.14",
"H5P.SingleChoiceSet 1.11",
"H5P.MultiChoice 1.16",
"H5P.TrueFalse 1.8",
"H5P.DragQuestion 1.14",
"H5P.Summary 1.10",
"H5P.DragText 1.10",
"H5P.MarkTheWords 1.11",
"H5P.Dialogcards 1.9",
"H5P.ContinuousText 1.2",
"H5P.ExportableTextArea 1.3",
"H5P.Table 1.2",
"H5P.InteractiveVideo 1.27",
"H5P.TwitterUserFeed 1.0",
"H5P.AudioRecorder 1.0",
"H5P.MultiMediaChoice 0.3"
],
"optional": true
},
{
"name": "solution",
"type": "text",
"widget": "html",
"optional": true,
"label": "Comments",
"importance": "low",
"description": "The comments are shown when the user displays the suggested answers for all slides.",
"enterMode": "p",
"tags": [
"strong",
"em",
"del",
"a",
"ul",
"ol",
"h2",
"h3",
"hr",
"pre",
"code"
]
},
{
"name": "alwaysDisplayComments",
"type": "boolean",
"label": "Always display comments",
"importance": "low",
"optional": true
},
{
"name": "backgroundOpacity",
"type": "number",
"label": "Background Opacity",
"importance": "low",
"min": 0,
"max": 100,
"step": 5,
"default": 0,
"optional": true
},
{
"name": "displayAsButton",
"type": "boolean",
"label": "Display as button",
"importance": "medium",
"default": false,
"optional": true
},
{
"name": "buttonLabel",
"type": "text",
"label": "Optional button label",
"importance": "medium",
"optional": true
},
{
"name": "buttonSize",
"type": "select",
"label": "Button size",
"importance": "low",
"optional": false,
"default": "big",
"options": [
{
"value": "small",
"label": "Small"
},
{
"value": "big",
"label": "Big"
}
]
},
{
"name": "title",
"type": "text",
"optional": true,
"label": "Title",
"importance": "medium"
},
{
"name": "goToSlideType",
"type": "select",
"label": "Go to",
"importance": "medium",
"optional": false,
"options": [
{
"value": "specified",
"label": "Specific slide number"
},
{
"value": "next",
"label": "Next slide"
},
{
"value": "previous",
"label": "Previous slide"
}
],
"default": "specified"
},
{
"name": "goToSlide",
"type": "number",
"label": "Specific slide number",
"description": "Only applicable when 'Specific slide number' is selected",
"importance": "low",
"min": 1,
"optional": true
},
{
"name": "invisible",
"type": "boolean",
"label": "Invisible",
"importance": "low",
"description": "Default cursor, no title and no tab index. Warning: Users with disabilities or keyboard only users will have trouble using this element.",
"default": false
}
]
}
},
{
"name": "keywords",
"importance": "low",
"type": "list",
"optional": true,
"field": {
"name": "keyword",
"importance": "low",
"type": "group",
"optional": true,
"fields": [
{
"name": "main",
"importance": "low",
"type": "text",
"optional": true
},
{
"name": "subs",
"importance": "low",
"type": "list",
"optional": true,
"field": {
"name": "keyword",
"importance": "low",
"type": "text"
}
}
]
}
},
{
"name": "slideBackgroundSelector",
"importance": "medium",
"type": "group",
"widget": "radioSelector",
"fields": [
{
"name": "imageSlideBackground",
"type": "image",
"label": "Image",
"importance": "medium",
"optional": true,
"description": "Image background should have a 2:1 width to height ratio to avoid stretching. High resolution images will display better on larger screens."
},
{
"name": "fillSlideBackground",
"importance": "medium",
"type": "text",
"widget": "colorSelector",
"label": "Pick a color",
"spectrum": {
"flat": true,
"showInput": true,
"allowEmpty": true,
"showButtons": false
},
"default": null,
"optional": true
}
]
}
]
}
},
{
"name": "ct",
"importance": "low",
"type": "text",
"widget": "none",
"optional": true,
"tags": [
"strong",
"em",
"del",
"br",
"p",
"a",
"h2",
"h3",
"pre",
"code"
]
},
{
"name": "keywordListEnabled",
"type": "boolean",
"label": "Keyword list",
"importance": "low",
"default": true
},
{
"name": "keywordListAlwaysShow",
"type": "boolean",
"label": "Always show",
"importance": "low",
"default": false
},
{
"name": "keywordListAutoHide",
"type": "boolean",
"label": "Auto hide",
"importance": "low",
"default": false
},
{
"name": "keywordListOpacity",
"type": "number",
"label": "Opacity",
"importance": "low",
"min": 0,
"max": 100,
"default": 90
},
{
"name": "globalBackgroundSelector",
"importance": "medium",
"type": "group",
"widget": "radioSelector",
"fields": [
{
"name": "imageGlobalBackground",
"type": "image",
"label": "Image",
"importance": "medium",
"optional": true,
"description": "Image background should have a 2:1 width to height ratio to avoid stretching. High resolution images will display better on larger screens."
},
{
"name": "fillGlobalBackground",
"type": "text",
"widget": "colorSelector",
"label": "Pick a color",
"importance": "medium",
"spectrum": {
"flat": true,
"showInput": true,
"allowEmpty": true,
"showButtons": false
},
"default": null,
"optional": true
}
]
}
]
},
{
"name": "l10n",
"type": "group",
"label": "Localize",
"importance": "low",
"common": true,
"fields": [
{
"name": "slide",
"type": "text",
"label": "Translation for \"Slide\"",
"importance": "low",
"default": "Slide"
},
{
"name": "score",
"type": "text",
"label": "Translation for \"Score\"",
"importance": "low",
"default": "Score"
},
{
"name": "yourScore",
"type": "text",
"label": "Translation for \"Your Score\"",
"importance": "low",
"default": "Your Score"
},
{
"name": "maxScore",
"type": "text",
"label": "Translation for \"Max Score\"",
"importance": "low",
"default": "Max Score"
},
{
"name": "total",
"type": "text",
"label": "Translation for \"Total\"",
"importance": "low",
"default": "Total"
},
{
"name": "totalScore",
"type": "text",
"label": "Translation for \"Total Score\"",
"importance": "low",
"default": "Total Score"
},
{
"name": "showSolutions",
"type": "text",
"label": "Title for show solutions button",
"importance": "low",
"default": "Show solutions"
},
{
"name": "retry",
"type": "text",
"label": "Text for the retry button",
"importance": "low",
"default": "Retry",
"optional": true
},
{
"name": "exportAnswers",
"type": "text",
"label": "Text for the export text button",
"importance": "low",
"default": "Export text"
},
{
"name": "hideKeywords",
"type": "text",
"label": "Hide sidebar navigation menu button title",
"importance": "low",
"default": "Hide sidebar navigation menu"
},
{
"name": "showKeywords",
"type": "text",
"label": "Show sidebar navigation menu button title",
"importance": "low",
"default": "Show sidebar navigation menu"
},
{
"name": "fullscreen",
"type": "text",
"label": "Fullscreen label",
"importance": "low",
"default": "Fullscreen"
},
{
"name": "exitFullscreen",
"type": "text",
"label": "Exit fullscreen label",
"importance": "low",
"default": "Exit fullscreen"
},
{
"name": "prevSlide",
"type": "text",
"label": "Previous slide label",
"importance": "low",
"default": "Previous slide"
},
{
"name": "nextSlide",
"type": "text",
"label": "Next slide label",
"importance": "low",
"default": "Next slide"
},
{
"name": "currentSlide",
"type": "text",
"label": "Current slide label",
"importance": "low",
"default": "Current slide"
},
{
"name": "lastSlide",
"type": "text",
"label": "Last slide label",
"importance": "low",
"default": "Last slide"
},
{
"name": "solutionModeTitle",
"type": "text",
"label": "Exit solution mode text",
"importance": "low",
"default": "Exit solution mode"
},
{
"name": "solutionModeText",
"type": "text",
"label": "Solution mode text",
"importance": "low",
"default": "Solution Mode"
},
{
"name": "summaryMultipleTaskText",
"type": "text",
"label": "Text when multiple tasks on a page",
"importance": "low",
"default": "Multiple tasks"
},
{
"name": "scoreMessage",
"type": "text",
"label": "Score message text",
"importance": "low",
"default": "You achieved:"
},
{
"name": "shareFacebook",
"type": "text",
"label": "Share to Facebook text",
"importance": "low",
"default": "Share on Facebook"
},
{
"name": "shareTwitter",
"type": "text",
"label": "Share to Twitter text",
"importance": "low",
"default": "Share on Twitter"
},
{
"name": "shareGoogle",
"type": "text",
"label": "Share to Google text",
"importance": "low",
"default": "Share on Google+"
},
{
"name": "summary",
"type": "text",
"label": "Title for summary slide",
"importance": "low",
"default": "Summary"
},
{
"name": "solutionsButtonTitle",
"type": "text",
"label": "Title for the comments icon",
"importance": "low",
"default": "Show comments"
},
{
"name": "printTitle",
"type": "text",
"label": "Title for print button",
"importance": "low",
"default": "Print"
},
{
"name": "printIngress",
"type": "text",
"label": "Print dialog ingress",
"importance": "low",
"default": "How would you like to print this presentation?"
},
{
"name": "printAllSlides",
"type": "text",
"label": "Label for \"Print all slides\" button",
"importance": "low",
"default": "Print all slides"
},
{
"name": "printCurrentSlide",
"type": "text",
"label": "Label for \"Print current slide\" button",
"importance": "low",
"default": "Print current slide"
},
{
"name": "noTitle",
"type": "text",
"label": "Label for slides without a title",
"importance": "low",
"default": "No title"
},
{
"name": "accessibilitySlideNavigationExplanation",
"type": "text",
"label": "Explanation of slide navigation for assistive technologies",
"importance": "low",
"default": "Use left and right arrow to change slide in that direction whenever canvas is selected."
},
{
"name": "accessibilityCanvasLabel",
"type": "text",
"label": "Canvas label for assistive technologies",
"importance": "low",
"default": "Presentation canvas. Use left and right arrow to move between slides."
},
{
"name": "accessibilityProgressBarLabel",
"type": "text",
"label": "Progressbar label for assistive technologies",
"importance": "low",
"default": "Choose slide to display"
},
{
"name": "containsNotCompleted",
"type": "text",
"label": "Label for uncompleted interactions",
"importance": "low",
"default": "@slideName contains not completed interaction"
},
{
"name": "containsCompleted",
"type": "text",
"label": "Label for completed interactions",
"importance": "low",
"default": "@slideName contains completed interaction"
},
{
"name": "slideCount",
"type": "text",
"label": "Label for slide counter. Variables are @index, @total",
"importance": "low",
"default": "Slide @index of @total"
},
{
"name": "containsOnlyCorrect",
"type": "text",
"label": "Label for slides that only contains correct answers",
"importance": "low",
"default": "@slideName only has correct answers"
},
{
"name": "containsIncorrectAnswers",
"type": "text",
"label": "Label for slides that has incorrect answers",
"importance": "low",
"default": "@slideName has incorrect answers"
},
{
"name": "shareResult",
"type": "text",
"label": "Label for social sharing bar",
"importance": "low",
"default": "Share Result"
},
{
"name": "accessibilityTotalScore",
"type": "text",
"label": "Total score announcement for assistive technologies",
"default": "You got @score of @maxScore points in total",
"description": "Available variables are @score and @maxScore"
},
{
"name": "accessibilityEnteredFullscreen",
"type": "text",
"label": "Entered fullscreen announcement for assistive technologies",
"default": "Entered fullscreen"
},
{
"name": "accessibilityExitedFullscreen",
"type": "text",
"label": "Exited fullscreen announcement for assistive technologies",
"default": "Exited fullscreen"
},
{
"name": "confirmDialogHeader",
"type": "text",
"label": "Header of submit result confirmation dialog",
"default": "Submit your answers"
},
{
"name": "confirmDialogText",
"type": "text",
"label": "Text of submit result confirmation dialog",
"default": "This will submit your results, do you want to continue?"
},
{
"name": "confirmDialogConfirmText",
"type": "text",
"label": "Confirmation button of submit result confirmation dialog",
"default": "Submit and see results"
},
{
"name": "slideshowNavigationLabel",
"type": "text",
"label": "Label for Slideshow navigation",
"default": "Slideshow navigation"
},
{
"name": "confirmDialogConfirmLabel",
"type": "text",
"label": "Confirm button label",
"default": "Confirm"
},
{
"name": "confirmDialogCancelLabel",
"type": "text",
"label": "Cancel button label",
"default": "Cancel"
}
]
},
{
"name": "override",
"type": "group",
"label": "Behaviour settings.",
"importance": "low",
"description": "These options will let you override behaviour settings.",
"optional": true,
"fields": [
{
"name": "activeSurface",
"type": "boolean",
"widget": "disposableBoolean",
"label": "Activate Active Surface Mode",
"importance": "low",
"description": "Removes navigation controls for the end user. Use Go To Slide to navigate. Summary is not available in this mode.",
"default": false
},
{
"name": "hideSummarySlide",
"type": "boolean",
"label": "Hide Summary Slide",
"importance": "low",
"description": "Hides the summary slide.",
"default": false
},
{
"name": "showSolutionButton",
"type": "select",
"label": "Override \"Show Solution\" button",
"importance": "low",
"description": "This option determines if the \"Show Solution\" button will be configured for each question individually (default) shown for all questions (Enabled) or disabled for all questions (Disabled) ",
"optional": true,
"options": [
{
"value": "on",
"label": "Enabled"
},
{
"value": "off",
"label": "Disabled"
}
]
},
{
"name": "retryButton",
"type": "select",
"label": "Override \"Retry\" button",
"importance": "low",
"description": "This option determines if the \"Retry\" button will be configured for each question individually (default) shown for all questions (Enabled) or disabled for all questions (Disabled)",
"optional": true,
"options": [
{
"value": "on",
"label": "Enabled"
},
{
"value": "off",
"label": "Disabled"
}
]
},
{
"name": "summarySlideSolutionButton",
"type": "boolean",
"label": "Show \"Show solution\" button in the summary slide",
"description": "If enabled, the learner will be able to show the solutions for all question when they reach the summary slide",
"default": true,
"importance": "low",
"widget": "showWhen",
"showWhen": {
"rules": [
{
"field": "hideSummarySlide",
"equals": false
}
]
}
},
{
"name": "summarySlideRetryButton",
"type": "boolean",
"label": "Show \"Retry\" button in the summary slide",
"description": "If enabled, the learner will be able to retry all questions when they reach the summary slide. Be advised that by refreshing the page the learners will be able to retry even if this button isn't showing.",
"default": true,
"importance": "low",
"widget": "showWhen",
"showWhen": {
"rules": [
{
"field": "hideSummarySlide",
"equals": false
}
]
}
},
{
"name": "enablePrintButton",
"type": "boolean",
"label": "Enable print button",
"importance": "low",
"description": "Enables the print button.",
"default": false
},
{
"name": "social",
"type": "group",
"label": "Social Settings",
"widget": "showWhen",
"showWhen": {
"rules": [
{
"field": "hideSummarySlide",
"equals": false
}
]
},
"importance": "low",
"description": "These options will let you override social behaviour settings. Empty values will be filled in automatically if a link is provided, otherwise all values will be generated.",
"optional": true,
"fields": [
{
"name": "showFacebookShare",
"type": "boolean",
"label": "Display Facebook share icon",
"importance": "low",
"default": false
},
{
"name": "facebookShare",
"importance": "low",
"type": "group",
"expanded": true,
"label": "Facebook share settings",
"widget": "showWhen",
"showWhen": {
"rules": [
{
"field": "showFacebookShare",
"equals": true
}
]
},
"fields": [
{
"name": "url",
"type": "text",
"label": "Share to Facebook link",
"importance": "low",
"default": "@currentpageurl"
},
{
"name": "quote",
"type": "text",
"label": "Share to Facebook quote",
"importance": "low",
"default": "I scored @score out of @maxScore on a task at @currentpageurl."
}
]
},
{
"name": "showTwitterShare",
"type": "boolean",
"label": "Display Twitter share icon",
"importance": "low",
"default": false
},
{
"name": "twitterShare",
"importance": "low",
"type": "group",
"expanded": true,
"label": "Twitter share settings",
"widget": "showWhen",
"showWhen": {
"rules": [
{
"field": "showTwitterShare",
"equals": true
}
]
},
"fields": [
{
"name": "statement",
"type": "text",
"label": "Share to Twitter statement",
"importance": "low",
"default": "I scored @score out of @maxScore on a task at @currentpageurl."
},
{
"name": "url",
"type": "text",
"label": "Share to Twitter link",
"importance": "low",
"default": "@currentpageurl"
},
{
"name": "hashtags",
"type": "text",
"label": "Share to Twitter hashtags",
"importance": "low",
"default": "h5p, course"
}
]
},
{
"name": "showGoogleShare",
"type": "boolean",
"label": "Display Google+ share icon",
"importance": "low",
"default": false
},
{
"name": "googleShareUrl",
"type": "text",
"label": "Share to Google link",
"importance": "low",
"default": "@currentpageurl",
"widget": "showWhen",
"showWhen": {
"rules": [
{
"field": "showGoogleShare",
"equals": true
}
]
}
}
]
}
]
}
]