namespace-guard 0.20.0 → 0.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -8
- package/dist/cli.js +389 -1796
- package/dist/cli.mjs +389 -1796
- package/dist/composability-vectors.js +385 -1794
- package/dist/composability-vectors.mjs +385 -1794
- package/dist/confusable-weights.d.mts +5 -3
- package/dist/confusable-weights.d.ts +5 -3
- package/dist/confusable-weights.js +807 -5035
- package/dist/confusable-weights.mjs +807 -5035
- package/dist/font-specific-weights.d.mts +4 -5
- package/dist/font-specific-weights.d.ts +4 -5
- package/dist/font-specific-weights.js +2848 -18740
- package/dist/font-specific-weights.mjs +2848 -18740
- package/dist/index.d.mts +11 -5
- package/dist/index.d.ts +11 -5
- package/dist/index.js +392 -1799
- package/dist/index.mjs +392 -1799
- package/dist/profanity-en.js +389 -1796
- package/dist/profanity-en.mjs +389 -1796
- package/package.json +1 -1
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { ConfusableWeights } from './index.mjs';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* Measured visual similarity weights for
|
|
5
|
-
* scored across 245 fonts using vector-outline raycasting (RaySpace).
|
|
4
|
+
* Measured visual similarity weights for 322 confusable pairs, from confusable-vision release 2026.09.24.
|
|
6
5
|
*
|
|
7
|
-
* Each
|
|
6
|
+
* Each pair was found alike by RaySpace at the size and baseline position the two glyphs have in running text,
|
|
7
|
+
* within one font or across fonts (a rare-script character in its fallback font against Latin in a common text
|
|
8
|
+
* font). danger and stableDanger are the share of text fonts (or font combinations) where the pair is alike, and
|
|
9
|
+
* cost is 1 minus that share. Identifier property flags describe the source character.
|
|
8
10
|
*
|
|
9
11
|
* Import from "namespace-guard/confusable-weights" to use with confusableDistance().
|
|
10
12
|
*
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { ConfusableWeights } from './index.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* Measured visual similarity weights for
|
|
5
|
-
* scored across 245 fonts using vector-outline raycasting (RaySpace).
|
|
4
|
+
* Measured visual similarity weights for 322 confusable pairs, from confusable-vision release 2026.09.24.
|
|
6
5
|
*
|
|
7
|
-
* Each
|
|
6
|
+
* Each pair was found alike by RaySpace at the size and baseline position the two glyphs have in running text,
|
|
7
|
+
* within one font or across fonts (a rare-script character in its fallback font against Latin in a common text
|
|
8
|
+
* font). danger and stableDanger are the share of text fonts (or font combinations) where the pair is alike, and
|
|
9
|
+
* cost is 1 minus that share. Identifier property flags describe the source character.
|
|
8
10
|
*
|
|
9
11
|
* Import from "namespace-guard/confusable-weights" to use with confusableDistance().
|
|
10
12
|
*
|