-
Notifications
You must be signed in to change notification settings - Fork 9
/
DB_UI_TOOL.html
596 lines (520 loc) · 25 KB
/
DB_UI_TOOL.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
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Manage charuse db</title>
<style>
body {
font-family: raleway;
font-size: 14px;
}
label {
white-space: pre;
tab-size: 30;
margin-inline-end: 1em;
}
input {
color: chocolate;
font-weight: 500;
text-align: start;
padding-inline-start: .5em;
}
.checkboxes {
margin-inline-start: 5em;
}
.smallBoxList {
line-height: 1.4; text-align: end; margin-inline-end:50%;
}
.smallBoxList input {
text-align: center;
}
</style>
<script src="langs.js"> </script>
<script>
function makeValue (key) {
if (document.getElementById(key).value) return key+':"'+document.getElementById(key).value+'", '
else return ''
}
function makeSubValue (key) {
if (document.getElementById(key).value) return key.substring(1)+':'+document.getElementById(key).value+' '
else return ''
}
function generate () {
out = ''
out += '"'+document.getElementById('key').value+'": { '
out += makeValue('name')
out += makeValue('local')
out += makeValue('localtrans')
out += makeValue('silcode')
if (document.getElementById('rtl').checked) out += 'rtl:true, '
if (document.getElementById('redirect').checked) out += 'redirect:true, '
out += '\n'
out += makeValue('source')
out += '\n'
out += makeValue('region')
out += makeValue('countries')
out += makeValue('script')
out += makeValue('speakers')
// CHARACTERS
out += '\n'
out += makeValue('letter')
out += makeValue('letteraux')
out += makeValue('mark')
out += makeValue('markaux')
out += makeValue('number')
out += makeValue('numberaux')
out += makeValue('punctuation')
out += makeValue('punctuationaux')
out += makeValue('symbol')
out += makeValue('symbolaux')
out += makeValue('other')
out += makeValue('otheraux')
out += makeValue('aux')
out += makeValue('deprecated')
out += '\n'
// ORTHOGRAPHY NOTES
if (document.getElementById('orth').value) out += 'orth:`'+document.getElementById('orth').value+'`,'
if (document.getElementById('also').value) {
out += '\nalso:\n['
var lines = document.getElementById('also').value.split('\n')
for (let i=0;i<lines.length;i++) {
if (lines[i] !== '') out += '"'+lines[i]+'"'
if (i<lines.length-2) out += ',\n'
}
out += '],'
}
if (document.getElementById('related').value) out += '\nrelated:`'+document.getElementById('related').value+'`,'
if (document.getElementById('notes').value) out += '\nnotes:`'+document.getElementById('notes').value+'`,'
out += '\n'
// FEATURES
out += makeValue('type')
out += makeValue('cs')
out += makeValue('gpos')
out += makeValue('gsub')
out += makeValue('cursive')
out += makeValue('wordsep')
out += makeValue('wordsepChar')
out += makeValue('baseline')
out += makeValue('wrap')
out += makeValue('hyphenation')
out += makeValue('hyphen')
// DIRECTION
var temp = ''
if (document.getElementById('dltr').checked) temp += 'ltr '
if (document.getElementById('drtl').checked) temp += 'rtl '
if (document.getElementById('drtl*').checked) temp += 'rtl* '
if (document.getElementById('dtblr').checked) temp += 'tblr '
if (document.getElementById('dtbrl').checked) temp += 'tbrl '
if (document.getElementById('dbos').checked) temp += 'bos '
if (document.getElementById('dbt').checked) temp += 'bt '
if (temp !== '') out += ' direction:"'+temp.trim()+'", '
// JUSTIFICATION
var temp = ''
if (document.getElementById('jsp').checked) temp += 'sp '
if (document.getElementById('jstr').checked) temp += 'str '
if (document.getElementById('jsw').checked) temp += 'sw '
if (document.getElementById('jpad').checked) temp += 'pad '
if (document.getElementById('jic').checked) temp += 'ic '
if (document.getElementById('jig').checked) temp += 'ig '
if (document.getElementById('jnone').checked) temp += 'none '
if (document.getElementById('j?').checked) temp += '? '
if (temp !== '') out += ' justification:"'+temp.trim()+'", '
// VOWELS
out += '\n'
temp = ''
temp += makeSubValue('vlet')
temp += makeSubValue('vml')
temp += makeSubValue('vcm')
temp += makeSubValue('vhcm')
temp += makeSubValue('vinh')
temp += makeSubValue('vvs')
temp += makeSubValue('vvsl')
temp += makeSubValue('vind')
temp += makeSubValue('vbase')
temp += makeSubValue('vsyl')
temp += makeSubValue('vpre')
temp += makeSubValue('vvenc')
temp += makeSubValue('vcirc')
temp += makeSubValue('vcomp')
temp += makeSubValue('vvoc')
if (temp !== '') out += 'vowels:"'+temp.trim()+'", '
// CLUSTERS
temp = ''
if (document.getElementById('cvir').checked) temp += 'vir '
if (document.getElementById('cinv').checked) temp += 'inv '
if (document.getElementById('cstk').checked) temp += 'stk '
if (document.getElementById('ccnj').checked) temp += 'cnj '
if (document.getElementById('clig').checked) temp += 'lig '
if (document.getElementById('ctcg').checked) temp += 'tcg '
if (document.getElementById('crax').checked) temp += 'rax '
if (document.getElementById('cmrk').checked) temp += 'mrk '
if (document.getElementById('clet').checked) temp += 'let '
if (document.getElementById('cunm').checked) temp += 'unm '
if (temp !== '') out += ' clusters:"'+temp.trim()+'", '
// MEDIALS & FINALS
temp = ''
temp += makeSubValue('mcm')
temp += makeSubValue('msj')
temp += makeSubValue('mlet')
if (temp !== '') out += ' medials:"'+temp.trim()+'", '
temp = ''
temp += makeSubValue('fcm')
temp += makeSubValue('flet')
temp += makeSubValue('fvk')
temp += makeSubValue('fss')
if (temp !== '') out += ' finals:"'+temp.trim()+'", '
out += '\n'
out += makeValue('linked')
out += makeValue('fonts')
out += makeValue('font')
out += '\n},\n'
out = out.replace(/[\n]+/g,'\n')
document.getElementById('code').value = out
document.getElementById('code').select()
}
function readRecord (lang) {
var i
if (lang === '') {
alert('No key value supplied.')
return
}
if (typeof langs[lang] === 'undefined') {
alert('Unknown key value:', lang)
return
}
var record = langs[lang]
var f, i, checkboxes
document.getElementById('key').value = lang
var fields = [
'name','local','localtrans','silcode','source',
'region', 'countries', 'script', 'speakers',
'letter', 'letteraux', 'mark', 'markaux', 'number', 'numberaux', 'punctuation', 'punctuationaux', 'symbol', 'symbolaux', 'other', 'otheraux', 'aux', 'deprecated',
'type', 'cs', 'gpos', 'gsub', 'cursive', 'direction', 'baseline', 'wordsep', 'wordsepChar', 'wrap', 'hyphenation', 'hyphen', 'justification', 'linked', 'fonts', 'font',
'vowels','clusters', 'medials', 'finals',
]
for (var f=0;f<fields.length;f++) {
if (record[fields[f]]) document.getElementById(fields[f]).value = record[fields[f]]
else document.getElementById(fields[f]).value = ''
}
// vowels
checkboxes = [
'vlet', 'vml', 'vcm', 'vhcm', 'vinh', 'vvs', 'vvsl', 'vind', 'vbase', 'vsyl', 'vpre', 'vvenc', 'vcirc', 'vcomp', 'vvoc'
]
// initialise all input fields
for (f=0;f<checkboxes.length;f++) {
document.getElementById(checkboxes[f]).value = ''
}
// fill in values from db
if (record.vowels) {
var vowelItems = record.vowels.split(' ')
for (let i=0;i<vowelItems.length;i++) {
var couplet = vowelItems[i].split(':')
if (document.getElementById('v'+couplet[0])) document.getElementById('v'+couplet[0]).value = couplet[1]
else console.log('Unrecognised vowel couplet in readRecord!', couplet[0])
}
}
// medials
checkboxes = [
'mcm', 'msj', 'mlet'
]
// initialise all input fields
for (f=0;f<checkboxes.length;f++) {
document.getElementById(checkboxes[f]).value = ''
}
// fill in values from db
if (record.medials) {
var medialItems = record.medials.split(' ')
for (let i=0;i<medialItems.length;i++) {
var couplet = medialItems[i].split(':')
if (document.getElementById('m'+couplet[0])) document.getElementById('m'+couplet[0]).value = couplet[1]
else console.log('Unrecognised medial couplet in readRecord!', couplet[0])
}
}
// finals
checkboxes = [
'fcm', 'flet', 'fvk', 'fss'
]
// initialise all input fields
for (f=0;f<checkboxes.length;f++) {
document.getElementById(checkboxes[f]).value = ''
}
// fill in values from db
if (record.finals) {
var finalItems = record.finals.split(' ')
for (let i=0;i<finalItems.length;i++) {
var couplet = finalItems[i].split(':')
if (document.getElementById('f'+couplet[0])) document.getElementById('f'+couplet[0]).value = couplet[1]
else console.log('Unrecognised medial couplet in readRecord!', couplet[0])
}
}
// direction
checkboxes = [
'dltr', 'drtl', 'drtl*', 'dtblr', 'dtbrl', 'dbos', 'dbt',
]
if (record.direction) {
var directionItems = new Set(record.direction.split(' '))
for (f=0;f<checkboxes.length;f++) {
if (directionItems.has(checkboxes[f].substring(1))) document.getElementById(checkboxes[f]).checked = true
else document.getElementById(checkboxes[f]).checked = false
}
}
else for (f=0;f<checkboxes.length;f++) document.getElementById(checkboxes[f]).checked = false
// justification
checkboxes = [
'jsp', 'jstr', 'jsw', 'jpad', 'jic', 'jig', 'jnone', 'j?',
]
if (record.justification) {
var justificationItems = new Set(record.justification.split(' '))
for (f=0;f<checkboxes.length;f++) {
if (justificationItems.has(checkboxes[f].substring(1))) document.getElementById(checkboxes[f]).checked = true
else document.getElementById(checkboxes[f]).checked = false
}
}
else for (f=0;f<checkboxes.length;f++) document.getElementById(checkboxes[f]).checked = false
// clusters
checkboxes = [
'cvir', 'cinv', 'cstk', 'ccnj', 'clig', 'ctcg', 'crax', 'cmrk', 'clet', 'cunm'
]
if (record.clusters) {
var clusterItems = new Set(record.clusters.split(' '))
for (f=0;f<checkboxes.length;f++) {
if (clusterItems.has(checkboxes[f].substring(1))) document.getElementById(checkboxes[f]).checked = true
else document.getElementById(checkboxes[f]).checked = false
}
}
else for (f=0;f<checkboxes.length;f++) document.getElementById(checkboxes[f]).checked = false
if (record.rtl && record.rtl === true) document.getElementById('rtl').checked = true
else document.getElementById('rtl').checked = false
if (record.redirect && record.redirect === true) document.getElementById('redirect').checked = true
else document.getElementById('redirect').checked = false
if (record.orth) document.getElementById('orth').value = record.orth
else document.getElementById('orth').value = ''
if (record.also) {
out = ''
for (let i=0;i<record.also.length;i++) out += record.also[i]+'\n'
document.getElementById('also').value = out
}
else document.getElementById('also').value = ''
if (record.related) document.getElementById('related').value = record.related
else document.getElementById('related').value = ''
if (record.notes) document.getElementById('notes').value = record.notes
else document.getElementById('notes').value = ''
}
function fillAll () {
var i
var inputfields = document.querySelectorAll('input')
for (i=0;i<inputfields.length;i++) {
if(inputfields[i].type==='text') inputfields[i].value = 'x'
if(inputfields[i].type==='checkbox') inputfields[i].checked = true
}
var inputfields = document.querySelectorAll('textarea')
for (i=0;i<inputfields.length;i++) {
inputfields[i].value = 'xxxxxx'
}
}
</script>
<style>
</style>
</head>
<body>
<p style="float:right;"><button onclick="fillAll()">Fill all</button></p>
<h1>Langs DB editor</h1>
<p>Find an existing record (BCP): <input type="text" id="load" onChange="readRecord(this.value)" style="width:5em;"> <button onClick="readRecord(document.getElementById('load').value)">GO</button></p>
<hr>
<p><label>Key:	<input type="text" id="key" style="width:5em;" placeholder="∅"></label>
SIL code: <input type="text" id="silcode" style="width:5em;" placeholder="∅">
Script: <input type="text" id="script" style="width:5em;" placeholder="∅">
RTL? <input type="checkbox" id="rtl">
Redirect? <input type="checkbox" id="redirect"></p>
<p><label>Name:	<input type="text" id="name" style="width:50em;" placeholder="∅"></label></p>
<p><label>Local name:	<input type="text" id="local" style="width:40em;" placeholder="∅"></label></p>
<p><label>Local name transcription:	<input type="text" id="localtrans" style="width:35em;" placeholder="∅"></label></p>
<p><label>Sources:	<input type="text" id="source" style="width:50em;" placeholder="∅"></label></p>
<p><label>Region:	<select id="region">
<option value="eur">Europe (Russia to Urals and Georgia, but not Armenia or Azerbaijan)</option>
<option value="easia">East Asia (China, Mongolia, Japan, Korea)</option>
<option value="nasia">Northern Asia (Russia east of Urals)</option>
<option value="seasia">Southeast Asia (including Indonesia, Philippines)</option>
<option value="sasia">South Asia (including India, Sri Lanka, Maldives)</option>
<option value="casia">Central Asia (above Iran, below Russia, west of China)</option>
<option value="wasia">Western Asia (Armenian, Azerbaijan, Turkey, & Middle east)</option>
<option value="afr">Africa</option>
<option value="oce">Oceania (Australia, NZ, and Pacific Islands)</option>
<option value="nam">North America</option>
<option value="sam">South America</option>
<option value="cam">Central America</option>
<option value="carib">Caribbean</option>
</select></label>
</p>
<p><label>Countries:	<input type="text" id="countries" style="width:40em;" placeholder="∅"></label></p>
<p><label>Speakers:	<input type="text" id="speakers" placeholder="∅"></label></p>
<hr>
<p><label>Letter	<input type="text" id="letter" placeholder="∅" style="width:30em;"></label></p>
<p><label>Letter (aux)	<input type="text" id="letteraux" placeholder="∅" style="width:30em;"></label></p>
<p><label>Mark	<input type="text" id="mark" placeholder="∅" style="width:30em;"></label></p>
<p><label>Mark (aux)	<input type="text" id="markaux" placeholder="∅" style="width:30em;"></label></p>
<p><label>Number	<input type="text" id="number" placeholder="∅" style="width:30em;"></label></p>
<p><label>Number (aux)	<input type="text" id="numberaux" placeholder="∅" style="width:30em;"></label></p>
<p><label>Punctuation	<input type="text" id="punctuation" placeholder="∅" style="width:30em;"></label></p>
<p><label>Punc. (aux)	<input type="text" id="punctuationaux" placeholder="∅" style="width:30em;"></label></p>
<p><label>Symbol	<input type="text" id="symbol" placeholder="∅" style="width:30em;"></label></p>
<p><label>Symbol (aux)	<input type="text" id="symbolaux" placeholder="∅" style="width:30em;"></label></p>
<p><label>Other	<input type="text" id="other" placeholder="∅" style="width:30em;"></label></p>
<p><label>Other (aux)	<input type="text" id="otheraux" placeholder="∅" style="width:30em;"></label></p>
<p><label>Possible	<input type="text" id="aux" placeholder="∅" style="width:30em;"></label></p>
<p><label>Deprecated	<input type="text" id="deprecated" placeholder="∅" style="width:30em;"></label></p>
<hr>
<p>Orthography:<br>
<span style="color: #aaa; font-size: 80%;">[ScriptName.] Description. <a href='../scripts/syriac/' target='_blank'>Details</a></span><br>
<textarea id="orth" style="width: 100%; height: 6em;" placeholder="[Syriac] (maḏnḥāyā/Eastern style). Used for East Syriac and Swadaya texts. ISO 15924 has a general script code for Syriac (syrc), and another (syrn) for the Eastern Syriac orthography. <a href='../scripts/syriac/' target='_blank'>Details</a>."></textarea></p>
<p>Other orthographies:<br>
<span style="color: #aaa; font-size: 80%;">One line per item: key | scriptISO | description</span><br>
<textarea id="also" style="width: 100%; height: 6em;" placeholder="tw-asante | latn | For the Asante dialect of Twi.
tw-akuapem | latn | For the Akuapem dialect of Twi.
fat | latn | For the Fante dialect of Twi"></textarea></p>
<p>Related:<br>
<span style="color: #aaa; font-size: 80%;">Point to macrolanguages using [key] notation.</span><br>
<textarea id="related" style="width: 100%; height: 4em;" placeholder="Macrolanguage is Syriac [syr]"></textarea></p>
<p>Notes:<br>
<span style="color: #aaa; font-size: 80%;">Useful information.</span><br>
<textarea id="notes" style="width: 100%; height: 4em;" placeholder="cr is a macrolanguage that encompasses the following more specific primary language subtags:<br/>Southern East Cree [crj]<br/> Plains Cree ..."></textarea></p>
<hr>
<p><label>Type:	<select id="type">
<option value="alphabet">alphabet</option>
<option value="abjad">abjad</option>
<option value="abugida">abugida</option>
<option value="syllabary">syllabary</option>
</select></label>
</p>
<p>
<label>GPOS:	<select id="gpos">
<option value="yes">Yes</option>
<option value="no">No</option>
</select></label>
</p>
<p>
<label>GSUB:	<select id="gsub">
<option value="yes">Yes</option>
<option value="no">No</option>
</select></label>
</p>
<p><label>Multiple CC	<select id="mcchars">
<option value="yes">Yes</option>
<option value="no">No</option>
</select></label>
</p>
<p><label>Bicameral:	<select id="cs">
<option value="yes">Yes</option>
<option value="no">No</option>
<option value="(yes)">Similar</option>
</select></label>
</p>
<p><label>Cursive script:	<select id="cursive">
<option value="no">No</option>
<option value="yes">Yes</option>
</select></label>
</p>
<p><label><strong>Text direction</strong>	<input id="direction" type="text" style="width: 10em;color: red;font-size: 110%;"></label></p>
<p class="checkboxes">
<label><input type="checkbox" id="dltr">ltr</label>
<label><input type="checkbox" id="drtl">rtl</label>
<label><input type="checkbox" id="drtl*">rtl but ltr digits</label>
<label><input type="checkbox" id="dtblr">vertical LR</label>
<label><input type="checkbox" id="dtbrl">vertical RL</label>
<label><input type="checkbox" id="dbos">boustrophedon</label>
<label><input type="checkbox" id="dbt">bottom to top</label>
</p>
<p><label>Baseline	<select id="baseline">
<option value="mid">romn</option>
<option value="high">hang</option>
<option value="vertical">cntr</option>
<option value="low">ideo</option>
</select></label>
</p>
<p><label>Word separator	<select id="wordsep">
<option value="space">space</option>
<option value="space/wb">space/wb (eg. Ethiopic)</option>
<option value="no/zwsp">no/zwsp (eg. Thai)</option>
<option value="no">no (eg. CJK)</option>
<option value="syllable">syllable (eg. Lisu, Tibetan)</option>
</select></label>
Separator = <input type="text" id="wordsepChar" style="width:2em; text-align	center;">
</p>
<p><label>Text wrap	<select id="wrap">
<option value="?">?</option>
<option value="word">word</option>
<option value="word/char">words or characters (eg. Amharic)</option>
<option value="syllable">syllable (eg. Balinese)</option>
<option value="char">character (eg. CJK)</option>
</select></label>
</p>
<p><label>Hyphenation	<select id="hyphenation">
<option value="?">?</option>
<option value="yes">yes</option>
<option value="no">no</option>
<option value="(yes)">similar</option>
</select></label> Separator = <input type="text" id="hyphen" style="width: 2em; text-align: center;">
</p>
<p><label><strong>Justification</strong>	<input id="justification" type="text" style="width: 500px;color: red;font-size: 110%;"></label></p>
<p class="checkboxes">
<label><input type="checkbox" id="jsp"> inter-word spaces/word joiners</label>
<label><input type="checkbox" id="jstr">stretched baseline (eg. Arabic)</label>
<label><input type="checkbox" id="jsw">swashes (eg. Arabic)</label>
<label><input type="checkbox" id="jpad">padding (eg. Tibetan)</label>
<label><input type="checkbox" id="jic">inter-character (eg. Japanese)</label>
<label><input type="checkbox" id="jig">inter-glyph (eg. Tamil, Burmese)</label>
<label><input type="checkbox" id="jnone">none</label>
<label><input type="checkbox" id="j?">?</label>
</p>
<p><label>Link to script explainer:	<input type="text" id="linked" placeholder="∅"></label></p>
<p><label>Link to character app:	<input type="text" id="fonts" placeholder="∅"></label></p>
<p><label>Font to apply:		<input type="text" id="font" placeholder="∅"></label></p>
<hr>
<p><label><strong>Vowels</strong>	<input id="vowels" type="text" style="width: 500px;color: red;font-size: 110%;"></label></p>
<p class="smallBoxList">
Alpha letters: <input type="text" id="vlet" style="width:2em;" placeholder="#"><br>
Matres lectionis: <input type="text" id="vml" style="width:2em;" placeholder="#"><br>
Diacritics (visible): <input type="text" id="vcm" style="width:2em;" placeholder="#"><br>
Diacritics (hidden): <input type="text" id="vhcm" style="width:2em;" placeholder="#"><br>
Inherent vowels: <input type="text" id="vinh" style="width:2em;" placeholder="#"><br>
Combining vowel signs: <input type="text" id="vvs" style="width:2em;" placeholder="#"><br>
Letter vowel signs: <input type="text" id="vvsl" style="width:2em;" placeholder="#"><br>
Independent vowels: <input type="text" id="vind" style="width:2em;" placeholder="#"><br>
<!--p style="line-height: 1.4; text-align: end; margin-inline-end:50%;">Vowel base: transcription <input type="text" id="vbase" style="width:2em;" placeholder="HA"><br-->
Vowel base: transcription <input type="text" id="vbase" style="width:2em;" placeholder="HA"><br>
Syllables: <input type="text" id="vsyl" style="width:2em;" placeholder="#"><br><br>
Prebase glyphs: <input type="text" id="vpre" style="width:2em;" placeholder="#"><br>
Visually encoded prebase glyphs: <input type="text" id="vvenc" style="width:2em;" placeholder="#"><br>
Circumgraphs: <input type="text" id="vcirc" style="width:2em;" placeholder="#"><br>
Composite vowels: <input type="text" id="vcomp" style="width:2em;" placeholder="#"><br>
Vocalics: <input type="text" id="vvoc" style="width:2em;" placeholder="#">
</p>
<p><label><strong>Clusters</strong>	<input id="clusters" type="text" style="width: 500px;color: red;font-size: 110%;"></label></p>
<p class="checkboxes">
<label><input type="checkbox" id="cvir">visible virama</label>
<label><input type="checkbox" id="cinv">invisible virama for conjuncts</label>
<label><input type="checkbox" id="cstk">stacking</label>
<label><input type="checkbox" id="ccnj">conjoining</label>
<label><input type="checkbox" id="clig">ligation</label>
<label><input type="checkbox" id="ctcg">touching</label>
<label><input type="checkbox" id="crax">special RA</label>
<label><input type="checkbox" id="cmrk">diacritic</label>
<label><input type="checkbox" id="clet">special letters (eg. chillus)</label>
<label><input type="checkbox" id="cunm">unmarked in abugida (eg. punjabi)</label>
</p>
<p><label><strong>Medials & finals</strong> <input id="medials" type="text" style="width: 15em;color: red;font-size: 110%;"></label> <input id="finals" type="text" style="width: 15em;color: red;font-size: 110%;"></p>
<p class="smallBoxList">
Medial combining characters: <input type="text" id="mcm" style="width:2em;" placeholder="#"><br>
Subjoined medial characters: <input type="text" id="msj" style="width:2em;" placeholder="#"><br>
Dedicated medial characters: <input type="text" id="mlet" style="width:2em;" placeholder="#"><br>
<br>
Final combining characters: <input type="text" id="fcm" style="width:2em;" placeholder="#"><br>
Dedicated final letters: <input type="text" id="flet" style="width:2em;" placeholder="#"><br>
Vowel-killer (add character): <input type="text" id="fvk" style="width:2em; text-align: center;" placeholder="#"><br>
Superscripts: <input type="text" id="fss" style="width:2em; text-align: center;" placeholder="#"><br>
</p>
<hr>
<p>Generate code <button onClick="generate()">GO</button></p>
<p><textarea id="code" style="height:15em; width: 100%;"></textarea></p>
</body>
</html>