It will not be a breaking change

This commit is contained in:
be5invis 2023-08-18 22:03:54 -07:00
parent 2f5a31cf46
commit fdcde32d71
5 changed files with 492 additions and 396 deletions

View file

@ -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:
- CYRILLIC SMALL LETTER ROUNDED VE (`U+1C80`).
- CYRILLIC SMALL LETTER TALL TE (`U+1C84`) (#1911).

View file

@ -116,15 +116,21 @@ class CvTagAllocator {
class Prime {
constructor(key, cfg, ta) {
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.samplerExplain = cfg.samplerExplain;
this.isSpecial = cfg.isSpecial || false;
this.description = cfg.description || null;
this.ligatureSampler = / /.test(cfg.sampler || "");
this.descSampleText = this.ligatureSampler
? cfg.sampler.split(" ").filter(x => !!x.trim())
: [...(cfg.sampler || "")];
if (cfg.tagKind) this.tag = ta.createTag(cfg.tagKind);
this.slopeDependent = !!cfg.slopeDependent;
this.hotChars = cfg.hotChars ? [...cfg.hotChars] : this.descSampleText;

866
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -12,8 +12,8 @@
"@msgpack/msgpack": "^2.8.0",
"deep-equal": "^2.2.2",
"harfbuzzjs": "^0.3.3",
"ot-builder": "^1.6.4",
"otb-ttc-bundle": "^1.6.4",
"ot-builder": "^1.7.0",
"otb-ttc-bundle": "^1.7.0",
"semver": "^7.5.4",
"spiro": "^3.0.0",
"toposort": "^2.0.2",
@ -22,13 +22,13 @@
"wawoff2": "^2.0.1"
},
"devDependencies": {
"@unicode/unicode-15.0.0": "^1.3.1",
"@unicode/unicode-15.0.0": "^1.4.2",
"cldr": "^7.4.1",
"eslint": "^8.47.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-import": "^2.28.0",
"eslint-plugin-import": "^2.28.1",
"patel": "^0.39.0",
"prettier": "^3.0.1",
"prettier": "^3.0.2",
"verda": "^1.11.0",
"which": "^3.0.1"
},

View file

@ -4582,6 +4582,7 @@ selector."grek/xi" = "flatTop"
[prime.lower-pi]
sampler = "π"
samplerExplain = "Greek lower Pi"
nonBreakingTagForNewVariantSelector = "VXAA" # REMOVE IN NEXT MAJOR VERSION CHANGE
tagKind = "letter"
[prime.lower-pi.variants.tailless]
@ -4604,6 +4605,7 @@ selector."grek/pi" = "smallCap"
[prime.lower-tau]
sampler = "τ"
samplerExplain = "Greek lower Tau"
nonBreakingTagForNewVariantSelector = "VXAB" # REMOVE IN NEXT MAJOR VERSION CHANGE
tagKind = "letter"
[prime.lower-tau.variants.tailless]