unicode-input-toolconverter 0.2.0 → 0.2.3
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.
- package/.nyc_output/out.json +8980 -1849
- package/CHANGES.md +15 -1
- package/README.md +6 -11
- package/_locales/en-US/messages.json +153 -6
- package/_locales/hu-HU/messages.json +153 -6
- package/_locales/pt-BR/messages.json +153 -6
- package/_locales/sv-SE/messages.json +153 -6
- package/babel.config.json +0 -1
- package/browser_action/characterSelection.js +18 -11
- package/browser_action/charrefConverters.js +286 -79
- package/browser_action/chartBuild.js +97 -27
- package/browser_action/encodingBehaviors.js +10 -7
- package/browser_action/entityBehaviors.js +42 -16
- package/browser_action/index-es.html +13 -1
- package/browser_action/index-instrumented.html +13 -1
- package/browser_action/index-pages.html +13 -1
- package/browser_action/index.html +13 -1
- package/browser_action/index.iife.min.js +9 -1
- package/browser_action/index.iife.min.js.map +1 -1
- package/browser_action/index.instrumented.iife.min.js +1 -1
- package/browser_action/index.instrumented.iife.min.js.map +1 -1
- package/browser_action/index.js +5 -5
- package/browser_action/preferences/prefDefaults.js +12 -3
- package/browser_action/service-worker/sw-activateCallback.js +1 -2
- package/browser_action/service-worker/sw-resources.json +6 -4
- package/browser_action/templateUtils/elements.js +12 -1
- package/browser_action/templateUtils/fill.js +6 -0
- package/browser_action/templateUtils/validation.js +4 -1
- package/browser_action/templates/chartBuild.js +167 -102
- package/browser_action/templates/index.js +227 -53
- package/browser_action/templatesElementCustomization/widgets.js +40 -15
- package/browser_action/unicode/UnicodeConverter.js +99 -73
- package/browser_action/unicode/charrefunicodeDb.js +100 -50
- package/browser_action/unicode/getScriptInfoForCodePoint.js +13 -4
- package/browser_action/unicode/hangul.js +27 -20
- package/browser_action/unicode/lastScriptNames.json +1 -1
- package/browser_action/unicode/parseUnihanFromTextFileStrings.js +44 -25
- package/browser_action/unicode/unicodeFieldInfo.js +112 -90
- package/browser_action/unicode/unicodeScripts.js +409 -35
- package/browser_action/unicode/unihan.js +4 -3
- package/browser_action/unicode/unihanDbPopulate.js +7 -2
- package/browser_action/unicode/unihanFields.js +34 -0
- package/browser_action/unicodecharref.js +353 -190
- package/browser_action/utils/DOMUtils.js +95 -34
- package/browser_action/utils/FetchUtils.js +7 -6
- package/browser_action/utils/TextUtils.js +4 -4
- package/browser_action/utils/TypedArrayUtils.js +9 -5
- package/browser_action/utils/semicolonSeparatedToArray.js +3 -3
- package/browser_action/utils/setupServiceWorker.js +2 -2
- package/eslint.config.js +11 -0
- package/icons/openWindow16.png +0 -0
- package/icons/openWindow24.png +0 -0
- package/lib/background.html +7 -0
- package/lib/background.js +2 -2
- package/package.json +80 -70
- package/pnpm-workspace.yaml +8 -0
- package/server.js +66 -51
- package/sw.js +97 -56
- package/tools/entities-import.js +4 -1
- package/tools/findEsResources.js +33 -10
- package/tools/fix-sw-resources-vendor-paths.js +60 -0
- package/tools/list-locales.js +2 -2
- package/tools/parseUnicodeCharts.js +126 -60
- package/tools/ucd-import.js +1 -10
- package/tools/unicode-charts.html +49 -20
- package/tools/unihan-import.js +45 -15
- package/tools/write-sw-version.js +16 -0
- package/tsconfig.json +23 -0
- package/typings/__coverage__.d.ts +5 -0
- package/typings/apple-system-profiler.d.ts +17 -0
- package/typings/commands.d.ts +19 -0
- package/typings/json-6.d.ts +4 -0
- package/typings/rollup-plugin-istanbul.d.ts +3 -0
- package/vendor/camelcase/index.d.ts +154 -0
- package/vendor/camelcase/index.js +137 -23
- package/vendor/fflate/esm/browser.d.ts +1539 -0
- package/vendor/fflate/esm/browser.js +82 -55
- package/vendor/intl-dom/dist/Formatter.d.ts +120 -0
- package/vendor/intl-dom/dist/Formatter.d.ts.map +1 -0
- package/vendor/intl-dom/dist/collation.d.ts +42 -0
- package/vendor/intl-dom/dist/collation.d.ts.map +1 -0
- package/vendor/intl-dom/dist/defaultAllSubstitutions.d.ts +52 -0
- package/vendor/intl-dom/dist/defaultAllSubstitutions.d.ts.map +1 -0
- package/vendor/intl-dom/dist/defaultInsertNodes.d.ts +96 -0
- package/vendor/intl-dom/dist/defaultInsertNodes.d.ts.map +1 -0
- package/vendor/intl-dom/dist/defaultKeyCheckerConverter.d.ts +17 -0
- package/vendor/intl-dom/dist/defaultKeyCheckerConverter.d.ts.map +1 -0
- package/vendor/intl-dom/dist/defaultLocaleResolver.d.ts +285 -0
- package/vendor/intl-dom/dist/defaultLocaleResolver.d.ts.map +1 -0
- package/vendor/intl-dom/dist/findLocaleStrings.d.ts +88 -0
- package/vendor/intl-dom/dist/findLocaleStrings.d.ts.map +1 -0
- package/vendor/intl-dom/dist/getDOMForLocaleString.d.ts +67 -0
- package/vendor/intl-dom/dist/getDOMForLocaleString.d.ts.map +1 -0
- package/vendor/intl-dom/dist/getMessageForKeyByStyle.d.ts +73 -0
- package/vendor/intl-dom/dist/getMessageForKeyByStyle.d.ts.map +1 -0
- package/vendor/intl-dom/dist/getStringFromMessageAndDefaults.d.ts +26 -0
- package/vendor/intl-dom/dist/getStringFromMessageAndDefaults.d.ts.map +1 -0
- package/vendor/intl-dom/dist/i18n.d.ts +113 -0
- package/vendor/intl-dom/dist/i18n.d.ts.map +1 -0
- package/vendor/intl-dom/dist/index.d.ts +92 -0
- package/vendor/intl-dom/dist/index.d.ts.map +1 -0
- package/vendor/intl-dom/dist/index.esm.d.ts +34 -0
- package/vendor/intl-dom/dist/index.esm.js +854 -896
- package/vendor/intl-dom/dist/index.esm.min.js +4 -0
- package/vendor/intl-dom/dist/index.esm.min.js.map +1 -0
- package/vendor/intl-dom/dist/index.umd.js +2953 -0
- package/vendor/intl-dom/dist/index.umd.min.js +4 -0
- package/vendor/intl-dom/dist/index.umd.min.js.map +1 -0
- package/vendor/intl-dom/dist/promiseChainForValues.d.ts +34 -0
- package/vendor/intl-dom/dist/promiseChainForValues.d.ts.map +1 -0
- package/vendor/intl-dom/dist/shared.d.ts +20 -0
- package/vendor/intl-dom/dist/shared.d.ts.map +1 -0
- package/vendor/intl-dom/dist/utils.d.ts +53 -0
- package/vendor/intl-dom/dist/utils.d.ts.map +1 -0
- package/vendor/jamilih/dist/jml.d.mts +468 -0
- package/vendor/jamilih/dist/{jml-es.js → jml.mjs} +1489 -343
- package/vendor/jquery/dist/jquery.js +1677 -2713
- package/vendor/json-6/dist/index.mjs +2 -0
- package/vendor/miller-columns/CHANGES.md +185 -0
- package/vendor/miller-columns/LICENSE-MIT.txt +21 -0
- package/vendor/miller-columns/README.md +249 -0
- package/vendor/miller-columns/demos/index.html +69 -0
- package/vendor/miller-columns/demos/index.js +72 -0
- package/vendor/miller-columns/dist/index-es.js +748 -0
- package/vendor/miller-columns/dist/index-es.min.d.ts +25 -0
- package/vendor/miller-columns/dist/index-es.min.js +7 -1
- package/vendor/miller-columns/dist/index-umd.js +757 -0
- package/vendor/miller-columns/dist/index-umd.min.js +7 -0
- package/vendor/miller-columns/dist/index.d.ts +25 -0
- package/vendor/miller-columns/dist/millerColumns.d.ts +10 -0
- package/vendor/miller-columns/eslint.config.js +46 -0
- package/vendor/miller-columns/fix-declarations.js +18 -0
- package/vendor/miller-columns/miller-columns.css +24 -1
- package/vendor/miller-columns/package.json +73 -0
- package/vendor/miller-columns/pnpm-workspace.yaml +2 -0
- package/vendor/miller-columns/src/index.js +642 -0
- package/vendor/miller-columns/src/millerColumns.ts +12 -0
- package/vendor/miller-columns/tsconfig-prod.json +23 -0
- package/vendor/miller-columns/tsconfig.json +21 -0
- package/vendor/simple-prefs/dist/index.esm.d.ts +1 -0
- package/vendor/simple-prefs/dist/index.esm.js +164 -216
- package/vendor/simple-prefs/dist/simple-prefs.d.ts +117 -0
- package/lgtm.yml +0 -5
|
@@ -1475,9 +1475,6 @@
|
|
|
1475
1475
|
"Tifinagh": {
|
|
1476
1476
|
"message": "Tifinagh"
|
|
1477
1477
|
},
|
|
1478
|
-
"Middle_Eastern_Scripts": {
|
|
1479
|
-
"message": "Mellanösterns skrivtecken"
|
|
1480
|
-
},
|
|
1481
1478
|
"Arabic": {
|
|
1482
1479
|
"message": "Arabiska"
|
|
1483
1480
|
},
|
|
@@ -1616,9 +1613,6 @@
|
|
|
1616
1613
|
"Kanbun": {
|
|
1617
1614
|
"message": "Kanbun"
|
|
1618
1615
|
},
|
|
1619
|
-
"_see_also_Unihan_Database_": {
|
|
1620
|
-
"message": "(Se även Unihan-databasen)"
|
|
1621
|
-
},
|
|
1622
1616
|
"CJK_Strokes": {
|
|
1623
1617
|
"message": "CJK-streck"
|
|
1624
1618
|
},
|
|
@@ -3121,6 +3115,159 @@
|
|
|
3121
3115
|
},
|
|
3122
3116
|
"CJK_Extension_I": {
|
|
3123
3117
|
"message": "CJK Extension I"
|
|
3118
|
+
},
|
|
3119
|
+
"Todhri": {
|
|
3120
|
+
"message": "Todhri"
|
|
3121
|
+
},
|
|
3122
|
+
"Egyptian_Hieroglyphs_Extended_A": {
|
|
3123
|
+
"message": "Egyptian Hieroglyphs Extended-A"
|
|
3124
|
+
},
|
|
3125
|
+
"Garay": {
|
|
3126
|
+
"message": "Garay"
|
|
3127
|
+
},
|
|
3128
|
+
"Gurung_Khema": {
|
|
3129
|
+
"message": "Gurung Khema"
|
|
3130
|
+
},
|
|
3131
|
+
"Kirat_Rai": {
|
|
3132
|
+
"message": "Kirat Rai"
|
|
3133
|
+
},
|
|
3134
|
+
"Ol_Onal": {
|
|
3135
|
+
"message": "Ol Onal"
|
|
3136
|
+
},
|
|
3137
|
+
"Sunuwar": {
|
|
3138
|
+
"message": "Sunuwar"
|
|
3139
|
+
},
|
|
3140
|
+
"Tulu_Tigalari": {
|
|
3141
|
+
"message": "Tulu-Tigalari"
|
|
3142
|
+
},
|
|
3143
|
+
"Myanmar_Extended_C": {
|
|
3144
|
+
"message": "Myanmar Extended-C"
|
|
3145
|
+
},
|
|
3146
|
+
"Symbols_for_Legacy_Computing_Supplement": {
|
|
3147
|
+
"message": "Symbols for Legacy Computing Supplement"
|
|
3148
|
+
},
|
|
3149
|
+
"Beria_Erfe": {
|
|
3150
|
+
"message": "Beria Erfe"
|
|
3151
|
+
},
|
|
3152
|
+
"West_Asian_Scripts": {
|
|
3153
|
+
"message": "West Asian Scripts"
|
|
3154
|
+
},
|
|
3155
|
+
"Sidetic": {
|
|
3156
|
+
"message": "Sidetic"
|
|
3157
|
+
},
|
|
3158
|
+
"Sharada_Supplement": {
|
|
3159
|
+
"message": "Sharada Supplement"
|
|
3160
|
+
},
|
|
3161
|
+
"Tolong_Siki": {
|
|
3162
|
+
"message": "Tolong Siki"
|
|
3163
|
+
},
|
|
3164
|
+
"Tai_Yo": {
|
|
3165
|
+
"message": "Tai Yo"
|
|
3166
|
+
},
|
|
3167
|
+
"CJK_Extension_J": {
|
|
3168
|
+
"message": "CJK Extension J"
|
|
3169
|
+
},
|
|
3170
|
+
"Tangut_Components_Supplement": {
|
|
3171
|
+
"message": "Tangut Components Supplement"
|
|
3172
|
+
},
|
|
3173
|
+
"Miscellaneous_Symbols_Supplement": {
|
|
3174
|
+
"message": "Miscellaneous Symbols Supplement"
|
|
3175
|
+
},
|
|
3176
|
+
"kSMSZD2003Index": {
|
|
3177
|
+
"message": "SMSZD2003Index"
|
|
3178
|
+
},
|
|
3179
|
+
"searchkSMSZD2003Index": {
|
|
3180
|
+
"message": "SMSZD2003Index:"
|
|
3181
|
+
},
|
|
3182
|
+
"kMojiJoho": {
|
|
3183
|
+
"message": "MojiJoho"
|
|
3184
|
+
},
|
|
3185
|
+
"searchkMojiJoho": {
|
|
3186
|
+
"message": "MojiJoho:"
|
|
3187
|
+
},
|
|
3188
|
+
"kVietnameseNumeric": {
|
|
3189
|
+
"message": "VietnameseNumeric"
|
|
3190
|
+
},
|
|
3191
|
+
"searchkVietnameseNumeric": {
|
|
3192
|
+
"message": "VietnameseNumeric:"
|
|
3193
|
+
},
|
|
3194
|
+
"kZhuangNumeric": {
|
|
3195
|
+
"message": "ZhuangNumeric"
|
|
3196
|
+
},
|
|
3197
|
+
"searchkZhuangNumeric": {
|
|
3198
|
+
"message": "ZhuangNumeric:"
|
|
3199
|
+
},
|
|
3200
|
+
"kTayNumeric": {
|
|
3201
|
+
"message": "TayNumeric"
|
|
3202
|
+
},
|
|
3203
|
+
"searchkTayNumeric": {
|
|
3204
|
+
"message": "TayNumeric:"
|
|
3205
|
+
},
|
|
3206
|
+
"kJapanese": {
|
|
3207
|
+
"message": "Japanese"
|
|
3208
|
+
},
|
|
3209
|
+
"searchkJapanese": {
|
|
3210
|
+
"message": "Japanese:"
|
|
3211
|
+
},
|
|
3212
|
+
"kFanqie": {
|
|
3213
|
+
"message": "Fanqie"
|
|
3214
|
+
},
|
|
3215
|
+
"searchkFanqie": {
|
|
3216
|
+
"message": "Fanqie:"
|
|
3217
|
+
},
|
|
3218
|
+
"kSMSZD2003Readings": {
|
|
3219
|
+
"message": "SMSZD2003Readings"
|
|
3220
|
+
},
|
|
3221
|
+
"searchkSMSZD2003Readings": {
|
|
3222
|
+
"message": "SMSZD2003Readings:"
|
|
3223
|
+
},
|
|
3224
|
+
"kZhuang": {
|
|
3225
|
+
"message": "Zhuang"
|
|
3226
|
+
},
|
|
3227
|
+
"searchkZhuang": {
|
|
3228
|
+
"message": "Zhuang:"
|
|
3229
|
+
},
|
|
3230
|
+
"kJapaneseOldVariant": {
|
|
3231
|
+
"message": "JapaneseOldVariant"
|
|
3232
|
+
},
|
|
3233
|
+
"searchkJapaneseOldVariant": {
|
|
3234
|
+
"message": "JapaneseOldVariant:"
|
|
3235
|
+
},
|
|
3236
|
+
"kJapaneseNewVariant": {
|
|
3237
|
+
"message": "JapaneseNewVariant"
|
|
3238
|
+
},
|
|
3239
|
+
"searchkJapaneseNewVariant": {
|
|
3240
|
+
"message": "JapaneseNewVariant:"
|
|
3241
|
+
},
|
|
3242
|
+
"Archaic_Cuneiform_Numbers": {
|
|
3243
|
+
"message": "Archaic Cuneiform Numbers"
|
|
3244
|
+
},
|
|
3245
|
+
"Bengali_Supplement": {
|
|
3246
|
+
"message": "Bengali Supplement"
|
|
3247
|
+
},
|
|
3248
|
+
"Full_Radical_Stroke_Index__PDF__35MB_": {
|
|
3249
|
+
"message": "Full Radical-Stroke Index (PDF, 35MB)"
|
|
3250
|
+
},
|
|
3251
|
+
"Full_Radical_Stroke_Index__txt_": {
|
|
3252
|
+
"message": "Full Radical-Stroke Index (txt)"
|
|
3253
|
+
},
|
|
3254
|
+
"_see_also_Unihan_Database_Lookup_": {
|
|
3255
|
+
"message": "(see also Unihan Database Lookup)"
|
|
3256
|
+
},
|
|
3257
|
+
"Jurchen": {
|
|
3258
|
+
"message": "Jurchen"
|
|
3259
|
+
},
|
|
3260
|
+
"Jurchen_Radicals": {
|
|
3261
|
+
"message": "Jurchen Radicals"
|
|
3262
|
+
},
|
|
3263
|
+
"Small_Seal": {
|
|
3264
|
+
"message": "Small Seal"
|
|
3265
|
+
},
|
|
3266
|
+
"Musical_Symbols_Supplement": {
|
|
3267
|
+
"message": "Musical Symbols Supplement"
|
|
3268
|
+
},
|
|
3269
|
+
"Miscellaneous_Symbols_and_Arrows_Extended": {
|
|
3270
|
+
"message": "Miscellaneous Symbols and Arrows Extended"
|
|
3124
3271
|
}
|
|
3125
3272
|
}
|
|
3126
3273
|
}
|
package/babel.config.json
CHANGED
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
/* globals jQuery -- No ESM */
|
|
2
|
-
import {$} from '
|
|
2
|
+
import {$} from 'jamilih/dist/jml.js';
|
|
3
|
+
import addMillerColumnPlugin from 'miller-columns';
|
|
4
|
+
|
|
3
5
|
import {getChartBuild, chartBuild} from './chartBuild.js';
|
|
4
6
|
import unicodecharref from './unicodecharref.js';
|
|
5
7
|
import {insertIntoOrOverExisting} from './utils/TextUtils.js';
|
|
6
|
-
import addMillerColumnPlugin from
|
|
7
|
-
'../vendor/miller-columns/dist/index-es.min.js';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
|
-
* @param {
|
|
11
|
-
* @param {import('intl-dom').I18NCallback} cfg._
|
|
12
|
-
* @param {
|
|
10
|
+
* @param {object} cfg
|
|
11
|
+
* @param {import('intl-dom').I18NCallback<string>} cfg._
|
|
12
|
+
* @param {InstanceType<ReturnType<
|
|
13
|
+
* typeof import('./unicode/UnicodeConverter.js').
|
|
14
|
+
* getUnicodeConverter>>} cfg.charrefunicodeConverter
|
|
13
15
|
* @returns {Promise<void>}
|
|
14
16
|
*/
|
|
15
17
|
async function characterSelection ({
|
|
@@ -18,8 +20,10 @@ async function characterSelection ({
|
|
|
18
20
|
await getChartBuild({
|
|
19
21
|
_,
|
|
20
22
|
charrefunicodeConverter,
|
|
21
|
-
textReceptacle:
|
|
22
|
-
|
|
23
|
+
textReceptacle: /** @type {HTMLTextAreaElement|HTMLInputElement} */ (
|
|
24
|
+
$('#insertText')
|
|
25
|
+
),
|
|
26
|
+
chartContainer: /** @type {HTMLElement} */ ($('#chartContainer')),
|
|
23
27
|
// Todo: Get working
|
|
24
28
|
insertText ({textReceptacle, value}) {
|
|
25
29
|
insertIntoOrOverExisting({textReceptacle, value});
|
|
@@ -63,7 +67,8 @@ async function characterSelection ({
|
|
|
63
67
|
scroll () {
|
|
64
68
|
// Due to an overflow within an overflow, we have to also force
|
|
65
69
|
// this scroll left
|
|
66
|
-
|
|
70
|
+
/** @type {HTMLElement} */
|
|
71
|
+
($('#chart_selectchar_persist')).scrollLeft = 2000;
|
|
67
72
|
},
|
|
68
73
|
async current ($item /* , $cols */) {
|
|
69
74
|
if (!$item) { // Todo: Is this an error?
|
|
@@ -78,14 +83,16 @@ async function characterSelection ({
|
|
|
78
83
|
await unicodecharref.disableEnts();
|
|
79
84
|
|
|
80
85
|
await unicodecharref.setCurrstartset(
|
|
81
|
-
Number.parseInt(title.replace(/-.*$/
|
|
86
|
+
Number.parseInt(title.replace(/-.*$/v, ''), 16) - 1
|
|
82
87
|
);
|
|
83
88
|
// Free to use `chartBuild` now that we have passed set-up
|
|
84
89
|
await chartBuild(); // Todo: descripts?
|
|
85
90
|
await unicodecharref.resizecells();
|
|
86
91
|
}
|
|
87
92
|
});
|
|
88
|
-
|
|
93
|
+
|
|
94
|
+
/** @type {HTMLDivElement} */
|
|
95
|
+
($('div.miller-columns')).style.display = 'block';
|
|
89
96
|
}
|
|
90
97
|
|
|
91
98
|
export default characterSelection;
|