kordoc 3.5.3 → 3.5.4
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/{-N2SJBI4R.js → -KX7VLNW5.js} +3 -3
- package/dist/chunk-DCZVOIEO.cjs.map +1 -1
- package/dist/{chunk-GUDFEDFK.js → chunk-DK2IE43H.js} +17 -7
- package/dist/{chunk-GUDFEDFK.js.map → chunk-DK2IE43H.js.map} +1 -1
- package/dist/chunk-GS7T56RP.cjs.map +1 -1
- package/dist/{chunk-JOLDAN3Q.js → chunk-VEB43O2L.js} +2 -2
- package/dist/{chunk-3Z2RAKIL.js → chunk-WEAP42T3.js} +2 -2
- package/dist/{chunk-53XNKPN6.cjs → chunk-XZTDYOZV.cjs} +2 -2
- package/dist/chunk-XZTDYOZV.cjs.map +1 -0
- package/dist/cli.js +4 -4
- package/dist/formula-5NKVS2LR.cjs.map +1 -1
- package/dist/index.cjs +126 -116
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +16 -6
- package/dist/index.js.map +1 -1
- package/dist/mcp.js +3 -3
- package/dist/page-range-P7SDW6LR.cjs.map +1 -1
- package/dist/{parser-CK5C6FF4.cjs → parser-CPTBEGQP.cjs} +14 -14
- package/dist/parser-CPTBEGQP.cjs.map +1 -0
- package/dist/{parser-IAROZTY3.js → parser-W5TBEAVX.js} +2 -2
- package/dist/{parser-CPFIB47T.js → parser-XT65AEDJ.js} +2 -2
- package/dist/provider-G4C2V2PD.cjs.map +1 -1
- package/dist/{watch-ZYNP3QFT.js → watch-VOSNRZAY.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-53XNKPN6.cjs.map +0 -1
- package/dist/parser-CK5C6FF4.cjs.map +0 -1
- /package/dist/{-N2SJBI4R.js.map → -KX7VLNW5.js.map} +0 -0
- /package/dist/{chunk-JOLDAN3Q.js.map → chunk-VEB43O2L.js.map} +0 -0
- /package/dist/{chunk-3Z2RAKIL.js.map → chunk-WEAP42T3.js.map} +0 -0
- /package/dist/{parser-IAROZTY3.js.map → parser-W5TBEAVX.js.map} +0 -0
- /package/dist/{parser-CPFIB47T.js.map → parser-XT65AEDJ.js.map} +0 -0
- /package/dist/{watch-ZYNP3QFT.js.map → watch-VOSNRZAY.js.map} +0 -0
package/dist/index.js
CHANGED
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
sanitizeHref,
|
|
20
20
|
stripDtd,
|
|
21
21
|
toArrayBuffer
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-VEB43O2L.js";
|
|
23
23
|
import {
|
|
24
24
|
parsePageRange
|
|
25
25
|
} from "./chunk-GE43BE46.js";
|
|
@@ -20098,11 +20098,21 @@ function standardMarker(depth, n) {
|
|
|
20098
20098
|
function reportMarker(depth) {
|
|
20099
20099
|
return REPORT_BULLETS[Math.min(depth, REPORT_BULLETS.length - 1)];
|
|
20100
20100
|
}
|
|
20101
|
-
|
|
20101
|
+
var MARKER_FULLWIDTH = "\u2460\u2461\u2462\u2463\u2464\u2465\u2466\u2467\u2468\u2469\u246A\u246B\u246C\u246D\u246E\u246F\u2470\u2471\u2472\u2473\u326E\u326F\u3270\u3271\u3272\u3273\u3274\u3275\u3276\u3277\u3278\u3279\u327A\u327B\u25A1\u25CB\u25E6\u25AA\u25C7\u25B3\u25B6\u318D";
|
|
20102
|
+
function markerWidth(marker, bodyHeight) {
|
|
20102
20103
|
const ta = bodyHeight / 2;
|
|
20103
|
-
|
|
20104
|
-
const
|
|
20105
|
-
|
|
20104
|
+
let w = 0;
|
|
20105
|
+
for (const c of marker) {
|
|
20106
|
+
if (/[가-힣]/.test(c) || MARKER_FULLWIDTH.includes(c)) w += bodyHeight;
|
|
20107
|
+
else if (c === "." || c === ",") w += Math.round(bodyHeight * 0.25);
|
|
20108
|
+
else if (c === "(" || c === ")") w += Math.round(bodyHeight * 0.45);
|
|
20109
|
+
else w += Math.round(ta);
|
|
20110
|
+
}
|
|
20111
|
+
return Math.round(w + ta);
|
|
20112
|
+
}
|
|
20113
|
+
function levelIndent(depth, bodyHeight, numbering) {
|
|
20114
|
+
const marker = numbering === "report" ? reportMarker(depth) : standardMarker(depth, 0);
|
|
20115
|
+
return { left: Math.round(depth * bodyHeight), indent: -markerWidth(marker, bodyHeight) };
|
|
20106
20116
|
}
|
|
20107
20117
|
function computeSuppression(depths) {
|
|
20108
20118
|
const counts = /* @__PURE__ */ new Map();
|
|
@@ -23518,7 +23528,7 @@ async function parseHwp(buffer, options) {
|
|
|
23518
23528
|
async function parsePdf(buffer, options) {
|
|
23519
23529
|
let parsePdfDocument;
|
|
23520
23530
|
try {
|
|
23521
|
-
const mod = await import("./parser-
|
|
23531
|
+
const mod = await import("./parser-XT65AEDJ.js");
|
|
23522
23532
|
parsePdfDocument = mod.parsePdfDocument;
|
|
23523
23533
|
} catch {
|
|
23524
23534
|
return {
|