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
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue