It will not be a breaking change
This commit is contained in:
parent
2f5a31cf46
commit
fdcde32d71
5 changed files with 492 additions and 396 deletions
|
@ -1,4 +1,4 @@
|
||||||
* \[**Breaking**\] Add variant selectors for lowercase Greek Pi (`π`) and Tau (`τ`) (#1924).
|
* Add variant selectors for lowercase Greek Pi (`π`) and Tau (`τ`) (#1924).
|
||||||
* Add characters:
|
* Add characters:
|
||||||
- CYRILLIC SMALL LETTER ROUNDED VE (`U+1C80`).
|
- CYRILLIC SMALL LETTER ROUNDED VE (`U+1C80`).
|
||||||
- CYRILLIC SMALL LETTER TALL TE (`U+1C84`) (#1911).
|
- CYRILLIC SMALL LETTER TALL TE (`U+1C84`) (#1911).
|
||||||
|
|
|
@ -116,15 +116,21 @@ class CvTagAllocator {
|
||||||
class Prime {
|
class Prime {
|
||||||
constructor(key, cfg, ta) {
|
constructor(key, cfg, ta) {
|
||||||
this.key = key;
|
this.key = key;
|
||||||
|
if (cfg.nonBreakingTagForNewVariantSelector) {
|
||||||
|
this.tag = cfg.nonBreakingTagForNewVariantSelector;
|
||||||
|
} else if (cfg.tagKind) {
|
||||||
|
this.tag = ta.createTag(cfg.tagKind);
|
||||||
|
}
|
||||||
this.sampler = cfg.sampler;
|
this.sampler = cfg.sampler;
|
||||||
this.samplerExplain = cfg.samplerExplain;
|
this.samplerExplain = cfg.samplerExplain;
|
||||||
|
|
||||||
this.isSpecial = cfg.isSpecial || false;
|
this.isSpecial = cfg.isSpecial || false;
|
||||||
this.description = cfg.description || null;
|
this.description = cfg.description || null;
|
||||||
this.ligatureSampler = / /.test(cfg.sampler || "");
|
this.ligatureSampler = / /.test(cfg.sampler || "");
|
||||||
this.descSampleText = this.ligatureSampler
|
this.descSampleText = this.ligatureSampler
|
||||||
? cfg.sampler.split(" ").filter(x => !!x.trim())
|
? cfg.sampler.split(" ").filter(x => !!x.trim())
|
||||||
: [...(cfg.sampler || "")];
|
: [...(cfg.sampler || "")];
|
||||||
if (cfg.tagKind) this.tag = ta.createTag(cfg.tagKind);
|
|
||||||
this.slopeDependent = !!cfg.slopeDependent;
|
this.slopeDependent = !!cfg.slopeDependent;
|
||||||
this.hotChars = cfg.hotChars ? [...cfg.hotChars] : this.descSampleText;
|
this.hotChars = cfg.hotChars ? [...cfg.hotChars] : this.descSampleText;
|
||||||
|
|
||||||
|
|
866
package-lock.json
generated
866
package-lock.json
generated
File diff suppressed because it is too large
Load diff
10
package.json
10
package.json
|
@ -12,8 +12,8 @@
|
||||||
"@msgpack/msgpack": "^2.8.0",
|
"@msgpack/msgpack": "^2.8.0",
|
||||||
"deep-equal": "^2.2.2",
|
"deep-equal": "^2.2.2",
|
||||||
"harfbuzzjs": "^0.3.3",
|
"harfbuzzjs": "^0.3.3",
|
||||||
"ot-builder": "^1.6.4",
|
"ot-builder": "^1.7.0",
|
||||||
"otb-ttc-bundle": "^1.6.4",
|
"otb-ttc-bundle": "^1.7.0",
|
||||||
"semver": "^7.5.4",
|
"semver": "^7.5.4",
|
||||||
"spiro": "^3.0.0",
|
"spiro": "^3.0.0",
|
||||||
"toposort": "^2.0.2",
|
"toposort": "^2.0.2",
|
||||||
|
@ -22,13 +22,13 @@
|
||||||
"wawoff2": "^2.0.1"
|
"wawoff2": "^2.0.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@unicode/unicode-15.0.0": "^1.3.1",
|
"@unicode/unicode-15.0.0": "^1.4.2",
|
||||||
"cldr": "^7.4.1",
|
"cldr": "^7.4.1",
|
||||||
"eslint": "^8.47.0",
|
"eslint": "^8.47.0",
|
||||||
"eslint-config-prettier": "^9.0.0",
|
"eslint-config-prettier": "^9.0.0",
|
||||||
"eslint-plugin-import": "^2.28.0",
|
"eslint-plugin-import": "^2.28.1",
|
||||||
"patel": "^0.39.0",
|
"patel": "^0.39.0",
|
||||||
"prettier": "^3.0.1",
|
"prettier": "^3.0.2",
|
||||||
"verda": "^1.11.0",
|
"verda": "^1.11.0",
|
||||||
"which": "^3.0.1"
|
"which": "^3.0.1"
|
||||||
},
|
},
|
||||||
|
|
|
@ -4582,6 +4582,7 @@ selector."grek/xi" = "flatTop"
|
||||||
[prime.lower-pi]
|
[prime.lower-pi]
|
||||||
sampler = "π"
|
sampler = "π"
|
||||||
samplerExplain = "Greek lower Pi"
|
samplerExplain = "Greek lower Pi"
|
||||||
|
nonBreakingTagForNewVariantSelector = "VXAA" # REMOVE IN NEXT MAJOR VERSION CHANGE
|
||||||
tagKind = "letter"
|
tagKind = "letter"
|
||||||
|
|
||||||
[prime.lower-pi.variants.tailless]
|
[prime.lower-pi.variants.tailless]
|
||||||
|
@ -4604,6 +4605,7 @@ selector."grek/pi" = "smallCap"
|
||||||
[prime.lower-tau]
|
[prime.lower-tau]
|
||||||
sampler = "τ"
|
sampler = "τ"
|
||||||
samplerExplain = "Greek lower Tau"
|
samplerExplain = "Greek lower Tau"
|
||||||
|
nonBreakingTagForNewVariantSelector = "VXAB" # REMOVE IN NEXT MAJOR VERSION CHANGE
|
||||||
tagKind = "letter"
|
tagKind = "letter"
|
||||||
|
|
||||||
[prime.lower-tau.variants.tailless]
|
[prime.lower-tau.variants.tailless]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue