kordoc 4.22.15 → 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 +2 -1
- package/dist/{-QKNGJHAZ.js → -3XSSQOP6.js} +11 -11
- package/dist/{chunk-C7GEA5EE.js → chunk-2WAKSO2Z.js} +2 -2
- package/dist/{chunk-4BEGCKHJ.js → chunk-2ZGVOGHM.js} +2 -2
- package/dist/{chunk-WBDHB4XF.js → chunk-3BQYVNOW.js} +2 -2
- package/dist/{chunk-SOLVML3D.cjs → chunk-3NYFGUOJ.cjs} +24 -24
- package/dist/{chunk-SOLVML3D.cjs.map → chunk-3NYFGUOJ.cjs.map} +1 -1
- package/dist/{chunk-7QEYWKCX.js → chunk-5EISWK2J.js} +2 -2
- package/dist/{chunk-DQRHLLZX.js → chunk-75YWX55A.js} +3 -3
- package/dist/{chunk-BH4PFHF5.js → chunk-C3XICONM.js} +4 -4
- package/dist/{chunk-5N6MENH6.cjs → chunk-FFQLQLRE.cjs} +6 -6
- package/dist/{chunk-5N6MENH6.cjs.map → chunk-FFQLQLRE.cjs.map} +1 -1
- package/dist/{chunk-QG35WGJY.js → chunk-GDTSPYWP.js} +2 -2
- package/dist/{chunk-L66D5JSX.js → chunk-HXV4V6IH.js} +2 -2
- package/dist/{chunk-KXTCBOUC.cjs → chunk-IUVFOBQM.cjs} +3 -3
- package/dist/{chunk-KXTCBOUC.cjs.map → chunk-IUVFOBQM.cjs.map} +1 -1
- package/dist/{chunk-YFBPSJIK.cjs → chunk-JL3IR45L.cjs} +23 -23
- package/dist/{chunk-YFBPSJIK.cjs.map → chunk-JL3IR45L.cjs.map} +1 -1
- package/dist/{chunk-NELX5BUF.js → chunk-JTRP3OO2.js} +2 -2
- package/dist/{chunk-AUENDUDZ.cjs → chunk-JZCBDX34.cjs} +3 -3
- package/dist/{chunk-AUENDUDZ.cjs.map → chunk-JZCBDX34.cjs.map} +1 -1
- package/dist/{chunk-PZWP7QZI.js → chunk-L5HFJV5O.js} +3 -3
- package/dist/{chunk-B5M5SQKA.js → chunk-NDO4XZMT.js} +2 -2
- package/dist/{chunk-CHVZJ657.js → chunk-RMNJTPSR.js} +4 -4
- package/dist/{chunk-OGYWOGKZ.js → chunk-RVZVCHUE.js} +2 -2
- package/dist/{chunk-YEGBKWM2.js → chunk-RWLGFHZO.js} +2 -2
- package/dist/{chunk-ETER5U3Z.js → chunk-SDIKLPMY.js} +2 -2
- package/dist/{chunk-5BA72NJJ.js → chunk-TI534EYY.js} +6 -6
- package/dist/{chunk-ILRCRR54.cjs → chunk-UDG4L37H.cjs} +2 -2
- package/dist/{chunk-ILRCRR54.cjs.map → chunk-UDG4L37H.cjs.map} +1 -1
- package/dist/{chunk-YPXIUH4N.js → chunk-VJ6UNTC7.js} +2 -2
- package/dist/{chunk-QCDFGYTY.js → chunk-VTVPHZJ6.js} +34 -31
- package/dist/{chunk-QCDFGYTY.js.map → chunk-VTVPHZJ6.js.map} +1 -1
- package/dist/{chunk-DM67WSTH.js → chunk-VVOURQFY.js} +2 -2
- package/dist/{chunk-DM67WSTH.js.map → chunk-VVOURQFY.js.map} +1 -1
- package/dist/{chunk-AIK55H5I.js → chunk-W5SRR7W6.js} +3 -3
- package/dist/{chunk-H66FRBTO.js → chunk-WMJPOOBJ.js} +2 -2
- package/dist/{chunk-7RWA3PZ4.js → chunk-XD4B7B55.js} +2 -2
- package/dist/{chunk-7RWA3PZ4.js.map → chunk-XD4B7B55.js.map} +1 -1
- package/dist/{chunk-XZ34KDGA.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-TRZNBQA7.js → formula-JMFME265.js} +4 -4
- package/dist/{formula-GHINZR45.cjs → formula-XSJKSTPU.cjs} +9 -9
- package/dist/{formula-GHINZR45.cjs.map → formula-XSJKSTPU.cjs.map} +1 -1
- package/dist/{formula-YQXHLN62.js → formula-YWCFQN7M.js} +3 -3
- package/dist/{image-ocr-VS42CA7V.cjs → image-ocr-2OWPVTWD.cjs} +17 -17
- package/dist/{image-ocr-VS42CA7V.cjs.map → image-ocr-2OWPVTWD.cjs.map} +1 -1
- package/dist/{image-ocr-7G5BY6HP.js → image-ocr-HH4WLRMA.js} +9 -9
- package/dist/{image-ocr-TMBFSD4U.js → image-ocr-W52R3U55.js} +6 -6
- package/dist/index.cjs +561 -558
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -1
- package/dist/index.d.ts +6 -1
- package/dist/index.js +29 -26
- package/dist/index.js.map +1 -1
- package/dist/mcp.js +22 -22
- package/dist/{model-bundle-3N52FRRY.js → model-bundle-LAMGDBR5.js} +5 -5
- package/dist/{models-APDB3SOF.js → models-UW6K53RI.js} +5 -5
- package/dist/{parse-worker-v2-35LPGAQU.js → parse-worker-v2-TCYTBP2P.js} +12 -12
- package/dist/{parser-HSHTGLFC.js → parser-J37C64DT.js} +12 -12
- package/dist/{parser-FVCPSKL3.cjs → parser-JXAIWIOE.cjs} +157 -157
- package/dist/{parser-FVCPSKL3.cjs.map → parser-JXAIWIOE.cjs.map} +1 -1
- package/dist/{parser-QDNORIBQ.js → parser-Y2OKEGM4.js} +9 -9
- package/dist/{pdf-ocr-IL4EKHC2.js → pdf-ocr-BDNBONES.js} +6 -6
- package/dist/pdf-ocr-HPC5BVB7.cjs +31 -0
- package/dist/{pdf-ocr-2J4X7BIB.cjs.map → pdf-ocr-HPC5BVB7.cjs.map} +1 -1
- package/dist/{pdf-ocr-K6BODKK6.js → pdf-ocr-NUQHXJJR.js} +9 -9
- package/dist/{profile-io-IMYZVBUB.js → profile-io-SET4RRP2.js} +3 -3
- package/dist/{rasterize-52M5QMCF.js → rasterize-O7ZM2CRL.js} +3 -3
- package/dist/{redact-doc-OWZYVLOL.js → redact-doc-Z3ISHGTJ.js} +11 -11
- package/dist/{render-B4DB5V3H.js → render-MLKOC2PN.js} +7 -7
- package/dist/seal-7QUWLHB6.js +10 -0
- package/dist/{setup-XQOG5DQH.js → setup-CUB6RCSD.js} +3 -3
- package/dist/visual-QLWVIUQS.js +21 -0
- package/dist/{watch-YLHLYA2C.js → watch-YPDHDT4N.js} +12 -12
- package/package.json +1 -1
- package/dist/chunks-VIMWBMRT.js +0 -10
- package/dist/pdf-ocr-2J4X7BIB.cjs +0 -31
- package/dist/seal-GILBR2UU.js +0 -10
- package/dist/visual-ZJY2HO57.js +0 -21
- /package/dist/{-QKNGJHAZ.js.map → -3XSSQOP6.js.map} +0 -0
- /package/dist/{chunk-C7GEA5EE.js.map → chunk-2WAKSO2Z.js.map} +0 -0
- /package/dist/{chunk-4BEGCKHJ.js.map → chunk-2ZGVOGHM.js.map} +0 -0
- /package/dist/{chunk-WBDHB4XF.js.map → chunk-3BQYVNOW.js.map} +0 -0
- /package/dist/{chunk-7QEYWKCX.js.map → chunk-5EISWK2J.js.map} +0 -0
- /package/dist/{chunk-DQRHLLZX.js.map → chunk-75YWX55A.js.map} +0 -0
- /package/dist/{chunk-BH4PFHF5.js.map → chunk-C3XICONM.js.map} +0 -0
- /package/dist/{chunk-QG35WGJY.js.map → chunk-GDTSPYWP.js.map} +0 -0
- /package/dist/{chunk-L66D5JSX.js.map → chunk-HXV4V6IH.js.map} +0 -0
- /package/dist/{chunk-NELX5BUF.js.map → chunk-JTRP3OO2.js.map} +0 -0
- /package/dist/{chunk-PZWP7QZI.js.map → chunk-L5HFJV5O.js.map} +0 -0
- /package/dist/{chunk-B5M5SQKA.js.map → chunk-NDO4XZMT.js.map} +0 -0
- /package/dist/{chunk-CHVZJ657.js.map → chunk-RMNJTPSR.js.map} +0 -0
- /package/dist/{chunk-OGYWOGKZ.js.map → chunk-RVZVCHUE.js.map} +0 -0
- /package/dist/{chunk-YEGBKWM2.js.map → chunk-RWLGFHZO.js.map} +0 -0
- /package/dist/{chunk-ETER5U3Z.js.map → chunk-SDIKLPMY.js.map} +0 -0
- /package/dist/{chunk-5BA72NJJ.js.map → chunk-TI534EYY.js.map} +0 -0
- /package/dist/{chunk-YPXIUH4N.js.map → chunk-VJ6UNTC7.js.map} +0 -0
- /package/dist/{chunk-AIK55H5I.js.map → chunk-W5SRR7W6.js.map} +0 -0
- /package/dist/{chunk-H66FRBTO.js.map → chunk-WMJPOOBJ.js.map} +0 -0
- /package/dist/{chunk-XZ34KDGA.js.map → chunk-Z7URWVQH.js.map} +0 -0
- /package/dist/{chunks-VIMWBMRT.js.map → chunks-XXPD5OV5.js.map} +0 -0
- /package/dist/{formula-TRZNBQA7.js.map → formula-JMFME265.js.map} +0 -0
- /package/dist/{formula-YQXHLN62.js.map → formula-YWCFQN7M.js.map} +0 -0
- /package/dist/{image-ocr-7G5BY6HP.js.map → image-ocr-HH4WLRMA.js.map} +0 -0
- /package/dist/{image-ocr-TMBFSD4U.js.map → image-ocr-W52R3U55.js.map} +0 -0
- /package/dist/{model-bundle-3N52FRRY.js.map → model-bundle-LAMGDBR5.js.map} +0 -0
- /package/dist/{models-APDB3SOF.js.map → models-UW6K53RI.js.map} +0 -0
- /package/dist/{parse-worker-v2-35LPGAQU.js.map → parse-worker-v2-TCYTBP2P.js.map} +0 -0
- /package/dist/{parser-HSHTGLFC.js.map → parser-J37C64DT.js.map} +0 -0
- /package/dist/{parser-QDNORIBQ.js.map → parser-Y2OKEGM4.js.map} +0 -0
- /package/dist/{pdf-ocr-IL4EKHC2.js.map → pdf-ocr-BDNBONES.js.map} +0 -0
- /package/dist/{pdf-ocr-K6BODKK6.js.map → pdf-ocr-NUQHXJJR.js.map} +0 -0
- /package/dist/{profile-io-IMYZVBUB.js.map → profile-io-SET4RRP2.js.map} +0 -0
- /package/dist/{rasterize-52M5QMCF.js.map → rasterize-O7ZM2CRL.js.map} +0 -0
- /package/dist/{redact-doc-OWZYVLOL.js.map → redact-doc-Z3ISHGTJ.js.map} +0 -0
- /package/dist/{render-B4DB5V3H.js.map → render-MLKOC2PN.js.map} +0 -0
- /package/dist/{seal-GILBR2UU.js.map → seal-7QUWLHB6.js.map} +0 -0
- /package/dist/{setup-XQOG5DQH.js.map → setup-CUB6RCSD.js.map} +0 -0
- /package/dist/{visual-ZJY2HO57.js.map → visual-QLWVIUQS.js.map} +0 -0
- /package/dist/{watch-YLHLYA2C.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
|