kordoc 4.24.67 → 4.24.68
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/{-7TPBQODI.js → -C3Z3THPW.js} +21 -21
- package/dist/{chunk-73EKNKTF.js → chunk-25JUTBAL.js} +2 -2
- package/dist/{chunk-OMFCOSBY.js → chunk-2H3SMB3B.js} +2 -2
- package/dist/{chunk-K23AEIDZ.js → chunk-2XQVIGK7.js} +15 -15
- package/dist/{chunk-WGUANGGA.js → chunk-3SM5XU37.js} +11 -11
- package/dist/{chunk-OILA3YTC.js → chunk-4MK5F5XM.js} +2 -2
- package/dist/{chunk-7ULJRLAV.js → chunk-4WT36WX7.js} +6 -5
- package/dist/chunk-4WT36WX7.js.map +1 -0
- package/dist/{chunk-DHYKBCDL.js → chunk-7C43TGTB.js} +2 -2
- package/dist/{chunk-5Z2TRKU7.js → chunk-7KTAGV4D.js} +2 -2
- package/dist/{chunk-NOWCGRKY.js → chunk-7NWCE2VY.js} +2 -2
- package/dist/{chunk-4YLZR2X6.js → chunk-7OPTJUY6.js} +2 -2
- package/dist/{chunk-XV554HLH.js → chunk-A6SE2NST.js} +5 -5
- package/dist/{chunk-HHKGOBE2.js → chunk-AHTJBP7A.js} +5 -5
- package/dist/{chunk-L5GKQX4P.js → chunk-B4NHFT7B.js} +37 -12
- package/dist/chunk-B4NHFT7B.js.map +1 -0
- package/dist/{chunk-T7RMYBYP.js → chunk-BOT37FKF.js} +6 -6
- package/dist/{chunk-MT5WGKV7.cjs → chunk-D2ZQFQTZ.cjs} +58 -58
- package/dist/{chunk-MT5WGKV7.cjs.map → chunk-D2ZQFQTZ.cjs.map} +1 -1
- package/dist/{chunk-B4ILQPEH.js → chunk-DGCOC4B3.js} +2 -2
- package/dist/{chunk-OFWBSK6D.cjs → chunk-DINY7T2A.cjs} +90 -89
- package/dist/chunk-DINY7T2A.cjs.map +1 -0
- package/dist/{chunk-QZTECR6E.js → chunk-DP32H7VA.js} +2 -2
- package/dist/{chunk-GJMIO344.js → chunk-DXJVO26T.js} +2 -2
- package/dist/{chunk-WECXPIBP.js → chunk-ESYTMTTQ.js} +2 -2
- package/dist/{chunk-7TYITQPR.js → chunk-F77HKRWG.js} +2 -2
- package/dist/{chunk-Q2O6KEL3.js → chunk-FHXGNKTC.js} +2 -2
- package/dist/{chunk-FABG65BG.cjs → chunk-G3QRGL6T.cjs} +2 -2
- package/dist/{chunk-FABG65BG.cjs.map → chunk-G3QRGL6T.cjs.map} +1 -1
- package/dist/{chunk-4RRWKO2T.js → chunk-GBGOQMZZ.js} +3 -3
- package/dist/{chunk-FIR4AEWA.cjs → chunk-JBGCNNZA.cjs} +104 -104
- package/dist/{chunk-FIR4AEWA.cjs.map → chunk-JBGCNNZA.cjs.map} +1 -1
- package/dist/{chunk-E7QOWHAY.cjs → chunk-JML6QG4W.cjs} +58 -33
- package/dist/chunk-JML6QG4W.cjs.map +1 -0
- package/dist/{chunk-DUPB5XGN.js → chunk-KNF6YYYU.js} +7 -7
- package/dist/{chunk-SOAIESRF.js → chunk-PDHSRAP3.js} +5 -5
- package/dist/{chunk-FARHGCF2.js → chunk-POBE552D.js} +2 -2
- package/dist/{chunk-3Q7VWFSC.js → chunk-PSXEZILY.js} +2 -2
- package/dist/{chunk-LLQAB3SS.js → chunk-Q5AZNK6C.js} +6 -6
- package/dist/{chunk-3AEPELHI.js → chunk-RA7VOKUV.js} +10 -10
- package/dist/{chunk-TYE5W7RJ.js → chunk-RHSDQW7H.js} +2 -2
- package/dist/{chunk-NMRQGQML.js → chunk-TCBLXD5Z.js} +5 -4
- package/dist/chunk-TCBLXD5Z.js.map +1 -0
- package/dist/{chunk-HFER3UG6.js → chunk-TIY2QIIQ.js} +36 -11
- package/dist/chunk-TIY2QIIQ.js.map +1 -0
- package/dist/{chunk-MKDM6JB4.js → chunk-TULFOJIC.js} +2 -2
- package/dist/{chunk-HY3O6EDL.cjs → chunk-UNIU4XVK.cjs} +3 -3
- package/dist/{chunk-HY3O6EDL.cjs.map → chunk-UNIU4XVK.cjs.map} +1 -1
- package/dist/{chunk-SBJ4MJDD.js → chunk-UY5H3KON.js} +2 -2
- package/dist/{chunk-ZT2YHDRX.js → chunk-VKWYRBL6.js} +3 -3
- package/dist/{chunk-UXWQYWSJ.cjs → chunk-VX2GENK3.cjs} +3 -3
- package/dist/{chunk-UXWQYWSJ.cjs.map → chunk-VX2GENK3.cjs.map} +1 -1
- package/dist/{chunk-6RA4KZHK.cjs → chunk-XOLLE5G3.cjs} +8 -8
- package/dist/{chunk-6RA4KZHK.cjs.map → chunk-XOLLE5G3.cjs.map} +1 -1
- package/dist/{chunk-FYAFEINW.js → chunk-Y4YFLUC6.js} +2 -2
- package/dist/{chunk-JS6P3636.js → chunk-ZKZ2UTYE.js} +3 -3
- package/dist/chunks-4U3V27R4.js +11 -0
- package/dist/cli.js +45 -45
- package/dist/{formula-7ZWQ6LS2.js → formula-6QJJJHSW.js} +3 -3
- package/dist/{formula-OKSR2NJY.js → formula-FCSNTVTN.js} +4 -4
- package/dist/{formula-2IC5OKZ6.cjs → formula-YDHML7KV.cjs} +9 -9
- package/dist/{formula-2IC5OKZ6.cjs.map → formula-YDHML7KV.cjs.map} +1 -1
- package/dist/generator-A4BSUBIF.cjs +12 -0
- package/dist/{generator-6YIOSSFN.cjs.map → generator-A4BSUBIF.cjs.map} +1 -1
- package/dist/generator-AQQJF5AX.js +11 -0
- package/dist/generator-NDAH7PF2.js +18 -0
- package/dist/{hancom-RM65BNHD.cjs → hancom-5OM37MHT.cjs} +5 -5
- package/dist/{hancom-RM65BNHD.cjs.map → hancom-5OM37MHT.cjs.map} +1 -1
- package/dist/{hancom-PBWLHPG6.js → hancom-6JKBAIRT.js} +2 -2
- package/dist/{hancom-42PJQLYF.js → hancom-X3KIP53O.js} +2 -2
- package/dist/{image-ocr-B32JZFLP.js → image-ocr-KZRXKJMH.js} +7 -7
- package/dist/{image-ocr-S4U3UXRJ.js → image-ocr-WMPZGPVU.js} +10 -10
- package/dist/{image-ocr-IIPN7IH6.cjs → image-ocr-XVO6VQ4T.cjs} +28 -28
- package/dist/{image-ocr-IIPN7IH6.cjs.map → image-ocr-XVO6VQ4T.cjs.map} +1 -1
- package/dist/index.cjs +1115 -1115
- package/dist/index.js +9 -9
- package/dist/mcp.js +36 -36
- package/dist/memo-N2VIHKQV.js +17 -0
- package/dist/{model-bundle-MJJ73AEH.js → model-bundle-PTUSKXM7.js} +5 -5
- package/dist/{models-G4JXJ2ON.js → models-VMDK2FPC.js} +5 -5
- package/dist/{parse-worker-v2-TLTNAXAZ.js → parse-worker-v2-X7R7JGJE.js} +22 -22
- package/dist/{parser-YQA3F7IL.js → parser-7MJGTPTB.js} +12 -12
- package/dist/{parser-OXRSENMG.cjs → parser-7O2CD2FX.cjs} +166 -166
- package/dist/{parser-OXRSENMG.cjs.map → parser-7O2CD2FX.cjs.map} +1 -1
- package/dist/{parser-TWCVEECS.js → parser-WEB75HUE.js} +9 -9
- package/dist/{pdf-ocr-2BQ4ME6Y.js → pdf-ocr-CBWYKT43.js} +6 -6
- package/dist/{pdf-ocr-BA5LM535.js → pdf-ocr-GLQACPYG.js} +9 -9
- package/dist/pdf-ocr-IT45EFQV.cjs +43 -0
- package/dist/{pdf-ocr-GKN76Y2W.cjs.map → pdf-ocr-IT45EFQV.cjs.map} +1 -1
- package/dist/{profile-io-PBYC4MTQ.js → profile-io-M3CK3YS6.js} +3 -3
- package/dist/{rasterize-B3H32G23.js → rasterize-7JCIQHNF.js} +3 -3
- package/dist/{redact-doc-QY7DXOQE.js → redact-doc-WJ37S2DZ.js} +21 -21
- package/dist/{render-SRJ6ZIYE.js → render-XVFZPD2F.js} +12 -12
- package/dist/{rewrite-fallback-WVGGZ2QV.js → rewrite-fallback-R5TUFZC5.js} +13 -13
- package/dist/seal-VPCFF62R.js +16 -0
- package/dist/{setup-EHHJHPIQ.js → setup-OUMNLAPE.js} +3 -3
- package/dist/{to-hwpx-ESTHBOHH.js → to-hwpx-CEOJHYBE.js} +7 -7
- package/dist/to-hwpx-DLYI3ONA.cjs +16 -0
- package/dist/{to-hwpx-Y53M4SSD.cjs.map → to-hwpx-DLYI3ONA.cjs.map} +1 -1
- package/dist/{to-hwpx-BYNLZ2U3.js → to-hwpx-XGQCKSR2.js} +4 -4
- package/dist/visual-E3LJV7RT.js +38 -0
- package/dist/{watch-KJMMJVZ4.js → watch-U4BIQDKB.js} +22 -22
- package/package.json +1 -1
- package/dist/chunk-7ULJRLAV.js.map +0 -1
- package/dist/chunk-E7QOWHAY.cjs.map +0 -1
- package/dist/chunk-HFER3UG6.js.map +0 -1
- package/dist/chunk-L5GKQX4P.js.map +0 -1
- package/dist/chunk-NMRQGQML.js.map +0 -1
- package/dist/chunk-OFWBSK6D.cjs.map +0 -1
- package/dist/chunks-XSXJ7WHX.js +0 -11
- package/dist/generator-6YIOSSFN.cjs +0 -12
- package/dist/generator-GYR4PZAJ.js +0 -18
- package/dist/generator-HAJKBJRD.js +0 -11
- package/dist/memo-ZQOVJ7UJ.js +0 -17
- package/dist/pdf-ocr-GKN76Y2W.cjs +0 -43
- package/dist/seal-J7SSWMVR.js +0 -16
- package/dist/to-hwpx-Y53M4SSD.cjs +0 -16
- package/dist/visual-DVJGGPVU.js +0 -38
- /package/dist/{-7TPBQODI.js.map → -C3Z3THPW.js.map} +0 -0
- /package/dist/{chunk-73EKNKTF.js.map → chunk-25JUTBAL.js.map} +0 -0
- /package/dist/{chunk-OMFCOSBY.js.map → chunk-2H3SMB3B.js.map} +0 -0
- /package/dist/{chunk-K23AEIDZ.js.map → chunk-2XQVIGK7.js.map} +0 -0
- /package/dist/{chunk-WGUANGGA.js.map → chunk-3SM5XU37.js.map} +0 -0
- /package/dist/{chunk-OILA3YTC.js.map → chunk-4MK5F5XM.js.map} +0 -0
- /package/dist/{chunk-DHYKBCDL.js.map → chunk-7C43TGTB.js.map} +0 -0
- /package/dist/{chunk-5Z2TRKU7.js.map → chunk-7KTAGV4D.js.map} +0 -0
- /package/dist/{chunk-NOWCGRKY.js.map → chunk-7NWCE2VY.js.map} +0 -0
- /package/dist/{chunk-4YLZR2X6.js.map → chunk-7OPTJUY6.js.map} +0 -0
- /package/dist/{chunk-XV554HLH.js.map → chunk-A6SE2NST.js.map} +0 -0
- /package/dist/{chunk-HHKGOBE2.js.map → chunk-AHTJBP7A.js.map} +0 -0
- /package/dist/{chunk-T7RMYBYP.js.map → chunk-BOT37FKF.js.map} +0 -0
- /package/dist/{chunk-B4ILQPEH.js.map → chunk-DGCOC4B3.js.map} +0 -0
- /package/dist/{chunk-QZTECR6E.js.map → chunk-DP32H7VA.js.map} +0 -0
- /package/dist/{chunk-GJMIO344.js.map → chunk-DXJVO26T.js.map} +0 -0
- /package/dist/{chunk-WECXPIBP.js.map → chunk-ESYTMTTQ.js.map} +0 -0
- /package/dist/{chunk-7TYITQPR.js.map → chunk-F77HKRWG.js.map} +0 -0
- /package/dist/{chunk-Q2O6KEL3.js.map → chunk-FHXGNKTC.js.map} +0 -0
- /package/dist/{chunk-4RRWKO2T.js.map → chunk-GBGOQMZZ.js.map} +0 -0
- /package/dist/{chunk-DUPB5XGN.js.map → chunk-KNF6YYYU.js.map} +0 -0
- /package/dist/{chunk-SOAIESRF.js.map → chunk-PDHSRAP3.js.map} +0 -0
- /package/dist/{chunk-FARHGCF2.js.map → chunk-POBE552D.js.map} +0 -0
- /package/dist/{chunk-3Q7VWFSC.js.map → chunk-PSXEZILY.js.map} +0 -0
- /package/dist/{chunk-LLQAB3SS.js.map → chunk-Q5AZNK6C.js.map} +0 -0
- /package/dist/{chunk-3AEPELHI.js.map → chunk-RA7VOKUV.js.map} +0 -0
- /package/dist/{chunk-TYE5W7RJ.js.map → chunk-RHSDQW7H.js.map} +0 -0
- /package/dist/{chunk-MKDM6JB4.js.map → chunk-TULFOJIC.js.map} +0 -0
- /package/dist/{chunk-SBJ4MJDD.js.map → chunk-UY5H3KON.js.map} +0 -0
- /package/dist/{chunk-ZT2YHDRX.js.map → chunk-VKWYRBL6.js.map} +0 -0
- /package/dist/{chunk-FYAFEINW.js.map → chunk-Y4YFLUC6.js.map} +0 -0
- /package/dist/{chunk-JS6P3636.js.map → chunk-ZKZ2UTYE.js.map} +0 -0
- /package/dist/{chunks-XSXJ7WHX.js.map → chunks-4U3V27R4.js.map} +0 -0
- /package/dist/{formula-7ZWQ6LS2.js.map → formula-6QJJJHSW.js.map} +0 -0
- /package/dist/{formula-OKSR2NJY.js.map → formula-FCSNTVTN.js.map} +0 -0
- /package/dist/{generator-GYR4PZAJ.js.map → generator-AQQJF5AX.js.map} +0 -0
- /package/dist/{generator-HAJKBJRD.js.map → generator-NDAH7PF2.js.map} +0 -0
- /package/dist/{hancom-PBWLHPG6.js.map → hancom-6JKBAIRT.js.map} +0 -0
- /package/dist/{hancom-42PJQLYF.js.map → hancom-X3KIP53O.js.map} +0 -0
- /package/dist/{image-ocr-B32JZFLP.js.map → image-ocr-KZRXKJMH.js.map} +0 -0
- /package/dist/{image-ocr-S4U3UXRJ.js.map → image-ocr-WMPZGPVU.js.map} +0 -0
- /package/dist/{memo-ZQOVJ7UJ.js.map → memo-N2VIHKQV.js.map} +0 -0
- /package/dist/{model-bundle-MJJ73AEH.js.map → model-bundle-PTUSKXM7.js.map} +0 -0
- /package/dist/{models-G4JXJ2ON.js.map → models-VMDK2FPC.js.map} +0 -0
- /package/dist/{parse-worker-v2-TLTNAXAZ.js.map → parse-worker-v2-X7R7JGJE.js.map} +0 -0
- /package/dist/{parser-YQA3F7IL.js.map → parser-7MJGTPTB.js.map} +0 -0
- /package/dist/{parser-TWCVEECS.js.map → parser-WEB75HUE.js.map} +0 -0
- /package/dist/{pdf-ocr-2BQ4ME6Y.js.map → pdf-ocr-CBWYKT43.js.map} +0 -0
- /package/dist/{pdf-ocr-BA5LM535.js.map → pdf-ocr-GLQACPYG.js.map} +0 -0
- /package/dist/{profile-io-PBYC4MTQ.js.map → profile-io-M3CK3YS6.js.map} +0 -0
- /package/dist/{rasterize-B3H32G23.js.map → rasterize-7JCIQHNF.js.map} +0 -0
- /package/dist/{redact-doc-QY7DXOQE.js.map → redact-doc-WJ37S2DZ.js.map} +0 -0
- /package/dist/{render-SRJ6ZIYE.js.map → render-XVFZPD2F.js.map} +0 -0
- /package/dist/{rewrite-fallback-WVGGZ2QV.js.map → rewrite-fallback-R5TUFZC5.js.map} +0 -0
- /package/dist/{seal-J7SSWMVR.js.map → seal-VPCFF62R.js.map} +0 -0
- /package/dist/{setup-EHHJHPIQ.js.map → setup-OUMNLAPE.js.map} +0 -0
- /package/dist/{to-hwpx-BYNLZ2U3.js.map → to-hwpx-CEOJHYBE.js.map} +0 -0
- /package/dist/{to-hwpx-ESTHBOHH.js.map → to-hwpx-XGQCKSR2.js.map} +0 -0
- /package/dist/{visual-DVJGGPVU.js.map → visual-E3LJV7RT.js.map} +0 -0
- /package/dist/{watch-KJMMJVZ4.js.map → watch-U4BIQDKB.js.map} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
KordocError
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-RHSDQW7H.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-7C43TGTB.js.map
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
createXmlParser,
|
|
4
4
|
findChildByLocalName
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-4MK5F5XM.js";
|
|
6
6
|
|
|
7
7
|
// src/render/head-styles.ts
|
|
8
8
|
var DEFAULT_PARA_GEOM = {
|
|
@@ -349,4 +349,4 @@ export {
|
|
|
349
349
|
hwpFaceToCssStack,
|
|
350
350
|
parseRenderStyles
|
|
351
351
|
};
|
|
352
|
-
//# sourceMappingURL=chunk-
|
|
352
|
+
//# sourceMappingURL=chunk-7KTAGV4D.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-RHSDQW7H.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-7NWCE2VY.js.map
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
} from "./chunk-FU6ZDWCI.js";
|
|
6
6
|
import {
|
|
7
7
|
blocksToMarkdown
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-DGCOC4B3.js";
|
|
9
9
|
|
|
10
10
|
// src/qr.ts
|
|
11
11
|
import { readFile } from "fs/promises";
|
|
@@ -212,4 +212,4 @@ export {
|
|
|
212
212
|
dropBlankImages,
|
|
213
213
|
blocksToPages
|
|
214
214
|
};
|
|
215
|
-
//# sourceMappingURL=chunk-
|
|
215
|
+
//# sourceMappingURL=chunk-7OPTJUY6.js.map
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
parseRenderStyles
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-7KTAGV4D.js";
|
|
5
5
|
import {
|
|
6
6
|
patchZipEntries
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-POBE552D.js";
|
|
8
8
|
import {
|
|
9
9
|
applySplices,
|
|
10
10
|
scanSectionXml
|
|
11
11
|
} from "./chunk-3AHL6YEA.js";
|
|
12
12
|
import {
|
|
13
13
|
readZipEntry
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-4MK5F5XM.js";
|
|
15
15
|
import {
|
|
16
16
|
KordocError,
|
|
17
17
|
precheckZipSize
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-RHSDQW7H.js";
|
|
19
19
|
|
|
20
20
|
// src/form/seal.ts
|
|
21
21
|
import JSZip from "jszip";
|
|
@@ -321,4 +321,4 @@ export {
|
|
|
321
321
|
collectSites,
|
|
322
322
|
placeSealHwpx
|
|
323
323
|
};
|
|
324
|
-
//# sourceMappingURL=chunk-
|
|
324
|
+
//# sourceMappingURL=chunk-A6SE2NST.js.map
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
parseFileHeader,
|
|
38
38
|
readRecords,
|
|
39
39
|
resolveLiteralLt
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-7NWCE2VY.js";
|
|
41
41
|
import {
|
|
42
42
|
TOC_ENTRY_BLOCKS,
|
|
43
43
|
takeTocLeaders
|
|
@@ -55,7 +55,7 @@ import {
|
|
|
55
55
|
HEADING_RATIO_H3,
|
|
56
56
|
tidyScriptTags,
|
|
57
57
|
unframeLayoutTables
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-ESYTMTTQ.js";
|
|
59
59
|
import {
|
|
60
60
|
MAX_COLS,
|
|
61
61
|
MAX_ROWS,
|
|
@@ -68,7 +68,7 @@ import {
|
|
|
68
68
|
flattenLayoutTables,
|
|
69
69
|
markNonLayoutTable,
|
|
70
70
|
sanitizeText
|
|
71
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-DGCOC4B3.js";
|
|
72
72
|
import {
|
|
73
73
|
circledHangul,
|
|
74
74
|
circledNumber,
|
|
@@ -79,7 +79,7 @@ import {
|
|
|
79
79
|
import {
|
|
80
80
|
KordocError,
|
|
81
81
|
sanitizeHref
|
|
82
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-RHSDQW7H.js";
|
|
83
83
|
|
|
84
84
|
// src/memo-notes.ts
|
|
85
85
|
var squash = (s) => sanitizeText(s).replace(/\s+/g, "");
|
|
@@ -2827,4 +2827,4 @@ export {
|
|
|
2827
2827
|
parseHwp5Document,
|
|
2828
2828
|
extractHwp5MetadataOnly
|
|
2829
2829
|
};
|
|
2830
|
-
//# sourceMappingURL=chunk-
|
|
2830
|
+
//# sourceMappingURL=chunk-AHTJBP7A.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ensureModelsIn,
|
|
3
3
|
getModelsDir
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-25JUTBAL.js";
|
|
5
5
|
import {
|
|
6
6
|
CELL_EDGES,
|
|
7
7
|
HEADING_RATIO_H1,
|
|
@@ -9,11 +9,11 @@ import {
|
|
|
9
9
|
HEADING_RATIO_H3,
|
|
10
10
|
tidyScriptTags,
|
|
11
11
|
toTex
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-DXJVO26T.js";
|
|
13
13
|
import {
|
|
14
14
|
safeMax,
|
|
15
15
|
safeMin
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-FHXGNKTC.js";
|
|
17
17
|
|
|
18
18
|
// src/ocr/models.ts
|
|
19
19
|
import { join } from "path";
|
|
@@ -1929,6 +1929,7 @@ function closeOpenTableEdges(horizontals, verticals) {
|
|
|
1929
1929
|
return synthesized.length ? [...verticals, ...synthesized] : verticals;
|
|
1930
1930
|
}
|
|
1931
1931
|
var WHITE_EDGES = /* @__PURE__ */ new WeakSet();
|
|
1932
|
+
var isWhiteFillEdge = (l) => !!l.fromFill && WHITE_EDGES.has(l);
|
|
1932
1933
|
function mergeParallelLines(lines, dir, nonRules, perp) {
|
|
1933
1934
|
if (lines.length <= 1) return lines;
|
|
1934
1935
|
const sorted = [...lines].sort((a, b) => {
|
|
@@ -3496,6 +3497,7 @@ function extractCells(grid, horizontals, verticals) {
|
|
|
3496
3497
|
}
|
|
3497
3498
|
}
|
|
3498
3499
|
recordOpenEndCellEdges(grid, cells, horizontals);
|
|
3500
|
+
if (!grid.cells && invisibleFillGrid(grid, horizontals, verticals)) for (const c of cells) CLIP_CELL_EDGES.set(c, NO_EDGES);
|
|
3499
3501
|
return cells;
|
|
3500
3502
|
}
|
|
3501
3503
|
var NO_LINE = 0;
|
|
@@ -3546,6 +3548,14 @@ function hasHorizontalLine(horizontals, y, leftX, rightX, vertexRadius) {
|
|
|
3546
3548
|
}
|
|
3547
3549
|
return false;
|
|
3548
3550
|
}
|
|
3551
|
+
function invisibleFillGrid(grid, horizontals, verticals) {
|
|
3552
|
+
const tol = 2, { x1, x2, y1, y2 } = grid.bbox;
|
|
3553
|
+
const inside = [
|
|
3554
|
+
...horizontals.filter((l) => l.y1 >= y1 - tol && l.y1 <= y2 + tol && Math.max(l.x1, l.x2) >= x1 - tol && Math.min(l.x1, l.x2) <= x2 + tol),
|
|
3555
|
+
...verticals.filter((l) => l.x1 >= x1 - tol && l.x1 <= x2 + tol && Math.max(l.y1, l.y2) >= y1 - tol && Math.min(l.y1, l.y2) <= y2 + tol)
|
|
3556
|
+
];
|
|
3557
|
+
return x2 - x1 >= 300 && grid.rowYs.length >= 4 && inside.length > 0 && inside.every(isWhiteFillEdge);
|
|
3558
|
+
}
|
|
3549
3559
|
|
|
3550
3560
|
// src/pdf/script-items.ts
|
|
3551
3561
|
function scriptKindsOfLine(sorted) {
|
|
@@ -5214,7 +5224,9 @@ function detectClusterTables(items, pageNum, rejected, lex) {
|
|
|
5214
5224
|
const columns = extractColumnClusters(suspiciousRows);
|
|
5215
5225
|
if (columns.length >= MIN_COLS) {
|
|
5216
5226
|
const tableRegions = findTableRegions(rows, columns);
|
|
5217
|
-
for (const
|
|
5227
|
+
for (const found of tableRegions) {
|
|
5228
|
+
const region = { ...found, rows: trimCjkProseEdges(found.rows) };
|
|
5229
|
+
if (region.rows.length < MIN_ROWS) continue;
|
|
5218
5230
|
const own = extractColumnClusters(region.rows.filter((row) => hasSuspiciousGaps(row)));
|
|
5219
5231
|
const ownTable = own.length >= MIN_COLS && own.length < columns.length ? buildClusterTable(mergeMultiLineRows(region.rows, own), own, pageNum, lex) : null;
|
|
5220
5232
|
const table = ownTable && ownTable.table.cells.every((row, r) => row.every((cell) => (r === 0 || cell.colSpan >= ownTable.table.cols || cell.text.trim().length <= 30) && !/\p{Co}/u.test(cell.text))) ? ownTable : buildClusterTable(mergeMultiLineRows(region.rows, columns), columns, pageNum, lex);
|
|
@@ -5260,17 +5272,30 @@ function detectClusterTables(items, pageNum, rejected, lex) {
|
|
|
5260
5272
|
function gaplessCjkLines(r) {
|
|
5261
5273
|
let lines = 0, gapless = 0;
|
|
5262
5274
|
for (const row of groupByBaseline([...r.usedItems].filter((i) => i.text.trim()))) {
|
|
5263
|
-
|
|
5264
|
-
if (sorted.length < 2) continue;
|
|
5275
|
+
if (row.items.length < 2) continue;
|
|
5265
5276
|
lines++;
|
|
5266
|
-
|
|
5267
|
-
if ([...text].filter((c) => CJK_CHAR.test(c)).length < text.length * 0.5) continue;
|
|
5268
|
-
let maxGap = 0;
|
|
5269
|
-
for (let k = [...sorted[0].text.trim()].length <= 2 ? 2 : 1; k < sorted.length; k++) maxGap = Math.max(maxGap, sorted[k].x - (sorted[k - 1].x + sorted[k - 1].w));
|
|
5270
|
-
if (maxGap < sorted[0].fontSize * 0.5) gapless++;
|
|
5277
|
+
if (gaplessCjkRow(row.items)) gapless++;
|
|
5271
5278
|
}
|
|
5272
5279
|
return gapless >= 3 && gapless >= lines * 0.6;
|
|
5273
5280
|
}
|
|
5281
|
+
function gaplessCjkRow(items) {
|
|
5282
|
+
const sorted = [...items].filter((i) => i.text.trim()).sort((a, b) => a.x - b.x);
|
|
5283
|
+
if (sorted.length < 2) return false;
|
|
5284
|
+
const text = sorted.map((i) => i.text).join("").replace(/\s+/g, "");
|
|
5285
|
+
if ([...text].filter((c) => CJK_CHAR.test(c)).length < text.length * 0.5) return false;
|
|
5286
|
+
let maxGap = 0;
|
|
5287
|
+
for (let k = [...sorted[0].text.trim()].length <= 2 ? 2 : 1; k < sorted.length; k++) maxGap = Math.max(maxGap, sorted[k].x - (sorted[k - 1].x + sorted[k - 1].w));
|
|
5288
|
+
return maxGap < sorted[0].fontSize * 0.5;
|
|
5289
|
+
}
|
|
5290
|
+
function trimCjkProseEdges(rows) {
|
|
5291
|
+
const multi = rows.filter((r) => r.items.filter((i) => i.text.trim()).length >= 2);
|
|
5292
|
+
const gapless = multi.filter((r) => gaplessCjkRow(r.items)).length;
|
|
5293
|
+
if (gapless >= 3 && gapless >= multi.length * 0.6) return rows;
|
|
5294
|
+
let a = 0, b = rows.length;
|
|
5295
|
+
while (a < b && gaplessCjkRow(rows[a].items)) a++;
|
|
5296
|
+
while (b > a && gaplessCjkRow(rows[b - 1].items)) b--;
|
|
5297
|
+
return a + rows.length - b >= 2 ? rows.slice(a, b) : rows;
|
|
5298
|
+
}
|
|
5274
5299
|
var CJK_CHAR = /[\u3000-\u303f\u3040-\u30ff\u3400-\u9fff\uf900-\ufaff\uff00-\uffef]/;
|
|
5275
5300
|
var SIDE_TAB_MIN = 6;
|
|
5276
5301
|
var SIDE_TAB_BAND_MIN = 4;
|
|
@@ -11426,4 +11451,4 @@ export {
|
|
|
11426
11451
|
UNRULED_REGION_TABLES,
|
|
11427
11452
|
mergeOcrImageRegions
|
|
11428
11453
|
};
|
|
11429
|
-
//# sourceMappingURL=chunk-
|
|
11454
|
+
//# sourceMappingURL=chunk-B4NHFT7B.js.map
|