Cleanup UCD dependencies (#701)
This commit is contained in:
parent
331878f2db
commit
b7b53c149b
3 changed files with 4 additions and 6 deletions
|
@ -1,7 +1,6 @@
|
|||
###### Automatic builds
|
||||
$$include '../../meta/macros.ptl'
|
||||
|
||||
import 'unorm' as unorm
|
||||
import [Dotless AnyDerivingCv DotlessOrNot getGrTree CvDecompose] from "../../support/gr"
|
||||
import [fallback] from '../../support/utils'
|
||||
|
||||
|
@ -88,7 +87,7 @@ glyph-block AutoBuild-Accents : begin
|
|||
local goalCodes : recursiveCodes || [range 0x0000 0xFFFF]
|
||||
foreach code goalCodes : if [not : glyphStore.queryByUnicode code] : do
|
||||
local str : String.fromCharCode code
|
||||
local nfd : fallback customDecompositions.(str) : unorm.nfd str
|
||||
local nfd : fallback customDecompositions.(str) : str.normalize 'NFD'
|
||||
if (nfd.length > 1) : begin
|
||||
local parts { }
|
||||
local allFound true
|
||||
|
|
|
@ -23,8 +23,7 @@
|
|||
"ttf2woff": "^2.0.2",
|
||||
"ttf2woff2": "^3.0.0",
|
||||
"typo-geom": "^0.11.0",
|
||||
"unicode-13.0.0": "^0.8.0",
|
||||
"unorm": "^1.6.0",
|
||||
"@unicode/unicode-13.0.0": "^1.0.0",
|
||||
"verda": "^1.1.0",
|
||||
"which": "^2.0.2"
|
||||
},
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
const blockData = require("./block-data");
|
||||
const ucdNames = require("unicode-13.0.0/Names");
|
||||
const ugc = require("unicode-13.0.0/General_Category");
|
||||
const ucdNames = require("@unicode/unicode-13.0.0/Names");
|
||||
const ugc = require("@unicode/unicode-13.0.0/General_Category");
|
||||
|
||||
module.exports = function (covUpright, covItalic, covOblique) {
|
||||
const result = [];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue