@pixldocs/canvas-renderer 0.5.106 → 0.5.107
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/dist/index.cjs +7 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -15927,8 +15927,15 @@ function isBasicLatinOrLatin1(char) {
|
|
|
15927
15927
|
const c = char.codePointAt(0) ?? 0;
|
|
15928
15928
|
return c <= 591;
|
|
15929
15929
|
}
|
|
15930
|
+
function isCommonLatinPunctuation(char) {
|
|
15931
|
+
const c = char.codePointAt(0) ?? 0;
|
|
15932
|
+
if (c >= 8208 && c <= 8265) return true;
|
|
15933
|
+
if (c === 8467 || c === 8482) return true;
|
|
15934
|
+
return false;
|
|
15935
|
+
}
|
|
15930
15936
|
function classifyChar(char) {
|
|
15931
15937
|
if (isBasicLatinOrLatin1(char)) return "main";
|
|
15938
|
+
if (isCommonLatinPunctuation(char)) return "main";
|
|
15932
15939
|
if (isDevanagari(char)) return "devanagari";
|
|
15933
15940
|
return "symbol";
|
|
15934
15941
|
}
|