unicode-input-toolconverter 0.2.0 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (143) hide show
  1. package/.nyc_output/out.json +8980 -1849
  2. package/CHANGES.md +11 -1
  3. package/README.md +6 -11
  4. package/_locales/en-US/messages.json +153 -6
  5. package/_locales/hu-HU/messages.json +153 -6
  6. package/_locales/pt-BR/messages.json +153 -6
  7. package/_locales/sv-SE/messages.json +153 -6
  8. package/babel.config.json +0 -1
  9. package/browser_action/characterSelection.js +18 -11
  10. package/browser_action/charrefConverters.js +286 -79
  11. package/browser_action/chartBuild.js +97 -27
  12. package/browser_action/encodingBehaviors.js +10 -7
  13. package/browser_action/entityBehaviors.js +42 -16
  14. package/browser_action/index-es.html +13 -1
  15. package/browser_action/index-instrumented.html +13 -1
  16. package/browser_action/index-pages.html +13 -1
  17. package/browser_action/index.html +13 -1
  18. package/browser_action/index.iife.min.js +9 -1
  19. package/browser_action/index.iife.min.js.map +1 -1
  20. package/browser_action/index.instrumented.iife.min.js +1 -1
  21. package/browser_action/index.instrumented.iife.min.js.map +1 -1
  22. package/browser_action/index.js +5 -5
  23. package/browser_action/preferences/prefDefaults.js +12 -3
  24. package/browser_action/service-worker/sw-activateCallback.js +1 -2
  25. package/browser_action/service-worker/sw-resources.json +6 -4
  26. package/browser_action/templateUtils/elements.js +12 -1
  27. package/browser_action/templateUtils/fill.js +6 -0
  28. package/browser_action/templateUtils/validation.js +4 -1
  29. package/browser_action/templates/chartBuild.js +167 -102
  30. package/browser_action/templates/index.js +227 -53
  31. package/browser_action/templatesElementCustomization/widgets.js +40 -15
  32. package/browser_action/unicode/UnicodeConverter.js +99 -73
  33. package/browser_action/unicode/charrefunicodeDb.js +100 -50
  34. package/browser_action/unicode/getScriptInfoForCodePoint.js +13 -4
  35. package/browser_action/unicode/hangul.js +27 -20
  36. package/browser_action/unicode/lastScriptNames.json +1 -1
  37. package/browser_action/unicode/parseUnihanFromTextFileStrings.js +44 -25
  38. package/browser_action/unicode/unicodeFieldInfo.js +112 -90
  39. package/browser_action/unicode/unicodeScripts.js +409 -35
  40. package/browser_action/unicode/unihan.js +4 -3
  41. package/browser_action/unicode/unihanDbPopulate.js +7 -2
  42. package/browser_action/unicode/unihanFields.js +34 -0
  43. package/browser_action/unicodecharref.js +353 -190
  44. package/browser_action/utils/DOMUtils.js +95 -34
  45. package/browser_action/utils/FetchUtils.js +7 -6
  46. package/browser_action/utils/TextUtils.js +4 -4
  47. package/browser_action/utils/TypedArrayUtils.js +9 -5
  48. package/browser_action/utils/semicolonSeparatedToArray.js +3 -3
  49. package/browser_action/utils/setupServiceWorker.js +2 -2
  50. package/eslint.config.js +11 -0
  51. package/icons/openWindow16.png +0 -0
  52. package/icons/openWindow24.png +0 -0
  53. package/lib/background.html +7 -0
  54. package/lib/background.js +2 -2
  55. package/package.json +79 -70
  56. package/pnpm-workspace.yaml +8 -0
  57. package/server.js +66 -51
  58. package/sw.js +97 -56
  59. package/tools/entities-import.js +4 -1
  60. package/tools/findEsResources.js +33 -10
  61. package/tools/fix-sw-resources-vendor-paths.js +58 -0
  62. package/tools/list-locales.js +2 -2
  63. package/tools/parseUnicodeCharts.js +126 -60
  64. package/tools/ucd-import.js +1 -10
  65. package/tools/unicode-charts.html +49 -20
  66. package/tools/unihan-import.js +45 -15
  67. package/tools/write-sw-version.js +16 -0
  68. package/tsconfig.json +23 -0
  69. package/typings/__coverage__.d.ts +5 -0
  70. package/typings/apple-system-profiler.d.ts +17 -0
  71. package/typings/commands.d.ts +19 -0
  72. package/typings/json-6.d.ts +4 -0
  73. package/typings/rollup-plugin-istanbul.d.ts +3 -0
  74. package/vendor/camelcase/index.d.ts +154 -0
  75. package/vendor/camelcase/index.js +137 -23
  76. package/vendor/fflate/esm/browser.d.ts +1539 -0
  77. package/vendor/fflate/esm/browser.js +82 -55
  78. package/vendor/intl-dom/dist/Formatter.d.ts +120 -0
  79. package/vendor/intl-dom/dist/Formatter.d.ts.map +1 -0
  80. package/vendor/intl-dom/dist/collation.d.ts +42 -0
  81. package/vendor/intl-dom/dist/collation.d.ts.map +1 -0
  82. package/vendor/intl-dom/dist/defaultAllSubstitutions.d.ts +52 -0
  83. package/vendor/intl-dom/dist/defaultAllSubstitutions.d.ts.map +1 -0
  84. package/vendor/intl-dom/dist/defaultInsertNodes.d.ts +96 -0
  85. package/vendor/intl-dom/dist/defaultInsertNodes.d.ts.map +1 -0
  86. package/vendor/intl-dom/dist/defaultKeyCheckerConverter.d.ts +17 -0
  87. package/vendor/intl-dom/dist/defaultKeyCheckerConverter.d.ts.map +1 -0
  88. package/vendor/intl-dom/dist/defaultLocaleResolver.d.ts +285 -0
  89. package/vendor/intl-dom/dist/defaultLocaleResolver.d.ts.map +1 -0
  90. package/vendor/intl-dom/dist/findLocaleStrings.d.ts +88 -0
  91. package/vendor/intl-dom/dist/findLocaleStrings.d.ts.map +1 -0
  92. package/vendor/intl-dom/dist/getDOMForLocaleString.d.ts +67 -0
  93. package/vendor/intl-dom/dist/getDOMForLocaleString.d.ts.map +1 -0
  94. package/vendor/intl-dom/dist/getMessageForKeyByStyle.d.ts +73 -0
  95. package/vendor/intl-dom/dist/getMessageForKeyByStyle.d.ts.map +1 -0
  96. package/vendor/intl-dom/dist/getStringFromMessageAndDefaults.d.ts +26 -0
  97. package/vendor/intl-dom/dist/getStringFromMessageAndDefaults.d.ts.map +1 -0
  98. package/vendor/intl-dom/dist/i18n.d.ts +113 -0
  99. package/vendor/intl-dom/dist/i18n.d.ts.map +1 -0
  100. package/vendor/intl-dom/dist/index.d.ts +92 -0
  101. package/vendor/intl-dom/dist/index.d.ts.map +1 -0
  102. package/vendor/intl-dom/dist/index.esm.d.ts +34 -0
  103. package/vendor/intl-dom/dist/index.esm.js +854 -896
  104. package/vendor/intl-dom/dist/index.esm.min.js +4 -0
  105. package/vendor/intl-dom/dist/index.esm.min.js.map +1 -0
  106. package/vendor/intl-dom/dist/index.umd.js +2953 -0
  107. package/vendor/intl-dom/dist/index.umd.min.js +4 -0
  108. package/vendor/intl-dom/dist/index.umd.min.js.map +1 -0
  109. package/vendor/intl-dom/dist/promiseChainForValues.d.ts +34 -0
  110. package/vendor/intl-dom/dist/promiseChainForValues.d.ts.map +1 -0
  111. package/vendor/intl-dom/dist/shared.d.ts +20 -0
  112. package/vendor/intl-dom/dist/shared.d.ts.map +1 -0
  113. package/vendor/intl-dom/dist/utils.d.ts +53 -0
  114. package/vendor/intl-dom/dist/utils.d.ts.map +1 -0
  115. package/vendor/jamilih/dist/jml.d.mts +468 -0
  116. package/vendor/jamilih/dist/{jml-es.js → jml.mjs} +1489 -343
  117. package/vendor/jquery/dist/jquery.js +1677 -2713
  118. package/vendor/json-6/dist/index.mjs +2 -0
  119. package/vendor/miller-columns/CHANGES.md +185 -0
  120. package/vendor/miller-columns/LICENSE-MIT.txt +21 -0
  121. package/vendor/miller-columns/README.md +249 -0
  122. package/vendor/miller-columns/demos/index.html +69 -0
  123. package/vendor/miller-columns/demos/index.js +72 -0
  124. package/vendor/miller-columns/dist/index-es.js +748 -0
  125. package/vendor/miller-columns/dist/index-es.min.d.ts +25 -0
  126. package/vendor/miller-columns/dist/index-es.min.js +7 -1
  127. package/vendor/miller-columns/dist/index-umd.js +757 -0
  128. package/vendor/miller-columns/dist/index-umd.min.js +7 -0
  129. package/vendor/miller-columns/dist/index.d.ts +25 -0
  130. package/vendor/miller-columns/dist/millerColumns.d.ts +10 -0
  131. package/vendor/miller-columns/eslint.config.js +46 -0
  132. package/vendor/miller-columns/fix-declarations.js +18 -0
  133. package/vendor/miller-columns/miller-columns.css +24 -1
  134. package/vendor/miller-columns/package.json +73 -0
  135. package/vendor/miller-columns/pnpm-workspace.yaml +2 -0
  136. package/vendor/miller-columns/src/index.js +642 -0
  137. package/vendor/miller-columns/src/millerColumns.ts +12 -0
  138. package/vendor/miller-columns/tsconfig-prod.json +23 -0
  139. package/vendor/miller-columns/tsconfig.json +21 -0
  140. package/vendor/simple-prefs/dist/index.esm.d.ts +1 -0
  141. package/vendor/simple-prefs/dist/index.esm.js +164 -216
  142. package/vendor/simple-prefs/dist/simple-prefs.d.ts +117 -0
  143. package/lgtm.yml +0 -5
