kordoc 4.22.14 → 4.22.16
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 +6 -2
- package/dist/{-AF5OVQ2B.js → -3XSSQOP6.js} +11 -11
- package/dist/{chunk-PHULZF6L.js → chunk-2WAKSO2Z.js} +2 -2
- package/dist/{chunk-DWP5CLVR.js → chunk-2ZGVOGHM.js} +2 -2
- package/dist/{chunk-6LKB7UWJ.js → chunk-3BQYVNOW.js} +2 -2
- package/dist/{chunk-TMJJKLNC.cjs → chunk-3NYFGUOJ.cjs} +24 -24
- package/dist/{chunk-TMJJKLNC.cjs.map → chunk-3NYFGUOJ.cjs.map} +1 -1
- package/dist/{chunk-THAL2XH4.js → chunk-5EISWK2J.js} +2 -2
- package/dist/{chunk-H2J3WNB3.js → chunk-75YWX55A.js} +3 -3
- package/dist/{chunk-EMC23F72.js → chunk-C3XICONM.js} +4 -4
- package/dist/{chunk-F4IXPKBU.cjs → chunk-FFQLQLRE.cjs} +6 -6
- package/dist/{chunk-F4IXPKBU.cjs.map → chunk-FFQLQLRE.cjs.map} +1 -1
- package/dist/{chunk-LVKASU3G.js → chunk-GDTSPYWP.js} +2 -2
- package/dist/{chunk-DERMNCUV.js → chunk-HXV4V6IH.js} +2 -2
- package/dist/{chunk-M6LVRVKB.cjs → chunk-IUVFOBQM.cjs} +3 -3
- package/dist/{chunk-M6LVRVKB.cjs.map → chunk-IUVFOBQM.cjs.map} +1 -1
- package/dist/{chunk-SHJPQ3QB.cjs → chunk-JL3IR45L.cjs} +23 -23
- package/dist/{chunk-SHJPQ3QB.cjs.map → chunk-JL3IR45L.cjs.map} +1 -1
- package/dist/{chunk-NMA5P7SJ.js → chunk-JTRP3OO2.js} +2 -2
- package/dist/{chunk-WHNF67YI.cjs → chunk-JZCBDX34.cjs} +3 -3
- package/dist/{chunk-WHNF67YI.cjs.map → chunk-JZCBDX34.cjs.map} +1 -1
- package/dist/{chunk-JKSHF4LV.js → chunk-L5HFJV5O.js} +3 -3
- package/dist/{chunk-2HLWRP2W.js → chunk-NDO4XZMT.js} +2 -2
- package/dist/{chunk-FN462MNZ.js → chunk-RMNJTPSR.js} +4 -4
- package/dist/{chunk-WQWOCG53.js → chunk-RVZVCHUE.js} +2 -2
- package/dist/{chunk-PFVDY2EK.js → chunk-RWLGFHZO.js} +2 -2
- package/dist/{chunk-YDKJZF5L.js → chunk-SDIKLPMY.js} +2 -2
- package/dist/{chunk-SXSBYB4M.js → chunk-TI534EYY.js} +6 -6
- package/dist/{chunk-KNG6HPBO.cjs → chunk-UDG4L37H.cjs} +2 -2
- package/dist/{chunk-KNG6HPBO.cjs.map → chunk-UDG4L37H.cjs.map} +1 -1
- package/dist/{chunk-IE6LE6W3.js → chunk-VJ6UNTC7.js} +2 -2
- package/dist/{chunk-FJ5RGHZW.js → chunk-VTVPHZJ6.js} +476 -48
- package/dist/chunk-VTVPHZJ6.js.map +1 -0
- package/dist/{chunk-FNF3IGCT.js → chunk-VVOURQFY.js} +2 -2
- package/dist/{chunk-FNF3IGCT.js.map → chunk-VVOURQFY.js.map} +1 -1
- package/dist/{chunk-AA7VSDW7.js → chunk-W5SRR7W6.js} +3 -3
- package/dist/{chunk-5IWMX3MX.js → chunk-WMJPOOBJ.js} +2 -2
- package/dist/{chunk-634XJS2B.js → chunk-XD4B7B55.js} +2 -2
- package/dist/{chunk-634XJS2B.js.map → chunk-XD4B7B55.js.map} +1 -1
- package/dist/{chunk-EAUI4MGW.js → chunk-Z7URWVQH.js} +4 -4
- package/dist/chunks-XXPD5OV5.js +10 -0
- package/dist/cli.js +32 -32
- package/dist/cli.js.map +1 -1
- package/dist/{formula-HUREVQCI.js → formula-JMFME265.js} +4 -4
- package/dist/{formula-4AJAVAWT.cjs → formula-XSJKSTPU.cjs} +9 -9
- package/dist/{formula-4AJAVAWT.cjs.map → formula-XSJKSTPU.cjs.map} +1 -1
- package/dist/{formula-UBZCYRF4.js → formula-YWCFQN7M.js} +3 -3
- package/dist/{image-ocr-DTZWQOQL.cjs → image-ocr-2OWPVTWD.cjs} +17 -17
- package/dist/{image-ocr-DTZWQOQL.cjs.map → image-ocr-2OWPVTWD.cjs.map} +1 -1
- package/dist/{image-ocr-3R2YM67Q.js → image-ocr-HH4WLRMA.js} +9 -9
- package/dist/{image-ocr-PJT3Z4YE.js → image-ocr-W52R3U55.js} +6 -6
- package/dist/index.cjs +1015 -587
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +14 -3
- package/dist/index.d.ts +14 -3
- package/dist/index.js +471 -43
- package/dist/index.js.map +1 -1
- package/dist/mcp.js +41 -33
- package/dist/mcp.js.map +1 -1
- package/dist/{model-bundle-37BM65SF.js → model-bundle-LAMGDBR5.js} +5 -5
- package/dist/{models-SINSBMMS.js → models-UW6K53RI.js} +5 -5
- package/dist/{parse-worker-v2-XZE6G3YZ.js → parse-worker-v2-TCYTBP2P.js} +12 -12
- package/dist/{parser-BN6SMWKJ.js → parser-J37C64DT.js} +12 -12
- package/dist/{parser-7NEY6KUC.cjs → parser-JXAIWIOE.cjs} +157 -157
- package/dist/{parser-7NEY6KUC.cjs.map → parser-JXAIWIOE.cjs.map} +1 -1
- package/dist/{parser-PYLI2HSC.js → parser-Y2OKEGM4.js} +9 -9
- package/dist/{pdf-ocr-2O7FQ6JB.js → pdf-ocr-BDNBONES.js} +6 -6
- package/dist/pdf-ocr-HPC5BVB7.cjs +31 -0
- package/dist/{pdf-ocr-W5UAELPX.cjs.map → pdf-ocr-HPC5BVB7.cjs.map} +1 -1
- package/dist/{pdf-ocr-472YHMNQ.js → pdf-ocr-NUQHXJJR.js} +9 -9
- package/dist/{profile-io-KENW2S4U.js → profile-io-SET4RRP2.js} +3 -3
- package/dist/{rasterize-CDGVIXWB.js → rasterize-O7ZM2CRL.js} +3 -3
- package/dist/{redact-doc-LGIC27QL.js → redact-doc-Z3ISHGTJ.js} +11 -11
- package/dist/{render-4WB6VKAI.js → render-MLKOC2PN.js} +7 -7
- package/dist/seal-7QUWLHB6.js +10 -0
- package/dist/{setup-RNR35MKP.js → setup-CUB6RCSD.js} +3 -3
- package/dist/visual-QLWVIUQS.js +21 -0
- package/dist/{watch-VLHG2G5B.js → watch-YPDHDT4N.js} +12 -12
- package/package.json +1 -1
- package/dist/chunk-FJ5RGHZW.js.map +0 -1
- package/dist/chunks-75SH4S3P.js +0 -10
- package/dist/pdf-ocr-W5UAELPX.cjs +0 -31
- package/dist/seal-V6YQIAUC.js +0 -10
- package/dist/visual-ZZZ65FH6.js +0 -21
- /package/dist/{-AF5OVQ2B.js.map → -3XSSQOP6.js.map} +0 -0
- /package/dist/{chunk-PHULZF6L.js.map → chunk-2WAKSO2Z.js.map} +0 -0
- /package/dist/{chunk-DWP5CLVR.js.map → chunk-2ZGVOGHM.js.map} +0 -0
- /package/dist/{chunk-6LKB7UWJ.js.map → chunk-3BQYVNOW.js.map} +0 -0
- /package/dist/{chunk-THAL2XH4.js.map → chunk-5EISWK2J.js.map} +0 -0
- /package/dist/{chunk-H2J3WNB3.js.map → chunk-75YWX55A.js.map} +0 -0
- /package/dist/{chunk-EMC23F72.js.map → chunk-C3XICONM.js.map} +0 -0
- /package/dist/{chunk-LVKASU3G.js.map → chunk-GDTSPYWP.js.map} +0 -0
- /package/dist/{chunk-DERMNCUV.js.map → chunk-HXV4V6IH.js.map} +0 -0
- /package/dist/{chunk-NMA5P7SJ.js.map → chunk-JTRP3OO2.js.map} +0 -0
- /package/dist/{chunk-JKSHF4LV.js.map → chunk-L5HFJV5O.js.map} +0 -0
- /package/dist/{chunk-2HLWRP2W.js.map → chunk-NDO4XZMT.js.map} +0 -0
- /package/dist/{chunk-FN462MNZ.js.map → chunk-RMNJTPSR.js.map} +0 -0
- /package/dist/{chunk-WQWOCG53.js.map → chunk-RVZVCHUE.js.map} +0 -0
- /package/dist/{chunk-PFVDY2EK.js.map → chunk-RWLGFHZO.js.map} +0 -0
- /package/dist/{chunk-YDKJZF5L.js.map → chunk-SDIKLPMY.js.map} +0 -0
- /package/dist/{chunk-SXSBYB4M.js.map → chunk-TI534EYY.js.map} +0 -0
- /package/dist/{chunk-IE6LE6W3.js.map → chunk-VJ6UNTC7.js.map} +0 -0
- /package/dist/{chunk-AA7VSDW7.js.map → chunk-W5SRR7W6.js.map} +0 -0
- /package/dist/{chunk-5IWMX3MX.js.map → chunk-WMJPOOBJ.js.map} +0 -0
- /package/dist/{chunk-EAUI4MGW.js.map → chunk-Z7URWVQH.js.map} +0 -0
- /package/dist/{chunks-75SH4S3P.js.map → chunks-XXPD5OV5.js.map} +0 -0
- /package/dist/{formula-HUREVQCI.js.map → formula-JMFME265.js.map} +0 -0
- /package/dist/{formula-UBZCYRF4.js.map → formula-YWCFQN7M.js.map} +0 -0
- /package/dist/{image-ocr-3R2YM67Q.js.map → image-ocr-HH4WLRMA.js.map} +0 -0
- /package/dist/{image-ocr-PJT3Z4YE.js.map → image-ocr-W52R3U55.js.map} +0 -0
- /package/dist/{model-bundle-37BM65SF.js.map → model-bundle-LAMGDBR5.js.map} +0 -0
- /package/dist/{models-SINSBMMS.js.map → models-UW6K53RI.js.map} +0 -0
- /package/dist/{parse-worker-v2-XZE6G3YZ.js.map → parse-worker-v2-TCYTBP2P.js.map} +0 -0
- /package/dist/{parser-BN6SMWKJ.js.map → parser-J37C64DT.js.map} +0 -0
- /package/dist/{parser-PYLI2HSC.js.map → parser-Y2OKEGM4.js.map} +0 -0
- /package/dist/{pdf-ocr-2O7FQ6JB.js.map → pdf-ocr-BDNBONES.js.map} +0 -0
- /package/dist/{pdf-ocr-472YHMNQ.js.map → pdf-ocr-NUQHXJJR.js.map} +0 -0
- /package/dist/{profile-io-KENW2S4U.js.map → profile-io-SET4RRP2.js.map} +0 -0
- /package/dist/{rasterize-CDGVIXWB.js.map → rasterize-O7ZM2CRL.js.map} +0 -0
- /package/dist/{redact-doc-LGIC27QL.js.map → redact-doc-Z3ISHGTJ.js.map} +0 -0
- /package/dist/{render-4WB6VKAI.js.map → render-MLKOC2PN.js.map} +0 -0
- /package/dist/{seal-V6YQIAUC.js.map → seal-7QUWLHB6.js.map} +0 -0
- /package/dist/{setup-RNR35MKP.js.map → setup-CUB6RCSD.js.map} +0 -0
- /package/dist/{visual-ZZZ65FH6.js.map → visual-QLWVIUQS.js.map} +0 -0
- /package/dist/{watch-VLHG2G5B.js.map → watch-YPDHDT4N.js.map} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// src/utils.ts
|
|
2
|
-
var VERSION = true ? "4.22.
|
|
2
|
+
var VERSION = true ? "4.22.16" : "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-5EISWK2J.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
parse
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-VTVPHZJ6.js";
|
|
5
5
|
import {
|
|
6
6
|
classifyError,
|
|
7
7
|
sanitizeError,
|
|
8
8
|
toArrayBuffer
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-2WAKSO2Z.js";
|
|
10
10
|
|
|
11
11
|
// src/cli/worker-parse.ts
|
|
12
12
|
import { readFileSync, statSync } from "fs";
|
|
@@ -26,4 +26,4 @@ async function parseWorkerFile(absPath, options) {
|
|
|
26
26
|
export {
|
|
27
27
|
parseWorkerFile
|
|
28
28
|
};
|
|
29
|
-
//# sourceMappingURL=chunk-
|
|
29
|
+
//# sourceMappingURL=chunk-75YWX55A.js.map
|
|
@@ -4,15 +4,15 @@ import {
|
|
|
4
4
|
HEADING_RATIO_H2,
|
|
5
5
|
HEADING_RATIO_H3,
|
|
6
6
|
tidyScriptTags
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-XD4B7B55.js";
|
|
8
8
|
import {
|
|
9
9
|
ensureModelsIn,
|
|
10
10
|
getModelsDir
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-2ZGVOGHM.js";
|
|
12
12
|
import {
|
|
13
13
|
safeMax,
|
|
14
14
|
safeMin
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-5EISWK2J.js";
|
|
16
16
|
|
|
17
17
|
// src/ocr/models.ts
|
|
18
18
|
import { join } from "path";
|
|
@@ -9118,4 +9118,4 @@ export {
|
|
|
9118
9118
|
UNRULED_REGION_TABLES,
|
|
9119
9119
|
mergeOcrImageRegions
|
|
9120
9120
|
};
|
|
9121
|
-
//# sourceMappingURL=chunk-
|
|
9121
|
+
//# sourceMappingURL=chunk-C3XICONM.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; }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkUDG4L37Hcjs = require('./chunk-UDG4L37H.cjs');
|
|
5
5
|
|
|
6
6
|
// src/script-tags.ts
|
|
7
7
|
var LITERAL_TAG = /<(?=\/?(?:u|sup|sub)>)/g;
|
|
@@ -932,7 +932,7 @@ function blocksToMarkdown(blocks, options) {
|
|
|
932
932
|
if (_optionalChain([block, 'access', _32 => _32.spans, 'optionalAccess', _33 => _33.length])) {
|
|
933
933
|
let rendered = spansToMarkdown(block.spans);
|
|
934
934
|
if (block.href) {
|
|
935
|
-
const href =
|
|
935
|
+
const href = _chunkUDG4L37Hcjs.sanitizeHref.call(void 0, block.href);
|
|
936
936
|
if (href) rendered = `[${rendered}](${href})`;
|
|
937
937
|
}
|
|
938
938
|
if (block.footnoteText) rendered += noteTable || escapeGfm(` (\uC8FC: ${block.footnoteText})`);
|
|
@@ -940,7 +940,7 @@ function blocksToMarkdown(blocks, options) {
|
|
|
940
940
|
continue;
|
|
941
941
|
}
|
|
942
942
|
if (block.href) {
|
|
943
|
-
const href =
|
|
943
|
+
const href = _chunkUDG4L37Hcjs.sanitizeHref.call(void 0, block.href);
|
|
944
944
|
if (href) text = `[${text}](${href})`;
|
|
945
945
|
}
|
|
946
946
|
if (block.footnoteText && !noteTable) {
|
|
@@ -1029,7 +1029,7 @@ function visibleText(b) {
|
|
|
1029
1029
|
return _optionalChain([b, 'access', _47 => _47.spans, 'optionalAccess', _48 => _48.some, 'call', _49 => _49((s) => s.placeholder)]) ? b.spans.filter((s) => !s.placeholder).map((s) => s.text).join("") : _nullishCoalesce(b.text, () => ( ""));
|
|
1030
1030
|
}
|
|
1031
1031
|
function escapeHtmlCellText(text) {
|
|
1032
|
-
return
|
|
1032
|
+
return _chunkUDG4L37Hcjs.escapeHtml.call(void 0, text).replace(/(\\)?<(\/?)(u|sup|sub)>/g, (_, esc, sl, tag) => esc ? `<${sl}${tag}>` : `<${sl}${tag}>`);
|
|
1033
1033
|
}
|
|
1034
1034
|
function cellInnerHtml(cell) {
|
|
1035
1035
|
if (_optionalChain([cell, 'access', _50 => _50.blocks, 'optionalAccess', _51 => _51.length])) {
|
|
@@ -1038,7 +1038,7 @@ function cellInnerHtml(cell) {
|
|
|
1038
1038
|
const cap = captionToHtml(b.table);
|
|
1039
1039
|
return (cap ? cap + "<br>" : "") + tableToHtml(b.table);
|
|
1040
1040
|
}
|
|
1041
|
-
if (b.type === "image" && b.text) return `<img src="${
|
|
1041
|
+
if (b.type === "image" && b.text) return `<img src="${_chunkUDG4L37Hcjs.escapeHtml.call(void 0, b.text, true)}" alt="image">`;
|
|
1042
1042
|
const note = noteTableHtml(b);
|
|
1043
1043
|
const t = (sanitizeText(visibleText(b)) + (note ? "" : noteSuffix(b))).trim();
|
|
1044
1044
|
return ((t ? escapeHtmlCellText(t).replace(/\n/g, "<br>") : "") + note).trim();
|
|
@@ -1539,4 +1539,4 @@ var HEADING_RATIO_H3 = 1.15;
|
|
|
1539
1539
|
|
|
1540
1540
|
|
|
1541
1541
|
exports.escapeLiteralTags = escapeLiteralTags; exports.wrapScript = wrapScript; exports.tidyScriptTags = tidyScriptTags; exports.plainScripts = plainScripts; exports.stripScriptTags = stripScriptTags; exports.WINGDINGS = WINGDINGS; exports.hangulOrdinal = hangulOrdinal; exports.circledNumber = circledNumber; exports.circledHangul = circledHangul; exports.hangulAmount = hangulAmount; exports.romanNumeral = romanNumeral; exports.enclosedNumber = enclosedNumber; exports.pairedNumber = pairedNumber; exports.composeText = composeText; exports.mapPuaText = mapPuaText; exports.MAX_COLS = MAX_COLS; exports.MAX_ROWS = MAX_ROWS; exports.MAX_TABLE_CELLS = MAX_TABLE_CELLS; exports.buildTable = buildTable; exports.convertTableToText = convertTableToText; exports.escapeGfm = escapeGfm; exports.escapeLiteralDollar = escapeLiteralDollar; exports.sanitizeText = sanitizeText; exports.markNonLayoutTable = markNonLayoutTable; exports.flattenLayoutTables = flattenLayoutTables; exports.dedupeRunningHeaders = dedupeRunningHeaders; exports.assignTableIds = assignTableIds; exports.blocksToMarkdown = blocksToMarkdown; exports.hasStructuredCellContent = hasStructuredCellContent; exports.noteSuffix = noteSuffix; exports.noteTableHtml = noteTableHtml; exports.visibleText = visibleText; exports.escapeHtmlCellText = escapeHtmlCellText; exports.CELL_EDGES = CELL_EDGES; exports.CELL_PAGES = CELL_PAGES; exports.CONTENT_CELLS = CONTENT_CELLS; exports.CELL_BASELINES = CELL_BASELINES; exports.unframeLayoutTables = unframeLayoutTables; exports.HEADING_RATIO_H1 = HEADING_RATIO_H1; exports.HEADING_RATIO_H2 = HEADING_RATIO_H2; exports.HEADING_RATIO_H3 = HEADING_RATIO_H3; exports.validateOcrOptions = validateOcrOptions;
|
|
1542
|
-
//# sourceMappingURL=chunk-
|
|
1542
|
+
//# sourceMappingURL=chunk-FFQLQLRE.cjs.map
|