kordoc 4.12.1 → 4.12.2
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 +11 -0
- package/dist/{-BUYIUNW3.js → -EZH6NKTE.js} +8 -8
- package/dist/{chunk-WGUVKNBX.js → chunk-2B7OIEJJ.js} +6 -3
- package/dist/chunk-2B7OIEJJ.js.map +1 -0
- package/dist/{chunk-CJPVVR2Y.js → chunk-2HBYWA5X.js} +2 -2
- package/dist/{chunk-EOGPRO3U.cjs → chunk-2LKYJ4G3.cjs} +6 -6
- package/dist/{chunk-EOGPRO3U.cjs.map → chunk-2LKYJ4G3.cjs.map} +1 -1
- package/dist/{chunk-FNCBOTM5.js → chunk-2LO525TL.js} +2 -2
- package/dist/{chunk-WJOWM27X.cjs → chunk-2LPBIW2B.cjs} +3 -3
- package/dist/{chunk-WJOWM27X.cjs.map → chunk-2LPBIW2B.cjs.map} +1 -1
- package/dist/{chunk-6MF7JRG3.cjs → chunk-62IU4NV3.cjs} +2 -2
- package/dist/{chunk-6MF7JRG3.cjs.map → chunk-62IU4NV3.cjs.map} +1 -1
- package/dist/{chunk-BPKJTQAW.js → chunk-7XUXSDH5.js} +89 -25
- package/dist/chunk-7XUXSDH5.js.map +1 -0
- package/dist/{chunk-ST3JBCIL.js → chunk-DBGEUDBY.js} +2 -2
- package/dist/{chunk-E37VAV46.js → chunk-FBLMVHDK.js} +2 -2
- package/dist/{chunk-EWSH6O6S.js → chunk-FVBR7SC3.js} +2 -2
- package/dist/{chunk-F2KL5Z5T.js → chunk-IOJX4Q63.js} +3 -3
- package/dist/{chunk-L5DNHSX4.js → chunk-JCMBQC5N.js} +2 -2
- package/dist/{chunk-JD4H6Y33.js → chunk-KX7IYCCZ.js} +3 -3
- package/dist/{chunk-VO37BVAH.js → chunk-LD2K4K5V.js} +40 -19
- package/dist/chunk-LD2K4K5V.js.map +1 -0
- package/dist/{chunk-D2XNLIFU.js → chunk-MUYU4JI5.js} +2 -2
- package/dist/{chunk-OS2IOI3W.js → chunk-OEYECZGV.js} +89 -25
- package/dist/chunk-OEYECZGV.js.map +1 -0
- package/dist/{chunk-MXZXZTKW.cjs → chunk-ONNAHSPV.cjs} +104 -40
- package/dist/chunk-ONNAHSPV.cjs.map +1 -0
- package/dist/{chunk-JQBF4PSF.js → chunk-Q6ETEJFK.js} +6 -3
- package/dist/chunk-Q6ETEJFK.js.map +1 -0
- package/dist/{chunk-ELCPCTJ6.js → chunk-QBCMFNHS.js} +2 -2
- package/dist/{chunk-DXKNPBXX.js → chunk-QM2RSJ2S.js} +3 -3
- package/dist/{chunk-L6FIUSD2.js → chunk-UL2MDA5C.js} +3 -3
- package/dist/{chunk-CBPO5IZZ.cjs → chunk-V5BUPZ6I.cjs} +20 -17
- package/dist/chunk-V5BUPZ6I.cjs.map +1 -0
- package/dist/{chunk-7U34YNFR.js → chunk-XXDZ2KTW.js} +2 -2
- package/dist/chunks-TT7ZE5QQ.js +10 -0
- package/dist/cli.js +20 -20
- package/dist/{formula-7TN26AKF.js → formula-6RQX4NMJ.js} +4 -4
- package/dist/{formula-XKRMKGAW.cjs → formula-NBEO6CFC.cjs} +9 -9
- package/dist/{formula-XKRMKGAW.cjs.map → formula-NBEO6CFC.cjs.map} +1 -1
- package/dist/{formula-RZNSECGO.js → formula-NW33S4TA.js} +3 -3
- package/dist/{image-ocr-3O34O7XS.js → image-ocr-CAVU2TNZ.js} +5 -5
- package/dist/{image-ocr-TNU4ILLU.js → image-ocr-SO56VETS.js} +7 -7
- package/dist/{image-ocr-XDZONLD6.cjs → image-ocr-V4KY373B.cjs} +11 -11
- package/dist/{image-ocr-XDZONLD6.cjs.map → image-ocr-V4KY373B.cjs.map} +1 -1
- package/dist/index.cjs +419 -398
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +36 -15
- package/dist/index.js.map +1 -1
- package/dist/mcp.js +15 -15
- package/dist/{model-bundle-NCYN375I.js → model-bundle-EIJF34DR.js} +5 -5
- package/dist/{models-J4G4VZMU.js → models-6V4CPQXC.js} +5 -5
- package/dist/{parser-6IH62P6U.js → parser-GIREMEPD.js} +6 -6
- package/dist/{parser-5WZBCP7H.js → parser-OBHNXEQM.js} +6 -6
- package/dist/{parser-LVMTVO2N.cjs → parser-OMT25WH2.cjs} +26 -26
- package/dist/{parser-LVMTVO2N.cjs.map → parser-OMT25WH2.cjs.map} +1 -1
- package/dist/pdf-ocr-IRXQ5GBM.js +13 -0
- package/dist/pdf-ocr-SL4GCOGS.js +16 -0
- package/dist/pdf-ocr-TFYVK4FI.cjs +14 -0
- package/dist/{pdf-ocr-IAO273AQ.cjs.map → pdf-ocr-TFYVK4FI.cjs.map} +1 -1
- package/dist/{profile-io-ANPS7DTT.js → profile-io-PZVMM66V.js} +3 -3
- package/dist/{rasterize-FKXCEFHV.js → rasterize-NRWP2C6L.js} +2 -2
- package/dist/render-V5ZPTZQ7.js +10 -0
- package/dist/seal-LVG2DGAB.js +10 -0
- package/dist/{setup-DEAFODGI.js → setup-V55AJP6H.js} +3 -3
- package/dist/{watch-B5X7IAMK.js → watch-7CQSMDDP.js} +9 -9
- package/package.json +1 -1
- package/dist/chunk-BPKJTQAW.js.map +0 -1
- package/dist/chunk-CBPO5IZZ.cjs.map +0 -1
- package/dist/chunk-JQBF4PSF.js.map +0 -1
- package/dist/chunk-MXZXZTKW.cjs.map +0 -1
- package/dist/chunk-OS2IOI3W.js.map +0 -1
- package/dist/chunk-VO37BVAH.js.map +0 -1
- package/dist/chunk-WGUVKNBX.js.map +0 -1
- package/dist/chunks-G2U2XUZU.js +0 -10
- package/dist/pdf-ocr-5PLJOKGI.js +0 -13
- package/dist/pdf-ocr-7FPCZCV7.js +0 -16
- package/dist/pdf-ocr-IAO273AQ.cjs +0 -14
- package/dist/render-NWQI3AXU.js +0 -10
- package/dist/seal-N3GCBTVA.js +0 -10
- /package/dist/{-BUYIUNW3.js.map → -EZH6NKTE.js.map} +0 -0
- /package/dist/{chunk-CJPVVR2Y.js.map → chunk-2HBYWA5X.js.map} +0 -0
- /package/dist/{chunk-FNCBOTM5.js.map → chunk-2LO525TL.js.map} +0 -0
- /package/dist/{chunk-ST3JBCIL.js.map → chunk-DBGEUDBY.js.map} +0 -0
- /package/dist/{chunk-E37VAV46.js.map → chunk-FBLMVHDK.js.map} +0 -0
- /package/dist/{chunk-EWSH6O6S.js.map → chunk-FVBR7SC3.js.map} +0 -0
- /package/dist/{chunk-F2KL5Z5T.js.map → chunk-IOJX4Q63.js.map} +0 -0
- /package/dist/{chunk-L5DNHSX4.js.map → chunk-JCMBQC5N.js.map} +0 -0
- /package/dist/{chunk-JD4H6Y33.js.map → chunk-KX7IYCCZ.js.map} +0 -0
- /package/dist/{chunk-D2XNLIFU.js.map → chunk-MUYU4JI5.js.map} +0 -0
- /package/dist/{chunk-ELCPCTJ6.js.map → chunk-QBCMFNHS.js.map} +0 -0
- /package/dist/{chunk-DXKNPBXX.js.map → chunk-QM2RSJ2S.js.map} +0 -0
- /package/dist/{chunk-L6FIUSD2.js.map → chunk-UL2MDA5C.js.map} +0 -0
- /package/dist/{chunk-7U34YNFR.js.map → chunk-XXDZ2KTW.js.map} +0 -0
- /package/dist/{chunks-G2U2XUZU.js.map → chunks-TT7ZE5QQ.js.map} +0 -0
- /package/dist/{formula-7TN26AKF.js.map → formula-6RQX4NMJ.js.map} +0 -0
- /package/dist/{formula-RZNSECGO.js.map → formula-NW33S4TA.js.map} +0 -0
- /package/dist/{image-ocr-3O34O7XS.js.map → image-ocr-CAVU2TNZ.js.map} +0 -0
- /package/dist/{image-ocr-TNU4ILLU.js.map → image-ocr-SO56VETS.js.map} +0 -0
- /package/dist/{model-bundle-NCYN375I.js.map → model-bundle-EIJF34DR.js.map} +0 -0
- /package/dist/{models-J4G4VZMU.js.map → models-6V4CPQXC.js.map} +0 -0
- /package/dist/{parser-6IH62P6U.js.map → parser-GIREMEPD.js.map} +0 -0
- /package/dist/{parser-5WZBCP7H.js.map → parser-OBHNXEQM.js.map} +0 -0
- /package/dist/{pdf-ocr-5PLJOKGI.js.map → pdf-ocr-IRXQ5GBM.js.map} +0 -0
- /package/dist/{pdf-ocr-7FPCZCV7.js.map → pdf-ocr-SL4GCOGS.js.map} +0 -0
- /package/dist/{profile-io-ANPS7DTT.js.map → profile-io-PZVMM66V.js.map} +0 -0
- /package/dist/{rasterize-FKXCEFHV.js.map → rasterize-NRWP2C6L.js.map} +0 -0
- /package/dist/{render-NWQI3AXU.js.map → render-V5ZPTZQ7.js.map} +0 -0
- /package/dist/{seal-N3GCBTVA.js.map → seal-LVG2DGAB.js.map} +0 -0
- /package/dist/{setup-DEAFODGI.js.map → setup-V55AJP6H.js.map} +0 -0
- /package/dist/{watch-B5X7IAMK.js.map → watch-7CQSMDDP.js.map} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
blocksToMarkdown
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-Q6ETEJFK.js";
|
|
5
5
|
|
|
6
6
|
// src/chunks.ts
|
|
7
7
|
var LIST_MARKER_RE = /^(?:[□■◇◆○◎●◦ㅇ•▪▸▶※-]|\d{1,3}[.)]|[가나다라마바사아자차카타파하][.)]|\([가나다라마바사아자차카타파하0-9]{1,3}\)|[①-⑳㉮-㉻㈎-㈛])\s/;
|
|
@@ -79,4 +79,4 @@ function blocksToChunks(blocks, options) {
|
|
|
79
79
|
export {
|
|
80
80
|
blocksToChunks
|
|
81
81
|
};
|
|
82
|
-
//# sourceMappingURL=chunk-
|
|
82
|
+
//# sourceMappingURL=chunk-DBGEUDBY.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
// src/utils.ts
|
|
4
|
-
var VERSION = true ? "4.12.
|
|
4
|
+
var VERSION = true ? "4.12.2" : "0.0.0-dev";
|
|
5
5
|
function toArrayBuffer(buf) {
|
|
6
6
|
if (buf.byteOffset === 0 && buf.byteLength === buf.buffer.byteLength) {
|
|
7
7
|
return buf.buffer;
|
|
@@ -123,4 +123,4 @@ export {
|
|
|
123
123
|
safeMax,
|
|
124
124
|
classifyError
|
|
125
125
|
};
|
|
126
|
-
//# sourceMappingURL=chunk-
|
|
126
|
+
//# sourceMappingURL=chunk-FBLMVHDK.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
KordocError
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-FBLMVHDK.js";
|
|
5
5
|
|
|
6
6
|
// src/hwpx/parser-shared.ts
|
|
7
7
|
import { DOMParser } from "@xmldom/xmldom";
|
|
@@ -323,4 +323,4 @@ export {
|
|
|
323
323
|
DEFAULT_CHAR,
|
|
324
324
|
parseRenderStyles
|
|
325
325
|
};
|
|
326
|
-
//# sourceMappingURL=chunk-
|
|
326
|
+
//# sourceMappingURL=chunk-FVBR7SC3.js.map
|
|
@@ -7,11 +7,11 @@ import {
|
|
|
7
7
|
createXmlParser,
|
|
8
8
|
findChildByLocalName,
|
|
9
9
|
parseRenderStyles
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-FVBR7SC3.js";
|
|
11
11
|
import {
|
|
12
12
|
KordocError,
|
|
13
13
|
precheckZipSize
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-FBLMVHDK.js";
|
|
15
15
|
|
|
16
16
|
// src/render/svg-render.ts
|
|
17
17
|
import JSZip from "jszip";
|
|
@@ -1286,4 +1286,4 @@ export {
|
|
|
1286
1286
|
fitRatioForFewerLines,
|
|
1287
1287
|
renderHwpxToSvg
|
|
1288
1288
|
};
|
|
1289
|
-
//# sourceMappingURL=chunk-
|
|
1289
|
+
//# sourceMappingURL=chunk-IOJX4Q63.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
assertNetworkAllowed
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-QBCMFNHS.js";
|
|
5
5
|
|
|
6
6
|
// src/pdf/formula/models.ts
|
|
7
7
|
import { createHash } from "crypto";
|
|
@@ -250,4 +250,4 @@ export {
|
|
|
250
250
|
ensureFormulaModels,
|
|
251
251
|
ensureSingleModel
|
|
252
252
|
};
|
|
253
|
-
//# sourceMappingURL=chunk-
|
|
253
|
+
//# sourceMappingURL=chunk-JCMBQC5N.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
parseRenderStyles
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-FVBR7SC3.js";
|
|
5
5
|
import {
|
|
6
6
|
KordocError,
|
|
7
7
|
precheckZipSize
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-FBLMVHDK.js";
|
|
9
9
|
|
|
10
10
|
// src/form/seal.ts
|
|
11
11
|
import JSZip from "jszip";
|
|
@@ -1051,4 +1051,4 @@ export {
|
|
|
1051
1051
|
patchZipEntries,
|
|
1052
1052
|
placeSealHwpx
|
|
1053
1053
|
};
|
|
1054
|
-
//# sourceMappingURL=chunk-
|
|
1054
|
+
//# sourceMappingURL=chunk-KX7IYCCZ.js.map
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
paraTextPureT,
|
|
23
23
|
patchZipEntries,
|
|
24
24
|
scanSectionXml
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-KX7IYCCZ.js";
|
|
26
26
|
import {
|
|
27
27
|
MAX_COLS,
|
|
28
28
|
MAX_ROWS,
|
|
@@ -32,14 +32,14 @@ import {
|
|
|
32
32
|
dedupeRunningHeaders,
|
|
33
33
|
flattenLayoutTables,
|
|
34
34
|
mapPuaText
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-Q6ETEJFK.js";
|
|
36
36
|
import {
|
|
37
37
|
SPACE_EM_FIXED,
|
|
38
38
|
charWidthEm1000,
|
|
39
39
|
fitRatioForFewerLines,
|
|
40
40
|
measureTextWidth,
|
|
41
41
|
simulateWrap
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-IOJX4Q63.js";
|
|
43
43
|
import {
|
|
44
44
|
MAX_DECOMPRESS_SIZE,
|
|
45
45
|
MAX_XML_DEPTH,
|
|
@@ -55,7 +55,7 @@ import {
|
|
|
55
55
|
findChildByLocalName,
|
|
56
56
|
localName,
|
|
57
57
|
rawTextContent
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-FVBR7SC3.js";
|
|
59
59
|
import {
|
|
60
60
|
KordocError,
|
|
61
61
|
classifyError,
|
|
@@ -67,7 +67,7 @@ import {
|
|
|
67
67
|
sanitizeHref,
|
|
68
68
|
stripDtd,
|
|
69
69
|
toArrayBuffer
|
|
70
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-FBLMVHDK.js";
|
|
71
71
|
|
|
72
72
|
// src/index.ts
|
|
73
73
|
import { readFile } from "fs/promises";
|
|
@@ -2680,6 +2680,9 @@ function parseDocInfo(records) {
|
|
|
2680
2680
|
function createParaTextState() {
|
|
2681
2681
|
return { text: "", ctrlIdx: 0, fieldStack: [], fieldRanges: [] };
|
|
2682
2682
|
}
|
|
2683
|
+
var HANCOM_FOLDED_PUA_START = 40960;
|
|
2684
|
+
var HANCOM_FOLDED_PUA_END = 42124;
|
|
2685
|
+
var HANCOM_FOLDED_PUA_SHIFT = 983040 - 40960;
|
|
2683
2686
|
function isExtendedOnlyCtrlChar(ch) {
|
|
2684
2687
|
return ch >= 1 && ch <= 3 || ch >= 11 && ch <= 12 || ch >= 14 && ch <= 18 || ch >= 21 && ch <= 23;
|
|
2685
2688
|
}
|
|
@@ -2747,6 +2750,10 @@ function appendParaText(state, data, resolveControl) {
|
|
|
2747
2750
|
i += 14;
|
|
2748
2751
|
}
|
|
2749
2752
|
} else if (ch >= 32) {
|
|
2753
|
+
if (ch >= HANCOM_FOLDED_PUA_START && ch <= HANCOM_FOLDED_PUA_END) {
|
|
2754
|
+
result += String.fromCodePoint(ch + HANCOM_FOLDED_PUA_SHIFT);
|
|
2755
|
+
break;
|
|
2756
|
+
}
|
|
2750
2757
|
if (ch >= 55296 && ch <= 56319 && i + 1 < data.length) {
|
|
2751
2758
|
const lo = data.readUInt16LE(i);
|
|
2752
2759
|
if (lo >= 56320 && lo <= 57343) {
|
|
@@ -21025,10 +21032,9 @@ function extractFormFields(blocks) {
|
|
|
21025
21032
|
const fields = [];
|
|
21026
21033
|
let totalTables = 0;
|
|
21027
21034
|
let formTables = 0;
|
|
21028
|
-
for (const
|
|
21029
|
-
if (block.type !== "table" || !block.table) continue;
|
|
21035
|
+
for (const table2 of collectTables(blocks)) {
|
|
21030
21036
|
totalTables++;
|
|
21031
|
-
const tableFields = extractFromTable(
|
|
21037
|
+
const tableFields = extractFromTable(table2);
|
|
21032
21038
|
if (tableFields.length > 0) {
|
|
21033
21039
|
formTables++;
|
|
21034
21040
|
fields.push(...tableFields);
|
|
@@ -21043,6 +21049,17 @@ function extractFormFields(blocks) {
|
|
|
21043
21049
|
const confidence = totalTables > 0 ? formTables / totalTables : fields.length > 0 ? 0.3 : 0;
|
|
21044
21050
|
return { fields, confidence: Math.min(confidence, 1) };
|
|
21045
21051
|
}
|
|
21052
|
+
function collectTables(blocks, out = [], depth = 0) {
|
|
21053
|
+
if (depth > 12) return out;
|
|
21054
|
+
for (const block of blocks) {
|
|
21055
|
+
if (block.type !== "table" || !block.table) continue;
|
|
21056
|
+
out.push(block.table);
|
|
21057
|
+
for (const row of block.table.cells) {
|
|
21058
|
+
for (const cell2 of row) if (cell2?.blocks?.length) collectTables(cell2.blocks, out, depth + 1);
|
|
21059
|
+
}
|
|
21060
|
+
}
|
|
21061
|
+
return out;
|
|
21062
|
+
}
|
|
21046
21063
|
function extractFromTable(table2) {
|
|
21047
21064
|
const fields = [];
|
|
21048
21065
|
if (table2.cols >= 2) {
|
|
@@ -21511,17 +21528,17 @@ async function fillHwpx(hwpxBuffer, values, blockedLabels) {
|
|
|
21511
21528
|
const matchText = (p) => paraTText(p, xml) ?? p.text;
|
|
21512
21529
|
const cellLabelText = (cell2) => cell2.paragraphs.filter((p) => !p.inTextbox).map((p) => matchText(p)).join("");
|
|
21513
21530
|
const allTables = [];
|
|
21514
|
-
const
|
|
21531
|
+
const collectTables2 = (tables, depth) => {
|
|
21515
21532
|
if (depth > 16) return;
|
|
21516
21533
|
for (const t of tables) {
|
|
21517
21534
|
allTables.push(t);
|
|
21518
21535
|
for (const row of t.rows) {
|
|
21519
|
-
for (const cell2 of row)
|
|
21536
|
+
for (const cell2 of row) collectTables2(cell2.tables, depth + 1);
|
|
21520
21537
|
}
|
|
21521
21538
|
}
|
|
21522
21539
|
};
|
|
21523
|
-
|
|
21524
|
-
|
|
21540
|
+
collectTables2(scan.tables, 0);
|
|
21541
|
+
collectTables2(scan.orphanTables, 0);
|
|
21525
21542
|
const patternApplied = /* @__PURE__ */ new Set();
|
|
21526
21543
|
for (const table2 of allTables) {
|
|
21527
21544
|
for (const row of table2.rows) {
|
|
@@ -26593,19 +26610,23 @@ var RULES = [
|
|
|
26593
26610
|
message: "\uAE08\uC561\uC740 \uC22B\uC790 \uB2E4\uC74C \uAD04\uD638 \uC548\uC5D0 \uD55C\uAE00 \uBCD1\uAE30",
|
|
26594
26611
|
suggest: "\uC608) \uAE08113,560\uC6D0(\uAE08\uC77C\uC2ED\uC77C\uB9CC\uC0BC\uCC9C\uC624\uBC31\uC721\uC2ED\uC6D0)"
|
|
26595
26612
|
},
|
|
26596
|
-
// 물결표 앞뒤 붙여쓰기 — 기간·범위는 "2. 20.∼2. 24." 처럼 붙여
|
|
26613
|
+
// 물결표 앞뒤 붙여쓰기 — 기간·범위는 "2. 20.∼2. 24." 처럼 붙여 씀. 숫자·날짜·시각 범위(앞은 숫자·
|
|
26614
|
+
// 온점·괄호·년월일시분, 뒤는 숫자·연도 생략부호)에만 건다 — "기간( 부터 ~ 까지)" 기입란·"~ ※ 비고"·
|
|
26615
|
+
// "~ 수리완료시까지" 처럼 낱말이 붙는 물결표는 범위 표기가 아니다 (v4.12.2, 별지서식 47→30·기안문 32→27 실측)
|
|
26597
26616
|
{
|
|
26598
26617
|
code: "TILDE_SPACE",
|
|
26599
26618
|
severity: "warning",
|
|
26600
|
-
pattern:
|
|
26619
|
+
pattern: /(?<=[\d.)일월년시분’'])[ \t]+[∼~~]|[∼~~][ \t]+(?=[\d'’])/g,
|
|
26601
26620
|
message: "\uBB3C\uACB0\uD45C(\u223C) \uC55E\uB4A4\uB294 \uBD99\uC5EC \uC500",
|
|
26602
26621
|
suggest: "\uC608) 2. 20.\u223C2. 24., 09:00\u223C18:00"
|
|
26603
26622
|
},
|
|
26604
|
-
// 두음법칙 — 어두의 "년도·년간·년말…" 은 "연도·연간·연말" (숫자 뒤 '2026년도' 는 정상)
|
|
26623
|
+
// 두음법칙 — 어두의 "년도·년간·년말…" 은 "연도·연간·연말" (숫자 뒤 '2026년도' 는 정상). 서식의
|
|
26624
|
+
// 기입란(" 년도", "( 년간)", "2026 년도")과 셀 하나가 "년도" 뿐인 표 머리글은 어두가 아니라
|
|
26625
|
+
// 빈칸 뒤 접미라 제외한다 (v4.12.2, 별지서식 실측 28건 전부 이 꼴·기안문 0건)
|
|
26605
26626
|
{
|
|
26606
26627
|
code: "DUEUM_ERROR",
|
|
26607
26628
|
severity: "warning",
|
|
26608
|
-
pattern: /(?<![가-힣\d])년(?:도별|도|간|말|초|차|세|내)(?![가-힣])/g,
|
|
26629
|
+
pattern: /(?<![가-힣\d])(?<!\d[ \t]{1,3})(?<![((>|][ \t]*)(?<![ \t][ \t])년(?:도별|도|간|말|초|차|세|내)(?![가-힣])(?![ \t]*(?:<\/t[dh]>|\|))/g,
|
|
26609
26630
|
message: "\uC5B4\uB450\uC758 '\uB144'\uC740 \uB450\uC74C\uBC95\uCE59\uC5D0 \uB530\uB77C '\uC5F0'\uC73C\uB85C \uC801\uC74C",
|
|
26610
26631
|
suggest: "\uC608) \uC5F0\uB3C4, \uC5F0\uAC04, \uC5F0\uB9D0, \uC5F0\uCD08"
|
|
26611
26632
|
},
|
|
@@ -29710,7 +29731,7 @@ async function dispatch(format, buffer, opts) {
|
|
|
29710
29731
|
}
|
|
29711
29732
|
async function parseImage(buffer, options) {
|
|
29712
29733
|
try {
|
|
29713
|
-
const { parseImageDocument } = await import("./image-ocr-
|
|
29734
|
+
const { parseImageDocument } = await import("./image-ocr-SO56VETS.js");
|
|
29714
29735
|
const { blocks, warnings } = await parseImageDocument(buffer, options);
|
|
29715
29736
|
return {
|
|
29716
29737
|
success: true,
|
|
@@ -29769,7 +29790,7 @@ async function parseHwp(buffer, options) {
|
|
|
29769
29790
|
async function parsePdf(buffer, options) {
|
|
29770
29791
|
let parsePdfDocument;
|
|
29771
29792
|
try {
|
|
29772
|
-
const mod = await import("./parser-
|
|
29793
|
+
const mod = await import("./parser-OBHNXEQM.js");
|
|
29773
29794
|
parsePdfDocument = mod.parsePdfDocument;
|
|
29774
29795
|
} catch {
|
|
29775
29796
|
return {
|
|
@@ -29920,4 +29941,4 @@ export {
|
|
|
29920
29941
|
parseHwpml,
|
|
29921
29942
|
fillForm
|
|
29922
29943
|
};
|
|
29923
|
-
//# sourceMappingURL=chunk-
|
|
29944
|
+
//# sourceMappingURL=chunk-LD2K4K5V.js.map
|