@@ -2,6 +2,9 @@
2
2
  // Do not edit this file; this is an auto-generated file used to
3
3
  // build a hierarchy of script names. It is built by
4
4
  // `parseUnicodeCharts.js` using https://unicode.org/charts/.
5
+ /**
6
+ * @param {import('intl-dom').I18NCallback} _
7
+ */
5
8
  function unicodeScripts (_) {
6
9
  return [
7
10
  "ul",
@@ -53,15 +56,6 @@ function unicodeScripts (_) {
53
56
  ]
54
57
  ]
55
58
  ],
56
- [
57
- "li",
58
- {
59
- "title": "102A0-102DF"
60
- },
61
- [
62
- _("Carian")
63
- ]
64
- ],
65
59
  [
66
60
  "li",
67
61
  {
@@ -592,24 +586,6 @@ function unicodeScripts (_) {
592
586
  ]
593
587
  ]
594
588
  ],
595
- [
596
- "li",
597
- {
598
- "title": "10280-1029F"
599
- },
600
- [
601
- _("Lycian")
602
- ]
603
- ],
604
- [
605
- "li",
606
- {
607
- "title": "10920-1093F"
608
- },
609
- [
610
- _("Lydian")
611
- ]
612
- ],
613
589
  [
614
590
  "li",
615
591
  {
@@ -673,6 +649,15 @@ function unicodeScripts (_) {
673
649
  _("Shavian")
674
650
  ]
675
651
  ],
652
+ [
653
+ "li",
654
+ {
655
+ "title": "105C0-105FF"
656
+ },
657
+ [
658
+ _("Todhri")
659
+ ]
660
+ ],
676
661
  [
677
662
  "li",
678
663
  {
@@ -921,6 +906,15 @@ function unicodeScripts (_) {
921
906
  _("Bassa_Vah")
922
907
  ]
923
908
  ],
909
+ [
910
+ "li",
911
+ {
912
+ "title": "16EA0-16EDF"
913
+ },
914
+ [
915
+ _("Beria_Erfe")
916
+ ]
917
+ ],
924
918
  [
925
919
  "li",
926
920
  {
@@ -986,6 +980,20 @@ function unicodeScripts (_) {
986
980
  ]
987
981
  ]
988
982
  ]
983
+ ],
984
+ [
985
+ "li",
986
+ {
987
+ "title": "13460-1355F"
988
+ },
989
+ [
990
+ [
991
+ "i",
992
+ [
993
+ _("Egyptian_Hieroglyphs_Extended_A")
994
+ ]
995
+ ]
996
+ ]
989
997
  ]
990
998
  ]
