kordoc 4.24.47 → 4.24.49
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/NOTICE +21 -0
- package/README.md +4 -4
- package/dist/{-PWMZE4CC.js → -22V6D2US.js} +42 -42
- package/dist/{chunk-RQ4XTX4J.cjs → chunk-2UWWWM4Q.cjs} +98 -98
- package/dist/{chunk-RQ4XTX4J.cjs.map → chunk-2UWWWM4Q.cjs.map} +1 -1
- package/dist/{chunk-3CWVQNFL.cjs → chunk-367WLMPO.cjs} +59 -67
- package/dist/chunk-367WLMPO.cjs.map +1 -0
- package/dist/{chunk-Z5TDZDWU.js → chunk-4HJKBRZJ.js} +153 -50
- package/dist/chunk-4HJKBRZJ.js.map +1 -0
- package/dist/{chunk-GRQXAWNW.js → chunk-4MWUBTAE.js} +2 -2
- package/dist/{chunk-TN5ZK2WN.js → chunk-67GSFYG7.js} +2 -2
- package/dist/{chunk-TGLXN6VH.js → chunk-6BFWLS7E.js} +3 -3
- package/dist/{chunk-X7RBVVDC.cjs → chunk-6NZ32OTX.cjs} +9 -3
- package/dist/chunk-6NZ32OTX.cjs.map +1 -0
- package/dist/{chunk-Q3UCWUEV.js → chunk-7KKL3PRK.js} +5 -13
- package/dist/chunk-7KKL3PRK.js.map +1 -0
- package/dist/{chunk-T5J4GW6B.js → chunk-AUAJVQQK.js} +2 -2
- package/dist/{chunk-KIVWAZKL.js → chunk-AXW2FMVR.js} +2 -2
- package/dist/{chunk-LEUAWTMU.js → chunk-CCQMSIZQ.js} +19 -19
- package/dist/{chunk-PM46GSMV.js → chunk-DA5AXURC.js} +194 -6
- package/dist/chunk-DA5AXURC.js.map +1 -0
- package/dist/{chunk-SUIH5LY7.js → chunk-DAAJO62F.js} +2 -2
- package/dist/{chunk-4MNRUPS5.js → chunk-EUJX7HTR.js} +53 -10
- package/dist/chunk-EUJX7HTR.js.map +1 -0
- package/dist/{chunk-56FEGA44.js → chunk-EYSXMDA7.js} +17 -17
- package/dist/{chunk-VKVDMH7X.js → chunk-FU6ZDWCI.js} +8 -2
- package/dist/chunk-FU6ZDWCI.js.map +1 -0
- package/dist/{chunk-KSE5HSU3.js → chunk-HETGOJ6V.js} +8 -5
- package/dist/chunk-HETGOJ6V.js.map +1 -0
- package/dist/{chunk-HFQFCAEJ.js → chunk-HW7WVYBF.js} +2 -2
- package/dist/{chunk-O2652KK3.cjs → chunk-IRAZCKQ6.cjs} +3 -3
- package/dist/{chunk-O2652KK3.cjs.map → chunk-IRAZCKQ6.cjs.map} +1 -1
- package/dist/{chunk-AB7MYMPZ.js → chunk-KB4ORA7M.js} +2 -2
- package/dist/{chunk-57BKTVR5.js → chunk-KXHUHGMC.js} +2 -2
- package/dist/{chunk-YLYSJSEP.js → chunk-L3JP55ZY.js} +2 -2
- package/dist/{chunk-2CBIY2OH.js → chunk-LCRSRVFJ.js} +2 -2
- package/dist/{chunk-2CBIY2OH.js.map → chunk-LCRSRVFJ.js.map} +1 -1
- package/dist/{chunk-IPXFIH5E.js → chunk-LFFARZYZ.js} +8 -5
- package/dist/chunk-LFFARZYZ.js.map +1 -0
- package/dist/{chunk-BO2IJGNZ.js → chunk-LOSCIAHY.js} +2 -2
- package/dist/{chunk-SQ5Q4Q3R.js → chunk-M5RQ2PNP.js} +6 -14
- package/dist/chunk-M5RQ2PNP.js.map +1 -0
- package/dist/{chunk-MOWJOFIH.js → chunk-MIJTZKWF.js} +2 -2
- package/dist/chunk-MLBX6KQM.js +153 -0
- package/dist/chunk-MLBX6KQM.js.map +1 -0
- package/dist/{chunk-HMD35PMD.js → chunk-OAETOHH3.js} +3 -3
- package/dist/{chunk-IWC6PTMT.js → chunk-PMGJQWSW.js} +2 -2
- package/dist/{chunk-LMHE4HDR.cjs → chunk-PVV6OY4M.cjs} +286 -98
- package/dist/chunk-PVV6OY4M.cjs.map +1 -0
- package/dist/{chunk-BKK2SMVM.cjs → chunk-PW7MQZI4.cjs} +2 -2
- package/dist/{chunk-BKK2SMVM.cjs.map → chunk-PW7MQZI4.cjs.map} +1 -1
- package/dist/{chunk-NYIJU4Q6.js → chunk-Q7FDPJUS.js} +10 -10
- package/dist/{chunk-FI7ULBC6.js → chunk-R2RLNUNK.js} +6 -6
- package/dist/{chunk-AO3YFJVW.js → chunk-RQLEGKEV.js} +2 -2
- package/dist/{chunk-OAKJNKAS.js → chunk-S54DZB2Z.js} +193 -5
- package/dist/chunk-S54DZB2Z.js.map +1 -0
- package/dist/{chunk-A67OXFXM.js → chunk-TAHS42ED.js} +54 -11
- package/dist/chunk-TAHS42ED.js.map +1 -0
- package/dist/{chunk-WAFJUSUF.cjs → chunk-TQOAPKLU.cjs} +11 -8
- package/dist/chunk-TQOAPKLU.cjs.map +1 -0
- package/dist/{chunk-UFY6XX4U.cjs → chunk-UBY2PLKR.cjs} +75 -32
- package/dist/chunk-UBY2PLKR.cjs.map +1 -0
- package/dist/{chunk-U556XJW6.js → chunk-UJELMNOU.js} +8 -2
- package/dist/chunk-UJELMNOU.js.map +1 -0
- package/dist/{chunk-FOTG4MMD.js → chunk-UU54HN5I.js} +6 -6
- package/dist/{chunk-BP5GDQBT.js → chunk-VMOUAWGD.js} +7 -7
- package/dist/{chunk-2VXVBB5Q.js → chunk-WLFZOBZR.js} +3 -3
- package/dist/chunk-Y4MFHEK4.cjs +156 -0
- package/dist/chunk-Y4MFHEK4.cjs.map +1 -0
- package/dist/{chunk-VL43TUO6.js → chunk-Y6QW3FJQ.js} +2 -2
- package/dist/chunk-ZF24SO45.js +154 -0
- package/dist/chunk-ZF24SO45.js.map +1 -0
- package/dist/chunks-Q7242OJE.js +11 -0
- package/dist/cli.js +74 -53
- package/dist/cli.js.map +1 -1
- package/dist/{formula-W5MTLANP.js → formula-BYEDWWZU.js} +4 -4
- package/dist/{formula-2BQBGPM2.js → formula-FQLMMBDP.js} +3 -3
- package/dist/{formula-V6CNOC4G.cjs → formula-QJEOIVKR.cjs} +9 -9
- package/dist/{formula-V6CNOC4G.cjs.map → formula-QJEOIVKR.cjs.map} +1 -1
- package/dist/generator-FTM6GOGB.cjs +11 -0
- package/dist/{generator-U2BRFTJ4.cjs.map → generator-FTM6GOGB.cjs.map} +1 -1
- package/dist/generator-Q3L7RNUY.js +17 -0
- package/dist/generator-SU73HZHR.js +10 -0
- package/dist/{image-ocr-COBRSG6O.js → image-ocr-7Y3FCGRR.js} +12 -10
- package/dist/image-ocr-7Y3FCGRR.js.map +1 -0
- package/dist/{image-ocr-2WSZULNO.js → image-ocr-VIGZE4YL.js} +9 -7
- package/dist/image-ocr-VIGZE4YL.js.map +1 -0
- package/dist/{image-ocr-MVOSHIY5.cjs → image-ocr-WRILL3WO.cjs} +29 -27
- package/dist/image-ocr-WRILL3WO.cjs.map +1 -0
- package/dist/index.cjs +1645 -1542
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +18 -5
- package/dist/index.d.ts +18 -5
- package/dist/index.js +231 -128
- package/dist/index.js.map +1 -1
- package/dist/mcp.js +42 -43
- package/dist/mcp.js.map +1 -1
- package/dist/memo-T5ZQEXEA.js +17 -0
- package/dist/{model-bundle-LFLRW2SI.js → model-bundle-UJRQPYUU.js} +5 -5
- package/dist/{models-UGOWUUAL.js → models-64YLAWTI.js} +5 -5
- package/dist/{parse-worker-v2-LCCTZWPT.js → parse-worker-v2-QWQZKFQO.js} +26 -24
- package/dist/parse-worker-v2-QWQZKFQO.js.map +1 -0
- package/dist/{parser-JAL2OOOL.js → parser-JPWANPLM.js} +428 -42
- package/dist/parser-JPWANPLM.js.map +1 -0
- package/dist/{parser-RE52HQXO.cjs → parser-RB6CBNAM.cjs} +720 -334
- package/dist/parser-RB6CBNAM.cjs.map +1 -0
- package/dist/{parser-J56FGU6P.js → parser-XFU3VRWM.js} +431 -45
- package/dist/parser-XFU3VRWM.js.map +1 -0
- package/dist/pdf-ocr-NOJHEH4M.cjs +42 -0
- package/dist/{pdf-ocr-5O336TCR.cjs.map → pdf-ocr-NOJHEH4M.cjs.map} +1 -1
- package/dist/{pdf-ocr-PQZZVFI5.js → pdf-ocr-XTZZEYKJ.js} +6 -6
- package/dist/{pdf-ocr-NQ3HAL77.js → pdf-ocr-ZV3KYIIE.js} +9 -9
- package/dist/{profile-io-K22CB2ZB.js → profile-io-FAJORRD2.js} +3 -3
- package/dist/{rasterize-A6B5K4QN.js → rasterize-4ZJUA2DZ.js} +3 -3
- package/dist/{redact-doc-TPXMML5Q.js → redact-doc-JPNROEH6.js} +30 -30
- package/dist/{render-ROFIMWW5.js → render-D4WBOBKI.js} +13 -13
- package/dist/{rewrite-fallback-WG7Z3LR3.js → rewrite-fallback-OF3QI6CX.js} +14 -14
- package/dist/seal-DQWEHIAM.js +16 -0
- package/dist/{setup-J5SHDFIE.js → setup-YC25YCQB.js} +3 -3
- package/dist/to-hwpx-D7OMPDUQ.js +21 -0
- package/dist/to-hwpx-LUA6F5RR.cjs +16 -0
- package/dist/{to-hwpx-RWDQB3T2.cjs.map → to-hwpx-LUA6F5RR.cjs.map} +1 -1
- package/dist/{to-hwpx-X7JE6YJB.js → to-hwpx-ZWN64NCQ.js} +5 -5
- package/dist/visual-SW7NPY6K.js +37 -0
- package/dist/{watch-WZBW6UE7.js → watch-ZU576VSR.js} +24 -24
- package/package.json +3 -2
- package/dist/chunk-3CWVQNFL.cjs.map +0 -1
- package/dist/chunk-4MNRUPS5.js.map +0 -1
- package/dist/chunk-A67OXFXM.js.map +0 -1
- package/dist/chunk-AYM7XTI2.js +0 -31
- package/dist/chunk-AYM7XTI2.js.map +0 -1
- package/dist/chunk-CQ33HCSU.js +0 -32
- package/dist/chunk-CQ33HCSU.js.map +0 -1
- package/dist/chunk-IPXFIH5E.js.map +0 -1
- package/dist/chunk-KSE5HSU3.js.map +0 -1
- package/dist/chunk-LMHE4HDR.cjs.map +0 -1
- package/dist/chunk-OAKJNKAS.js.map +0 -1
- package/dist/chunk-PM46GSMV.js.map +0 -1
- package/dist/chunk-Q3UCWUEV.js.map +0 -1
- package/dist/chunk-SQ5Q4Q3R.js.map +0 -1
- package/dist/chunk-U556XJW6.js.map +0 -1
- package/dist/chunk-UFY6XX4U.cjs.map +0 -1
- package/dist/chunk-VKVDMH7X.js.map +0 -1
- package/dist/chunk-WAFJUSUF.cjs.map +0 -1
- package/dist/chunk-WPLAEJU5.cjs +0 -31
- package/dist/chunk-WPLAEJU5.cjs.map +0 -1
- package/dist/chunk-X7RBVVDC.cjs.map +0 -1
- package/dist/chunk-Z5TDZDWU.js.map +0 -1
- package/dist/chunks-SHXTE5HM.js +0 -11
- package/dist/generator-E4VQKPRP.js +0 -10
- package/dist/generator-MBR4V3JQ.js +0 -17
- package/dist/generator-U2BRFTJ4.cjs +0 -11
- package/dist/hancom-7SU4XBXJ.js +0 -84
- package/dist/hancom-7SU4XBXJ.js.map +0 -1
- package/dist/hancom-MP7D7HWW.cjs +0 -85
- package/dist/hancom-MP7D7HWW.cjs.map +0 -1
- package/dist/hancom-RNJWH63M.js +0 -85
- package/dist/hancom-RNJWH63M.js.map +0 -1
- package/dist/image-ocr-2WSZULNO.js.map +0 -1
- package/dist/image-ocr-COBRSG6O.js.map +0 -1
- package/dist/image-ocr-MVOSHIY5.cjs.map +0 -1
- package/dist/memo-QJ5RKTBN.js +0 -17
- package/dist/parse-worker-v2-LCCTZWPT.js.map +0 -1
- package/dist/parser-J56FGU6P.js.map +0 -1
- package/dist/parser-JAL2OOOL.js.map +0 -1
- package/dist/parser-RE52HQXO.cjs.map +0 -1
- package/dist/pdf-ocr-5O336TCR.cjs +0 -42
- package/dist/seal-35U76WY2.js +0 -16
- package/dist/to-hwpx-RWDQB3T2.cjs +0 -16
- package/dist/to-hwpx-XQULU2I7.js +0 -21
- package/dist/visual-4HRP2VIH.js +0 -37
- /package/dist/{-PWMZE4CC.js.map → -22V6D2US.js.map} +0 -0
- /package/dist/{chunk-GRQXAWNW.js.map → chunk-4MWUBTAE.js.map} +0 -0
- /package/dist/{chunk-TN5ZK2WN.js.map → chunk-67GSFYG7.js.map} +0 -0
- /package/dist/{chunk-TGLXN6VH.js.map → chunk-6BFWLS7E.js.map} +0 -0
- /package/dist/{chunk-T5J4GW6B.js.map → chunk-AUAJVQQK.js.map} +0 -0
- /package/dist/{chunk-KIVWAZKL.js.map → chunk-AXW2FMVR.js.map} +0 -0
- /package/dist/{chunk-LEUAWTMU.js.map → chunk-CCQMSIZQ.js.map} +0 -0
- /package/dist/{chunk-SUIH5LY7.js.map → chunk-DAAJO62F.js.map} +0 -0
- /package/dist/{chunk-56FEGA44.js.map → chunk-EYSXMDA7.js.map} +0 -0
- /package/dist/{chunk-HFQFCAEJ.js.map → chunk-HW7WVYBF.js.map} +0 -0
- /package/dist/{chunk-AB7MYMPZ.js.map → chunk-KB4ORA7M.js.map} +0 -0
- /package/dist/{chunk-57BKTVR5.js.map → chunk-KXHUHGMC.js.map} +0 -0
- /package/dist/{chunk-YLYSJSEP.js.map → chunk-L3JP55ZY.js.map} +0 -0
- /package/dist/{chunk-BO2IJGNZ.js.map → chunk-LOSCIAHY.js.map} +0 -0
- /package/dist/{chunk-MOWJOFIH.js.map → chunk-MIJTZKWF.js.map} +0 -0
- /package/dist/{chunk-HMD35PMD.js.map → chunk-OAETOHH3.js.map} +0 -0
- /package/dist/{chunk-IWC6PTMT.js.map → chunk-PMGJQWSW.js.map} +0 -0
- /package/dist/{chunk-NYIJU4Q6.js.map → chunk-Q7FDPJUS.js.map} +0 -0
- /package/dist/{chunk-FI7ULBC6.js.map → chunk-R2RLNUNK.js.map} +0 -0
- /package/dist/{chunk-AO3YFJVW.js.map → chunk-RQLEGKEV.js.map} +0 -0
- /package/dist/{chunk-FOTG4MMD.js.map → chunk-UU54HN5I.js.map} +0 -0
- /package/dist/{chunk-BP5GDQBT.js.map → chunk-VMOUAWGD.js.map} +0 -0
- /package/dist/{chunk-2VXVBB5Q.js.map → chunk-WLFZOBZR.js.map} +0 -0
- /package/dist/{chunk-VL43TUO6.js.map → chunk-Y6QW3FJQ.js.map} +0 -0
- /package/dist/{chunks-SHXTE5HM.js.map → chunks-Q7242OJE.js.map} +0 -0
- /package/dist/{formula-W5MTLANP.js.map → formula-BYEDWWZU.js.map} +0 -0
- /package/dist/{formula-2BQBGPM2.js.map → formula-FQLMMBDP.js.map} +0 -0
- /package/dist/{generator-E4VQKPRP.js.map → generator-Q3L7RNUY.js.map} +0 -0
- /package/dist/{generator-MBR4V3JQ.js.map → generator-SU73HZHR.js.map} +0 -0
- /package/dist/{memo-QJ5RKTBN.js.map → memo-T5ZQEXEA.js.map} +0 -0
- /package/dist/{model-bundle-LFLRW2SI.js.map → model-bundle-UJRQPYUU.js.map} +0 -0
- /package/dist/{models-UGOWUUAL.js.map → models-64YLAWTI.js.map} +0 -0
- /package/dist/{pdf-ocr-NQ3HAL77.js.map → pdf-ocr-XTZZEYKJ.js.map} +0 -0
- /package/dist/{pdf-ocr-PQZZVFI5.js.map → pdf-ocr-ZV3KYIIE.js.map} +0 -0
- /package/dist/{profile-io-K22CB2ZB.js.map → profile-io-FAJORRD2.js.map} +0 -0
- /package/dist/{rasterize-A6B5K4QN.js.map → rasterize-4ZJUA2DZ.js.map} +0 -0
- /package/dist/{redact-doc-TPXMML5Q.js.map → redact-doc-JPNROEH6.js.map} +0 -0
- /package/dist/{render-ROFIMWW5.js.map → render-D4WBOBKI.js.map} +0 -0
- /package/dist/{rewrite-fallback-WG7Z3LR3.js.map → rewrite-fallback-OF3QI6CX.js.map} +0 -0
- /package/dist/{seal-35U76WY2.js.map → seal-DQWEHIAM.js.map} +0 -0
- /package/dist/{setup-J5SHDFIE.js.map → setup-YC25YCQB.js.map} +0 -0
- /package/dist/{to-hwpx-X7JE6YJB.js.map → to-hwpx-D7OMPDUQ.js.map} +0 -0
- /package/dist/{to-hwpx-XQULU2I7.js.map → to-hwpx-ZWN64NCQ.js.map} +0 -0
- /package/dist/{visual-4HRP2VIH.js.map → visual-SW7NPY6K.js.map} +0 -0
- /package/dist/{watch-WZBW6UE7.js.map → watch-ZU576VSR.js.map} +0 -0
|
@@ -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 _chunkIRAZCKQ6cjs = require('./chunk-IRAZCKQ6.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -9,11 +9,11 @@ var _chunkO2652KK3cjs = require('./chunk-O2652KK3.cjs');
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkTQOAPKLUcjs = require('./chunk-TQOAPKLU.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkPW7MQZI4cjs = require('./chunk-PW7MQZI4.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 _chunkIRAZCKQ6cjs.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 _chunkIRAZCKQ6cjs.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);
|
|
@@ -1723,6 +1723,7 @@ function closeOpenTableEdges(horizontals, verticals) {
|
|
|
1723
1723
|
if (!placed) groups.push([hl]);
|
|
1724
1724
|
}
|
|
1725
1725
|
const splitGroups = [];
|
|
1726
|
+
const cuts = [];
|
|
1726
1727
|
for (const g of groups) {
|
|
1727
1728
|
const sorted = [...g].sort((a, b) => a.y1 - b.y1);
|
|
1728
1729
|
const gaps = [];
|
|
@@ -1747,11 +1748,31 @@ function closeOpenTableEdges(horizontals, verticals) {
|
|
|
1747
1748
|
if (median3 > 0 && between && gap > EDGE_YGAP_ABS_MIN && !bridged && cur.length >= EDGE_MIN_RULES && sorted.length - i >= EDGE_MIN_RULES) {
|
|
1748
1749
|
splitGroups.push(cur);
|
|
1749
1750
|
cur = [];
|
|
1751
|
+
cuts.push({ yLo, yHi, x1: gx1, x2: gx2 });
|
|
1750
1752
|
}
|
|
1751
1753
|
cur.push(sorted[i]);
|
|
1752
1754
|
}
|
|
1753
1755
|
if (cur.length) splitGroups.push(cur);
|
|
1754
1756
|
}
|
|
1757
|
+
if (cuts.length) {
|
|
1758
|
+
const parts = [];
|
|
1759
|
+
for (const g of splitGroups) {
|
|
1760
|
+
const gx1 = Math.min(...g.map((l) => l.x1)), gx2 = Math.max(...g.map((l) => l.x2));
|
|
1761
|
+
const own = cuts.filter((c) => Math.min(c.x2, gx2) - Math.max(c.x1, gx1) >= (gx2 - gx1) * 0.5);
|
|
1762
|
+
let cur = [];
|
|
1763
|
+
for (const l of g) {
|
|
1764
|
+
const prev = cur[cur.length - 1];
|
|
1765
|
+
if (prev && own.some((c) => prev.y1 <= c.yLo + EDGE_CONNECT_TOL && l.y1 >= c.yHi - EDGE_CONNECT_TOL)) {
|
|
1766
|
+
parts.push(cur);
|
|
1767
|
+
cur = [];
|
|
1768
|
+
}
|
|
1769
|
+
cur.push(l);
|
|
1770
|
+
}
|
|
1771
|
+
if (cur.length) parts.push(cur);
|
|
1772
|
+
}
|
|
1773
|
+
splitGroups.length = 0;
|
|
1774
|
+
splitGroups.push(...parts);
|
|
1775
|
+
}
|
|
1755
1776
|
const synthesized = [];
|
|
1756
1777
|
for (const g of splitGroups) {
|
|
1757
1778
|
if (g.length < EDGE_MIN_RULES) continue;
|
|
@@ -3259,16 +3280,16 @@ function recordOpenEndCellEdges(grid, cells, horizontals) {
|
|
|
3259
3280
|
}
|
|
3260
3281
|
function takeClipCellEdges(from, to) {
|
|
3261
3282
|
const e = CLIP_CELL_EDGES.get(from);
|
|
3262
|
-
if (e)
|
|
3283
|
+
if (e) _chunkTQOAPKLUcjs.CELL_EDGES.set(to, e);
|
|
3263
3284
|
}
|
|
3264
3285
|
function hasOpenCellSeam(a, b) {
|
|
3265
|
-
const u =
|
|
3286
|
+
const u = _chunkTQOAPKLUcjs.CELL_EDGES.get(a), d = _chunkTQOAPKLUcjs.CELL_EDGES.get(b);
|
|
3266
3287
|
return !!u && !!d && u.t && !u.b && !d.t && d.b && u.l && u.r && d.l && d.r;
|
|
3267
3288
|
}
|
|
3268
3289
|
function joinCellEdges(a, b) {
|
|
3269
|
-
const u =
|
|
3290
|
+
const u = _chunkTQOAPKLUcjs.CELL_EDGES.get(a), d = _chunkTQOAPKLUcjs.CELL_EDGES.get(b);
|
|
3270
3291
|
if (!u || !d) return;
|
|
3271
|
-
|
|
3292
|
+
_chunkTQOAPKLUcjs.CELL_EDGES.set(a, { t: u.t, b: d.b, l: u.l || d.l, r: u.r || d.r });
|
|
3272
3293
|
}
|
|
3273
3294
|
|
|
3274
3295
|
// src/pdf/cell-extract.ts
|
|
@@ -3444,7 +3465,7 @@ function tagScripts(text, lines) {
|
|
|
3444
3465
|
const [s, e, kind] = marks[m];
|
|
3445
3466
|
out = out.slice(0, s) + `<${kind}>` + out.slice(s, e) + `</${kind}>` + out.slice(e);
|
|
3446
3467
|
}
|
|
3447
|
-
return
|
|
3468
|
+
return _chunkTQOAPKLUcjs.tidyScriptTags.call(void 0, out);
|
|
3448
3469
|
}
|
|
3449
3470
|
|
|
3450
3471
|
// src/pdf/line-wrap.ts
|
|
@@ -6843,9 +6864,9 @@ function detectHeadings(blocks, medianFontSize) {
|
|
|
6843
6864
|
if (/^\d+$/.test(text) && !isChapterNumber(block, blocks[bi + 1], medianFontSize)) continue;
|
|
6844
6865
|
const ratio = block.style.fontSize / medianFontSize;
|
|
6845
6866
|
let level = 0;
|
|
6846
|
-
if (ratio >=
|
|
6847
|
-
else if (ratio >=
|
|
6848
|
-
else if (ratio >=
|
|
6867
|
+
if (ratio >= _chunkTQOAPKLUcjs.HEADING_RATIO_H1) level = 1;
|
|
6868
|
+
else if (ratio >= _chunkTQOAPKLUcjs.HEADING_RATIO_H2) level = 2;
|
|
6869
|
+
else if (ratio >= _chunkTQOAPKLUcjs.HEADING_RATIO_H3) level = 3;
|
|
6849
6870
|
if (level > 0) {
|
|
6850
6871
|
block.type = "heading";
|
|
6851
6872
|
block.level = level;
|
|
@@ -6858,7 +6879,7 @@ function isChapterNumber(block, next, medianFontSize) {
|
|
|
6858
6879
|
const nextSize = _nullishCoalesce(_optionalChain([next, 'optionalAccess', _193 => _193.style, 'optionalAccess', _194 => _194.fontSize]), () => ( 0));
|
|
6859
6880
|
const text = _nullishCoalesce(_optionalChain([next, 'optionalAccess', _195 => _195.text, 'optionalAccess', _196 => _196.trim, 'call', _197 => _197()]), () => ( ""));
|
|
6860
6881
|
const a = block.bbox, b = _optionalChain([next, 'optionalAccess', _198 => _198.bbox]);
|
|
6861
|
-
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 *
|
|
6882
|
+
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 * _chunkTQOAPKLUcjs.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;
|
|
6862
6883
|
}
|
|
6863
6884
|
function mergeStackedHeadingLines(blocks, medianFontSize) {
|
|
6864
6885
|
for (let i = 0; i < blocks.length - 1; ) {
|
|
@@ -8265,6 +8286,27 @@ function isSparseProseGrid(table) {
|
|
|
8265
8286
|
return prose >= chars * 0.6;
|
|
8266
8287
|
}
|
|
8267
8288
|
|
|
8289
|
+
// src/pdf/ocr-straddle-verticals.ts
|
|
8290
|
+
var TOL = 2;
|
|
8291
|
+
function extendStraddledVerticals(horizontals, verticals, items) {
|
|
8292
|
+
const lo = (l, k) => Math.min(l[`${k}1`], l[`${k}2`]), hi = (l, k) => Math.max(l[`${k}1`], l[`${k}2`]);
|
|
8293
|
+
const out = verticals.slice();
|
|
8294
|
+
for (let i = 0; i < verticals.length; i++) {
|
|
8295
|
+
const v = verticals[i], top = hi(v, "y");
|
|
8296
|
+
const h = horizontals.find((o) => Math.abs(o.y1 - top) <= TOL && Math.abs(lo(o, "x") - v.x1) <= TOL && hi(o, "x") > v.x1 + 10);
|
|
8297
|
+
if (!h) continue;
|
|
8298
|
+
if (horizontals.filter((o) => o.y1 < top - TOL && o.y1 > lo(v, "y") - TOL && lo(o, "x") < v.x1 - TOL && hi(o, "x") > v.x1 + TOL).length < 2) continue;
|
|
8299
|
+
const left = verticals.filter((o) => o.x1 < v.x1 - TOL && lo(o, "y") <= top - TOL && hi(o, "y") >= top + TOL).sort((a, b) => b.x1 - a.x1)[0];
|
|
8300
|
+
if (!left || horizontals.some((o) => Math.abs(o.y1 - top) <= TOL && lo(o, "x") <= left.x1 + TOL && hi(o, "x") >= v.x1 - TOL)) continue;
|
|
8301
|
+
const above = horizontals.filter((o) => o.y1 > top + TOL && lo(o, "x") <= left.x1 + TOL && hi(o, "x") >= hi(h, "x") - TOL).sort((a, b) => a.y1 - b.y1)[0];
|
|
8302
|
+
if (!above) continue;
|
|
8303
|
+
const straddle = items.some((it) => it.x >= left.x1 - TOL && it.x + it.w <= v.x1 + TOL && it.y < top - it.h * 0.15 && it.y + it.h > top + it.h * 0.15);
|
|
8304
|
+
const crossed = items.some((it) => it.x < v.x1 - TOL && it.x + it.w > v.x1 + TOL && it.y + it.h > top + TOL && it.y < above.y1 - TOL);
|
|
8305
|
+
if (straddle && !crossed) out[i] = { ...v, y1: lo(v, "y"), y2: above.y1 };
|
|
8306
|
+
}
|
|
8307
|
+
return out;
|
|
8308
|
+
}
|
|
8309
|
+
|
|
8268
8310
|
// src/pdf/ruled-columns.ts
|
|
8269
8311
|
function findRuledColumnDivider(regions, horizontals, verticals, pageWidth, pageHeight) {
|
|
8270
8312
|
const candidates = [];
|
|
@@ -8601,16 +8643,16 @@ function isProseSpread(items) {
|
|
|
8601
8643
|
for (let i = 1; i < sorted.length; i++) {
|
|
8602
8644
|
gaps.push(sorted[i].x - (sorted[i - 1].x + sorted[i - 1].w));
|
|
8603
8645
|
}
|
|
8604
|
-
const maxGap =
|
|
8646
|
+
const maxGap = _chunkPW7MQZI4cjs.safeMax.call(void 0, gaps);
|
|
8605
8647
|
const avgLen = items.reduce((s, i) => s + i.text.length, 0) / items.length;
|
|
8606
8648
|
if (items.length >= 4 && maxGap < 40 && avgLen < 5) return true;
|
|
8607
|
-
const minGap =
|
|
8649
|
+
const minGap = _chunkPW7MQZI4cjs.safeMin.call(void 0, gaps);
|
|
8608
8650
|
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)));
|
|
8609
8651
|
}
|
|
8610
8652
|
function detectColumns(yLines) {
|
|
8611
8653
|
const allItems = yLines.flat();
|
|
8612
8654
|
if (allItems.length === 0) return null;
|
|
8613
|
-
const pageWidth =
|
|
8655
|
+
const pageWidth = _chunkPW7MQZI4cjs.safeMax.call(void 0, allItems.map((i) => i.x + i.w)) - _chunkPW7MQZI4cjs.safeMin.call(void 0, allItems.map((i) => i.x));
|
|
8614
8656
|
if (pageWidth < 100) return null;
|
|
8615
8657
|
let bigoLineIdx = -1;
|
|
8616
8658
|
for (let i = 0; i < yLines.length; i++) {
|
|
@@ -9008,13 +9050,13 @@ function partTex(group) {
|
|
|
9008
9050
|
const base = Math.min(...g.filter((i) => i.fontSize >= size * SCRIPT_SIZE_RATIO).map((i) => i.y));
|
|
9009
9051
|
let s = "", run = "";
|
|
9010
9052
|
const flush = () => {
|
|
9011
|
-
if (run) s +=
|
|
9053
|
+
if (run) s += _chunkTQOAPKLUcjs.toTex.call(void 0, run);
|
|
9012
9054
|
run = "";
|
|
9013
9055
|
};
|
|
9014
9056
|
g.forEach((it, k) => {
|
|
9015
9057
|
if (it.fontSize < size * SCRIPT_SIZE_RATIO && it.y - base >= size * SCRIPT_RISE_EM) {
|
|
9016
9058
|
flush();
|
|
9017
|
-
s += `^{${
|
|
9059
|
+
s += `^{${_chunkTQOAPKLUcjs.toTex.call(void 0, it.text)}}`;
|
|
9018
9060
|
return;
|
|
9019
9061
|
}
|
|
9020
9062
|
if (k && it.x - (g[k - 1].x + g[k - 1].w) > spaceGapThreshold(it.fontSize)) run += " ";
|
|
@@ -9101,13 +9143,13 @@ function headerLineAbove(free, colXs, top) {
|
|
|
9101
9143
|
}
|
|
9102
9144
|
|
|
9103
9145
|
// src/pdf/crossing-frames.ts
|
|
9104
|
-
var
|
|
9105
|
-
var near = (a, b) => Math.abs(a - b) <=
|
|
9146
|
+
var TOL2 = 2;
|
|
9147
|
+
var near = (a, b) => Math.abs(a - b) <= TOL2;
|
|
9106
9148
|
var span = (a, b) => a <= b ? [a, b] : [b, a];
|
|
9107
9149
|
function closedRects(hs, vs) {
|
|
9108
9150
|
const covers = (v, x, y1, y2) => {
|
|
9109
9151
|
const [lo, hi] = span(v.y1, v.y2);
|
|
9110
|
-
return near(v.x1, x) && lo <= y1 +
|
|
9152
|
+
return near(v.x1, x) && lo <= y1 + TOL2 && hi >= y2 - TOL2;
|
|
9111
9153
|
};
|
|
9112
9154
|
const out = [];
|
|
9113
9155
|
for (let i = 0; i < hs.length; i++) {
|
|
@@ -9123,7 +9165,7 @@ function closedRects(hs, vs) {
|
|
|
9123
9165
|
return out;
|
|
9124
9166
|
}
|
|
9125
9167
|
function freeCorner(x, y, dx, dy, hs, vs) {
|
|
9126
|
-
const beyondX = x + dx * 3 *
|
|
9168
|
+
const beyondX = x + dx * 3 * TOL2, beyondY = y + dy * 3 * TOL2;
|
|
9127
9169
|
const h = hs.some((l) => {
|
|
9128
9170
|
const [lo, hi] = span(l.x1, l.x2);
|
|
9129
9171
|
return near(l.y1, y) && lo <= beyondX && hi >= beyondX;
|
|
@@ -9134,8 +9176,8 @@ function freeCorner(x, y, dx, dy, hs, vs) {
|
|
|
9134
9176
|
});
|
|
9135
9177
|
return !h && !v;
|
|
9136
9178
|
}
|
|
9137
|
-
var strictlyInside = (x, y, r) => x > r.x1 +
|
|
9138
|
-
var contains3 = (a, b) => a.x1 <= b.x1 +
|
|
9179
|
+
var strictlyInside = (x, y, r) => x > r.x1 + TOL2 && x < r.x2 - TOL2 && y > r.y1 + TOL2 && y < r.y2 - TOL2;
|
|
9180
|
+
var contains3 = (a, b) => a.x1 <= b.x1 + TOL2 && a.x2 >= b.x2 - TOL2 && a.y1 <= b.y1 + TOL2 && a.y2 >= b.y2 - TOL2;
|
|
9139
9181
|
function cornerIn(a, b, hs, vs) {
|
|
9140
9182
|
for (const [x, dx] of [[a.x1, -1], [a.x2, 1]]) for (const [y, dy] of [[a.y1, -1], [a.y2, 1]]) {
|
|
9141
9183
|
if (strictlyInside(x, y, b) && freeCorner(x, y, dx, dy, hs, vs)) return true;
|
|
@@ -9144,7 +9186,7 @@ function cornerIn(a, b, hs, vs) {
|
|
|
9144
9186
|
}
|
|
9145
9187
|
function hasCrossingFrames(grid, horizontals, verticals) {
|
|
9146
9188
|
const b = grid.bbox;
|
|
9147
|
-
const inside = (l) => Math.min(l.x1, l.x2) >= b.x1 -
|
|
9189
|
+
const inside = (l) => Math.min(l.x1, l.x2) >= b.x1 - TOL2 && Math.max(l.x1, l.x2) <= b.x2 + TOL2 && Math.min(l.y1, l.y2) >= b.y1 - TOL2 && Math.max(l.y1, l.y2) <= b.y2 + TOL2;
|
|
9148
9190
|
const hs = horizontals.filter(inside), vs = verticals.filter(inside);
|
|
9149
9191
|
const rects = closedRects(hs, vs);
|
|
9150
9192
|
for (let i = 0; i < rects.length; i++) for (let j = i + 1; j < rects.length; j++) {
|
|
@@ -9187,7 +9229,7 @@ function rebuildUnitLine(items, grid) {
|
|
|
9187
9229
|
function prependUnitRow(cells, cols, line, usedItems) {
|
|
9188
9230
|
const text = cleanCellText(line.map((item) => item.text).join(""));
|
|
9189
9231
|
cells.unshift(Array.from({ length: cols }, (_, c) => ({ text: c === 0 ? text : "", colSpan: c === 0 ? cols : 1, rowSpan: 1 })));
|
|
9190
|
-
for (const cell of cells[0])
|
|
9232
|
+
for (const cell of cells[0]) _chunkTQOAPKLUcjs.CELL_EDGES.set(cell, NO_EDGES);
|
|
9191
9233
|
for (const item of line) usedItems.add(item);
|
|
9192
9234
|
}
|
|
9193
9235
|
function attachUnitRow(items, grid, cells, cols, usedItems) {
|
|
@@ -9769,7 +9811,7 @@ function recordFrameTitle(table, source, pageNum) {
|
|
|
9769
9811
|
const [label, spacer, title] = cells;
|
|
9770
9812
|
if (!/^(?:붙임|별첨|첨부|부록)\s*\d{1,3}$/.test(label.text.trim()) || spacer.text.trim() || !title.text.trim()) return;
|
|
9771
9813
|
if (cells.some((c) => {
|
|
9772
|
-
const e =
|
|
9814
|
+
const e = _chunkTQOAPKLUcjs.CELL_EDGES.get(c);
|
|
9773
9815
|
return !e || e.t || e.b || e.l || e.r;
|
|
9774
9816
|
})) return;
|
|
9775
9817
|
const xs = TABLE_COLXS.get(table), style = dominantStyle(source), fs = _nullishCoalesce(_optionalChain([style, 'optionalAccess', _393 => _393.fontSize]), () => ( 0));
|
|
@@ -9955,6 +9997,7 @@ function extractPageBlocksWithLines(items, pageNum, opList, pageWidth, pageHeigh
|
|
|
9955
9997
|
const shadedEdges = detectTables ? closeShadedTableEdges(clipGrids, horizontals, verticals, extracted.fillRects) : void 0;
|
|
9956
9998
|
if (shadedEdges) ({ horizontals, verticals } = shadedEdges);
|
|
9957
9999
|
const ocrItems = items.length > 0 && items.every((it) => it.fontName === "ocr");
|
|
10000
|
+
if (ocrItems && detectTables) verticals = extendStraddledVerticals(horizontals, verticals, items);
|
|
9958
10001
|
let lineGrids = detectTables ? buildTableGrids(horizontals, verticals, !ocrItems) : [];
|
|
9959
10002
|
if (ocrItems && lineGrids.length) {
|
|
9960
10003
|
lineGrids = lineGrids.map((g) => openSideColumns(g, horizontals, verticals, items, lineGrids));
|
|
@@ -10526,7 +10569,7 @@ function extractBlocksWithGrids(items, pageNum, pageWidth, pageHeight, grids, ho
|
|
|
10526
10569
|
groupSizes.push(1);
|
|
10527
10570
|
}
|
|
10528
10571
|
const allY = remaining.map((i) => i.y);
|
|
10529
|
-
const pageH =
|
|
10572
|
+
const pageH = _chunkPW7MQZI4cjs.safeMax.call(void 0, allY) - _chunkPW7MQZI4cjs.safeMin.call(void 0, allY);
|
|
10530
10573
|
const gapThreshold = Math.max(15, pageH * 0.03);
|
|
10531
10574
|
const sides = frameColumnTextBands(remaining, spanning, gx);
|
|
10532
10575
|
const textBlocks = [];
|
|
@@ -10542,7 +10585,7 @@ function extractBlocksWithGrids(items, pageNum, pageWidth, pageHeight, grids, ho
|
|
|
10542
10585
|
finalTextBlocks.push(...detectListBlocks(textBlocks));
|
|
10543
10586
|
} else {
|
|
10544
10587
|
const allY = remaining.map((i) => i.y);
|
|
10545
|
-
const pageH =
|
|
10588
|
+
const pageH = _chunkPW7MQZI4cjs.safeMax.call(void 0, allY) - _chunkPW7MQZI4cjs.safeMin.call(void 0, allY);
|
|
10546
10589
|
const gapThreshold = Math.max(15, pageH * 0.03);
|
|
10547
10590
|
const groups = xyCutOrder(remaining, gapThreshold);
|
|
10548
10591
|
const textBlocks = [];
|
|
@@ -10897,7 +10940,7 @@ function extractPageBlocksFallback(items, pageNum, fullPage = false, detectTable
|
|
|
10897
10940
|
blocks.push(...columnTextToBlocks(tableText, pageNum, bbox, dominantStyle(items)));
|
|
10898
10941
|
} else {
|
|
10899
10942
|
const allY = items.map((i) => i.y);
|
|
10900
|
-
const pageHeight =
|
|
10943
|
+
const pageHeight = _chunkPW7MQZI4cjs.safeMax.call(void 0, allY) - _chunkPW7MQZI4cjs.safeMin.call(void 0, allY);
|
|
10901
10944
|
const gapThreshold = Math.max(15, pageHeight * 0.03);
|
|
10902
10945
|
const orderedGroups = proseCutX !== null ? splitTwoColumnProse(items, proseCutX) : xyCutOrder(items, gapThreshold, 0, void 0, minGap);
|
|
10903
10946
|
for (const group of orderedGroups) {
|
|
@@ -11142,4 +11185,4 @@ function rowParagraphs(block) {
|
|
|
11142
11185
|
|
|
11143
11186
|
|
|
11144
11187
|
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.stackedGlyphBands = stackedGlyphBands; 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;
|
|
11145
|
-
//# sourceMappingURL=chunk-
|
|
11188
|
+
//# sourceMappingURL=chunk-UBY2PLKR.cjs.map
|