Update unicode dataset version to 16.0 (#2498)
This commit is contained in:
parent
d319ad2c28
commit
1ddbccc98c
7 changed files with 410 additions and 96 deletions
489
package-lock.json
generated
489
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -8,6 +8,6 @@
|
|||
"dependencies": {
|
||||
"@iarna/toml": "^2.2.5",
|
||||
"@iosevka/param": "31.6.1",
|
||||
"@unicode/unicode-15.1.0": "^1.5.2"
|
||||
"@unicode/unicode-16.0.0": "^1.0.0"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
"dependencies": {
|
||||
"@iarna/toml": "^2.2.5",
|
||||
"@iosevka/param": "31.6.1",
|
||||
"@unicode/unicode-15.1.0": "^1.5.2",
|
||||
"@unicode/unicode-16.0.0": "^1.0.0",
|
||||
"cldr": "^7.5.0"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,16 +1,15 @@
|
|||
import UnicodeDataIndex from "@unicode/unicode-15.1.0";
|
||||
import UnicodeDataIndex from "@unicode/unicode-16.0.0";
|
||||
|
||||
export async function collectBlockData() {
|
||||
const BlockData = [
|
||||
[[0xe0a0, 0xe0df], "Private Use Area — Powerline"],
|
||||
[[0xee00, 0xee0f], "Private Use Area — Progress Bar"],
|
||||
[[0xef10, 0xef1f], "Private Use Area — Iosevka Private Dingbats"],
|
||||
[[0x1cc00, 0x1ceaf], "Symbols for Legacy Computing Supplement (Proposed)"],
|
||||
];
|
||||
|
||||
for (const id of UnicodeDataIndex.Block) {
|
||||
if (!id || /Private_Use_Area/.test(id) || /undefined/.test(id)) continue;
|
||||
const rangesModule = await import(`@unicode/unicode-15.1.0/Block/${id}/ranges.js`);
|
||||
const rangesModule = await import(`@unicode/unicode-16.0.0/Block/${id}/ranges.js`);
|
||||
const rg = rangesModule.default;
|
||||
BlockData.push([[rg[0].begin, rg[0].end - 1], id.replace(/_/g, " ")]);
|
||||
}
|
||||
|
|
|
@ -2,8 +2,8 @@ import fs from "fs";
|
|||
import path from "path";
|
||||
import url from "url";
|
||||
|
||||
import ugc from "@unicode/unicode-15.1.0/General_Category/index.js";
|
||||
import ucdNames from "@unicode/unicode-15.1.0/Names/index.js";
|
||||
import ugc from "@unicode/unicode-16.0.0/General_Category/index.js";
|
||||
import ucdNames from "@unicode/unicode-16.0.0/Names/index.js";
|
||||
|
||||
const __dirname = url.fileURLToPath(new URL(".", import.meta.url));
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
"use strict";
|
||||
|
||||
import ucdNames from "@unicode/unicode-15.1.0/Names/index.js";
|
||||
import ucdNames from "@unicode/unicode-16.0.0/Names/index.js";
|
||||
|
||||
const codes = process.argv
|
||||
.slice(2)
|
||||
|
|
|
@ -70,7 +70,7 @@ class InUnicodeDataSet {
|
|||
|
||||
async load() {
|
||||
if (this.dataset) return;
|
||||
const d = (await import(`@unicode/unicode-15.1.0/${this.subpath}/code-points.js`)).default;
|
||||
const d = (await import(`@unicode/unicode-16.0.0/${this.subpath}/code-points.js`)).default;
|
||||
this.dataset = new Set(d);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue