kordoc 4.25.13 → 4.25.15
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 +3 -3
- package/dist/{chunk-4J2DUBJJ.js → chunk-2B2ADKA6.js} +2 -2
- package/dist/{chunk-42FWJVN5.js → chunk-2UIC2FOI.js} +4 -4
- package/dist/{chunk-SKIWLEZA.js → chunk-33LGD5NX.js} +3 -3
- package/dist/{chunk-I52IXA2S.js → chunk-3JKX6AHS.js} +2 -2
- package/dist/{chunk-NEVZP6O3.js → chunk-4UW33GPN.js} +2 -2
- package/dist/{chunk-AII6CXYG.js → chunk-4ZRZRXMJ.js} +2 -2
- package/dist/{chunk-6CHKXHKR.js → chunk-525ASFSO.js} +22 -11
- package/dist/{chunk-6CHKXHKR.js.map → chunk-525ASFSO.js.map} +2 -2
- package/dist/{chunk-NLZ44M5L.js → chunk-53IOLHAH.js} +7 -7
- package/dist/{chunk-NLZ44M5L.js.map → chunk-53IOLHAH.js.map} +2 -2
- package/dist/{chunk-RQPM72FM.js → chunk-7TUTRO7Q.js} +2 -2
- package/dist/{chunk-C4TGNDQY.js → chunk-AO64F4SF.js} +18 -18
- package/dist/{chunk-VCLEQ7GS.js → chunk-B5RDD7YC.js} +3 -3
- package/dist/{chunk-NQXM6MED.js → chunk-BMQ3JXEJ.js} +2 -2
- package/dist/{chunk-NL4434I2.js → chunk-CETNQAAM.js} +2 -2
- package/dist/{chunk-32WLCR37.js → chunk-CZUEETJ2.js} +2 -2
- package/dist/{chunk-ZRXXCZRZ.js → chunk-EEOH76HU.js} +2 -2
- package/dist/{chunk-QVZEBMYW.js → chunk-EWVYWTIJ.js} +2 -2
- package/dist/{chunk-QVZEBMYW.js.map → chunk-EWVYWTIJ.js.map} +1 -1
- package/dist/{chunk-BPY62DTT.js → chunk-H23B2HGU.js} +2 -2
- package/dist/{chunk-KRP74WIV.js → chunk-HN56DKOQ.js} +8 -8
- package/dist/{chunk-DQDATFAC.js → chunk-KVZLPEMT.js} +10 -5
- package/dist/chunk-KVZLPEMT.js.map +1 -0
- package/dist/{chunk-QYS4V2OA.js → chunk-LF4APKNT.js} +4 -4
- package/dist/{chunk-SPFCULY3.js → chunk-MUKVQV4G.js} +2 -2
- package/dist/{chunk-TSEJQZ7C.js → chunk-SAA7X4DJ.js} +2 -2
- package/dist/{chunk-YSOBUGNT.js → chunk-T6LR5LAE.js} +6 -6
- package/dist/{chunk-MQAUBK77.js → chunk-V5IWXHAR.js} +2 -2
- package/dist/{chunk-CGXJE6Y5.js → chunk-ZS2RXZTO.js} +5 -5
- package/dist/{chunk-N2EOYLZX.js → chunk-ZWEPUUOG.js} +10 -10
- package/dist/chunks-65VPL3VH.js +10 -0
- package/dist/cli.js +37 -37
- package/dist/{formula-ZM2EYXWB.js → formula-UMLOKVKT.js} +4 -4
- package/dist/{generator-AUA3RJD6.js → generator-ATWWYLWF.js} +7 -7
- package/dist/{hancom-M6DIM23B.js → hancom-RA2CZDNA.js} +2 -2
- package/dist/{image-ocr-LZH6Q32C.js → image-ocr-GJTLMEV5.js} +11 -11
- package/dist/index.cjs +26 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +21 -21
- package/dist/mcp.js +33 -33
- package/dist/memo-OOC34T5G.js +15 -0
- package/dist/{model-bundle-C4A7JHYJ.js → model-bundle-SHIVSL4T.js} +5 -5
- package/dist/{models-K5FUWGWQ.js → models-RMKLKYPO.js} +5 -5
- package/dist/{page-images-O6SF454R.js → page-images-IG6B5YJD.js} +2 -2
- package/dist/{parse-worker-v2-Y7SF2Q6I.js → parse-worker-v2-5YL6FERM.js} +23 -23
- package/dist/{parser-ZHK66LCI.js → parser-GQW4AXLA.js} +14 -14
- package/dist/{pdf-ocr-IU2UUBMJ.js → pdf-ocr-GHCLQNQL.js} +9 -9
- package/dist/{profile-io-ZF7UPT6V.js → profile-io-B7NL3QWU.js} +3 -3
- package/dist/{rasterize-QO3NBE33.js → rasterize-RK3WESE3.js} +3 -3
- package/dist/{redact-doc-KIA2A3RM.js → redact-doc-IHQVUBGF.js} +22 -22
- package/dist/{render-7UZDAEZ7.js → render-ATLVJYY3.js} +10 -10
- package/dist/{rewrite-fallback-YO6ZVEAI.js → rewrite-fallback-BPKID3RV.js} +12 -12
- package/dist/seal-23P2SQJ5.js +14 -0
- package/dist/{setup-X5GNUS4Q.js → setup-5ZFJ7NHC.js} +3 -3
- package/dist/{to-hwpx-TE7TLCR5.js → to-hwpx-ATVVDBIV.js} +7 -7
- package/dist/visual-QBNHIHCO.js +42 -0
- package/dist/{watch-FMCC23HZ.js → watch-WYGLV3KX.js} +22 -22
- package/package.json +1 -1
- package/dist/chunk-DQDATFAC.js.map +0 -1
- package/dist/chunks-SIAIY4VX.js +0 -10
- package/dist/memo-W2SNZRX5.js +0 -15
- package/dist/seal-W2BHUQA4.js +0 -14
- package/dist/visual-KFHP6RKA.js +0 -42
- /package/dist/{chunk-4J2DUBJJ.js.map → chunk-2B2ADKA6.js.map} +0 -0
- /package/dist/{chunk-42FWJVN5.js.map → chunk-2UIC2FOI.js.map} +0 -0
- /package/dist/{chunk-SKIWLEZA.js.map → chunk-33LGD5NX.js.map} +0 -0
- /package/dist/{chunk-I52IXA2S.js.map → chunk-3JKX6AHS.js.map} +0 -0
- /package/dist/{chunk-NEVZP6O3.js.map → chunk-4UW33GPN.js.map} +0 -0
- /package/dist/{chunk-AII6CXYG.js.map → chunk-4ZRZRXMJ.js.map} +0 -0
- /package/dist/{chunk-RQPM72FM.js.map → chunk-7TUTRO7Q.js.map} +0 -0
- /package/dist/{chunk-C4TGNDQY.js.map → chunk-AO64F4SF.js.map} +0 -0
- /package/dist/{chunk-VCLEQ7GS.js.map → chunk-B5RDD7YC.js.map} +0 -0
- /package/dist/{chunk-NQXM6MED.js.map → chunk-BMQ3JXEJ.js.map} +0 -0
- /package/dist/{chunk-NL4434I2.js.map → chunk-CETNQAAM.js.map} +0 -0
- /package/dist/{chunk-32WLCR37.js.map → chunk-CZUEETJ2.js.map} +0 -0
- /package/dist/{chunk-ZRXXCZRZ.js.map → chunk-EEOH76HU.js.map} +0 -0
- /package/dist/{chunk-BPY62DTT.js.map → chunk-H23B2HGU.js.map} +0 -0
- /package/dist/{chunk-KRP74WIV.js.map → chunk-HN56DKOQ.js.map} +0 -0
- /package/dist/{chunk-QYS4V2OA.js.map → chunk-LF4APKNT.js.map} +0 -0
- /package/dist/{chunk-SPFCULY3.js.map → chunk-MUKVQV4G.js.map} +0 -0
- /package/dist/{chunk-TSEJQZ7C.js.map → chunk-SAA7X4DJ.js.map} +0 -0
- /package/dist/{chunk-YSOBUGNT.js.map → chunk-T6LR5LAE.js.map} +0 -0
- /package/dist/{chunk-MQAUBK77.js.map → chunk-V5IWXHAR.js.map} +0 -0
- /package/dist/{chunk-CGXJE6Y5.js.map → chunk-ZS2RXZTO.js.map} +0 -0
- /package/dist/{chunk-N2EOYLZX.js.map → chunk-ZWEPUUOG.js.map} +0 -0
- /package/dist/{chunks-SIAIY4VX.js.map → chunks-65VPL3VH.js.map} +0 -0
- /package/dist/{formula-ZM2EYXWB.js.map → formula-UMLOKVKT.js.map} +0 -0
- /package/dist/{generator-AUA3RJD6.js.map → generator-ATWWYLWF.js.map} +0 -0
- /package/dist/{hancom-M6DIM23B.js.map → hancom-RA2CZDNA.js.map} +0 -0
- /package/dist/{image-ocr-LZH6Q32C.js.map → image-ocr-GJTLMEV5.js.map} +0 -0
- /package/dist/{memo-W2SNZRX5.js.map → memo-OOC34T5G.js.map} +0 -0
- /package/dist/{model-bundle-C4A7JHYJ.js.map → model-bundle-SHIVSL4T.js.map} +0 -0
- /package/dist/{models-K5FUWGWQ.js.map → models-RMKLKYPO.js.map} +0 -0
- /package/dist/{page-images-O6SF454R.js.map → page-images-IG6B5YJD.js.map} +0 -0
- /package/dist/{parse-worker-v2-Y7SF2Q6I.js.map → parse-worker-v2-5YL6FERM.js.map} +0 -0
- /package/dist/{parser-ZHK66LCI.js.map → parser-GQW4AXLA.js.map} +0 -0
- /package/dist/{pdf-ocr-IU2UUBMJ.js.map → pdf-ocr-GHCLQNQL.js.map} +0 -0
- /package/dist/{profile-io-ZF7UPT6V.js.map → profile-io-B7NL3QWU.js.map} +0 -0
- /package/dist/{rasterize-QO3NBE33.js.map → rasterize-RK3WESE3.js.map} +0 -0
- /package/dist/{redact-doc-KIA2A3RM.js.map → redact-doc-IHQVUBGF.js.map} +0 -0
- /package/dist/{render-7UZDAEZ7.js.map → render-ATLVJYY3.js.map} +0 -0
- /package/dist/{rewrite-fallback-YO6ZVEAI.js.map → rewrite-fallback-BPKID3RV.js.map} +0 -0
- /package/dist/{seal-W2BHUQA4.js.map → seal-23P2SQJ5.js.map} +0 -0
- /package/dist/{setup-X5GNUS4Q.js.map → setup-5ZFJ7NHC.js.map} +0 -0
- /package/dist/{to-hwpx-TE7TLCR5.js.map → to-hwpx-ATVVDBIV.js.map} +0 -0
- /package/dist/{visual-KFHP6RKA.js.map → visual-QBNHIHCO.js.map} +0 -0
- /package/dist/{watch-FMCC23HZ.js.map → watch-WYGLV3KX.js.map} +0 -0
|
@@ -4,20 +4,20 @@ import {
|
|
|
4
4
|
readHwp5DocInfoRecords,
|
|
5
5
|
readHwp5SectionRecords,
|
|
6
6
|
readHwp5SectionStreams
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-ZS2RXZTO.js";
|
|
8
8
|
import {
|
|
9
9
|
FLAG_TRACK_CHANGES,
|
|
10
10
|
decompressStream,
|
|
11
11
|
fileTimeText,
|
|
12
12
|
readRecords
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-7TUTRO7Q.js";
|
|
14
14
|
import {
|
|
15
15
|
composeDigits
|
|
16
16
|
} from "./chunk-QXQX4AN7.js";
|
|
17
17
|
import {
|
|
18
18
|
KordocError,
|
|
19
19
|
VERSION
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-H23B2HGU.js";
|
|
21
21
|
|
|
22
22
|
// src/hwp5/to-hwpx/index.ts
|
|
23
23
|
import JSZip from "jszip";
|
|
@@ -1760,7 +1760,7 @@ function tokenize(text, ctrls, ctx, cuts, marks) {
|
|
|
1760
1760
|
i += 8;
|
|
1761
1761
|
}
|
|
1762
1762
|
flush();
|
|
1763
|
-
for (const [pos, list] of marks) if (pos >= n) for (const m of list) toks.push(markTok(n, m, ctx));
|
|
1763
|
+
for (const [pos, list] of marks) if (pos >= n) for (const m of list) toks.push(markTok(n > 0 || typeof m !== "string" && m.begin ? n : 1, m, ctx));
|
|
1764
1764
|
for (let k = toks.length - 1; k >= 0; k--) {
|
|
1765
1765
|
const o = toks[k];
|
|
1766
1766
|
if (o.t !== "ctrl") continue;
|
|
@@ -2245,7 +2245,7 @@ async function convertToHwpx(input, options) {
|
|
|
2245
2245
|
if (format !== "hwp" && format !== "hwp3" && format !== "hwpml") throw new KordocError(`HWP 문서가 아닙니다 (${format})`);
|
|
2246
2246
|
const engine = options?.engine ?? "kordoc";
|
|
2247
2247
|
if (engine !== "kordoc") {
|
|
2248
|
-
const { hancomAvailable, hwpToHwpxViaHancom } = await import("./hancom-
|
|
2248
|
+
const { hancomAvailable, hwpToHwpxViaHancom } = await import("./hancom-RA2CZDNA.js");
|
|
2249
2249
|
if (engine === "hancom" || !options?.password && hancomAvailable()) {
|
|
2250
2250
|
if (options?.password) throw new KordocError('한/글 저장 변환은 열기 암호를 받지 않습니다 — engine "kordoc" 으로 바꾸세요');
|
|
2251
2251
|
return { data: hwpToHwpxViaHancom(bytes, format === "hwpml" ? "hml" : "hwp"), mode: "preserve", engine: "hancom", warnings: [] };
|
|
@@ -2253,7 +2253,7 @@ async function convertToHwpx(input, options) {
|
|
|
2253
2253
|
}
|
|
2254
2254
|
if (format === "hwp") return { data: await hwpToHwpx(bytes, options), mode: "preserve", engine: "kordoc", warnings: [] };
|
|
2255
2255
|
const { parse } = await import("./index.js");
|
|
2256
|
-
const { markdownToHwpx } = await import("./generator-
|
|
2256
|
+
const { markdownToHwpx } = await import("./generator-ATWWYLWF.js");
|
|
2257
2257
|
const parsed = await parse(ab, { password: options?.password });
|
|
2258
2258
|
if (!parsed.success) throw new KordocError(parsed.error ?? "문서를 읽지 못했습니다");
|
|
2259
2259
|
return {
|
|
@@ -2268,4 +2268,4 @@ export {
|
|
|
2268
2268
|
hwpToHwpx,
|
|
2269
2269
|
convertToHwpx
|
|
2270
2270
|
};
|
|
2271
|
-
//# sourceMappingURL=chunk-
|
|
2271
|
+
//# sourceMappingURL=chunk-53IOLHAH.js.map
|