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