-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.txt
164 lines (155 loc) · 5.02 KB
/
README.txt
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
What I did:
Got data from here: https://www.yme.gr/metafores/adeies-odigisis/theoritiki-exetasi-ypopsifion-odigon-meso-i-y-mstheyo/item/6996-egkatastasi-programmatos-testdrive
=> cabextract
=> replace exerbase as described above
=> mdb -> json: https://lytrax.io/blog/tools/access-converter
attempt to understand json layout:
[
{ // 0
"name":"Answer",
"columns":[
{
"name":"AQCod", // answer code?
"type":"LONG",
"size":4
},
{
"name":"AAA",
"type":"INT",
"size":2
},
{
"name":"ALect", // answer text
"type":"TEXT",
"size":510
},
{
"name":"ACorr", // answer correct or not
"type":"BOOLEAN",
"size":1
},
{
"name":"ASound", // who knows??? probably for viewing in a UI while debugging, since this is the same data in the other fields basically
"type":"TEXT",
"size":20
}
],
"data":[ ... ]
},
{ // 1
"name":"Kateg",
"columns":[
{
"name":"KCod", // category code, only important thing here! probably corresponding to the ενότητες here: https://www.drivepoint.gr/erotiseis/enotita/motosikleta, so I can safely (?) drop the last two (pretty sure the first (motorcycles) is needed).
"type":"BYTE",
"size":1
},
{
"name":"KLect", // name of lecture
"type":"TEXT",
"size":100
},
{
"name":"KTime", // idk, idc
"type":"BYTE",
"size":1
},
{
"name":"KPict", // jpg name
"type":"TEXT",
"size":30
}
],
"data":[ ... ]
},
{ // 2
"name":"Numbs", // this WILL drive me insane, so I AM skipping it!
"columns":[
{
"name":"KCod",
"type":"LONG",
"size":4
},
{
"name":"PCod",
"type":"BYTE",
"size":1
},
{
"name":"Lect",
"type":"TEXT",
"size":100
},
{
"name":"Numb",
"type":"BYTE",
"size":1
}
],
"data":[ ... ]
},
{ // 3
"name":"Quest",
"columns":[
{
"name":"QCod", // this should correspond to the answer code
"type":"LONG",
"size":4
},
{
"name":"QKateg", // codes from above, remember, drop 4 and 5 (maybe print a few during debugging to make sure they're unneeded?)
"type":"BYTE",
"size":1
},
{
"name":"QPag", // I'm going to assume this means "page", referring to some book where all these questions come from. might find the probability distribution for this later to check if it's uniform.
"type":"BYTE",
"size":1
},
{
"name":"QLang", // interested in 1, for Greek
"type":"BYTE",
"size":1
},
{
"name":"QLect", // question text
"type":"TEXT",
"size":510
},
{
"name":"QPhoto", // jpg name
"type":"TEXT",
"size":100
},
{
"name":"QSound", // I bet it matches the other sound above, still don't care
"type":"TEXT",
"size":20
},
{
"name":"QBook", // different parts, like "motorway" or "visibility". would prefer if this was also machine readable, but as far as I can tell it isn't anywhere. this obviously doesn't make sense, so I assume they kept this data elsewhere (I checked the other two .mdb with mdb-json and it isn't there). easy hack: break these up on " " and organize all the questions into groups according to the first string. will make different decks based on these groups.
"type":"TEXT",
"size":44
}
],
"data":[ ... ]
}
]
So...
I converted it into the following, saner format:
{
{ // category object
"name": "coming from Qbook",
[ // array of questions
{ // question object
"QuestionCode": int,
"QuestionText": string,
"QuestionPhoto": string,
"CorrectAnswer": int, // index of the correct answer as ordered in the array below.
[ // array of answers to this question
"AnswerText"
]
}
]
}
}