kordoc 4.24.44 → 4.24.45
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/{-H334XSXO.js → -U63KR7FM.js} +21 -21
- package/dist/{chunk-YN3C6T5M.cjs → chunk-2QHC2YXC.cjs} +221 -115
- package/dist/chunk-2QHC2YXC.cjs.map +1 -0
- package/dist/{chunk-WXTEM53O.js → chunk-3DV5MIZK.js} +2 -2
- package/dist/{chunk-6ZYOH3TZ.js → chunk-3JKPMYNQ.js} +2 -2
- package/dist/{chunk-4Y5KRSHV.js → chunk-56HJNAU2.js} +3 -3
- package/dist/{chunk-QR5EL3EF.js → chunk-5IEBL77T.js} +2 -2
- package/dist/{chunk-HD6RQDGW.js → chunk-7D7CLX3U.js} +2 -2
- package/dist/{chunk-2FDWBF47.js → chunk-AJAVVV7C.js} +2 -2
- package/dist/{chunk-SXULSPB6.cjs → chunk-ASS2MVTL.cjs} +30 -26
- package/dist/chunk-ASS2MVTL.cjs.map +1 -0
- package/dist/{chunk-FQMLFAEN.js → chunk-AUSFVOEA.js} +10 -10
- package/dist/{chunk-2TJ4E6MT.js → chunk-B3BUBTAB.js} +2 -2
- package/dist/{chunk-ZGYKWZJS.cjs → chunk-B773KHRO.cjs} +2 -2
- package/dist/{chunk-ZGYKWZJS.cjs.map → chunk-B773KHRO.cjs.map} +1 -1
- package/dist/{chunk-NYQ6HNLA.js → chunk-BCRSFFTV.js} +2 -2
- package/dist/{chunk-AMLNYJWV.js → chunk-BHL5HQNO.js} +3 -3
- package/dist/{chunk-YEKQTHWN.js → chunk-BM4NQPJ7.js} +5 -5
- package/dist/{chunk-HDP2NFYZ.js → chunk-BXL3WAEY.js} +8 -4
- package/dist/chunk-BXL3WAEY.js.map +1 -0
- package/dist/{chunk-IV6GW3K7.js → chunk-DLYJKFRY.js} +2 -2
- package/dist/{chunk-TRVRIIER.js → chunk-E6OSXYA4.js} +2 -2
- package/dist/{chunk-AS6INVO3.js → chunk-ELEYRONP.js} +9 -5
- package/dist/chunk-ELEYRONP.js.map +1 -0
- package/dist/{chunk-IT34DGXJ.cjs → chunk-F7MGZMTQ.cjs} +3 -3
- package/dist/{chunk-IT34DGXJ.cjs.map → chunk-F7MGZMTQ.cjs.map} +1 -1
- package/dist/{chunk-7VVBR5WX.js → chunk-FZFESBG6.js} +111 -5
- package/dist/chunk-FZFESBG6.js.map +1 -0
- package/dist/{chunk-C2TMQUP4.js → chunk-FZRETZG3.js} +5 -5
- package/dist/{chunk-PSB3XI2U.js → chunk-H6YKDFKG.js} +2 -2
- package/dist/{chunk-RUCMKRDE.js → chunk-HHORHT5O.js} +2 -2
- package/dist/{chunk-JI3WWHN2.js → chunk-HMTXDJZA.js} +6 -6
- package/dist/{chunk-B3GHP32M.js → chunk-HVVPLWQD.js} +6 -6
- package/dist/{chunk-3EBWTFBT.js → chunk-JKBJDB6X.js} +2 -2
- package/dist/{chunk-HB3KLT7N.cjs → chunk-K4BI5IO3.cjs} +58 -58
- package/dist/{chunk-HB3KLT7N.cjs.map → chunk-K4BI5IO3.cjs.map} +1 -1
- package/dist/{chunk-7W6G4EC7.js → chunk-KXTTQ3RN.js} +2 -2
- package/dist/{chunk-NJ2BJDHJ.js → chunk-MKJRT3PP.js} +2 -2
- package/dist/{chunk-YSRLHL2J.js → chunk-MOZCSVGA.js} +112 -6
- package/dist/chunk-MOZCSVGA.js.map +1 -0
- package/dist/{chunk-2KHZVNCS.js → chunk-MVLVCUBP.js} +3 -3
- package/dist/{chunk-WF2GLWPA.js → chunk-MXCODLV5.js} +15 -15
- package/dist/{chunk-UZTGIVEH.js → chunk-NKWF62JV.js} +5 -5
- package/dist/{chunk-ABJ5DR2C.js → chunk-TJYUA2VR.js} +2 -2
- package/dist/{chunk-XCRE5EMS.js → chunk-U453MJJB.js} +2 -2
- package/dist/{chunk-RFSKHVLF.js → chunk-U4MF5C62.js} +2 -2
- package/dist/{chunk-O7EDZT7I.cjs → chunk-VVV54QND.cjs} +98 -98
- package/dist/{chunk-O7EDZT7I.cjs.map → chunk-VVV54QND.cjs.map} +1 -1
- package/dist/{chunk-GRY6ITVN.js → chunk-W7BLAMBO.js} +2 -2
- package/dist/{chunk-UETXNBIQ.js → chunk-WHWBBUSD.js} +7 -7
- package/dist/{chunk-6M2Z6QDD.js → chunk-WK3QLJCE.js} +2 -2
- package/dist/{chunk-HW6KA2HI.cjs → chunk-XS3SXFUY.cjs} +3 -3
- package/dist/{chunk-HW6KA2HI.cjs.map → chunk-XS3SXFUY.cjs.map} +1 -1
- package/dist/{chunk-OQCRVBB7.cjs → chunk-YIWEURPR.cjs} +6 -6
- package/dist/{chunk-OQCRVBB7.cjs.map → chunk-YIWEURPR.cjs.map} +1 -1
- package/dist/{chunk-WLBPDYAT.js → chunk-YOMV4HR6.js} +11 -11
- package/dist/chunks-LIB2Y6AD.js +11 -0
- package/dist/cli.js +43 -43
- package/dist/{formula-DLJ44T7B.js → formula-C46F5MG6.js} +4 -4
- package/dist/{formula-2FOYPHV2.js → formula-FBBDRGK6.js} +3 -3
- package/dist/{formula-XAUTHBU5.cjs → formula-V2ZZCARY.cjs} +9 -9
- package/dist/{formula-XAUTHBU5.cjs.map → formula-V2ZZCARY.cjs.map} +1 -1
- package/dist/generator-BNV7GC2V.js +17 -0
- package/dist/generator-CKRACBBG.js +10 -0
- package/dist/generator-MINQI74H.cjs +11 -0
- package/dist/{generator-BIEVUOPW.cjs.map → generator-MINQI74H.cjs.map} +1 -1
- package/dist/{hancom-TFYG5RGJ.cjs → hancom-3U6TQO6F.cjs} +5 -5
- package/dist/{hancom-TFYG5RGJ.cjs.map → hancom-3U6TQO6F.cjs.map} +1 -1
- package/dist/{hancom-B5LZPM5Y.js → hancom-P2ULOGNX.js} +2 -2
- package/dist/{hancom-W6XQOGQY.js → hancom-WBVEG72Q.js} +2 -2
- package/dist/{image-ocr-6NMWKDT6.cjs → image-ocr-4Y4WGZKF.cjs} +27 -27
- package/dist/{image-ocr-6NMWKDT6.cjs.map → image-ocr-4Y4WGZKF.cjs.map} +1 -1
- package/dist/{image-ocr-BKFZMHFE.js → image-ocr-7HH262GO.js} +7 -7
- package/dist/{image-ocr-XRXLPEBP.js → image-ocr-G5T3YPM5.js} +10 -10
- package/dist/index.cjs +1105 -1105
- package/dist/index.js +9 -9
- package/dist/mcp.js +36 -36
- package/dist/memo-CBYIVGEA.js +17 -0
- package/dist/{model-bundle-R3AIXPVX.js → model-bundle-APD72FGN.js} +5 -5
- package/dist/{models-BLHI4JAU.js → models-RK4ENUTB.js} +5 -5
- package/dist/{parse-worker-v2-IB3KIORL.js → parse-worker-v2-TSULPUIC.js} +22 -22
- package/dist/{parser-QCPSCSGJ.js → parser-55MAW7G3.js} +9 -9
- package/dist/{parser-7VLNB7T6.cjs → parser-K275FDSR.cjs} +159 -159
- package/dist/{parser-7VLNB7T6.cjs.map → parser-K275FDSR.cjs.map} +1 -1
- package/dist/{parser-QR2TG3WE.js → parser-VBQTQ6K6.js} +12 -12
- package/dist/{pdf-ocr-6PZ66I7G.js → pdf-ocr-6AAMBNUY.js} +9 -9
- package/dist/pdf-ocr-FR4G5PDF.cjs +42 -0
- package/dist/{pdf-ocr-TUCEX4AY.cjs.map → pdf-ocr-FR4G5PDF.cjs.map} +1 -1
- package/dist/{pdf-ocr-TGXEFZB5.js → pdf-ocr-YSEEZMJI.js} +6 -6
- package/dist/{profile-io-QL4XZ34F.js → profile-io-DSBGIVPH.js} +3 -3
- package/dist/{rasterize-PUG2V436.js → rasterize-46HYG3R6.js} +3 -3
- package/dist/{redact-doc-XDMXMF3A.js → redact-doc-GN673LJP.js} +21 -21
- package/dist/{render-IHE7XBO6.js → render-R7S7ZM3G.js} +12 -12
- package/dist/{rewrite-fallback-J2KE4JIC.js → rewrite-fallback-J3IBHAY2.js} +13 -13
- package/dist/seal-D6PQOQJI.js +16 -0
- package/dist/{setup-FAU3G7N3.js → setup-EFW6CWKF.js} +3 -3
- package/dist/{to-hwpx-B5CXJLNS.js → to-hwpx-6TQLW6WX.js} +4 -4
- package/dist/{to-hwpx-YLJE3AZW.js → to-hwpx-EPTNQA53.js} +7 -7
- package/dist/to-hwpx-X7YKAFO7.cjs +16 -0
- package/dist/{to-hwpx-KFQVO5YC.cjs.map → to-hwpx-X7YKAFO7.cjs.map} +1 -1
- package/dist/visual-RODVDMIJ.js +37 -0
- package/dist/{watch-VKZVO6GV.js → watch-ZQPN6IBT.js} +22 -22
- package/package.json +1 -1
- package/dist/chunk-7VVBR5WX.js.map +0 -1
- package/dist/chunk-AS6INVO3.js.map +0 -1
- package/dist/chunk-HDP2NFYZ.js.map +0 -1
- package/dist/chunk-SXULSPB6.cjs.map +0 -1
- package/dist/chunk-YN3C6T5M.cjs.map +0 -1
- package/dist/chunk-YSRLHL2J.js.map +0 -1
- package/dist/chunks-IBZZKRII.js +0 -11
- package/dist/generator-5QCCBJM6.js +0 -10
- package/dist/generator-BIEVUOPW.cjs +0 -11
- package/dist/generator-S373GIY7.js +0 -17
- package/dist/memo-NMEJZR24.js +0 -17
- package/dist/pdf-ocr-TUCEX4AY.cjs +0 -42
- package/dist/seal-OXEZMJL4.js +0 -16
- package/dist/to-hwpx-KFQVO5YC.cjs +0 -16
- package/dist/visual-GJLFH23Q.js +0 -37
- /package/dist/{-H334XSXO.js.map → -U63KR7FM.js.map} +0 -0
- /package/dist/{chunk-WXTEM53O.js.map → chunk-3DV5MIZK.js.map} +0 -0
- /package/dist/{chunk-6ZYOH3TZ.js.map → chunk-3JKPMYNQ.js.map} +0 -0
- /package/dist/{chunk-4Y5KRSHV.js.map → chunk-56HJNAU2.js.map} +0 -0
- /package/dist/{chunk-QR5EL3EF.js.map → chunk-5IEBL77T.js.map} +0 -0
- /package/dist/{chunk-HD6RQDGW.js.map → chunk-7D7CLX3U.js.map} +0 -0
- /package/dist/{chunk-2FDWBF47.js.map → chunk-AJAVVV7C.js.map} +0 -0
- /package/dist/{chunk-FQMLFAEN.js.map → chunk-AUSFVOEA.js.map} +0 -0
- /package/dist/{chunk-2TJ4E6MT.js.map → chunk-B3BUBTAB.js.map} +0 -0
- /package/dist/{chunk-NYQ6HNLA.js.map → chunk-BCRSFFTV.js.map} +0 -0
- /package/dist/{chunk-AMLNYJWV.js.map → chunk-BHL5HQNO.js.map} +0 -0
- /package/dist/{chunk-YEKQTHWN.js.map → chunk-BM4NQPJ7.js.map} +0 -0
- /package/dist/{chunk-IV6GW3K7.js.map → chunk-DLYJKFRY.js.map} +0 -0
- /package/dist/{chunk-TRVRIIER.js.map → chunk-E6OSXYA4.js.map} +0 -0
- /package/dist/{chunk-C2TMQUP4.js.map → chunk-FZRETZG3.js.map} +0 -0
- /package/dist/{chunk-PSB3XI2U.js.map → chunk-H6YKDFKG.js.map} +0 -0
- /package/dist/{chunk-RUCMKRDE.js.map → chunk-HHORHT5O.js.map} +0 -0
- /package/dist/{chunk-JI3WWHN2.js.map → chunk-HMTXDJZA.js.map} +0 -0
- /package/dist/{chunk-B3GHP32M.js.map → chunk-HVVPLWQD.js.map} +0 -0
- /package/dist/{chunk-3EBWTFBT.js.map → chunk-JKBJDB6X.js.map} +0 -0
- /package/dist/{chunk-7W6G4EC7.js.map → chunk-KXTTQ3RN.js.map} +0 -0
- /package/dist/{chunk-NJ2BJDHJ.js.map → chunk-MKJRT3PP.js.map} +0 -0
- /package/dist/{chunk-2KHZVNCS.js.map → chunk-MVLVCUBP.js.map} +0 -0
- /package/dist/{chunk-WF2GLWPA.js.map → chunk-MXCODLV5.js.map} +0 -0
- /package/dist/{chunk-UZTGIVEH.js.map → chunk-NKWF62JV.js.map} +0 -0
- /package/dist/{chunk-ABJ5DR2C.js.map → chunk-TJYUA2VR.js.map} +0 -0
- /package/dist/{chunk-XCRE5EMS.js.map → chunk-U453MJJB.js.map} +0 -0
- /package/dist/{chunk-RFSKHVLF.js.map → chunk-U4MF5C62.js.map} +0 -0
- /package/dist/{chunk-GRY6ITVN.js.map → chunk-W7BLAMBO.js.map} +0 -0
- /package/dist/{chunk-UETXNBIQ.js.map → chunk-WHWBBUSD.js.map} +0 -0
- /package/dist/{chunk-6M2Z6QDD.js.map → chunk-WK3QLJCE.js.map} +0 -0
- /package/dist/{chunk-WLBPDYAT.js.map → chunk-YOMV4HR6.js.map} +0 -0
- /package/dist/{chunks-IBZZKRII.js.map → chunks-LIB2Y6AD.js.map} +0 -0
- /package/dist/{formula-DLJ44T7B.js.map → formula-C46F5MG6.js.map} +0 -0
- /package/dist/{formula-2FOYPHV2.js.map → formula-FBBDRGK6.js.map} +0 -0
- /package/dist/{generator-5QCCBJM6.js.map → generator-BNV7GC2V.js.map} +0 -0
- /package/dist/{generator-S373GIY7.js.map → generator-CKRACBBG.js.map} +0 -0
- /package/dist/{hancom-B5LZPM5Y.js.map → hancom-P2ULOGNX.js.map} +0 -0
- /package/dist/{hancom-W6XQOGQY.js.map → hancom-WBVEG72Q.js.map} +0 -0
- /package/dist/{image-ocr-BKFZMHFE.js.map → image-ocr-7HH262GO.js.map} +0 -0
- /package/dist/{image-ocr-XRXLPEBP.js.map → image-ocr-G5T3YPM5.js.map} +0 -0
- /package/dist/{memo-NMEJZR24.js.map → memo-CBYIVGEA.js.map} +0 -0
- /package/dist/{model-bundle-R3AIXPVX.js.map → model-bundle-APD72FGN.js.map} +0 -0
- /package/dist/{models-BLHI4JAU.js.map → models-RK4ENUTB.js.map} +0 -0
- /package/dist/{parse-worker-v2-IB3KIORL.js.map → parse-worker-v2-TSULPUIC.js.map} +0 -0
- /package/dist/{parser-QCPSCSGJ.js.map → parser-55MAW7G3.js.map} +0 -0
- /package/dist/{parser-QR2TG3WE.js.map → parser-VBQTQ6K6.js.map} +0 -0
- /package/dist/{pdf-ocr-6PZ66I7G.js.map → pdf-ocr-6AAMBNUY.js.map} +0 -0
- /package/dist/{pdf-ocr-TGXEFZB5.js.map → pdf-ocr-YSEEZMJI.js.map} +0 -0
- /package/dist/{profile-io-QL4XZ34F.js.map → profile-io-DSBGIVPH.js.map} +0 -0
- /package/dist/{rasterize-PUG2V436.js.map → rasterize-46HYG3R6.js.map} +0 -0
- /package/dist/{redact-doc-XDMXMF3A.js.map → redact-doc-GN673LJP.js.map} +0 -0
- /package/dist/{render-IHE7XBO6.js.map → render-R7S7ZM3G.js.map} +0 -0
- /package/dist/{rewrite-fallback-J2KE4JIC.js.map → rewrite-fallback-J3IBHAY2.js.map} +0 -0
- /package/dist/{seal-OXEZMJL4.js.map → seal-D6PQOQJI.js.map} +0 -0
- /package/dist/{setup-FAU3G7N3.js.map → setup-EFW6CWKF.js.map} +0 -0
- /package/dist/{to-hwpx-B5CXJLNS.js.map → to-hwpx-6TQLW6WX.js.map} +0 -0
- /package/dist/{to-hwpx-YLJE3AZW.js.map → to-hwpx-EPTNQA53.js.map} +0 -0
- /package/dist/{visual-GJLFH23Q.js.map → visual-RODVDMIJ.js.map} +0 -0
- /package/dist/{watch-VKZVO6GV.js.map → watch-ZQPN6IBT.js.map} +0 -0
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
createXmlParser,
|
|
4
4
|
findChildByLocalName
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-B3BUBTAB.js";
|
|
6
6
|
|
|
7
7
|
// src/render/head-styles.ts
|
|
8
8
|
var DEFAULT_PARA_GEOM = {
|
|
@@ -346,4 +346,4 @@ export {
|
|
|
346
346
|
hwpFaceToCssStack,
|
|
347
347
|
parseRenderStyles
|
|
348
348
|
};
|
|
349
|
-
//# sourceMappingURL=chunk-
|
|
349
|
+
//# sourceMappingURL=chunk-3DV5MIZK.js.map
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
KordocError,
|
|
4
4
|
OPTIONAL_DEP_INSTALL_HINT
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-E6OSXYA4.js";
|
|
6
6
|
|
|
7
7
|
// src/render/rasterize.ts
|
|
8
8
|
var densityExponent = null;
|
|
@@ -88,4 +88,4 @@ export {
|
|
|
88
88
|
rasterizeSvg,
|
|
89
89
|
rasterizePageSvg
|
|
90
90
|
};
|
|
91
|
-
//# sourceMappingURL=chunk-
|
|
91
|
+
//# sourceMappingURL=chunk-3JKPMYNQ.js.map
|
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
tidyScriptTags,
|
|
37
37
|
visibleText,
|
|
38
38
|
wrapScript
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-DLYJKFRY.js";
|
|
40
40
|
import {
|
|
41
41
|
KordocError,
|
|
42
42
|
compareSectionPaths,
|
|
@@ -48,7 +48,7 @@ import {
|
|
|
48
48
|
stripDtd,
|
|
49
49
|
unescapeHtml,
|
|
50
50
|
unzipLimitBytes
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-7D7CLX3U.js";
|
|
52
52
|
|
|
53
53
|
// src/hwpx/generator.ts
|
|
54
54
|
import JSZip2 from "jszip";
|
|
@@ -23425,4 +23425,4 @@ export {
|
|
|
23425
23425
|
markdownToHwpxFromTemplate,
|
|
23426
23426
|
markdownToHwpx
|
|
23427
23427
|
};
|
|
23428
|
-
//# sourceMappingURL=chunk-
|
|
23428
|
+
//# sourceMappingURL=chunk-56HJNAU2.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
KordocError
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-E6OSXYA4.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-5IEBL77T.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// src/utils.ts
|
|
2
|
-
var VERSION = true ? "4.24.
|
|
2
|
+
var VERSION = true ? "4.24.45" : "0.0.0-dev";
|
|
3
3
|
function toArrayBuffer(buf) {
|
|
4
4
|
if (buf.byteOffset === 0 && buf.byteLength === buf.buffer.byteLength) {
|
|
5
5
|
return buf.buffer;
|
|
@@ -161,4 +161,4 @@ export {
|
|
|
161
161
|
classifyError,
|
|
162
162
|
partExtension
|
|
163
163
|
};
|
|
164
|
-
//# sourceMappingURL=chunk-
|
|
164
|
+
//# sourceMappingURL=chunk-7D7CLX3U.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
findChildByLocalName
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-B3BUBTAB.js";
|
|
5
5
|
import {
|
|
6
6
|
circledHangul,
|
|
7
7
|
circledNumber,
|
|
@@ -11038,4 +11038,4 @@ export {
|
|
|
11038
11038
|
simulateWrapKeepWord,
|
|
11039
11039
|
fitRatioForFewerLines
|
|
11040
11040
|
};
|
|
11041
|
-
//# sourceMappingURL=chunk-
|
|
11041
|
+
//# sourceMappingURL=chunk-AJAVVV7C.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; } var _class;
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkF7MGZMTQcjs = require('./chunk-F7MGZMTQ.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -9,11 +9,11 @@ var _chunkIT34DGXJcjs = require('./chunk-IT34DGXJ.cjs');
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkYIWEURPRcjs = require('./chunk-YIWEURPR.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkB773KHROcjs = require('./chunk-B773KHRO.cjs');
|
|
17
17
|
|
|
18
18
|
// src/ocr/models.ts
|
|
19
19
|
var _path = require('path');
|
|
@@ -65,7 +65,7 @@ var OCR_REC_DICT = {
|
|
|
65
65
|
sizeMb: 1
|
|
66
66
|
};
|
|
67
67
|
function getOcrModelsDir() {
|
|
68
|
-
return
|
|
68
|
+
return _chunkF7MGZMTQcjs.getModelsDir.call(void 0, "ppocr");
|
|
69
69
|
}
|
|
70
70
|
var DEFAULT_OCR_MODELS = Object.freeze({
|
|
71
71
|
det: { spec: OCR_DET_MODEL },
|
|
@@ -110,7 +110,7 @@ async function ensureOcrModelsFor(sel, onProgress) {
|
|
|
110
110
|
if (!stamp || verifiedInProcess.get(path) !== stamp) todo.push(s.spec);
|
|
111
111
|
}
|
|
112
112
|
if (!todo.length) return;
|
|
113
|
-
await
|
|
113
|
+
await _chunkF7MGZMTQcjs.ensureModelsIn.call(void 0, dir, todo, onProgress);
|
|
114
114
|
for (const spec of todo) {
|
|
115
115
|
const path = _path.join.call(void 0, dir, spec.filename), stamp = await fileStamp(path);
|
|
116
116
|
if (stamp) verifiedInProcess.set(path, stamp);
|
|
@@ -3243,16 +3243,16 @@ function recordOpenEndCellEdges(grid, cells, horizontals) {
|
|
|
3243
3243
|
}
|
|
3244
3244
|
function takeClipCellEdges(from, to) {
|
|
3245
3245
|
const e = CLIP_CELL_EDGES.get(from);
|
|
3246
|
-
if (e)
|
|
3246
|
+
if (e) _chunkYIWEURPRcjs.CELL_EDGES.set(to, e);
|
|
3247
3247
|
}
|
|
3248
3248
|
function hasOpenCellSeam(a, b) {
|
|
3249
|
-
const u =
|
|
3249
|
+
const u = _chunkYIWEURPRcjs.CELL_EDGES.get(a), d = _chunkYIWEURPRcjs.CELL_EDGES.get(b);
|
|
3250
3250
|
return !!u && !!d && u.t && !u.b && !d.t && d.b && u.l && u.r && d.l && d.r;
|
|
3251
3251
|
}
|
|
3252
3252
|
function joinCellEdges(a, b) {
|
|
3253
|
-
const u =
|
|
3253
|
+
const u = _chunkYIWEURPRcjs.CELL_EDGES.get(a), d = _chunkYIWEURPRcjs.CELL_EDGES.get(b);
|
|
3254
3254
|
if (!u || !d) return;
|
|
3255
|
-
|
|
3255
|
+
_chunkYIWEURPRcjs.CELL_EDGES.set(a, { t: u.t, b: d.b, l: u.l || d.l, r: u.r || d.r });
|
|
3256
3256
|
}
|
|
3257
3257
|
|
|
3258
3258
|
// src/pdf/cell-extract.ts
|
|
@@ -3428,7 +3428,7 @@ function tagScripts(text, lines) {
|
|
|
3428
3428
|
const [s, e, kind] = marks[m];
|
|
3429
3429
|
out = out.slice(0, s) + `<${kind}>` + out.slice(s, e) + `</${kind}>` + out.slice(e);
|
|
3430
3430
|
}
|
|
3431
|
-
return
|
|
3431
|
+
return _chunkYIWEURPRcjs.tidyScriptTags.call(void 0, out);
|
|
3432
3432
|
}
|
|
3433
3433
|
|
|
3434
3434
|
// src/pdf/line-wrap.ts
|
|
@@ -4141,10 +4141,14 @@ function alignedSubRows(itemsByCol, minLines = MIN_ALIGNED_LINES, covered = [])
|
|
|
4141
4141
|
const numericPair = k === 2 && cols.every((lines) => lines.every((line) => line.every((it) => it.fontName === "ocr"))) && cols.slice(1).every((lines) => lines.every((line) => NUMERIC_LINE.test(cellTextToString(line).trim())));
|
|
4142
4142
|
if (k < minLines && !numericPair || cols.some((lines) => lines.length !== k)) return anchoredSubRows(byCol, minLines, covered);
|
|
4143
4143
|
const cy = (line) => line.reduce((s, it) => s + itemCenterY(it), 0) / line.length;
|
|
4144
|
+
const ocr = cols.every((lines) => lines.every((line) => line.every((it) => it.fontName === "ocr")));
|
|
4145
|
+
const numericCols = cols.filter((lines) => lines.every((line) => NUMERIC_LINE.test(cellTextToString(line).trim()) || /^[-–—]$/.test(cellTextToString(line).trim()))).length;
|
|
4146
|
+
const centers = cols[0].map(cy), pitches = centers.slice(1).map((y, i) => Math.abs(centers[i] - y)).sort((a, b) => a - b);
|
|
4147
|
+
const pitch = ocr && numericCols >= cols.length - 1 ? _nullishCoalesce(pitches[pitches.length >> 1], () => ( 0)) : 0;
|
|
4144
4148
|
for (let i = 0; i < k; i++) {
|
|
4145
4149
|
const ys = cols.map((lines) => cy(lines[i]));
|
|
4146
4150
|
const hs = cols.map((lines) => itemHeight(lines[i][0])).sort((a, b) => a - b), h = hs[hs.length >> 1];
|
|
4147
|
-
if (Math.max(...ys) - Math.min(...ys) > h * ALIGNED_LINE_TOL) return null;
|
|
4151
|
+
if (Math.max(...ys) - Math.min(...ys) > Math.max(h * ALIGNED_LINE_TOL, pitch * 0.4)) return null;
|
|
4148
4152
|
}
|
|
4149
4153
|
return Array.from({ length: k }, (_, i) => byCol.map((lines) => lines.length ? cellTextToString(lines[i]) : ""));
|
|
4150
4154
|
}
|
|
@@ -6817,9 +6821,9 @@ function detectHeadings(blocks, medianFontSize) {
|
|
|
6817
6821
|
if (/^\d+$/.test(text) && !isChapterNumber(block, blocks[bi + 1], medianFontSize)) continue;
|
|
6818
6822
|
const ratio = block.style.fontSize / medianFontSize;
|
|
6819
6823
|
let level = 0;
|
|
6820
|
-
if (ratio >=
|
|
6821
|
-
else if (ratio >=
|
|
6822
|
-
else if (ratio >=
|
|
6824
|
+
if (ratio >= _chunkYIWEURPRcjs.HEADING_RATIO_H1) level = 1;
|
|
6825
|
+
else if (ratio >= _chunkYIWEURPRcjs.HEADING_RATIO_H2) level = 2;
|
|
6826
|
+
else if (ratio >= _chunkYIWEURPRcjs.HEADING_RATIO_H3) level = 3;
|
|
6823
6827
|
if (level > 0) {
|
|
6824
6828
|
block.type = "heading";
|
|
6825
6829
|
block.level = level;
|
|
@@ -6832,7 +6836,7 @@ function isChapterNumber(block, next, medianFontSize) {
|
|
|
6832
6836
|
const nextSize = _nullishCoalesce(_optionalChain([next, 'optionalAccess', _193 => _193.style, 'optionalAccess', _194 => _194.fontSize]), () => ( 0));
|
|
6833
6837
|
const text = _nullishCoalesce(_optionalChain([next, 'optionalAccess', _195 => _195.text, 'optionalAccess', _196 => _196.trim, 'call', _197 => _197()]), () => ( ""));
|
|
6834
6838
|
const a = block.bbox, b = _optionalChain([next, 'optionalAccess', _198 => _198.bbox]);
|
|
6835
|
-
return /^\d{1,2}$/.test(_nullishCoalesce(_optionalChain([block, 'access', _199 => _199.text, 'optionalAccess', _200 => _200.trim, 'call', _201 => _201()]), () => ( ""))) && size >= medianFontSize * 2.5 && !!next && (next.type === "paragraph" || next.type === "heading") && next.pageNumber === block.pageNumber && nextSize >= medianFontSize *
|
|
6839
|
+
return /^\d{1,2}$/.test(_nullishCoalesce(_optionalChain([block, 'access', _199 => _199.text, 'optionalAccess', _200 => _200.trim, 'call', _201 => _201()]), () => ( ""))) && size >= medianFontSize * 2.5 && !!next && (next.type === "paragraph" || next.type === "heading") && next.pageNumber === block.pageNumber && nextSize >= medianFontSize * _chunkYIWEURPRcjs.HEADING_RATIO_H1 && text.length > 0 && text.length <= 80 && !/^[\d\s.]+$/.test(text) && !!a && !!b && a.y > b.y && a.y - (b.y + b.height) <= size * 2;
|
|
6836
6840
|
}
|
|
6837
6841
|
function mergeStackedHeadingLines(blocks, medianFontSize) {
|
|
6838
6842
|
for (let i = 0; i < blocks.length - 1; ) {
|
|
@@ -8574,16 +8578,16 @@ function isProseSpread(items) {
|
|
|
8574
8578
|
for (let i = 1; i < sorted.length; i++) {
|
|
8575
8579
|
gaps.push(sorted[i].x - (sorted[i - 1].x + sorted[i - 1].w));
|
|
8576
8580
|
}
|
|
8577
|
-
const maxGap =
|
|
8581
|
+
const maxGap = _chunkB773KHROcjs.safeMax.call(void 0, gaps);
|
|
8578
8582
|
const avgLen = items.reduce((s, i) => s + i.text.length, 0) / items.length;
|
|
8579
8583
|
if (items.length >= 4 && maxGap < 40 && avgLen < 5) return true;
|
|
8580
|
-
const minGap =
|
|
8584
|
+
const minGap = _chunkB773KHROcjs.safeMin.call(void 0, gaps);
|
|
8581
8585
|
return minGap > 0 && maxGap - minGap <= Math.max(2, maxGap * 0.15) && (items.filter((i) => /^\P{L}*\p{Ll}/u.test(i.text)).length * 2 >= items.length || items.some((i) => /\p{L}[,.;:]["”’)]?$/u.test(i.text)));
|
|
8582
8586
|
}
|
|
8583
8587
|
function detectColumns(yLines) {
|
|
8584
8588
|
const allItems = yLines.flat();
|
|
8585
8589
|
if (allItems.length === 0) return null;
|
|
8586
|
-
const pageWidth =
|
|
8590
|
+
const pageWidth = _chunkB773KHROcjs.safeMax.call(void 0, allItems.map((i) => i.x + i.w)) - _chunkB773KHROcjs.safeMin.call(void 0, allItems.map((i) => i.x));
|
|
8587
8591
|
if (pageWidth < 100) return null;
|
|
8588
8592
|
let bigoLineIdx = -1;
|
|
8589
8593
|
for (let i = 0; i < yLines.length; i++) {
|
|
@@ -8981,13 +8985,13 @@ function partTex(group) {
|
|
|
8981
8985
|
const base = Math.min(...g.filter((i) => i.fontSize >= size * SCRIPT_SIZE_RATIO).map((i) => i.y));
|
|
8982
8986
|
let s = "", run = "";
|
|
8983
8987
|
const flush = () => {
|
|
8984
|
-
if (run) s +=
|
|
8988
|
+
if (run) s += _chunkYIWEURPRcjs.toTex.call(void 0, run);
|
|
8985
8989
|
run = "";
|
|
8986
8990
|
};
|
|
8987
8991
|
g.forEach((it, k) => {
|
|
8988
8992
|
if (it.fontSize < size * SCRIPT_SIZE_RATIO && it.y - base >= size * SCRIPT_RISE_EM) {
|
|
8989
8993
|
flush();
|
|
8990
|
-
s += `^{${
|
|
8994
|
+
s += `^{${_chunkYIWEURPRcjs.toTex.call(void 0, it.text)}}`;
|
|
8991
8995
|
return;
|
|
8992
8996
|
}
|
|
8993
8997
|
if (k && it.x - (g[k - 1].x + g[k - 1].w) > spaceGapThreshold(it.fontSize)) run += " ";
|
|
@@ -9160,7 +9164,7 @@ function rebuildUnitLine(items, grid) {
|
|
|
9160
9164
|
function prependUnitRow(cells, cols, line, usedItems) {
|
|
9161
9165
|
const text = cleanCellText(line.map((item) => item.text).join(""));
|
|
9162
9166
|
cells.unshift(Array.from({ length: cols }, (_, c) => ({ text: c === 0 ? text : "", colSpan: c === 0 ? cols : 1, rowSpan: 1 })));
|
|
9163
|
-
for (const cell of cells[0])
|
|
9167
|
+
for (const cell of cells[0]) _chunkYIWEURPRcjs.CELL_EDGES.set(cell, NO_EDGES);
|
|
9164
9168
|
for (const item of line) usedItems.add(item);
|
|
9165
9169
|
}
|
|
9166
9170
|
function attachUnitRow(items, grid, cells, cols, usedItems) {
|
|
@@ -9742,7 +9746,7 @@ function recordFrameTitle(table, source, pageNum) {
|
|
|
9742
9746
|
const [label, spacer, title] = cells;
|
|
9743
9747
|
if (!/^(?:붙임|별첨|첨부|부록)\s*\d{1,3}$/.test(label.text.trim()) || spacer.text.trim() || !title.text.trim()) return;
|
|
9744
9748
|
if (cells.some((c) => {
|
|
9745
|
-
const e =
|
|
9749
|
+
const e = _chunkYIWEURPRcjs.CELL_EDGES.get(c);
|
|
9746
9750
|
return !e || e.t || e.b || e.l || e.r;
|
|
9747
9751
|
})) return;
|
|
9748
9752
|
const xs = TABLE_COLXS.get(table), style = dominantStyle(source), fs = _nullishCoalesce(_optionalChain([style, 'optionalAccess', _393 => _393.fontSize]), () => ( 0));
|
|
@@ -10493,7 +10497,7 @@ function extractBlocksWithGrids(items, pageNum, pageWidth, pageHeight, grids, ho
|
|
|
10493
10497
|
groupSizes.push(1);
|
|
10494
10498
|
}
|
|
10495
10499
|
const allY = remaining.map((i) => i.y);
|
|
10496
|
-
const pageH =
|
|
10500
|
+
const pageH = _chunkB773KHROcjs.safeMax.call(void 0, allY) - _chunkB773KHROcjs.safeMin.call(void 0, allY);
|
|
10497
10501
|
const gapThreshold = Math.max(15, pageH * 0.03);
|
|
10498
10502
|
const sides = frameColumnTextBands(remaining, spanning, gx);
|
|
10499
10503
|
const textBlocks = [];
|
|
@@ -10509,7 +10513,7 @@ function extractBlocksWithGrids(items, pageNum, pageWidth, pageHeight, grids, ho
|
|
|
10509
10513
|
finalTextBlocks.push(...detectListBlocks(textBlocks));
|
|
10510
10514
|
} else {
|
|
10511
10515
|
const allY = remaining.map((i) => i.y);
|
|
10512
|
-
const pageH =
|
|
10516
|
+
const pageH = _chunkB773KHROcjs.safeMax.call(void 0, allY) - _chunkB773KHROcjs.safeMin.call(void 0, allY);
|
|
10513
10517
|
const gapThreshold = Math.max(15, pageH * 0.03);
|
|
10514
10518
|
const groups = xyCutOrder(remaining, gapThreshold);
|
|
10515
10519
|
const textBlocks = [];
|
|
@@ -10864,7 +10868,7 @@ function extractPageBlocksFallback(items, pageNum, fullPage = false, detectTable
|
|
|
10864
10868
|
blocks.push(...columnTextToBlocks(tableText, pageNum, bbox, dominantStyle(items)));
|
|
10865
10869
|
} else {
|
|
10866
10870
|
const allY = items.map((i) => i.y);
|
|
10867
|
-
const pageHeight =
|
|
10871
|
+
const pageHeight = _chunkB773KHROcjs.safeMax.call(void 0, allY) - _chunkB773KHROcjs.safeMin.call(void 0, allY);
|
|
10868
10872
|
const gapThreshold = Math.max(15, pageHeight * 0.03);
|
|
10869
10873
|
const orderedGroups = proseCutX !== null ? splitTwoColumnProse(items, proseCutX) : xyCutOrder(items, gapThreshold, 0, void 0, minGap);
|
|
10870
10874
|
for (const group of orderedGroups) {
|
|
@@ -11108,4 +11112,4 @@ function rowParagraphs(block) {
|
|
|
11108
11112
|
|
|
11109
11113
|
|
|
11110
11114
|
exports.DEFAULT_OCR_MODELS = DEFAULT_OCR_MODELS; exports.resolveOcrModels = resolveOcrModels; exports.handwritingFallbackModels = handwritingFallbackModels; exports.ocrSelectionKey = ocrSelectionKey; exports.ocrSourcePath = ocrSourcePath; exports.ensureOcrModelsFor = ensureOcrModelsFor; exports.ocrModelsCached = ocrModelsCached; exports.parseCharacterDict = parseCharacterDict; exports.grayCrop = grayCrop; exports.inkStats = inkStats; exports.splitRowBands = splitRowBands; exports.leadingTriangle = leadingTriangle; exports.arrowGlyph = arrowGlyph; exports.leaderRuns = leaderRuns; exports.inkBounds = inkBounds; exports.bracketFeatures = bracketFeatures; exports.slantedPair = slantedPair; exports.romanStems = romanStems; exports.circledAt = circledAt; exports.ringBoxes = ringBoxes; exports.quoteHead = quoteHead; exports.edgeTrim = edgeTrim; exports.tallInkCount = tallInkCount; exports.gapGlyphs = gapGlyphs; exports.ringBullet = ringBullet; exports.dashRatio = dashRatio; exports.leadingRing = leadingRing; exports.discAt = discAt; exports.serifOne = serifOne; exports.starRun = starRun; exports.bracketShape = bracketShape; exports.leadingBullet = leadingBullet; exports.rememberOcrTextGaps = rememberOcrTextGaps; exports.copyOcrTextGaps = copyOcrTextGaps; exports.findOcrTextGaps = findOcrTextGaps; exports.extractLines = extractLines; exports.extractImageRegions = extractImageRegions; exports.NO_EDGES = NO_EDGES; exports.hasOpenCellSeam = hasOpenCellSeam; exports.joinCellEdges = joinCellEdges; exports.filterHiddenText = filterHiddenText; exports.collapseEvenSpacing = collapseEvenSpacing; exports.computeBBox = computeBBox; exports.dominantStyle = dominantStyle; exports.normalizeItems = normalizeItems; exports.groupByY = groupByY; exports.mergeLineSimple = mergeLineSimple; exports.WrapLexicon = WrapLexicon; exports.startsNewItem = startsNewItem; exports.wrapJoiner = wrapJoiner; exports.joinPageBreakWraps = joinPageBreakWraps; exports.splitPageBreakWraps = splitPageBreakWraps; exports.latinSoftWrap = latinSoftWrap; exports.TOC_BLOCKS = TOC_BLOCKS; exports.computeMedianFontSizeFromFreq = computeMedianFontSizeFromFreq; exports.detectHeadings = detectHeadings; exports.mergeStackedHeadingLines = mergeStackedHeadingLines; exports.detectTypographyHeadings = detectTypographyHeadings; exports.detectDocumentStyleHeadings = detectDocumentStyleHeadings; exports.detectSiblingStyleHeadings = detectSiblingStyleHeadings; exports.detectRepeatedPageLabels = detectRepeatedPageLabels; exports.detectPageLeadHeadings = detectPageLeadHeadings; exports.refineDocumentStyleHeadings = refineDocumentStyleHeadings; exports.detectMarkerHeadings = detectMarkerHeadings; exports.detectTableCaptions = detectTableCaptions; exports.detectKoreanListBlocks = detectKoreanListBlocks; exports.removeHeaderFooterBlocks = removeHeaderFooterBlocks; exports.runningLinePatterns = runningLinePatterns; exports.stripAbsorbedRunningLines = stripAbsorbedRunningLines; exports.CLIP_TABLES = CLIP_TABLES; exports.FRAME_TITLE_BLOCKS = FRAME_TITLE_BLOCKS; exports.TABLE_COLXS = TABLE_COLXS; exports.TABLE_ROWYS = TABLE_ROWYS; exports.TABLE_TAIL = TABLE_TAIL; exports.PART_COLXS = PART_COLXS; exports.EMPTY_PARTS = EMPTY_PARTS; exports.IMAGE_CELLS = IMAGE_CELLS; exports.FILLER_CELLS = FILLER_CELLS; exports.CONT_PARTS = CONT_PARTS; exports.CELL_LINES = CELL_LINES; exports.ROW_RULES = ROW_RULES; exports.trimTrailingEmptyTableCols = trimTrailingEmptyTableCols; exports.restoreImageBullets = restoreImageBullets; exports.detectRightArrowRegions = detectRightArrowRegions; exports.removeSideTabs = removeSideTabs; exports.extractPageBlocksWithLines = extractPageBlocksWithLines; exports.UNRULED_REGION_TABLES = UNRULED_REGION_TABLES; exports.mergeOcrImageRegions = mergeOcrImageRegions;
|
|
11111
|
-
//# sourceMappingURL=chunk-
|
|
11115
|
+
//# sourceMappingURL=chunk-ASS2MVTL.cjs.map
|