991
999
  ]
@@ -1061,6 +1069,15 @@ function unicodeScripts (_) {
1061
1069
  ]
1062
1070
  ]
1063
1071
  ],
1072
+ [
1073
+ "li",
1074
+ {
1075
+ "title": "10D40-10D8F"
1076
+ },
1077
+ [
1078
+ _("Garay")
1079
+ ]
1080
+ ],
1064
1081
  [
1065
1082
  "li",
1066
1083
  {
@@ -1167,7 +1184,7 @@ function unicodeScripts (_) {
1167
1184
  [
1168
1185
  "b",
1169
1186
  [
1170
- _("Middle_Eastern_Scripts")
1187
+ _("West_Asian_Scripts")
1171
1188
  ]
1172
1189
  ],
1173
1190
  [
@@ -1298,6 +1315,15 @@ function unicodeScripts (_) {
1298
1315
  _("Avestan")
1299
1316
  ]
1300
1317
  ],
1318
+ [
1319
+ "li",
1320
+ {
1321
+ "title": "102A0-102DF"
1322
+ },
1323
+ [
1324
+ _("Carian")
1325
+ ]
1326
+ ],
1301
1327
  [
1302
1328
  "li",
1303
1329
  {
@@ -1331,6 +1357,20 @@ function unicodeScripts (_) {
1331
1357
  ]
1332
1358
  ]
1333
1359
  ],
1360
+ [
1361
+ "li",
1362
+ {
1363
+ "title": "12550-1268F"
1364
+ },
1365
+ [
1366
+ [
1367
+ "i",
1368
+ [
1369
+ _("Archaic_Cuneiform_Numbers")
1370
+ ]
1371
+ ]
1372
+ ]
1373
+ ],
1334
1374
  [
1335
1375
  "li",
1336
1376
  {
@@ -1423,6 +1463,24 @@ function unicodeScripts (_) {
1423
1463
  ]
1424
1464
  ]
1425
1465
  ],
1466
+ [
1467
+ "li",
1468
+ {
1469
+ "title": "10280-1029F"
1470
+ },
1471
+ [
1472
+ _("Lycian")
1473
+ ]
1474
+ ],
1475
+ [
1476
+ "li",
1477
+ {
1478
+ "title": "10920-1093F"
1479
+ },
1480
+ [
1481
+ _("Lydian")
1482
+ ]
1483
+ ],
1426
1484
  [
1427
1485
  "li",
1428
1486
  {
@@ -1513,6 +1571,15 @@ function unicodeScripts (_) {
1513
1571
  _("Samaritan")
1514
1572
  ]
1515
1573
  ],
1574
+ [
1575
+ "li",
1576
+ {
1577
+ "title": "10940-1095F"
1578
+ },
1579
+ [
1580
+ _("Sidetic")
1581
+ ]
1582
+ ],
1516
1583
  [
1517
1584
  "li",
1518
1585
  {
@@ -1715,7 +1782,26 @@ function unicodeScripts (_) {
1715
1782
  "title": "0980-09FF"
1716
1783
  },
1717
1784
  [
1718
- _("Bengali_and_Assamese")
1785
+ _("Bengali_and_Assamese"),
1786
+ [
1787
+ "ul",
1788
+ [
1789
+ [
1790
+ "li",
1791
+ {
1792
+ "title": "11DF0-11DFF"
1793
+ },
1794
+ [
1795
+ [
1796
+ "i",
1797
+ [
1798
+ _("Bengali_Supplement")
1799
+ ]
1800
+ ]
1801
+ ]
1802
+ ]
1803
+ ]
1804
+ ]
1719
1805
  ]
1720
1806
  ],
1721
1807
  [
@@ -1841,6 +1927,15 @@ function unicodeScripts (_) {
1841
1927
  _("Gurmukhi")
1842
1928
  ]
1843
1929
  ],
1930
+ [
1931
+ "li",
1932
+ {
1933
+ "title": "16100-1613F"
1934
+ },
1935
+ [
1936
+ _("Gurung_Khema")
1937
+ ]
1938
+ ],
1844
1939
  [
1845
1940
  "li",
1846
1941
  {
@@ -1877,6 +1972,15 @@ function unicodeScripts (_) {
1877
1972
  _("Khojki")
1878
1973
  ]
1879
1974
  ],
1975
+ [
1976
+ "li",
1977
+ {
1978
+ "title": "16D40-16D7F"
1979
+ },
1980
+ [
1981
+ _("Kirat_Rai")
1982
+ ]
1983
+ ],
1880
1984
  [
1881
1985
  "li",
1882
1986
  {
@@ -2022,6 +2126,15 @@ function unicodeScripts (_) {
2022
2126
  _("Ol_Chiki")
2023
2127
  ]
2024
2128
  ],
2129
+ [
2130
+ "li",
2131
+ {
2132
+ "title": "1E5D0-1E5FF"
2133
+ },
2134
+ [
2135
+ _("Ol_Onal")
2136
+ ]
2137
+ ],
2025
2138
  [
2026
2139
  "li",
2027
2140
  {
@@ -2046,7 +2159,26 @@ function unicodeScripts (_) {
2046
2159
  "title": "11180-111DF"
2047
2160
  },
2048
2161
  [
2049
- _("Sharada")
2162
+ _("Sharada"),
2163
+ [
2164
+ "ul",
2165
+ [
2166
+ [
2167
+ "li",
2168
+ {
2169
+ "title": "11B60-11B7F"
2170
+ },
2171
+ [
2172
+ [
2173
+ "i",
2174
+ [
2175
+ _("Sharada_Supplement")
2176
+ ]
2177
+ ]
2178
+ ]
2179
+ ]
2180
+ ]
2181
+ ]
2050
2182
  ]
2051
2183
  ],
2052
2184
  [
@@ -2095,6 +2227,15 @@ function unicodeScripts (_) {
2095
2227
  _("Sora_Sompeng")
2096
2228
  ]
2097
2229
  ],
2230
+ [
2231
+ "li",
2232
+ {
2233
+ "title": "11BC0-11BFF"
2234
+ },
2235
+ [
2236
+ _("Sunuwar")
2237
+ ]
2238
+ ],
2098
2239
  [
2099
2240
  "li",
2100
2241
  {
@@ -2168,6 +2309,15 @@ function unicodeScripts (_) {
2168
2309
  _("Tirhuta")
2169
2310
  ]
2170
2311
  ],
2312
+ [
2313
+ "li",
2314
+ {
2315
+ "title": "11DB0-11DEF"
2316
+ },
2317
+ [
2318
+ _("Tolong_Siki")
2319
+ ]
2320
+ ],
2171
2321
  [
2172
2322
  "li",
2173
2323
  {
@@ -2177,6 +2327,15 @@ function unicodeScripts (_) {
2177
2327
  _("Toto")
2178
2328
  ]
2179
2329
  ],
2330
+ [
2331
+ "li",
2332
+ {
2333
+ "title": "11380–113FF"
2334
+ },
2335
+ [
2336
+ _("Tulu_Tigalari")
2337
+ ]
2338
+ ],
2180
2339
  [
2181
2340
  "li",
2182
2341
  {
@@ -2321,6 +2480,20 @@ function unicodeScripts (_) {
2321
2480
  ]
2322
2481
  ]
2323
2482
  ]
2483
+ ],
2484
+ [
2485
+ "li",
2486
+ {
2487
+ "title": "116D0-116FF"
2488
+ },
2489
+ [
2490
+ [
2491
+ "i",
2492
+ [
2493
+ _("Myanmar_Extended_C")
2494
+ ]
2495
+ ]
2496
+ ]
2324
2497
  ]
2325
2498
  ]
2326
2499
  ]
@@ -2389,6 +2562,15 @@ function unicodeScripts (_) {
2389
2562
  _("Tai_Viet")
2390
2563
  ]
2391
2564
  ],
2565
+ [
2566
+ "li",
2567
+ {
2568
+ "title": "1E6C0-1E6FF"
2569
+ },
2570
+ [
2571
+ _("Tai_Yo")
2572
+ ]
2573
+ ],
2392
2574
  [
2393
2575
  "li",
2394
2576
  {
@@ -2730,6 +2912,48 @@ function unicodeScripts (_) {
2730
2912
  ]
2731
2913
  ]
2732
2914
  ],
2915
+ [
2916
+ "li",
2917
+ {
2918
+ "title": "323B0–3347F"
2919
+ },
2920
+ [
2921
+ [
2922
+ "i",
2923
+ [
2924
+ _("CJK_Extension_J")
2925
+ ]
2926
+ ]
2927
+ ]
2928
+ ],
2929
+ [
2930
+ "li",
2931
+ {
2932
+ "title": ""
2933
+ },
2934
+ [
2935
+ [
2936
+ "i",
2937
+ [
2938
+ _("Full_Radical_Stroke_Index__PDF__35MB_")
2939
+ ]
2940
+ ]
2941
+ ]
2942
+ ],
2943
+ [
2944
+ "li",
2945
+ {
2946
+ "title": ""
2947
+ },
2948
+ [
2949
+ [
2950
+ "i",
2951
+ [
2952
+ _("Full_Radical_Stroke_Index__txt_")
2953
+ ]
2954
+ ]
2955
+ ]
2956
+ ],
2733
2957
  [
2734
2958
  "li",
2735
2959
  {
@@ -2739,7 +2963,7 @@ function unicodeScripts (_) {
2739
2963
  [
2740
2964
  "i",
2741
2965
  [
2742
- _("_see_also_Unihan_Database_")
2966
+ _("_see_also_Unihan_Database_Lookup_")
2743
2967
  ]
2744
2968
  ]
2745
2969
  ]
@@ -2920,6 +3144,34 @@ function unicodeScripts (_) {
2920
3144
  _("Hiragana")
2921
3145
  ]
2922
3146
  ],
3147
+ [
3148
+ "li",
3149
+ {
3150
+ "title": "18E00-1919F"
3151
+ },
3152
+ [
3153
+ _("Jurchen"),
3154
+ [
3155
+ "ul",
3156
+ [
3157
+ [
3158
+ "li",
3159
+ {
3160
+ "title": "191A0-191DF"
3161
+ },
3162
+ [
3163
+ [
3164
+ "i",
3165
+ [
3166
+ _("Jurchen_Radicals")
3167
+ ]
3168
+ ]
3169
+ ]
3170
+ ]
3171
+ ]
3172
+ ]
3173
+ ]
3174
+ ],
2923
3175
  [
2924
3176
  "li",
2925
3177
  {
@@ -3062,6 +3314,15 @@ function unicodeScripts (_) {
3062
3314
  _("Nushu")
3063
3315
  ]
3064
3316
  ],
3317
+ [
3318
+ "li",
3319
+ {
3320
+ "title": "3D000-3FC3F"
3321
+ },
3322
+ [
3323
+ _("Small_Seal")
3324
+ ]
3325
+ ],
3065
3326
  [
3066
3327
  "li",
3067
3328
  {
@@ -3089,7 +3350,7 @@ function unicodeScripts (_) {
3089
3350
  [
3090
3351
  "li",
3091
3352
  {
3092
- "title": "18D00–18D08"
3353
+ "title": "18D00–18D7F"
3093
3354
  },
3094
3355
  [
3095
3356
  [
@@ -3099,6 +3360,20 @@ function unicodeScripts (_) {
3099
3360
  ]
3100
3361
  ]
3101
3362
  ]
3363
+ ],
3364
+ [
3365
+ "li",
3366
+ {
3367
+ "title": "18D80–18DFF"
3368
+ },
3369
+ [
3370
+ [
3371
+ "i",
3372
+ [
3373
+ _("Tangut_Components_Supplement")
3374
+ ]
3375
+ ]
3376
+ ]
3102
3377
  ]
3103
3378
  ]
3104
3379
  ]
@@ -3296,6 +3571,20 @@ function unicodeScripts (_) {
3296
3571
  [
3297
3572
  "ul",
3298
3573
  [
3574
+ [
3575
+ "li",
3576
+ {
3577
+ "title": "1D250-1D28F"
3578
+ },
3579
+ [
3580
+ [
3581
+ "i",
3582
+ [
3583
+ _("Musical_Symbols_Supplement")
3584
+ ]
3585
+ ]
3586
+ ]
3587
+ ],
3299
3588
  [
3300
3589
  "li",
3301
3590
  {
@@ -3844,7 +4133,26 @@ function unicodeScripts (_) {
3844
4133
  "title": "12400-1247F"
3845
4134
  },
3846
4135
  [
3847
- _("Cuneiform_Numbers_and_Punctuation")
4136
+ _("Cuneiform_Numbers_and_Punctuation"),
4137
+ [
4138
+ "ul",
4139
+ [
4140
+ [
4141
+ "li",
4142
+ {
4143
+ "title": "12550-1268F"
4144
+ },
4145
+ [
4146
+ [
4147
+ "i",
4148
+ [
4149
+ _("Archaic_Cuneiform_Numbers")
4150
+ ]
4151
+ ]
4152
+ ]
4153
+ ]
4154
+ ]
4155
+ ]
3848
4156
  ]
3849
4157
  ],
3850
4158
  [
@@ -4014,6 +4322,20 @@ function unicodeScripts (_) {
4014
4322
  ]
4015
4323
  ]
4016
4324
  ]
4325
+ ],
4326
+ [
4327
+ "li",
4328
+ {
4329
+ "title": "1DB00-1DBFF"
4330
+ },
4331
+ [
4332
+ [
4333
+ "i",
4334
+ [
4335
+ _("Miscellaneous_Symbols_and_Arrows_Extended")
4336
+ ]
4337
+ ]
4338
+ ]
4017
4339
  ]
4018
4340
  ]
4019
4341
  ]
@@ -4563,7 +4885,40 @@ function unicodeScripts (_) {
4563
4885
  "title": "2B00-2BFF"
4564
4886
  },
4565
4887
  [
4566
- _("Miscellaneous_Symbols_and_Arrows")
4888
+ _("Miscellaneous_Symbols_and_Arrows"),
4889
+ [
4890
+ "ul",
4891
+ [
4892
+ [
4893
+ "li",
4894
+ {
4895
+ "title": "1CEC0-1CEFF"
4896
+ },
4897
+ [
4898
+ [
4899
+ "i",
4900
+ [
4901
+ _("Miscellaneous_Symbols_Supplement")
4902
+ ]
4903
+ ]
4904
+ ]
4905
+ ],
4906
+ [
4907
+ "li",
4908
+ {
4909
+ "title": "1DB00-1DBFF"
4910
+ },
4911
+ [
4912
+ [
4913
+ "i",
4914
+ [
4915
+ _("Miscellaneous_Symbols_and_Arrows_Extended")
4916
+ ]
4917
+ ]
4918
+ ]
4919
+ ]
4920
+ ]
4921
+ ]
4567
4922
  ]
4568
4923
  ],
4569
4924
  [
@@ -4572,7 +4927,26 @@ function unicodeScripts (_) {
4572
4927
  "title": "1FB00–1FBFF"
4573
4928
  },
4574
4929
  [
4575
- _("Symbols_for_Legacy_Computing")
4930
+ _("Symbols_for_Legacy_Computing"),
4931
+ [
4932
+ "ul",
4933
+ [
4934
+ [
4935
+ "li",
4936
+ {
4937
+ "title": "1CC00-1CEBF"
4938
+ },
4939
+ [
4940
+ [
4941
+ "i",
4942
+ [
4943
+ _("Symbols_for_Legacy_Computing_Supplement")
4944
+ ]
4945
+ ]
4946
+ ]
4947
+ ]
4948
+ ]
4949
+ ]
4576
4950
  ]
4577
4951
  ],
4578
4952
  [
@@ -1,11 +1,11 @@
1
1
  import {getHangulName} from './hangul.js';
2
2
 
3
3
  /**
4
- * @param {PlainObject} cfg
4
+ * @param {object} cfg
5
5
  * @param {string} cfg.khextemp
6
- * @param {import('intl-dom').I18NCallback} cfg._
6
+ * @param {import('intl-dom').I18NCallback<string>} cfg._
7
7
  * @returns {{
8
- * unihanType: boolean, hangul: boolean, cjkText: string,
8
+ * unihanType: boolean, hangul: boolean, cjkText: string|undefined,
9
9
  * searchValue: string
10
10
  * }}
11
11
  */
@@ -69,6 +69,7 @@ function getCJKTypeFromHexString ({khextemp, _}) {
69
69
  // pattern = new RegExp('^' + khextemp + ';([^;]*);', 'm');
70
70
  // file = 'UnicodeData.txt';
71
71
 
72
+ /** @type {string|boolean} */
72
73
  let search = false;
73
74
  let cjkText;
74
75
 
@@ -3,15 +3,20 @@ import {UnihanDatabase} from './charrefunicodeDb.js';
3
3
  // import {getText} from '../utils/FetchUtils.js';
4
4
  // const unihanPath = `/download/unihan/unihan.json`;
5
5
 
6
+ /* eslint-disable jsdoc/reject-any-type -- Arbitrary */
6
7
  /**
7
- * @param {JSON} updateUnicodeData
8
+ * @typedef {any} AnyValue
9
+ */
10
+ /* eslint-enable jsdoc/reject-any-type -- Arbitrary */
11
+
12
+ /**
13
+ * @param {AnyValue} updateUnicodeData
8
14
  * @returns {Promise<UnihanDatabase>}
9
15
  */
10
16
  async function unihanDbPopulate (updateUnicodeData) {
11
17
  const namespace = 'unicode-input-toolconverter-Unihan';
12
18
  await indexedDB.deleteDatabase(namespace);
13
19
  const unihanDatabase = new UnihanDatabase({
14
- name: namespace,
15
20
  // We don't peg to package major version as database version may vary
16
21
  // independently
17
22
  version: 1