@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.cjs
CHANGED
|
@@ -15946,8 +15946,15 @@ function isBasicLatinOrLatin1(char) {
|
|
|
15946
15946
|
const c = char.codePointAt(0) ?? 0;
|
|
15947
15947
|
return c <= 591;
|
|
15948
15948
|
}
|
|
15949
|
+
function isCommonLatinPunctuation(char) {
|
|
15950
|
+
const c = char.codePointAt(0) ?? 0;
|
|
15951
|
+
if (c >= 8208 && c <= 8265) return true;
|
|
15952
|
+
if (c === 8467 || c === 8482) return true;
|
|
15953
|
+
return false;
|
|
15954
|
+
}
|
|
15949
15955
|
function classifyChar(char) {
|
|
15950
15956
|
if (isBasicLatinOrLatin1(char)) return "main";
|
|
15957
|
+
if (isCommonLatinPunctuation(char)) return "main";
|
|
15951
15958
|
if (isDevanagari(char)) return "devanagari";
|
|
15952
15959
|
return "symbol";
|
|
15953
15960
|
}
|