Iosevka/utility/export-data/coverage-export/block-data.mjs
John McWilliams 6ab33a385a
* Add Characters (#1701)
- NEUTRAL FACE (`U+1F610`).
- FACE WITHOUT MOUTH (`U+1F636`).
- SLIGHTLY FROWNING FACE (`U+1F641`).
- SLIGHTLY SMILING FACE (`U+1F642`).
- UPSIDE-DOWN FACE (`U+1F643`).
2023-05-03 11:29:39 -07:00

24 lines
954 B
JavaScript

import UnicodeDataIndex from "@unicode/unicode-15.0.0";
export async function collectBlockData() {
const BlockData = [
[[0xe0a0, 0xe0df], "Private Use Area — Powerline"],
[[0xee00, 0xee3f], "Private Use Area — Progress Bar"],
// Missing ranges in UnicodeDataIndex
[[0x10780, 0x107bf], "Latin Extended-F"],
[[0x1df00, 0x1dfff], "Latin Extended-G"],
[[0x1e030, 0x1e08f], "Cyrillic Extended-D"],
[[0x1f600, 0x1f64f], "Emoticons"],
[[0x1fa70, 0x1faff], "Symbols and Pictographs Extended-A"],
[[0x1fb00, 0x1fbff], "Symbols for Legacy Computing"]
];
for (const id of UnicodeDataIndex.Block) {
if (!id || /Private_Use_Area/.test(id) || /undefined/.test(id)) continue;
const rangesModule = await import(`@unicode/unicode-15.0.0/Block/${id}/ranges.js`);
const rg = rangesModule.default;
BlockData.push([[rg[0].begin, rg[0].end - 1], id.replace(/_/g, " ")]);
}
BlockData.sort((a, b) => a[0][0] - b[0][0]);
return BlockData;
}