-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
776 lines (708 loc) · 21.2 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
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
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
<html>
<head>
<meta charset="utf-8">
<!--
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Gulzar|Noto+Nastaliq+Urdu">
-->
<style>
body {
font-family: "Calibri";
background-color: #aacccc;
}
.test_1 {
font-family: "Test_Font_1";
font-kerning: normal;
font-size: 200%;
color: #000080;
text-align: center;
}
.test_2 {
font-family: "Test_Font_2";
font-kerning: normal;
font-size: 200%;
color: #ee6600;
text-align: center;
}
.HBC {
font-family: "Consolas";
text-align: center;
}
.overlap {
text-align: center;
line-height: 0px;
}
input[type="text"] {
font-size: 100%;
}
table, th, td {
border: 2px solid #448888;
border-collapse: collapse;
padding: 8px;
}
td {
align: 'left';
}
.wordlist, input[type="file"] {
background-color: #8ebf42;
}
</style>
<script type="text/javascript" src="hbjs.js"></script> <!-- Wrapper, can be used without -->
<script type="text/javascript" src="fontname.min.js"></script>
<script>
// We could use instantiateStreaming but it's not supported in Safari yet
// https://bugs.webkit.org/show_bug.cgi?id=173105
var wasmUrl = 'hb.wasm';
if (window.origin == 'null') wasmUrl = 'https://mattmatic.github.io/hbfontcompare/hb.wasm';
fetch(wasmUrl).then(function (x) {
return x.arrayBuffer();
}).then(function (wasm) {
return WebAssembly.instantiate(wasm);
}).then(function (result) {
window.hb = hbjs(result.instance);
});
//------------------------------
// Drag and drop utilities
//------------------------------
function cancel(e) {e.stopPropagation();e.preventDefault();}
function patchDragDrop(ele, foo) {
//const ele = document.getElementById(id);
ele.addEventListener('dragover', function(e) {
cancel(e);
ele.style.backgroundColor = 'yellow';
}, false);
ele.addEventListener('dragleave', function(e) {
cancel(e);
ele.style.backgroundColor = null;
}, false);
ele.addEventListener('drop', function(e) {
cancel(e);
const file = e.dataTransfer.files[0];
ele.style.backgroundColor = null;
foo(file, ele);
});
}
document.addEventListener('dragover', cancel, false);
document.addEventListener('dragleave', cancel, false);
document.addEventListener('drop', cancel, false);
window.addEventListener('beforeunload', function(e) {
if (!checkListChanged) return undefined;
var confirmMessage = 'CheckList is not yet saved. If you leave before saving, changes will be lost!';
(e || window.event).returnValue = confirmMessage;
return confirmMessage;
});
//------------------------------
// Document/CSS Font Utilities
//------------------------------
function changeFontAscentDescent(name, asc, desc) {
document.fonts.forEach(
(v) => {
if (v.family == name) {
v.ascentOverride = asc;
v.descentOverride = desc;
}
}
);
}
function deleteFontByName(name) {
document.fonts.forEach(
(v) => {
if (v.family == name) {
document.fonts.delete(v);
}
}
);
}
//------------------------------
// Build table
//------------------------------
start_index = 1
per_block = 100
line = 1
function wordHTML(txt,fnt) {
//return '<div class="'+fnt+'" align="center"><p>'+txt+'</p></div>'
return '<div class="'+fnt+'"><p>'+txt+'</p></div>'
}
function MarkUpdate(e) {
var n = e.name;
n = parseInt(n.substring(4)) - 1;
mym[n] = e.checked;
checkListChanged = true;
}
function BuildMarkHtml(n) {
var txt = '<input type="checkbox" onclick="MarkUpdate(this);" name="mark'+(n+1)+'"';
if (mym[n]) txt = txt + ' checked';
txt = txt + '>';
return txt;
}
var hb_icon_identical = '✅';
var hb_icon_length = '💥'; //collision
var hb_icon_advance = '🔥'; //fire
var hb_icon_offset = '🔺'; //up red triangle
var hb_icon_cluster = '💠'; //diamond (blue)
var hb_icon_gid = '';
function diffFieldToText(diff) {
var res = '';
if (diff < 0) return '';
if (diff == 0) return hb_icon_identical;
if (0 != (diff & 128)) res = res + hb_icon_length + "</br>";
if (0 != (diff & 8)) res = res + hb_icon_advance + "</br>";
if (0 != (diff & 4)) res = res + hb_icon_offset + "</br>";
if (0 != (diff & 2)) res = res + hb_icon_cluster + "</br>";
if (0 != (diff & 1)) res = res + hb_icon_gid;// + "</br>";
return res;
}
function addEntry(line, txt) {
//if (txt == '') return;
var table = document.getElementById('word_list');
var row = table.insertRow();
var idx=1;
hbf1.shape(txt);
hbf2.shape(txt);
var diff = hbf1.compare(hbf2);
row.insertCell(0).innerHTML = '<div align="center">'+(line+1)+
BuildMarkHtml(line)+'</div>';
row.insertCell(idx++).innerHTML = '<div class="HBC">'+
diffFieldToText(diff)+'</div>';
row.insertCell(idx++).innerHTML = wordHTML(txt, "test_1");
row.insertCell(idx++).innerHTML = wordHTML(txt, "test_2");
row.insertCell(idx++).innerHTML =
//'<p style="line-height: 0px; " align="center">'
'<p class="overlap">'
+ '<span class="test_2" style="color: #ff6600;">' + txt + '</span><br>'
+ '<span class="test_1">' + txt + '</span></p>'
}
function addrow() {
var field = document.getElementById("text");
var txt = field.value;
addUrdu(line, txt)
line++;
field.value = '';
}
function dokey(ele) {
ele.preventDefault();
if (ele.keyCode == 13) {
addrow();
}
return false;
}
function updateListByIndex(idx) {
hbf1.setScriptLang(HBScript.value, HBLang.value);
hbf2.setScriptLang(HBScript.value, HBLang.value);
var table = document.getElementById('word_list')
var s = table.rows.length;
while (s > 1) {
s--;
table.deleteRow(s);
}
var n = per_block;
for (i=(idx-1); i < (idx-1+n); i++) {
if (mya[i] === undefined) break;
addEntry(i, mya[i]);
}
document.getElementById('start').value = String(idx);
}
function getStart() {
var i = Number(document.getElementById('start').value);
if (i < 1) {
i = 1;
}
if (i > mya.length) {
i = mya.length-1;
}
return i;
}
function setStart(idx) {
document.getElementById('start').value = String(idx);
}
function updateListByField() {
start_index = getStart();
if (start_index <= 1) start_index = 1;
setStart(start_index);
updateListByIndex(start_index);
}
function updateListNext() {
start_index = getStart() + per_block;
if (start_index > mya.length) start_index = mya.length - 2;
if (start_index < 1) start_index = 1;
updateListByIndex(start_index);
}
function updateListPrev() {
start_index = getStart() - per_block;
if (start_index < 1) start_index = 1;
updateListByIndex(start_index);
}
function updateCssStyle(name, styleid, value) {
const rules = document.styleSheets[0].cssRules;
for (var i=0; i<rules.length; i++) {
if (rules[i].selectorText == name) {
rules[i].style[styleid] = value;
break;
}
}
}
function updateAlign() {
const alignRadios = document.getElementsByName('alignment');
var text_align = 'center';
for (var i=0; i<alignRadios.length; i++) {
if (alignRadios[i].checked) {
text_align = alignRadios[i].value;
break;
}
}
updateCssStyle('.test_1', 'text-align', text_align);
updateCssStyle('.test_2', 'text-align', text_align);
updateCssStyle('.overlap', 'text-align', text_align);
}
</script>
</head>
<body>
<h1>
Compare Font Word List Tool
</h1>
<label for='start'>Start:</label><input type='text' id='start' placeholder='Start' value='1'/>
<button onclick='updateListByField();'>Go</button>
<button onclick='updateListPrev();' accesskey='2'>Prev (Alt-2)</button>
<button onclick='updateListNext();' accesskey='3'>Next (Alt-3)</button>
<span id='wordcount'></span>
</br>
<span>
<input type='radio' name='alignment' value='left' onclick="updateAlign();">
<label for='left'>Left</label>
<input type='radio' name='alignment' value='center' onclick="updateAlign();" checked>
<label for='center'>Center</label>
<input type='radio' name='alignment' value='right' onclick="updateAlign();">
<label for='right'>Right</label>
</span>
<table border=2 cellspacing="8px" width='100%' id='word_list'>
<tr>
<th width='7%'>#</th>
<th width='6%'><a href='javascript:void(0)' onclick='toggleHBIcons();'>Diff</a>
<div id='HBIcons' hidden>
</div>
</th>
<th width='31%' id='fontOneInfo'>Drag-and-Drop Font 1</th>
<th width='31%' id='fontTwoInfo'>Drag-and-Drop Font 2</th>
<th width='31%'>Overlap</th>
</tr>
</table>
</p>
<p>
<button onclick='updateListByField(); window && window.scroll(0,0)'>TOP</button>
<button onclick='updateListNext(); window && window.scroll(0,0)'>Next</button>
</p>
<table width="100%" border=1>
<tr>
<th width="20%">CheckList</th>
<th>Word List</th>
</tr>
<tr>
<td id='CheckDragDrop' align='center'>Drag-and-drop CheckList .txt here</br>
<button onclick='DownloadCheckList();'>Download</button> •
<button onclick='ClearCheckListUser();'>Clear All</button> •
<button onclick='InvertCheckList();'>Invert</button> •
</br>
<button onclick='CheckSimilar();'>Check Similar</button>
</td>
<td id='WordsDragDrop' align='center'>Drag-and-drop Word List .txt file here</br>
<button onclick='RemoveUnchecked();'>Delete Unchecked</button></br>
<a href='javascript:void(0)' onclick='togglePropertiesVisibility(); return false;' id='hrefLanguageProperties'>
Show Lang/Script
</a>
<div id='languageProperties' hidden>
<table border=1>
<tr><th>HTML Lang:</th><td><input type='text' id='HTMLLang' oninput='updateLanguage();'/></td></tr>
<tr><th>HarfBuzz Script:</th><td><input type='text' id='HBScript' oninput='updateLanguage();'/></td></tr>
<tr><th>HarfBuzz Lang:</th><td><input type='text' id='HBLang' oninput='updateLanguage();'/></td></tr>
</table>
</div>
<div id='statusUpdate'>-</div>
</td>
</tr>
</table>
</p>
<script>
class hbFont {
constructor() {
this.script = 'latn';
this.lang = '';
this.features = '';
this.results = {};
this.results.json = null;
}
destroy() {
this.freeFontBlob();
}
freeFontBlob() {
this.freeFont();
this.fileDescription = null;
delete(this.fontBlob);
}
freeFont() {
this.results = {};
if (this.font) { this.font.destroy(); delete(this.font); }
if (this.face) { this.face.destroy(); delete(this.face); }
if (this.blob) { this.blob.destroy(); delete(this.blob); }
}
setFontBlob(fb) {
this.freeFont();
this.fontBlob = fb;
if (fb) {
const fontName = FontName.parse(fb)[0];
console.log(fontName);
this.fileDescription = fontName.fullName + '</br>' + fontName.version;
} else {
this.fileDescription = '';
}
if (!fb) return;
this.blob = hb.createBlob(this.fontBlob);
this.face = hb.createFace(this.blob, 0);
this.font = hb.createFont(this.face);
}
setScriptLang(script, lang) {
this.script = script;
this.lang = lang;
}
shape(txt) {
if (!this.fontBlob) return;
var buffer = hb.createBuffer();
buffer.addText(txt);
buffer.guessSegmentProperties();
if (this.script && (this.script.length > 0))
buffer.setScript(this.script || 'latn');
if (this.lang && (this.lang.length > 0))
buffer.setLanguage(this.lang);
hb.shape(this.font, buffer, this.features);
this.results.json = buffer.json(this.font);
buffer.destroy();
}
compare(hb2) {
// Returns bit field:
// 1 = GID different
// 2 = Cluster different
// 4 = Offset different
// 8 = Advance different (e.g. kerning)
// 128 = different length
if ( (this.results === null) ||
(this.results.json === null) ||
(hb2.results === null) ||
(hb2.results.json === null)
)
{
return -1;
}
var idx = 0;
var res = 0;
while (true) {
if (idx >= this.results.json.length) {
if (idx < hb2.results.json.length) res |= 128;
break;
}
if (idx >= hb2.results.json.length) {
res |= 128;
break;
}
const g1 = this.results.json[idx];
const g2 = hb2.results.json[idx];
if (g1 === null) {
if (g1 !== null) res |= 128;
break;
}
if (g2 === null) {
res |= 128;
break;
}
if (g1.g !== g2.g) res |= 1;
if (g1.cl !== g2.cl) res |= 2;
if (g1.dx !== g2.dx) res |= 4;
if (g1.dy !== g2.dy) res |= 4;
if (g1.ax !== g2.ax) res |= 8;
if (g1.ay !== g2.ay) res |= 8;
idx++;
}
return res;
}
}
var hbf1 = new hbFont;
var hbf2 = new hbFont;
// Show/Hide the language & script fields
function togglePropertiesVisibility() {
languageProperties.hidden = !languageProperties.hidden;
let txt = hrefLanguageProperties.text;
if (languageProperties.hidden)
hrefLanguageProperties.text = txt.replace('Hide', 'Show');
else
hrefLanguageProperties.text = txt.replace('Show', 'Hide');
}
function toggleHBIcons() {
HBIcons.innerHTML = '</br>'+
hb_icon_identical + 'exact</br>'+
hb_icon_length + 'len</br>'+
hb_icon_advance + 'adv</br>'+
hb_icon_offset + 'ofs</br>'+
hb_icon_cluster + 'clu</br>';
HBIcons.hidden = !HBIcons.hidden;
}
// Update the document language tag, and the HarfBuzz values
function updateLanguage() {
document.documentElement.setAttribute('lang', HTMLLang.value);
}
function ClearCheckList() {
mym = []
checkListChanged = false;
}
function ClearCheckListUser() {
if (checkListChanged) {
if (!window.confirm('Check List has changed! Clear all?')) return;
}
ClearCheckList();
updateListByField();
}
function InvertCheckList() {
var i = 0;
while (true) {
if (mya[i] === undefined) break;
if (mym[i])
mym[i] = false;
else
mym[i] = true;
i++;
}
checkListChanged = true;
updateListByField();
}
// See: https://elplatt.com/javascript-updating-dom-during-long-running-computation
function doUntil(loop, stopCondition, yieldCondition) {
// Wrap function in promise so it can run asynchronously
return new Promise((resolve, reject) => {
// Build outerLoop function to pass to setTimeout
let outerLoop = function () {
while (true) {
// Execute a single inner loop iteration
loop();
if (stopCondition()) {
// Resolve promise, exit outer loop,
// and do not re-enter
resolve();
break;
} else if (yieldCondition()) {
// Exit outer loop and queue up next
// outer loop iteration for next event loop cycle
setTimeout(outerLoop, 0);
break;
}
// Continue to next inner loop iteration
// without yielding
}
};
// Start the first iteration of outer loop,
// unless the stop condition is met
if (!stopCondition()) {
setTimeout(outerLoop, 0);
}
});
}
function CheckSimilar_blocking() {
hbf1.setScriptLang(HBScript.value, HBLang.value);
hbf2.setScriptLang(HBScript.value, HBLang.value);
var i = 0;
var ms_s = +new Date();
while (true) {
if (mya[i] === undefined) break;
hbf1.shape(mya[i]);
hbf2.shape(mya[i]);
var diff = hbf1.compare(hbf2);
if ((diff == 1) || (diff == 0)) {
mym[i] = true;
}
i++;
}
var ms_e = +new Date();
console.log('CheckSimilar:', ms_s, ms_e, ms_e-ms_s);
checkListChanged = true;
UpdateWordCount();
updateListByIndex(1);
window.scroll(0,0);
}
function updateStatusMessage(i, total) {
if (i <= 0)
statusUpdate.innerHTML = '-';
else
statusUpdate.innerHTML = '<div><font color="red">'+i + '/'+ total+'</font></div>';
}
function CheckSimilar() {
let i = 0;
const total = mya.length;
if (total > 5000) {
if (!window.confirm('This will take a LONG time. Continue?')) return;
}
const stopCondition = () => i >= total;
const yieldCondition = () => i % 1000 == 0;
hbf1.setScriptLang(HBScript.value, HBLang.value);
hbf2.setScriptLang(HBScript.value, HBLang.value);
const loop = () => {
hbf1.shape(mya[i]);
hbf2.shape(mya[i]);
var diff = hbf1.compare(hbf2);
if ((diff == 1) || (diff == 0)) {
mym[i] = true;
}
i++;
if (yieldCondition()) {
updateStatusMessage(i, total);
}
if (stopCondition()) {
checkListChanged = true;
UpdateWordCount();
updateListByIndex(1);
window.scroll(0,0);
updateStatusMessage(-1);
}
}
doUntil(loop, stopCondition, yieldCondition);
}
function RemoveUnchecked() {
if (!window.confirm('Delete all unchecked words? (Cannot be undone!)')) return;
var i = 0;
var counter = 0;
const stopCondition = () => i >= mya.length;
const yieldCondition= () => (counter % 1000) ==0;
const loop = () => {
counter++;
if (!mym[i]) {
mya.splice(i, 1);
mym.splice(i,1);
} else {
i++;
}
if (yieldCondition()) {
updateStatusMessage(i, mya.length);
}
if (stopCondition()) {
if (!wordlist_filename.endsWith('(edited)')) wordlist_filename = wordlist_filename + ' (edited)';
UpdateWordCount();
updateListByIndex(1);
updateStatusMessage(-1);
}
}
doUntil(loop, stopCondition, yieldCondition);
}
function DateTimeForFilename() {
// 012345678901234567890123
// '2024-11-07T14:55:03.791Z'
var d = new Date().toJSON();
return d.slice(0,4)+d.slice(5,7)+d.slice(8,10)+'_'+
d.slice(11,13)+d.slice(14,16)+d.slice(17,19);
}
function DownloadCheckList() {
var txt = '';
var i = 0;
while (true) {
if (mya[i] === undefined) break;
if (mym[i]) txt = txt + mya[i]+'\n';
i++;
}
var bb = new Blob([txt], {type: 'text/plain;charset=utf-8'});
var a = document.createElement('a');
a.download = 'CheckList.'+DateTimeForFilename()+'.txt';
a.href = window.URL.createObjectURL(bb);
a.target='_blank';
a.click();
//document.body.removeChild(a);
}
//---------------------------Fill in the text as separate lines------------------
//const txt = '';
//mya = txt.split(/\r?\n+/g)
mya = []
ClearCheckList();
updateListByIndex(1)
//===============================================================================
function UpdateWordCount() {
var wlc = document.getElementById('wordcount');
var txt = 'Count:'+mya.length;
if (wordlist_filename) txt = txt + ' '+wordlist_filename;
wlc.innerHTML = txt;
}
//------------------------------
// Drag and drop functions
//------------------------------
function handleWordsDrop(file) {
if (!file) return;
const fileName = file.name.toLowerCase();
if (!fileName.endsWith('.txt')) return;
if (checkListChanged) {
if (!window.confirm('Check List has changed! Continue?')) return;
}
wordlist_filename = '"'+fileName+'"';
var reader = new FileReader();
reader.onload = function(e) {
var txt = e.target.result;
mya = txt.split(/\r?\n+/g);
ClearCheckList();
updateListByIndex(1);
UpdateWordCount();
}
reader.readAsText(file);
}
function handleCheckDrop(file) {
if (!file) return;
const fileName = file.name.toLowerCase();
if (!fileName.endsWith('.txt')) return;
var reader = new FileReader();
reader.onload = function(e) {
var txt = e.target.result;
var chk = txt.split(/\r?\n+/g);
var i = 0;
while (true) {
var w = chk[i];
if (!w) break;
var mi = mya.indexOf(w);
if (mi >= 0) {
mym[mi] = true;
}
i++;
}
checkListChanged = true;
updateListByField();
}
reader.readAsText(file);
}
function handleFontXDrop(file, fontname, id, hbo) {
if (!file) return;
const fileName = file.name.toLowerCase();
if (!fileName.endsWith('.ttf') && !fileName.endsWith('.otf')) return;
var reader = new FileReader();
reader.onload = function(e) {
hbo.setFontBlob(new Uint8Array(reader.result));
const fontFace = new FontFace(fontname, reader.result);
const fontInfo = FontName.parse(reader.result);
const fontName = fontInfo[0];
id.innerHTML = fontName.fullName + '</b></br><font size="-1">' + fontName.version + "</font>";
fontFace.load().then(
() => {
deleteFontByName(fontname);
document.fonts.add(fontFace);
console.log('loaded '+file.name);
changeFontAscentDescent(fontname, '200%', '200%');
updateListByField();
},
(err) => {
console.error(err);
}
);
}
reader.readAsArrayBuffer(file);
}
function handleFontOneDrop(file) {
handleFontXDrop(file, 'Test_Font_1', fontOneInfo, hbf1);
}
function handleFontTwoDrop(file) {
handleFontXDrop(file, 'Test_Font_2', fontTwoInfo, hbf2);
}
patchDragDrop(WordsDragDrop, handleWordsDrop);
patchDragDrop(CheckDragDrop, handleCheckDrop);
patchDragDrop(fontOneInfo, handleFontOneDrop);
patchDragDrop(fontTwoInfo, handleFontTwoDrop);
</script>
<p>2024-11-14</p>
</body>
</html>