-
Notifications
You must be signed in to change notification settings - Fork 0
/
utility_lexicon.html
256 lines (202 loc) · 7.77 KB
/
utility_lexicon.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>SEARCH LEXICON UTILITY // #TEMP# POP-UP LEXEME-DETAILS</title>
<!-- FRI 12-MAY-23 -->
<!-- NEW SEARCH GROUP "SYLLABLES" -->
<!-- FIXED COLUMN ASYMMETRY -->
<!-- RE-ATTACHED AUDIO-LINKING -->
<!-- SUN 14-MAY-23 -->
<!-- CATCH ERRORS -->
<!-- MON 15-MAY-23 -->
<!-- PREVENT MULTIPLE LOAD LEXICON -->
<!-- THU 18-MAY-23 -->
<!-- UPLOAD CHANGED DIRECTORIES "PARSEIN/OUT" -->
<!-- UPLOAD UPDATED LEXICON -->
<!-- CHANGED FLAG FOR "ANLAUT" IN SOURCE // ADDED LTR=PHON -->
<!-- WED 24-MAY-23 -->
<!-- NEW CLASS "RESULT" TO MANAGE LINK SPLITTING AND PARSING -->
<!-- THU 25-MAY-23 -->
<!-- ADAPTING CLASSES FOR INDIVIDUAL QUERY PARAMETERS -->
<!-- ADDED VARIABLE SPACER FOR COLUMNS-FORMATTING -->
<!-- FRI 26-MAY-23 -->
<!-- TEMP DIS-ABLED QUERIES FOR -->
<!-- "HIAT-H" "KVK LONG/SHORT" "FEM SORTED" -->
<!-- SUN 10-SEP-23 -->
<!-- ALLOW SCROLL-Y FOR POPUPS -->
<link rel="stylesheet" href="./CSS/lexiconui.css"></link>
<link rel="stylesheet" href="./CSS/popup.css"></link>
</head>
<body onload="writeHelp('init');">
<!-- WRAP TWO COLUMNS -->
<div class="page_wrapper">
<!-- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -->
<div class="column-left" id="query">
<!-- FILE BROWSER INPUT-EL -->
<p>SELECT THE SOURCE FILE (<a id="infolink">INFO</a>)...</p>
<div class="btncontainer">
<label for="btnload" class="custompillbtn">Choose file</label>
<input style="display: none;" type="file" id="btnload" name="btnload" accept=".csv, .txt" onchange="loadFile();">
</div>
<!-- DISPLAY FILE STATUS -->
<div id="filestatus" class="filestatus">nn</div>
<div id="filesize" class="filesize">nn</div>
<!-- STRING QUERIES INPUT -->
<div>
<p> </p>
<p>ENTER A TEXT SEARCH (<a id="stringhelp">HELP</a>)</p>
<input class="custominput" id="txtinput" type="text" onchange="stringQuery(this.value); qcopy(this.value);" />
</div>
<!-- PHONETIC QUERIES OPTIONS -->
<div>
<p> </p>
<p>USE PHONETIC FILTERS (<a id="phonetichelp">HELP</a>)</p>
<!-- (ID IS UNUSED) -->
<select id="pullone" onchange="phoneticQuery(this.value); qcopy(this.options[this.selectedIndex].label);">
<option value="none">(no selection)</option>
<!-- REDUCED SYLLABLES -->
<option value="schwa">schwa</option>
<option value="tschwa">tiefschwa</option>
<option value="vokr">vokalisiertes "-r"</option>
<option value="ern">reduktionssilbe mit -ern</option>
<!-- (TAGGED) PREFIXES -->
<option value="be">be-</option>
<option value="ge">ge-</option>
<!-- (NESTED) MTBG -->
<option value="ch">ch</option>
<option value="sch">sch</option>
<option value="tsch">tsch</option>
<option value="chs">chs</option>
<!-- ORTHOGRAPHEMES -->
<option value="dblvowel">double vowel</option>
<option value="longie">langes ie</option>
<option value="hiatie">getrenntes ie</option>
<!--
<option value="hiath">silbentrennendes h</option>
-->
<option value="sp">sp-</option>
<option value="st">st-</option>
</select>
</div>
<!-- DISTRIBUTION QUERIES OPTIONS -->
<div>
<p> </p>
<p>SEE WORD DISTRIBUTIONS (<a id="distribhelp">ABOUT</a>)</p>
<!-- (ID IS UNUSED) -->
<select id="pulltwo" onchange="distributionQuery(this.value); qcopy(this.options[this.selectedIndex].label);">
<option value="none">(no selection)</option>
<!-- INVENTORIES -->
<option value="all">show all entries</option>
<option value="statnrw">NRW</option>
<option value="statbb12">BBB 1-2</option>
<option value="statbb34">BBB 3-4</option>
<option value="common">gemeiner GWS</option>
<!-- ANLAUTE -->
<option value="anlaute">"Anlautwörter"</option>
<option value="rank">100 most frequent</option>
<!-- VOKALLÄNGE -->
<option value="KVK">KVK long vowel</option>
<option value="san1ti3">KVK short vowel</option>
<option value="irregular">"Lernwörter" (irregular)</option>
<!-- GENDER -->
<option value="fem">feminine words</option>
<option value="femsorted">fem sorted by ending</option>
<option value="masc">masculine schwa ending</option>
<!-- FLEX MORPHO -->
<option value="flexed">flexed forms</option>
<!-- COMPOSITES -->
<option value="compound">Komposita</option>
<option value="mehrwort">Mehrwortausdrücke</option>
</select>
</div>
<!-- SYLLABLE QUERIES OPTIONS -->
<div>
<p> </p>
<p>SHOW SYLLABLES (<a id="syllablehelp">ABOUT</a>)</p>
<!-- (ID IS UNUSED) -->
<select id="pullthree" onchange="sizeQuery(this.value); qcopy(this.options[this.selectedIndex].label);">
<option value="none">(no selection)</option>
<!-- SYLLABLE COUNT -->
<option value="syll1">1 syllable</option>
<option value="syll2">2 syllables</option>
<option value="syll3">3 syllables</option>
<option value="syll4">more than 3 syllables</option>
</select>
<p> </p>
</div>
</div>
<!-- END COL LEFT -->
<!-- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -->
<div class="column-right">
<!-- #ADDITION# 12-MAR-23 -->
<!-- ADD "(string)..." FOR STRING QUERIES TO STATUS-LINE -->
<!-- TO DIFF FROM FIXED OPTIONS (EG "SCH") -->
<!-- REPEAT QUERY STRING -->
<div id="querystatus" class="querystatus"> <!-- LINE #150# -->
nn
</div>
<!-- RESULTS COUNT -->
<div>
<p id="resnum" class="resnum">nn</p>
</div>
<!-- WRITE RESULTS TO HTML -->
<div class="resultstxt" id="resultstxt">
<!-- RESULTS -->
</div>
<!-- OPTIONAL MSG (COMMENT) -->
<!-- ##TBD## P BREAKS DIV WIDTH -->
<div>
<p> </p>
<p id="comment" class="comment"> </p><!-- (!)SPACE = PLACEHOLDER -->
</div>
<!-- EXPORT TO PLAIN TXT FILE -->
<div>
<p> </p>
<p>SAVE RESULTS TO A TXT-FILE</p>
</div>
<div class="btncontainer">
<div class="custompillbtn" id="savetofile">save</div>
</div>
<p> </p>
</div>
<!-- END COL RIGHT -->
</div>
<!-- END WRAPPER -->
<!-- ##TBD## HELP-BOX CONTENT ON "ONLOAD" IS A BIT LATE AND "FLASHING" -->
<!-- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -->
<!-- HELP OVERLAY -->
<div class="overlay" id="overlay">
<!-- (10SEP23) SCROLL -->
<div class="optionbox">
<!-- HELP BOX -->
<div class="helpbox">
<div id="textcontainer" class="helptext">
<!-- GENERATED TEXT CONTENT -->
</div>
<!-- CLOSE BTN -->
<div class="btncontainer inhelpcontent">
<div id="btnclosehelp" class="customsquarebtn">OK</div>
</div>
</div><!-- END HELP-BOX -->
</div><!-- END SCROLL -->
</div><!-- END OVERLAY -->
<!-- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ -->
<!-- SCRIPTS // KEEP THIS SEQUENCE -->
<script src="./PARSEIN/csv_loadToObj.js"></script>
<script src="./PARSEOUT/popup_help.js"></script>
<script src="./PARSEIN/intermediate_phonetics.js" defer></script>
<script src="./PARSEIN/intermediate_reducedsylbls.js" defer></script>
<script src="./PARSEIN/texttospeech_xsampa.js" defer></script>
<script src="./QUERY/string_queries.js" defer></script> <!-- NEW VAR "QTYPE" 12-MAR-23 -->
<script src="./QUERY/phonetic_queries.js" defer></script>
<script src="./QUERY/distribution_queries.js" defer></script>
<script src="./QUERY/syllable_queries.js" defer></script>
<script src="./QUERY/class_result.js"></script>
<script src="./PARSEOUT/popup_objectInfo.js"></script>
<script src="./PARSEOUT/queries_formatresults.js" defer></script>
<script src="./PARSEOUT/savetofile.js" defer></script>
<script src="./PARSEOUT/playaudio.js"></script>
</body>
</html>