-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.py
55 lines (51 loc) · 2.19 KB
/
config.py
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
from functools import partial
TEXTBOX_KEY = partial("box_{0}".format)
TEXTBOXES = "textboxes"
LABELS = "labels"
EVENT_TITLE_TEXT = "event_text"
EVENTS = {
"qa": {
TEXTBOXES: {TEXTBOX_KEY("a"): "question", TEXTBOX_KEY("b"): "answer", },
EVENT_TITLE_TEXT: ["language event", "question · answer"],
},
"if-then": {
TEXTBOXES: {TEXTBOX_KEY("a"): "if (or when)", TEXTBOX_KEY("b"): "then", },
EVENT_TITLE_TEXT: ["language event", "if · then"],
},
"after": {
TEXTBOXES: {TEXTBOX_KEY("a"): "after", TEXTBOX_KEY("b"): "..."},
EVENT_TITLE_TEXT: ["language event", "after"],
},
"bookends": {
TEXTBOXES: {TEXTBOX_KEY("a"): "opening line", TEXTBOX_KEY("b"): "closing line"},
EVENT_TITLE_TEXT: ["language event", "bookends"],
},
"two-lines": {
TEXTBOXES: {TEXTBOX_KEY("a"): "line 1", TEXTBOX_KEY("b"): "line 2"},
EVENT_TITLE_TEXT: ["language event", "line 1 · line 2"],
},
}
TEST_DATA = {
"box_a": [
"When foxes return from eating at the abandoned marketplace",
"When the curtain of darkness falls in the valley past the viaduct",
"When figures appear to disavow the things we had thought unchanging and material",
"When the so-called simple things begin to be incredibly difficult",
"When the condensers of the stolen milk cool the air",
"When every teaching suddenly fades",
"When the fourth thing that comes to mind in rhyme stops",
"When we decide to go by twos and threes",
"When the apple really does not fall far from the tree",
"When it does not seem like any have had sufficient to suffice",
],
"box_b": [
"then the horizon will actually change",
"then the cake will actually blossom",
"then the fan will actually whirr and chirr with non-plastic efficiency",
"then there will be little teethmarks everywhere",
"then we will go tootling through the trellis of the bird wires",
"then we will see it behind the zinc counter of the lac banc",
"then the previous plectrum will fly toward other instruments",
"then long exposures will be a thing of the past",
],
}