-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
288 lines (266 loc) · 10.6 KB
/
index.html
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
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Security-Policy" content="
default-src 'self';
script-src 'self';
style-src 'self';
"/>
<link rel="stylesheet" href="styles/styles.css" />
<link rel="stylesheet" href="styles/sections.css" />
<link rel="stylesheet" href="styles/tree.css" />
<link rel="stylesheet" href="styles/xml.css" />
<link rel="stylesheet" href="styles/toolbar.css" />
<link rel="stylesheet" href="styles/sentence.css" />
<link rel="stylesheet" href="styles/message.css" />
</head>
<body>
<input type="file" id="fileInput">
<div class="message" hidden>
</div>
<div>
<div class="divided left">
<div class="top toolbar">
<ul class="top toolbar">
<li><button id="UndoTextEdit">Undo</button></li>
<li><button id="RedoTextEdit">Redo</button></li>
<li><button class="toggle active" id="ToggleShowInput">View Input</button></li>
<li><button class="toggle active" id="ToggleShowOutputArethusa">View Output XML</button></li>
<li><button class="toggle" id="btnAbout">About</button></li>
<li><button id="PrevSentence">←</button></li>
<li><button id="NextSentence">→</button></li>
</ul>
<div class="Sentences" id="sentencesDiv" contenteditable="false">
[Representation of sentences]
</div>
</div>
<div class="left boundary"></div>
<div class="input" id="InputDiv">
<div class="input toolbar">
<ul class="relative input toolbar">
<li><button class="toggle active" id="ToggleShowInputText">Plain Text</button></li>
<li>
<button
class="toggle"
id="ToggleShowInputEpiDoc"
>
EpiDoc XML
</button>
</li>
<li>
<button class="toggle" id="ToggleShowInputArethusa">
Arethusa XML
</button>
</li>
</ul>
</div>
<div class="sentence-text input">
<div class="sentence-text input toolbar">
<ul class="sentence-text input toolbar">
<li>
<button id="DrawTreeText">Render</button>
</li>
<li>
<button id="loadTextFile">Load</button>
</li>
</ul>
</div>
<textarea
class="sentence-text input"
id="sentenceTextInput"
type="text"
spellcheck="false"
>Type your text here.</textarea>
</div>
<div class="epidoc input" hidden>
<div class="epidoc input toolbar">
<ul class="epidoc input toolbar">
<li>
<button id="DrawTreeEpiDoc">Render</button>
</li>
<li>
<button id="FormatInputEpiDoc">
Prettyprint XML and Render
</button>
</li>
<li>
<button id="ExampleEpiDoc">Example</button>
</li>
<li>
<button id="loadEpiDocFile">Load</button>
</li>
</ul>
</div>
<textarea
class="epidoc input XML"
type="text"
id="srcXML"
spellcheck="false"
></textarea>
</div>
<div class="arethusa input" hidden>
<div class="arethusa input toolbar">
<ul class="arethusa input toolbar">
<li>
<button id="DrawTreeArethusa">Render</button>
</li>
<li>
<button id="FormatInputArethusa">Prettyprint XML and Render</button>
</li>
<li>
<button id="ExampleArethusa">Example</button>
</li>
<li>
<button id="loadFile">Load</button>
</li>
</ul>
</div>
<textarea
class="arethusa input XML"
type="text"
id="dstXML"
spellcheck="false"
></textarea>
</div>
</div>
<div class="arethusa output toolbar">
<ul class="arethusa output toolbar">
<li>
<button id="AddNewSentence">Append sentence</button>
</li>
<li>
<button id="SplitSentence">Split sentence</button>
</li>
<li>
<button id="InsertSentence">Insert sentence</button>
</li>
<li>
<button id="RemoveSentence">Remove sentence</button>
</li>
</ul>
<ul class="relative toolbar">
<li>
<button id="AddNewWord">New word</button>
</li>
<li>
<button id="AddNewArtificial">New artificial</button>
</li>
<li>
<button id="PushToNextSentence">Word to next sentence</button>
</li>
<li>
<button id="PushToPreviousSentence">
Word to previous sentence
</button>
</li>
<li>
<button id="RemoveWord">Remove word</button>
</li>
<li>
<button id="MoveUp">Move word up</button>
</li>
<li>
<button id="MoveDown">Move word down</button>
</li>
<li>
<button id="saveArethusaFile">Download</button>
</li>
</ul>
</div>
<div
class="XML arethusa output"
id="arethusaDiv"
contenteditable="false"
spellcheck="false"
></div>
</div>
<div class="divided right">
<div class="tree toolbar">
<ul class="tree toolbar">
<li><button id="MoveGraphUp">Up</button></li>
<li><button id="MoveGraphDown">Down</button></li>
<li><button id="MoveGraphLeft">Left</button></li>
<li><button id="MoveGraphRight">Right</button></li>
<li><button id="ZoomIn">Zoom In</button></li>
<li><button id="ZoomOut">Zoom Out</button>
</li>
</ul>
</div>
<div class="tree-container">
<svg viewBox="0 0 560 560" xmlns="http://www.w3.org/2000/svg"></svg>
</div>
</div>
</div>
</body>
<script src="d3/d3.v7.min.js"></script>
<script src="build/src/types/enums/enums.js"></script>
<script src="build/src/types/enums/direction.js"></script>
<script src="build/src/types/basic/obj.js"></script>
<script src="build/src/types/basic/arr.js"></script>
<script src="build/src/types/functor/miscFuncs.js"></script>
<script src="build/src/types/functor/functor.js"></script>
<script src="build/src/types/functor/monad.js"></script>
<script src="build/src/types/functor/maybe.js"></script>
<script src="build/src/types/basic/num.js"></script>
<script src="build/src/types/basic/regex.js"></script>
<script src="build/src/types/basic/str.js"></script>
<script src="build/src/types/xhtml/html.js"></script>
<script src="build/src/types/xhtml/div.js"></script>
<script src="build/src/types/xhtml/sel.js"></script>
<script src="build/src/types/xhtml/xmlCursorPosition.js"></script>
<script src="build/src/types/xhtml/xmlTagFragments.js"></script>
<script src="build/src/types/xhtml/xmlFormatter.js"></script>
<script src="build/src/types/xhtml/xml.js"></script>
<script src="build/src/types/xhtml/svg.js"></script>
<script src="build/src/types/xhtml/dom.js"></script>
<script src="build/src/types/xhtml/validator.js"></script>
<script src="build/src/errors/errors.js"></script>
<script src="build/src/errors/errorHandler.js"></script>
<script src="build/src/tree/graph.js"></script>
<script src="build/src/tree/treeEnums.js"></script>
<script src="build/src/tree/treeInterfaces.js"></script>
<script src="build/src/tree/treeNode.js"></script>
<script src="build/src/tree/treeSecDep.js"></script>
<script src="build/src/tree/treeToken.js"></script>
<script src="build/src/tree/treeLink.js"></script>
<script src="build/src/tree/treeEdge.js"></script>
<script src="build/src/tree/userInput.js"></script>
<script src="build/src/state/clickState.js"></script>
<script src="build/src/state/treeStateIO.js"></script>
<script src="build/src/state/sentenceViewState.js"></script>
<script src="build/src/state/treeState.js"></script>
<script src="build/src/state/globalState.js"></script>
<script src="build/src/globals/constants.js"></script>
<script src="build/data/epidoc.js"></script>
<script src="build/data/arethusaTemplate.js"></script>
<script src="build/src/domain/globalSettings.js"></script>
<script src="build/src/domain/TEI/TEIName.js"></script>
<script src="build/src/domain/TEI/TEIToken.js"></script>
<script src="build/src/domain/TEI/edition.js"></script>
<script src="build/src/domain/TEI/epidoc.js"></script>
<script src="build/src/domain/TEI/TEIValidator.js"></script>
<script src="build/src/domain/domaintypes.js"></script>
<script src="build/src/domain/domainxml.js"></script>
<script src="build/src/domain/arethusa/arethusaInterfaces.js"></script>
<script src="build/src/domain/arethusa/arethusaToken.js"></script>
<script src="build/src/domain/arethusa/arethusaWord.js"></script>
<script src="build/src/domain/arethusa/arethusaArtificial.js"></script>
<script src="build/src/domain/arethusa/arethusaSentence.js"></script>
<script src="build/src/domain/arethusa/arethusaDoc.js"></script>
<script src="build/src/domain/arethusa/arethusaValidator.js"></script>
<script src="build/src/domain/conversion.js"></script>
<script src="build/src/frontend/textarea.js"></script>
<script src="build/src/frontend/arethusaDiv.js"></script>
<script src="build/src/frontend/arethusaDivCursor.js"></script>
<script src="build/src/frontend/sentences.js"></script>
<script src="build/src/frontend/observers.js"></script>
<script src="build/src/frontend/inputProcessor.js"></script>
<script src="build/src/frontend/frontend.js"></script>
<script src="build/src/frontend/fileHandling.js"></script>
<script src="build/src/frontend/fileValidator.js"></script>
<script src="build/src/frontend/errors.js"></script>
<script src="build/src/state/textState.js"></script>
<script src="build/src/state/textStateIO.js"></script>
<script src="build/src/state/textViewState.js"></script>
<script src="build/src/index.js"></script>
</html>