@sushichan044/kg-core 0.5.0 → 0.6.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 +7 -2
- package/dist/index.d.mts +253 -257
- package/dist/index.mjs +66 -35
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -94,8 +94,8 @@ or recalculate locations.
|
|
|
94
94
|
`createDefaultProofreadingRules()` returns the rules whose answer does not
|
|
95
95
|
depend on the work: how a paragraph opens and how far it is indented,
|
|
96
96
|
punctuation before a closing bracket, spacing after `!` and `?`, ellipsis and
|
|
97
|
-
dash forms and counts, repeated punctuation
|
|
98
|
-
|
|
97
|
+
dash forms and counts, repeated punctuation and interpuncts, a minus sign that
|
|
98
|
+
no number follows, halfwidth Japanese punctuation, Arabic
|
|
99
99
|
numeral length, and Unicode variation sequences.
|
|
100
100
|
|
|
101
101
|
Rules that depend on the work's own conventions are exported individually and
|
|
@@ -122,6 +122,11 @@ const rules = [
|
|
|
122
122
|
kana pairs; like every configurable rule it returns a `ManuscriptResult` and
|
|
123
123
|
fails with `InvalidRuleOptions` rather than dropping bad options.
|
|
124
124
|
|
|
125
|
+
`dashRule()` prefers `―` (U+2015). Use `createDashRule({ preferred: "—" })` or
|
|
126
|
+
`createDashRule({ preferred: "─" })` when a work uses U+2014 or U+2500 instead.
|
|
127
|
+
The selected character must appear in even-length runs. Repeated choonpu (`ー`)
|
|
128
|
+
are not treated as dashes.
|
|
129
|
+
|
|
125
130
|
Diagnostics do not modify the source and do not contain automatic fixes.
|
|
126
131
|
|
|
127
132
|
## Browser support
|