Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update unicode dataset version to 16.0 #2498

Merged
merged 1 commit into from
Sep 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
489 changes: 402 additions & 87 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion tools/amend-readme/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
2 changes: 1 addition & 1 deletion tools/data-export/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
5 changes: 2 additions & 3 deletions tools/data-export/src/coverage-export/block-data.mjs
Original file line number Diff line number Diff line change
@@ -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, " ")]);
}
Expand Down
4 changes: 2 additions & 2 deletions tools/data-export/src/coverage-export/char-data.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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));

Expand Down
2 changes: 1 addition & 1 deletion tools/misc/src/copy-char-name-to-markdown.mjs
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
2 changes: 1 addition & 1 deletion tools/misc/src/generate-ttfa-ranges.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down
Loading