kordoc 4.24.63 → 4.24.64
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 +2 -2
- package/dist/{-JKJWVZ7E.js → -QAZ44KKA.js} +21 -21
- package/dist/{chunk-PEDFVAXJ.js → chunk-34OGRWYW.js} +6 -5
- package/dist/chunk-34OGRWYW.js.map +1 -0
- package/dist/{chunk-MKH2CVD2.cjs → chunk-35WLNE3R.cjs} +3 -3
- package/dist/{chunk-MKH2CVD2.cjs.map → chunk-35WLNE3R.cjs.map} +1 -1
- package/dist/{chunk-AKMBPYRU.js → chunk-36EJXOCF.js} +5 -5
- package/dist/{chunk-WB4LZYGW.cjs → chunk-3XZR5JQY.cjs} +113 -108
- package/dist/chunk-3XZR5JQY.cjs.map +1 -0
- package/dist/{chunk-JMYWAW2S.js → chunk-4R6LAJCT.js} +7 -7
- package/dist/{chunk-CB365CYO.cjs → chunk-72H52U6F.cjs} +91 -90
- package/dist/{chunk-Q2ZKAVNU.js.map → chunk-72H52U6F.cjs.map} +1 -1
- package/dist/{chunk-3R4LS2QM.js → chunk-ACDKOGKO.js} +15 -15
- package/dist/{chunk-B7JISVV7.js → chunk-AZZKSDLD.js} +2 -2
- package/dist/{chunk-KWISIIRJ.js → chunk-CKA2X7FC.js} +2 -2
- package/dist/{chunk-HG6K7PDG.js → chunk-COARY4DW.js} +2 -2
- package/dist/{chunk-Q2ZKAVNU.js → chunk-DAP3G7G3.js} +7 -6
- package/dist/chunk-DAP3G7G3.js.map +1 -0
- package/dist/{chunk-NCI5VSUC.js → chunk-DFZIE6NM.js} +2 -2
- package/dist/{chunk-X4PFJ3S3.js → chunk-EUNUDJXO.js} +2 -2
- package/dist/{chunk-SQT5Z35B.cjs → chunk-FEFKONND.cjs} +25 -25
- package/dist/{chunk-SQT5Z35B.cjs.map → chunk-FEFKONND.cjs.map} +1 -1
- package/dist/{chunk-A73BTJH5.js → chunk-FNRCQGZN.js} +4 -4
- package/dist/{chunk-PTWPZYBM.js → chunk-FPC3GEAD.js} +10 -10
- package/dist/{chunk-ZVUZZFGY.js → chunk-GDRQGXPC.js} +3 -3
- package/dist/{chunk-FIKCNQ5Q.js → chunk-GOXFAAHN.js} +2 -2
- package/dist/{chunk-YRMVLAYZ.js → chunk-HQSGKBH4.js} +2 -2
- package/dist/{chunk-SPEEZYS4.js → chunk-I4ON2NHU.js} +6 -6
- package/dist/{chunk-FZNNNXEW.js → chunk-IEOC3SKK.js} +5 -5
- package/dist/{chunk-XYMBGOXH.cjs → chunk-KVLIFFDJ.cjs} +11 -11
- package/dist/chunk-KVLIFFDJ.cjs.map +1 -0
- package/dist/{chunk-SUXFV3AL.js → chunk-LJUESQWH.js} +5 -5
- package/dist/{chunk-DQEZVDKS.js → chunk-LKCLRP4E.js} +2 -2
- package/dist/{chunk-JIH23K74.cjs → chunk-LKH3LG3N.cjs} +58 -58
- package/dist/{chunk-JIH23K74.cjs.map → chunk-LKH3LG3N.cjs.map} +1 -1
- package/dist/{chunk-UMF44YJH.js → chunk-LNAOHM6K.js} +2 -2
- package/dist/{chunk-E3IGBNLD.js → chunk-MEHJKEUZ.js} +2 -2
- package/dist/{chunk-WDFJGFAH.cjs → chunk-MMZO2B5N.cjs} +3 -3
- package/dist/{chunk-WDFJGFAH.cjs.map → chunk-MMZO2B5N.cjs.map} +1 -1
- package/dist/{chunk-CD7YHKSF.js → chunk-NVHBKHTR.js} +11 -11
- package/dist/{chunk-XIJH4QF7.js → chunk-OJKFBZPW.js} +5 -5
- package/dist/chunk-OJKFBZPW.js.map +1 -0
- package/dist/{chunk-SUMSKQ43.js → chunk-PNEMJTPG.js} +2 -2
- package/dist/{chunk-TFEQHER2.js → chunk-PO2TQW2B.js} +2 -2
- package/dist/{chunk-BW2KS7VQ.js → chunk-PTJDTKU3.js} +37 -32
- package/dist/chunk-PTJDTKU3.js.map +1 -0
- package/dist/{chunk-CL2GZ7JO.js → chunk-PZOKLEDR.js} +2 -2
- package/dist/{chunk-MQNJY7II.js → chunk-Q4AQE7TN.js} +2 -2
- package/dist/{chunk-55QH5LSM.js → chunk-R5PEYGFS.js} +5 -5
- package/dist/{chunk-55QH5LSM.js.map → chunk-R5PEYGFS.js.map} +1 -1
- package/dist/{chunk-ROHCAUUO.js → chunk-R7GE5HUE.js} +3 -3
- package/dist/{chunk-UZDSVTD4.js → chunk-S6WRR43D.js} +2 -2
- package/dist/{chunk-4J7PCDT5.cjs → chunk-T3JCWBOI.cjs} +2 -2
- package/dist/{chunk-4J7PCDT5.cjs.map → chunk-T3JCWBOI.cjs.map} +1 -1
- package/dist/{chunk-7OBVSSAQ.js → chunk-X2XUGRV3.js} +34 -29
- package/dist/chunk-X2XUGRV3.js.map +1 -0
- package/dist/{chunk-XABC4RKP.js → chunk-XCPST2YL.js} +2 -2
- package/dist/{chunk-JCNNDOOW.js → chunk-YFEV3NNV.js} +2 -2
- package/dist/{chunk-WIPBQVIK.js → chunk-ZRHMLFJB.js} +3 -3
- package/dist/chunks-OWWHWU6T.js +11 -0
- package/dist/cli.js +45 -45
- package/dist/{formula-DNS3KV3C.js → formula-AKSUUGPE.js} +8 -4
- package/dist/formula-AKSUUGPE.js.map +1 -0
- package/dist/{formula-WTTPNY2I.cjs → formula-IWBM3D27.cjs} +13 -9
- package/dist/formula-IWBM3D27.cjs.map +1 -0
- package/dist/{formula-VKUUIOIT.js → formula-TGSWQZXE.js} +7 -3
- package/dist/formula-TGSWQZXE.js.map +1 -0
- package/dist/generator-AUHRYGI3.cjs +12 -0
- package/dist/{generator-NDQUC266.cjs.map → generator-AUHRYGI3.cjs.map} +1 -1
- package/dist/generator-TGYD6N7S.js +11 -0
- package/dist/generator-UB2TEEE6.js +18 -0
- package/dist/{hancom-QGPXR2US.js → hancom-HQBZBCSR.js} +2 -2
- package/dist/{hancom-IBHKEOO5.js → hancom-PV626GYI.js} +2 -2
- package/dist/{hancom-JYQQYZPV.cjs → hancom-QSZ33R47.cjs} +5 -5
- package/dist/{hancom-JYQQYZPV.cjs.map → hancom-QSZ33R47.cjs.map} +1 -1
- package/dist/{image-ocr-TKWNXWUY.js → image-ocr-2EYCNJJU.js} +10 -10
- package/dist/{image-ocr-OHVXCHWL.cjs → image-ocr-EL2WFECB.cjs} +28 -28
- package/dist/{image-ocr-OHVXCHWL.cjs.map → image-ocr-EL2WFECB.cjs.map} +1 -1
- package/dist/{image-ocr-6O6E6XIZ.js → image-ocr-P5XZGIPX.js} +7 -7
- package/dist/index.cjs +1115 -1115
- package/dist/index.js +9 -9
- package/dist/mcp.js +36 -36
- package/dist/memo-I5S4HZBP.js +17 -0
- package/dist/{model-bundle-ICW2B75K.js → model-bundle-5ZAV3WPL.js} +5 -5
- package/dist/{models-ZIAOV7EN.js → models-KOHBYNOH.js} +5 -5
- package/dist/{parse-worker-v2-QBMUV2FV.js → parse-worker-v2-SSXAWHMP.js} +22 -22
- package/dist/{parser-7SXRUERF.js → parser-GAT6U7NK.js} +9 -9
- package/dist/{parser-FIVOMRFD.cjs → parser-JAXFIY4Z.cjs} +166 -166
- package/dist/{parser-FIVOMRFD.cjs.map → parser-JAXFIY4Z.cjs.map} +1 -1
- package/dist/{parser-IYDEYLT2.js → parser-Q2LYKLLS.js} +12 -12
- package/dist/{pdf-ocr-NJAOCNPW.js → pdf-ocr-5EHHYF3C.js} +6 -6
- package/dist/pdf-ocr-S6LZ5SDT.cjs +43 -0
- package/dist/{pdf-ocr-YVLMXFYG.cjs.map → pdf-ocr-S6LZ5SDT.cjs.map} +1 -1
- package/dist/{pdf-ocr-L2FDPW4J.js → pdf-ocr-ZK6W2KRC.js} +9 -9
- package/dist/{profile-io-ZFFUBVD7.js → profile-io-6LSVAJGK.js} +3 -3
- package/dist/{rasterize-73LPY77L.js → rasterize-JRBWIABQ.js} +3 -3
- package/dist/{redact-doc-PMLOYY4I.js → redact-doc-K6Q3J4QN.js} +21 -21
- package/dist/{render-6IUG73FB.js → render-QXCUXJBD.js} +12 -12
- package/dist/{rewrite-fallback-MLILIZUH.js → rewrite-fallback-LKK3CK7E.js} +13 -13
- package/dist/seal-GMZGRQE7.js +16 -0
- package/dist/{setup-GOFOC4YG.js → setup-NA3L7AP4.js} +3 -3
- package/dist/to-hwpx-ICWG2YYM.cjs +16 -0
- package/dist/{to-hwpx-OPZN5DZY.cjs.map → to-hwpx-ICWG2YYM.cjs.map} +1 -1
- package/dist/{to-hwpx-Y3MXBDML.js → to-hwpx-QVGHZIYD.js} +4 -4
- package/dist/{to-hwpx-3LMSUQTA.js → to-hwpx-YNCXFNZV.js} +7 -7
- package/dist/visual-5BXQ3MAX.js +38 -0
- package/dist/{watch-WHMWDPKY.js → watch-C276YW4I.js} +22 -22
- package/package.json +1 -1
- package/dist/chunk-7OBVSSAQ.js.map +0 -1
- package/dist/chunk-BW2KS7VQ.js.map +0 -1
- package/dist/chunk-CB365CYO.cjs.map +0 -1
- package/dist/chunk-PEDFVAXJ.js.map +0 -1
- package/dist/chunk-WB4LZYGW.cjs.map +0 -1
- package/dist/chunk-XIJH4QF7.js.map +0 -1
- package/dist/chunk-XYMBGOXH.cjs.map +0 -1
- package/dist/chunks-XCTKHHQF.js +0 -11
- package/dist/formula-DNS3KV3C.js.map +0 -1
- package/dist/formula-VKUUIOIT.js.map +0 -1
- package/dist/formula-WTTPNY2I.cjs.map +0 -1
- package/dist/generator-B7BQ7GSG.js +0 -11
- package/dist/generator-NDQUC266.cjs +0 -12
- package/dist/generator-SBFQTDAS.js +0 -18
- package/dist/memo-TRWRHDYB.js +0 -17
- package/dist/pdf-ocr-YVLMXFYG.cjs +0 -43
- package/dist/seal-KDPRMM4D.js +0 -16
- package/dist/to-hwpx-OPZN5DZY.cjs +0 -16
- package/dist/visual-VI4WYIWM.js +0 -38
- /package/dist/{-JKJWVZ7E.js.map → -QAZ44KKA.js.map} +0 -0
- /package/dist/{chunk-AKMBPYRU.js.map → chunk-36EJXOCF.js.map} +0 -0
- /package/dist/{chunk-JMYWAW2S.js.map → chunk-4R6LAJCT.js.map} +0 -0
- /package/dist/{chunk-3R4LS2QM.js.map → chunk-ACDKOGKO.js.map} +0 -0
- /package/dist/{chunk-B7JISVV7.js.map → chunk-AZZKSDLD.js.map} +0 -0
- /package/dist/{chunk-KWISIIRJ.js.map → chunk-CKA2X7FC.js.map} +0 -0
- /package/dist/{chunk-HG6K7PDG.js.map → chunk-COARY4DW.js.map} +0 -0
- /package/dist/{chunk-NCI5VSUC.js.map → chunk-DFZIE6NM.js.map} +0 -0
- /package/dist/{chunk-X4PFJ3S3.js.map → chunk-EUNUDJXO.js.map} +0 -0
- /package/dist/{chunk-A73BTJH5.js.map → chunk-FNRCQGZN.js.map} +0 -0
- /package/dist/{chunk-PTWPZYBM.js.map → chunk-FPC3GEAD.js.map} +0 -0
- /package/dist/{chunk-ZVUZZFGY.js.map → chunk-GDRQGXPC.js.map} +0 -0
- /package/dist/{chunk-FIKCNQ5Q.js.map → chunk-GOXFAAHN.js.map} +0 -0
- /package/dist/{chunk-YRMVLAYZ.js.map → chunk-HQSGKBH4.js.map} +0 -0
- /package/dist/{chunk-SPEEZYS4.js.map → chunk-I4ON2NHU.js.map} +0 -0
- /package/dist/{chunk-FZNNNXEW.js.map → chunk-IEOC3SKK.js.map} +0 -0
- /package/dist/{chunk-SUXFV3AL.js.map → chunk-LJUESQWH.js.map} +0 -0
- /package/dist/{chunk-DQEZVDKS.js.map → chunk-LKCLRP4E.js.map} +0 -0
- /package/dist/{chunk-UMF44YJH.js.map → chunk-LNAOHM6K.js.map} +0 -0
- /package/dist/{chunk-E3IGBNLD.js.map → chunk-MEHJKEUZ.js.map} +0 -0
- /package/dist/{chunk-CD7YHKSF.js.map → chunk-NVHBKHTR.js.map} +0 -0
- /package/dist/{chunk-SUMSKQ43.js.map → chunk-PNEMJTPG.js.map} +0 -0
- /package/dist/{chunk-TFEQHER2.js.map → chunk-PO2TQW2B.js.map} +0 -0
- /package/dist/{chunk-CL2GZ7JO.js.map → chunk-PZOKLEDR.js.map} +0 -0
- /package/dist/{chunk-MQNJY7II.js.map → chunk-Q4AQE7TN.js.map} +0 -0
- /package/dist/{chunk-ROHCAUUO.js.map → chunk-R7GE5HUE.js.map} +0 -0
- /package/dist/{chunk-UZDSVTD4.js.map → chunk-S6WRR43D.js.map} +0 -0
- /package/dist/{chunk-XABC4RKP.js.map → chunk-XCPST2YL.js.map} +0 -0
- /package/dist/{chunk-JCNNDOOW.js.map → chunk-YFEV3NNV.js.map} +0 -0
- /package/dist/{chunk-WIPBQVIK.js.map → chunk-ZRHMLFJB.js.map} +0 -0
- /package/dist/{chunks-XCTKHHQF.js.map → chunks-OWWHWU6T.js.map} +0 -0
- /package/dist/{generator-B7BQ7GSG.js.map → generator-TGYD6N7S.js.map} +0 -0
- /package/dist/{generator-SBFQTDAS.js.map → generator-UB2TEEE6.js.map} +0 -0
- /package/dist/{hancom-QGPXR2US.js.map → hancom-HQBZBCSR.js.map} +0 -0
- /package/dist/{hancom-IBHKEOO5.js.map → hancom-PV626GYI.js.map} +0 -0
- /package/dist/{image-ocr-TKWNXWUY.js.map → image-ocr-2EYCNJJU.js.map} +0 -0
- /package/dist/{image-ocr-6O6E6XIZ.js.map → image-ocr-P5XZGIPX.js.map} +0 -0
- /package/dist/{memo-TRWRHDYB.js.map → memo-I5S4HZBP.js.map} +0 -0
- /package/dist/{model-bundle-ICW2B75K.js.map → model-bundle-5ZAV3WPL.js.map} +0 -0
- /package/dist/{models-ZIAOV7EN.js.map → models-KOHBYNOH.js.map} +0 -0
- /package/dist/{parse-worker-v2-QBMUV2FV.js.map → parse-worker-v2-SSXAWHMP.js.map} +0 -0
- /package/dist/{parser-7SXRUERF.js.map → parser-GAT6U7NK.js.map} +0 -0
- /package/dist/{parser-IYDEYLT2.js.map → parser-Q2LYKLLS.js.map} +0 -0
- /package/dist/{pdf-ocr-L2FDPW4J.js.map → pdf-ocr-5EHHYF3C.js.map} +0 -0
- /package/dist/{pdf-ocr-NJAOCNPW.js.map → pdf-ocr-ZK6W2KRC.js.map} +0 -0
- /package/dist/{profile-io-ZFFUBVD7.js.map → profile-io-6LSVAJGK.js.map} +0 -0
- /package/dist/{rasterize-73LPY77L.js.map → rasterize-JRBWIABQ.js.map} +0 -0
- /package/dist/{redact-doc-PMLOYY4I.js.map → redact-doc-K6Q3J4QN.js.map} +0 -0
- /package/dist/{render-6IUG73FB.js.map → render-QXCUXJBD.js.map} +0 -0
- /package/dist/{rewrite-fallback-MLILIZUH.js.map → rewrite-fallback-LKK3CK7E.js.map} +0 -0
- /package/dist/{seal-KDPRMM4D.js.map → seal-GMZGRQE7.js.map} +0 -0
- /package/dist/{setup-GOFOC4YG.js.map → setup-NA3L7AP4.js.map} +0 -0
- /package/dist/{to-hwpx-3LMSUQTA.js.map → to-hwpx-QVGHZIYD.js.map} +0 -0
- /package/dist/{to-hwpx-Y3MXBDML.js.map → to-hwpx-YNCXFNZV.js.map} +0 -0
- /package/dist/{visual-VI4WYIWM.js.map → visual-5BXQ3MAX.js.map} +0 -0
- /package/dist/{watch-WHMWDPKY.js.map → watch-C276YW4I.js.map} +0 -0
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
extractRenderedRegions,
|
|
4
4
|
renderDocumentToScene
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-FPC3GEAD.js";
|
|
6
6
|
import {
|
|
7
7
|
WEBP_OPTIONS,
|
|
8
8
|
blocksToPages,
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
loadSharp,
|
|
11
11
|
readImageQrCodes,
|
|
12
12
|
toBuffer
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-HQSGKBH4.js";
|
|
14
14
|
import {
|
|
15
15
|
applyCellEdit,
|
|
16
16
|
buildOrigUnits,
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
resolveParagraphMappings,
|
|
24
24
|
resolveSectionEntryNames,
|
|
25
25
|
stripCellTokens
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-NVHBKHTR.js";
|
|
27
27
|
import {
|
|
28
28
|
TOTAL_LABEL_RE,
|
|
29
29
|
comResultToParseResult,
|
|
@@ -49,10 +49,10 @@ import {
|
|
|
49
49
|
stripHeadMarker,
|
|
50
50
|
summarize,
|
|
51
51
|
topLevelParagraphs
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-PTJDTKU3.js";
|
|
53
53
|
import {
|
|
54
54
|
patchZipEntries
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-GOXFAAHN.js";
|
|
56
56
|
import {
|
|
57
57
|
ANNOTATION_BLANK_RE,
|
|
58
58
|
ValueCursor,
|
|
@@ -91,7 +91,7 @@ import {
|
|
|
91
91
|
rawTextContent,
|
|
92
92
|
readZipEntry,
|
|
93
93
|
warnInto
|
|
94
|
-
} from "./chunk-
|
|
94
|
+
} from "./chunk-S6WRR43D.js";
|
|
95
95
|
import {
|
|
96
96
|
INLINE_TABLE_MARK,
|
|
97
97
|
blocksPlainText,
|
|
@@ -104,7 +104,7 @@ import {
|
|
|
104
104
|
memosMarkdown,
|
|
105
105
|
parseHwp5Document,
|
|
106
106
|
resolveImageBlocks
|
|
107
|
-
} from "./chunk-
|
|
107
|
+
} from "./chunk-IEOC3SKK.js";
|
|
108
108
|
import {
|
|
109
109
|
MAX_PIXELS,
|
|
110
110
|
bmpToPng,
|
|
@@ -136,7 +136,7 @@ import {
|
|
|
136
136
|
stripScriptTags,
|
|
137
137
|
tidyScriptTags,
|
|
138
138
|
wrapScript
|
|
139
|
-
} from "./chunk-
|
|
139
|
+
} from "./chunk-PO2TQW2B.js";
|
|
140
140
|
import {
|
|
141
141
|
MAX_COLS,
|
|
142
142
|
MAX_ROWS,
|
|
@@ -147,7 +147,7 @@ import {
|
|
|
147
147
|
flattenLayoutTables,
|
|
148
148
|
hasStructuredCellContent,
|
|
149
149
|
sanitizeText
|
|
150
|
-
} from "./chunk-
|
|
150
|
+
} from "./chunk-R5PEYGFS.js";
|
|
151
151
|
import {
|
|
152
152
|
hangulAmount,
|
|
153
153
|
mapPuaText
|
|
@@ -169,7 +169,7 @@ import {
|
|
|
169
169
|
toArrayBuffer,
|
|
170
170
|
unescapeHtml,
|
|
171
171
|
unzipLimitBytes
|
|
172
|
-
} from "./chunk-
|
|
172
|
+
} from "./chunk-LKCLRP4E.js";
|
|
173
173
|
|
|
174
174
|
// src/table/visual.ts
|
|
175
175
|
import { readFile as readFile2 } from "fs/promises";
|
|
@@ -16945,7 +16945,7 @@ var MIN_SIDE = 24;
|
|
|
16945
16945
|
async function ocrEmbeddedImages(blocks, options, warnings) {
|
|
16946
16946
|
const ocr = options?.ocr;
|
|
16947
16947
|
if (ocr !== true && ocr !== "force" && typeof ocr !== "function") return false;
|
|
16948
|
-
const { parseImageDocument } = await import("./image-ocr-
|
|
16948
|
+
const { parseImageDocument } = await import("./image-ocr-2EYCNJJU.js");
|
|
16949
16949
|
let inserted = false, unreadable = 0;
|
|
16950
16950
|
let failed = null;
|
|
16951
16951
|
const walk = async (list, depth) => {
|
|
@@ -20642,7 +20642,7 @@ function scriptsOff(r, off) {
|
|
|
20642
20642
|
}
|
|
20643
20643
|
async function parseImage(buffer, options) {
|
|
20644
20644
|
try {
|
|
20645
|
-
const { parseImageDocument } = await import("./image-ocr-
|
|
20645
|
+
const { parseImageDocument } = await import("./image-ocr-2EYCNJJU.js");
|
|
20646
20646
|
const { blocks, warnings, lines } = await parseImageDocument(buffer, options);
|
|
20647
20647
|
stripScriptTags({ blocks });
|
|
20648
20648
|
return {
|
|
@@ -20717,7 +20717,7 @@ async function parseHwp(buffer, options) {
|
|
|
20717
20717
|
async function parsePdf(buffer, options) {
|
|
20718
20718
|
let parsePdfDocument;
|
|
20719
20719
|
try {
|
|
20720
|
-
const mod = await import("./parser-
|
|
20720
|
+
const mod = await import("./parser-Q2LYKLLS.js");
|
|
20721
20721
|
parsePdfDocument = mod.parsePdfDocument;
|
|
20722
20722
|
} catch {
|
|
20723
20723
|
return {
|
|
@@ -20799,7 +20799,7 @@ async function fillForm(input, values, outputFormat = "markdown") {
|
|
|
20799
20799
|
throw new Error(`hwpx-preserve \uD3EC\uB9F7\uC740 HWPX\xB7HWP 5.x \uC785\uB825\uB9CC \uC9C0\uC6D0\uD569\uB2C8\uB2E4 (\uAC10\uC9C0\uB41C \uD3EC\uB9F7: ${zipFormat})`);
|
|
20800
20800
|
}
|
|
20801
20801
|
} else if (format2 === "hwp" && detectOle2Format(buffer) === "hwp") {
|
|
20802
|
-
const { hwpToHwpx: hwpToHwpx2 } = await import("./to-hwpx-
|
|
20802
|
+
const { hwpToHwpx: hwpToHwpx2 } = await import("./to-hwpx-YNCXFNZV.js");
|
|
20803
20803
|
const hwpx = await hwpToHwpx2(new Uint8Array(buffer));
|
|
20804
20804
|
buffer = hwpx.buffer.slice(hwpx.byteOffset, hwpx.byteOffset + hwpx.byteLength);
|
|
20805
20805
|
} else {
|
|
@@ -20949,4 +20949,4 @@ export {
|
|
|
20949
20949
|
parseHwpml,
|
|
20950
20950
|
fillForm
|
|
20951
20951
|
};
|
|
20952
|
-
//# sourceMappingURL=chunk-
|
|
20952
|
+
//# sourceMappingURL=chunk-ACDKOGKO.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./chunk-WFKFG2RT.js";
|
|
5
5
|
import {
|
|
6
6
|
KordocError
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-LKCLRP4E.js";
|
|
8
8
|
|
|
9
9
|
// src/hwp5/record.ts
|
|
10
10
|
import { inflateRawSync, inflateSync } from "zlib";
|
|
@@ -404,4 +404,4 @@ export {
|
|
|
404
404
|
appendParaText,
|
|
405
405
|
extractEquationText
|
|
406
406
|
};
|
|
407
|
-
//# sourceMappingURL=chunk-
|
|
407
|
+
//# sourceMappingURL=chunk-AZZKSDLD.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
KordocError
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-LKCLRP4E.js";
|
|
5
5
|
|
|
6
6
|
// src/shared/offline.ts
|
|
7
7
|
import { realpathSync } from "fs";
|
|
@@ -49,4 +49,4 @@ export {
|
|
|
49
49
|
getAccessRoot,
|
|
50
50
|
assertWithinRoot
|
|
51
51
|
};
|
|
52
|
-
//# sourceMappingURL=chunk-
|
|
52
|
+
//# sourceMappingURL=chunk-CKA2X7FC.js.map
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
assignTableIds,
|
|
4
4
|
blocksToMarkdown
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-R5PEYGFS.js";
|
|
6
6
|
|
|
7
7
|
// src/chunks.ts
|
|
8
8
|
var LIST_MARKER_RE = /^(?:[□■◇◆○◎●◦ㅇ•▪▸▶※-]|\d{1,3}[.)]|[가나다라마바사아자차카타파하][.)]|\([가나다라마바사아자차카타파하0-9]{1,3}\)|[①-⑳㉮-㉻㈎-㈛])\s/;
|
|
@@ -82,4 +82,4 @@ function blocksToChunks(blocks, options) {
|
|
|
82
82
|
export {
|
|
83
83
|
blocksToChunks
|
|
84
84
|
};
|
|
85
|
-
//# sourceMappingURL=chunk-
|
|
85
|
+
//# sourceMappingURL=chunk-COARY4DW.js.map
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
stackedGlyphBands,
|
|
31
31
|
starRun,
|
|
32
32
|
tallInkCount
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-GDRQGXPC.js";
|
|
34
34
|
import {
|
|
35
35
|
validateOcrOptions
|
|
36
36
|
} from "./chunk-IIOBUTXH.js";
|
|
@@ -46,14 +46,14 @@ import {
|
|
|
46
46
|
ocrSourcePath,
|
|
47
47
|
parseCharacterDict,
|
|
48
48
|
resolveOcrModels
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-XCPST2YL.js";
|
|
50
50
|
import {
|
|
51
51
|
disableOrtTelemetry
|
|
52
52
|
} from "./chunk-6H25SXDI.js";
|
|
53
53
|
import {
|
|
54
54
|
KordocError,
|
|
55
55
|
OPTIONAL_DEP_INSTALL_HINT
|
|
56
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-LKCLRP4E.js";
|
|
57
57
|
|
|
58
58
|
// src/ocr/ocr-stacked-rows.ts
|
|
59
59
|
var NUMERIC = /^[-+−△▲▽▼]?[\d.,]+[%p원]?$|^[-–—·∼~]원?$|^\([-+−△▲▽▼]?[\d.,]+%?\)$/;
|
|
@@ -486,7 +486,8 @@ function detectRulingLines(rgba, width, height, scale) {
|
|
|
486
486
|
if (!b || a.x2 - a.x1 < tol * 4) continue;
|
|
487
487
|
const y = (a.y1 + b.y1) / 2;
|
|
488
488
|
if (!onV(a.x1, y) || !onV(a.x2, y) || horizontals.some((h) => Math.abs(h.y1 - y) <= tol && h.x1 <= a.x1 + tol && h.x2 >= a.x2 - tol)) continue;
|
|
489
|
-
|
|
489
|
+
const p = ruleH.find((p2) => Math.abs(p2.y1 - y) <= fillGap && (Math.abs(p2.x1 - a.x2) <= tol * 3 || Math.abs(a.x1 - p2.x2) <= tol * 3));
|
|
490
|
+
horizontals.push(p ? { ...p, x1: Math.min(a.x1, p.x1), x2: Math.max(a.x2, p.x2) } : { x1: a.x1, y1: y, x2: a.x2, y2: y, thicknessPx: 1 });
|
|
490
491
|
}
|
|
491
492
|
for (const p of ruleH) {
|
|
492
493
|
for (const side of [-1, 1]) {
|
|
@@ -495,7 +496,7 @@ function detectRulingLines(rgba, width, height, scale) {
|
|
|
495
496
|
if (!a) continue;
|
|
496
497
|
const far = side < 0 ? a.x1 : a.x2;
|
|
497
498
|
if (!onV(far, p.y1) || horizontals.some((h) => Math.abs(h.y1 - p.y1) <= tol && h.x1 <= Math.min(far, end) + tol && h.x2 >= Math.max(far, end) - tol)) continue;
|
|
498
|
-
horizontals.push({ ...p, x1: Math.min(far,
|
|
499
|
+
horizontals.push({ ...p, x1: Math.min(far, p.x1), x2: Math.max(far, p.x2) });
|
|
499
500
|
}
|
|
500
501
|
}
|
|
501
502
|
horizontals.push(...fillH);
|
|
@@ -3413,4 +3414,4 @@ export {
|
|
|
3413
3414
|
ocrItemsToBlocks,
|
|
3414
3415
|
markOcrHeadings
|
|
3415
3416
|
};
|
|
3416
|
-
//# sourceMappingURL=chunk-
|
|
3417
|
+
//# sourceMappingURL=chunk-DAP3G7G3.js.map
|