@sushichan044/kg-core 0.9.5 → 0.10.1
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 +100 -25
- package/dist/index.d.mts +19785 -6601
- package/dist/index.mjs +2 -2
- package/dist/lint.mjs +1 -1
- package/dist/novel-composer-D_orH6ET.mjs +3393 -0
- package/dist/plugin.d.mts +130 -2
- package/dist/plugin.mjs +29 -3
- package/dist/{novel-composer-DhycV9B3.d.mts → presentation-kind-BwIZFSZS.d.mts} +5964 -2705
- package/dist/{question-or-exclamation-spacing-1tnZ4CLb.mjs → question-or-exclamation-spacing-Cp3eOGlA.mjs} +5 -1
- package/package.json +5 -5
- package/dist/novel-composer-BC8W63vw.mjs +0 -2343
|
@@ -195,6 +195,10 @@ function characterClass(characters) {
|
|
|
195
195
|
* neutral.
|
|
196
196
|
*/
|
|
197
197
|
const DIVIDING_PUNCTUATION = "!?‼⁇⁈⁉";
|
|
198
|
+
/**
|
|
199
|
+
* The marks a short run of which is set as one tate-chu-yoko cell, `!?` reading as `⁉`.
|
|
200
|
+
*/
|
|
201
|
+
const TATE_CHU_YOKO_MARKS = "!?!?";
|
|
198
202
|
//#endregion
|
|
199
203
|
//#region src/internal/japanese-spaces.ts
|
|
200
204
|
const LEADING_SPACES = /^[ \t]+/u;
|
|
@@ -255,4 +259,4 @@ function questionOrExclamationSpacings(line) {
|
|
|
255
259
|
return [...line.matchAll(MARKS)].map((marks) => analyzeMatch(line, marks)).filter((spacing) => spacing !== void 0);
|
|
256
260
|
}
|
|
257
261
|
//#endregion
|
|
258
|
-
export {
|
|
262
|
+
export { readonlyArray as _, CLOSING_BRACKETS as a, graphemeSegmenter as c, ManuscriptDiagnostic as d, DiagnosticSeverity as f, nonNegativeInteger as g, TextRange as h, TATE_CHU_YOKO_MARKS as i, ValidationIssue as l, ManuscriptRange as m, leadingSpaces as n, OPENING_BRACKETS as o, NamespacedId as p, DIVIDING_PUNCTUATION as r, characterClass as s, questionOrExclamationSpacings as t, ManuscriptResult as u, readonlyObject as v };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sushichan044/kg-core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.1",
|
|
4
4
|
"description": "Framework-independent parsing, composition, and proofreading for Japanese manuscripts",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"japanese",
|
|
@@ -52,15 +52,15 @@
|
|
|
52
52
|
"registry": "https://registry.npmjs.org/"
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"get-east-asian-width": "^1.
|
|
56
|
-
"valibot": "1.
|
|
55
|
+
"get-east-asian-width": "^1.7.0",
|
|
56
|
+
"valibot": "1.5.0"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@arethetypeswrong/core": "0.18.5",
|
|
60
|
-
"publint": "0.3.
|
|
60
|
+
"publint": "0.3.25",
|
|
61
61
|
"typescript": "7.0.2",
|
|
62
62
|
"unplugin-unused": "0.6.0",
|
|
63
|
-
"vite-plus": "
|
|
63
|
+
"vite-plus": "1.1.0"
|
|
64
64
|
},
|
|
65
65
|
"engines": {
|
|
66
66
|
"node": ">=22.12.0"
|