blob: 66ef3cd4d37d0c865a217875fa545844087cf1c9 (
plain)
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
|
# coding=utf-8
# najprej opis
description = """\
<p>Predikat <code>sister(X, Y)</code> velja natanko takrat, kadar je <code>X</code> sestra od <code>Y</code>.
Primer klica:</p>
<p><code>
?- sister(X, patricia).<br>
X = vanessa.
</code></p>"""
# in zdaj hinti
hint = {} # to je komentar
hint['must_have_common_parent'] = """
<code>X</code> in <code>Y</code> morata imeti (vsaj enega) skupnega starša.<br>
<svg>
</svg>
"""
hint['x_must_be_female'] = "<code>X</code> mora biti ženskega spola."
hint['x_cant_be_own_sister'] = "<code>X</code> ne more biti sestra sama sebi."
hint['y_not_necessarily_woman'] = "<code>Y</code> ni nujno ženskega spola / relacija ni simetrična."
# a drop-down hint must supply the arguments: start (int), end (int), choices (array of string)
hint['drop_down'] = {
'type': 'dropdown'
}
# a pop-up hint must supply the arguments: start (int), end (int), args (object of key-value args for the template, optional)
hint['popup_unknown'] = {
'type': 'popup',
'message': 'nekaj si zabluzil v vrstici [%=row%]'
}
# a static hint can supply an optional argument: args (object of key-value args for the template)
# a static hint can also be defined as a string instead of an object
hint['sample_static'] = {
'type': 'static',
'message': 'A sample static hint'
}
|