Initial work of ESM transformation
This commit is contained in:
parent
2472c9cff2
commit
b8205a63aa
303 changed files with 1959 additions and 2450 deletions
6
utility/copy-char-name-to-markdown.mjs
Normal file
6
utility/copy-char-name-to-markdown.mjs
Normal file
|
@ -0,0 +1,6 @@
|
|||
import ucdNames from "@unicode/unicode-14.0.0/Names";
|
||||
for (let i = 2; i < process.argv.length; i++) {
|
||||
const lch = parseInt(process.argv[i], 16);
|
||||
const name = ucdNames.get(lch);
|
||||
console.log(" -", name, `(\`U+${lch.toString(16).toUpperCase().padStart(4, "0")}\`);`);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue