kordoc 4.24.47 → 4.24.48

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.
Files changed (209) hide show
  1. package/NOTICE +21 -0
  2. package/README.md +3 -3
  3. package/dist/{-PWMZE4CC.js → -3EMVBTE7.js} +22 -22
  4. package/dist/{chunk-SUIH5LY7.js → chunk-3UY7ARXP.js} +2 -2
  5. package/dist/{chunk-TN5ZK2WN.js → chunk-4N2ESXR2.js} +2 -2
  6. package/dist/{chunk-2VXVBB5Q.js → chunk-6YUMHSBG.js} +3 -3
  7. package/dist/{chunk-T5J4GW6B.js → chunk-7EL6BCO5.js} +2 -2
  8. package/dist/{chunk-GRQXAWNW.js → chunk-7F5SKDUG.js} +2 -2
  9. package/dist/{chunk-UFY6XX4U.cjs → chunk-A6EOKPKG.cjs} +46 -25
  10. package/dist/chunk-A6EOKPKG.cjs.map +1 -0
  11. package/dist/{chunk-AB7MYMPZ.js → chunk-AC7FZDVP.js} +2 -2
  12. package/dist/{chunk-HMD35PMD.js → chunk-D4TKVZKB.js} +3 -3
  13. package/dist/{chunk-A67OXFXM.js → chunk-D7SOY3VR.js} +25 -4
  14. package/dist/chunk-D7SOY3VR.js.map +1 -0
  15. package/dist/{chunk-56FEGA44.js → chunk-E47LO7XG.js} +11 -11
  16. package/dist/{chunk-BP5GDQBT.js → chunk-E5RJLP2S.js} +5 -5
  17. package/dist/{chunk-AO3YFJVW.js → chunk-FQMPHPHE.js} +2 -2
  18. package/dist/{chunk-MOWJOFIH.js → chunk-GFWCBYAI.js} +2 -2
  19. package/dist/chunk-GOYAJVR6.js +120 -0
  20. package/dist/chunk-GOYAJVR6.js.map +1 -0
  21. package/dist/{chunk-SQ5Q4Q3R.js → chunk-HW3DZ7TY.js} +7 -7
  22. package/dist/{chunk-Q3UCWUEV.js → chunk-JC2TMUU5.js} +6 -6
  23. package/dist/{chunk-OAKJNKAS.js → chunk-KTGOULMH.js} +145 -5
  24. package/dist/chunk-KTGOULMH.js.map +1 -0
  25. package/dist/{chunk-X7RBVVDC.cjs → chunk-LBH4KAQM.cjs} +3 -2
  26. package/dist/chunk-LBH4KAQM.cjs.map +1 -0
  27. package/dist/{chunk-O2652KK3.cjs → chunk-LHZL52HO.cjs} +3 -3
  28. package/dist/{chunk-O2652KK3.cjs.map → chunk-LHZL52HO.cjs.map} +1 -1
  29. package/dist/{chunk-3CWVQNFL.cjs → chunk-MHAPDR6T.cjs} +60 -60
  30. package/dist/{chunk-3CWVQNFL.cjs.map → chunk-MHAPDR6T.cjs.map} +1 -1
  31. package/dist/{chunk-KSE5HSU3.js → chunk-MHLTZ3VI.js} +8 -5
  32. package/dist/chunk-MHLTZ3VI.js.map +1 -0
  33. package/dist/{chunk-NYIJU4Q6.js → chunk-MYIRYP6D.js} +10 -10
  34. package/dist/{chunk-FI7ULBC6.js → chunk-N6B5BINC.js} +6 -6
  35. package/dist/{chunk-BO2IJGNZ.js → chunk-NLPIXQOV.js} +2 -2
  36. package/dist/{chunk-2CBIY2OH.js → chunk-OBNOOHAW.js} +2 -2
  37. package/dist/{chunk-2CBIY2OH.js.map → chunk-OBNOOHAW.js.map} +1 -1
  38. package/dist/{chunk-IPXFIH5E.js → chunk-OO4DHHTG.js} +8 -5
  39. package/dist/chunk-OO4DHHTG.js.map +1 -0
  40. package/dist/{chunk-HFQFCAEJ.js → chunk-OQPIN2OY.js} +2 -2
  41. package/dist/{chunk-PM46GSMV.js → chunk-OUUI7I5V.js} +146 -6
  42. package/dist/chunk-OUUI7I5V.js.map +1 -0
  43. package/dist/chunk-PHU4VSNF.js +119 -0
  44. package/dist/chunk-PHU4VSNF.js.map +1 -0
  45. package/dist/{chunk-KIVWAZKL.js → chunk-QJBVP2BS.js} +2 -2
  46. package/dist/{chunk-4MNRUPS5.js → chunk-QM65ELZE.js} +24 -3
  47. package/dist/chunk-QM65ELZE.js.map +1 -0
  48. package/dist/{chunk-LMHE4HDR.cjs → chunk-QOBWIFJA.cjs} +237 -97
  49. package/dist/chunk-QOBWIFJA.cjs.map +1 -0
  50. package/dist/{chunk-FOTG4MMD.js → chunk-REERG473.js} +6 -6
  51. package/dist/{chunk-57BKTVR5.js → chunk-SHYNOLL6.js} +2 -2
  52. package/dist/{chunk-IWC6PTMT.js → chunk-SI3GXM7Z.js} +2 -2
  53. package/dist/chunk-SJXTCW7I.cjs +122 -0
  54. package/dist/chunk-SJXTCW7I.cjs.map +1 -0
  55. package/dist/{chunk-LEUAWTMU.js → chunk-SUOJQHIN.js} +6 -6
  56. package/dist/{chunk-RQ4XTX4J.cjs → chunk-TOOOWCKQ.cjs} +98 -98
  57. package/dist/{chunk-RQ4XTX4J.cjs.map → chunk-TOOOWCKQ.cjs.map} +1 -1
  58. package/dist/{chunk-VKVDMH7X.js → chunk-TQ4QOCKT.js} +2 -1
  59. package/dist/chunk-TQ4QOCKT.js.map +1 -0
  60. package/dist/{chunk-VL43TUO6.js → chunk-UJ3TZF4Y.js} +2 -2
  61. package/dist/{chunk-U556XJW6.js → chunk-UN2F6EKQ.js} +2 -1
  62. package/dist/chunk-UN2F6EKQ.js.map +1 -0
  63. package/dist/{chunk-BKK2SMVM.cjs → chunk-VXHZPUMS.cjs} +2 -2
  64. package/dist/{chunk-BKK2SMVM.cjs.map → chunk-VXHZPUMS.cjs.map} +1 -1
  65. package/dist/{chunk-TGLXN6VH.js → chunk-WICMTKWR.js} +3 -3
  66. package/dist/{chunk-YLYSJSEP.js → chunk-WO6PZMMB.js} +2 -2
  67. package/dist/{chunk-Z5TDZDWU.js → chunk-WVUR3HYW.js} +48 -34
  68. package/dist/chunk-WVUR3HYW.js.map +1 -0
  69. package/dist/{chunk-WAFJUSUF.cjs → chunk-YFTD6WOP.cjs} +11 -8
  70. package/dist/chunk-YFTD6WOP.cjs.map +1 -0
  71. package/dist/chunks-QTVEFJOS.js +11 -0
  72. package/dist/cli.js +46 -45
  73. package/dist/cli.js.map +1 -1
  74. package/dist/{formula-V6CNOC4G.cjs → formula-7RJOEJHX.cjs} +9 -9
  75. package/dist/{formula-V6CNOC4G.cjs.map → formula-7RJOEJHX.cjs.map} +1 -1
  76. package/dist/{formula-W5MTLANP.js → formula-DUHNPES2.js} +4 -4
  77. package/dist/{formula-2BQBGPM2.js → formula-XNCKOV6K.js} +3 -3
  78. package/dist/generator-6BFIABTF.js +10 -0
  79. package/dist/generator-XJLIBYDJ.js +17 -0
  80. package/dist/generator-XXVCF6TG.cjs +11 -0
  81. package/dist/{generator-U2BRFTJ4.cjs.map → generator-XXVCF6TG.cjs.map} +1 -1
  82. package/dist/{hancom-MP7D7HWW.cjs → hancom-7F53R77A.cjs} +5 -5
  83. package/dist/{hancom-MP7D7HWW.cjs.map → hancom-7F53R77A.cjs.map} +1 -1
  84. package/dist/{hancom-7SU4XBXJ.js → hancom-D4E3WBPI.js} +2 -2
  85. package/dist/{hancom-RNJWH63M.js → hancom-IPF6HM5F.js} +2 -2
  86. package/dist/{image-ocr-2WSZULNO.js → image-ocr-NFCTNIL5.js} +7 -7
  87. package/dist/{image-ocr-COBRSG6O.js → image-ocr-PYOXD5K4.js} +10 -10
  88. package/dist/{image-ocr-MVOSHIY5.cjs → image-ocr-ZLAPJMES.cjs} +27 -27
  89. package/dist/{image-ocr-MVOSHIY5.cjs.map → image-ocr-ZLAPJMES.cjs.map} +1 -1
  90. package/dist/index.cjs +1518 -1504
  91. package/dist/index.cjs.map +1 -1
  92. package/dist/index.d.cts +5 -0
  93. package/dist/index.d.ts +5 -0
  94. package/dist/index.js +42 -28
  95. package/dist/index.js.map +1 -1
  96. package/dist/mcp.js +37 -37
  97. package/dist/memo-CNW6ZJFE.js +17 -0
  98. package/dist/{model-bundle-LFLRW2SI.js → model-bundle-TIHWFIN5.js} +5 -5
  99. package/dist/{models-UGOWUUAL.js → models-YBHBEM6J.js} +5 -5
  100. package/dist/{parse-worker-v2-LCCTZWPT.js → parse-worker-v2-Q7ST3SDO.js} +24 -23
  101. package/dist/parse-worker-v2-Q7ST3SDO.js.map +1 -0
  102. package/dist/{parser-JAL2OOOL.js → parser-7JSQYNLS.js} +377 -36
  103. package/dist/parser-7JSQYNLS.js.map +1 -0
  104. package/dist/{parser-RE52HQXO.cjs → parser-A76QS3VJ.cjs} +668 -327
  105. package/dist/parser-A76QS3VJ.cjs.map +1 -0
  106. package/dist/{parser-J56FGU6P.js → parser-V25GYLBJ.js} +374 -33
  107. package/dist/parser-V25GYLBJ.js.map +1 -0
  108. package/dist/pdf-ocr-5YCDSSLG.cjs +42 -0
  109. package/dist/{pdf-ocr-5O336TCR.cjs.map → pdf-ocr-5YCDSSLG.cjs.map} +1 -1
  110. package/dist/{pdf-ocr-NQ3HAL77.js → pdf-ocr-GEAW23FB.js} +9 -9
  111. package/dist/{pdf-ocr-PQZZVFI5.js → pdf-ocr-IJXT6ZJR.js} +6 -6
  112. package/dist/{profile-io-K22CB2ZB.js → profile-io-Y7SMMS2R.js} +3 -3
  113. package/dist/{rasterize-A6B5K4QN.js → rasterize-MLEHT6PU.js} +3 -3
  114. package/dist/{redact-doc-TPXMML5Q.js → redact-doc-GPO2UTTJ.js} +22 -22
  115. package/dist/{render-ROFIMWW5.js → render-TNWY53S4.js} +13 -13
  116. package/dist/{rewrite-fallback-WG7Z3LR3.js → rewrite-fallback-AHGTN757.js} +14 -14
  117. package/dist/seal-7HBR3HBQ.js +16 -0
  118. package/dist/{setup-J5SHDFIE.js → setup-TJ57DQ6I.js} +3 -3
  119. package/dist/to-hwpx-6JF6Q2TZ.js +21 -0
  120. package/dist/{to-hwpx-X7JE6YJB.js → to-hwpx-DLVARUND.js} +5 -5
  121. package/dist/to-hwpx-XLQUY2L2.cjs +16 -0
  122. package/dist/{to-hwpx-RWDQB3T2.cjs.map → to-hwpx-XLQUY2L2.cjs.map} +1 -1
  123. package/dist/visual-VBDQUUKP.js +37 -0
  124. package/dist/{watch-WZBW6UE7.js → watch-6CHDQ355.js} +23 -23
  125. package/package.json +3 -2
  126. package/dist/chunk-4MNRUPS5.js.map +0 -1
  127. package/dist/chunk-A67OXFXM.js.map +0 -1
  128. package/dist/chunk-AYM7XTI2.js +0 -31
  129. package/dist/chunk-AYM7XTI2.js.map +0 -1
  130. package/dist/chunk-CQ33HCSU.js +0 -32
  131. package/dist/chunk-CQ33HCSU.js.map +0 -1
  132. package/dist/chunk-IPXFIH5E.js.map +0 -1
  133. package/dist/chunk-KSE5HSU3.js.map +0 -1
  134. package/dist/chunk-LMHE4HDR.cjs.map +0 -1
  135. package/dist/chunk-OAKJNKAS.js.map +0 -1
  136. package/dist/chunk-PM46GSMV.js.map +0 -1
  137. package/dist/chunk-U556XJW6.js.map +0 -1
  138. package/dist/chunk-UFY6XX4U.cjs.map +0 -1
  139. package/dist/chunk-VKVDMH7X.js.map +0 -1
  140. package/dist/chunk-WAFJUSUF.cjs.map +0 -1
  141. package/dist/chunk-WPLAEJU5.cjs +0 -31
  142. package/dist/chunk-WPLAEJU5.cjs.map +0 -1
  143. package/dist/chunk-X7RBVVDC.cjs.map +0 -1
  144. package/dist/chunk-Z5TDZDWU.js.map +0 -1
  145. package/dist/chunks-SHXTE5HM.js +0 -11
  146. package/dist/generator-E4VQKPRP.js +0 -10
  147. package/dist/generator-MBR4V3JQ.js +0 -17
  148. package/dist/generator-U2BRFTJ4.cjs +0 -11
  149. package/dist/memo-QJ5RKTBN.js +0 -17
  150. package/dist/parse-worker-v2-LCCTZWPT.js.map +0 -1
  151. package/dist/parser-J56FGU6P.js.map +0 -1
  152. package/dist/parser-JAL2OOOL.js.map +0 -1
  153. package/dist/parser-RE52HQXO.cjs.map +0 -1
  154. package/dist/pdf-ocr-5O336TCR.cjs +0 -42
  155. package/dist/seal-35U76WY2.js +0 -16
  156. package/dist/to-hwpx-RWDQB3T2.cjs +0 -16
  157. package/dist/to-hwpx-XQULU2I7.js +0 -21
  158. package/dist/visual-4HRP2VIH.js +0 -37
  159. /package/dist/{-PWMZE4CC.js.map → -3EMVBTE7.js.map} +0 -0
  160. /package/dist/{chunk-SUIH5LY7.js.map → chunk-3UY7ARXP.js.map} +0 -0
  161. /package/dist/{chunk-TN5ZK2WN.js.map → chunk-4N2ESXR2.js.map} +0 -0
  162. /package/dist/{chunk-2VXVBB5Q.js.map → chunk-6YUMHSBG.js.map} +0 -0
  163. /package/dist/{chunk-T5J4GW6B.js.map → chunk-7EL6BCO5.js.map} +0 -0
  164. /package/dist/{chunk-GRQXAWNW.js.map → chunk-7F5SKDUG.js.map} +0 -0
  165. /package/dist/{chunk-AB7MYMPZ.js.map → chunk-AC7FZDVP.js.map} +0 -0
  166. /package/dist/{chunk-HMD35PMD.js.map → chunk-D4TKVZKB.js.map} +0 -0
  167. /package/dist/{chunk-56FEGA44.js.map → chunk-E47LO7XG.js.map} +0 -0
  168. /package/dist/{chunk-BP5GDQBT.js.map → chunk-E5RJLP2S.js.map} +0 -0
  169. /package/dist/{chunk-AO3YFJVW.js.map → chunk-FQMPHPHE.js.map} +0 -0
  170. /package/dist/{chunk-MOWJOFIH.js.map → chunk-GFWCBYAI.js.map} +0 -0
  171. /package/dist/{chunk-SQ5Q4Q3R.js.map → chunk-HW3DZ7TY.js.map} +0 -0
  172. /package/dist/{chunk-Q3UCWUEV.js.map → chunk-JC2TMUU5.js.map} +0 -0
  173. /package/dist/{chunk-NYIJU4Q6.js.map → chunk-MYIRYP6D.js.map} +0 -0
  174. /package/dist/{chunk-FI7ULBC6.js.map → chunk-N6B5BINC.js.map} +0 -0
  175. /package/dist/{chunk-BO2IJGNZ.js.map → chunk-NLPIXQOV.js.map} +0 -0
  176. /package/dist/{chunk-HFQFCAEJ.js.map → chunk-OQPIN2OY.js.map} +0 -0
  177. /package/dist/{chunk-KIVWAZKL.js.map → chunk-QJBVP2BS.js.map} +0 -0
  178. /package/dist/{chunk-FOTG4MMD.js.map → chunk-REERG473.js.map} +0 -0
  179. /package/dist/{chunk-57BKTVR5.js.map → chunk-SHYNOLL6.js.map} +0 -0
  180. /package/dist/{chunk-IWC6PTMT.js.map → chunk-SI3GXM7Z.js.map} +0 -0
  181. /package/dist/{chunk-LEUAWTMU.js.map → chunk-SUOJQHIN.js.map} +0 -0
  182. /package/dist/{chunk-VL43TUO6.js.map → chunk-UJ3TZF4Y.js.map} +0 -0
  183. /package/dist/{chunk-TGLXN6VH.js.map → chunk-WICMTKWR.js.map} +0 -0
  184. /package/dist/{chunk-YLYSJSEP.js.map → chunk-WO6PZMMB.js.map} +0 -0
  185. /package/dist/{chunks-SHXTE5HM.js.map → chunks-QTVEFJOS.js.map} +0 -0
  186. /package/dist/{formula-W5MTLANP.js.map → formula-DUHNPES2.js.map} +0 -0
  187. /package/dist/{formula-2BQBGPM2.js.map → formula-XNCKOV6K.js.map} +0 -0
  188. /package/dist/{generator-E4VQKPRP.js.map → generator-6BFIABTF.js.map} +0 -0
  189. /package/dist/{generator-MBR4V3JQ.js.map → generator-XJLIBYDJ.js.map} +0 -0
  190. /package/dist/{hancom-7SU4XBXJ.js.map → hancom-D4E3WBPI.js.map} +0 -0
  191. /package/dist/{hancom-RNJWH63M.js.map → hancom-IPF6HM5F.js.map} +0 -0
  192. /package/dist/{image-ocr-2WSZULNO.js.map → image-ocr-NFCTNIL5.js.map} +0 -0
  193. /package/dist/{image-ocr-COBRSG6O.js.map → image-ocr-PYOXD5K4.js.map} +0 -0
  194. /package/dist/{memo-QJ5RKTBN.js.map → memo-CNW6ZJFE.js.map} +0 -0
  195. /package/dist/{model-bundle-LFLRW2SI.js.map → model-bundle-TIHWFIN5.js.map} +0 -0
  196. /package/dist/{models-UGOWUUAL.js.map → models-YBHBEM6J.js.map} +0 -0
  197. /package/dist/{pdf-ocr-NQ3HAL77.js.map → pdf-ocr-GEAW23FB.js.map} +0 -0
  198. /package/dist/{pdf-ocr-PQZZVFI5.js.map → pdf-ocr-IJXT6ZJR.js.map} +0 -0
  199. /package/dist/{profile-io-K22CB2ZB.js.map → profile-io-Y7SMMS2R.js.map} +0 -0
  200. /package/dist/{rasterize-A6B5K4QN.js.map → rasterize-MLEHT6PU.js.map} +0 -0
  201. /package/dist/{redact-doc-TPXMML5Q.js.map → redact-doc-GPO2UTTJ.js.map} +0 -0
  202. /package/dist/{render-ROFIMWW5.js.map → render-TNWY53S4.js.map} +0 -0
  203. /package/dist/{rewrite-fallback-WG7Z3LR3.js.map → rewrite-fallback-AHGTN757.js.map} +0 -0
  204. /package/dist/{seal-35U76WY2.js.map → seal-7HBR3HBQ.js.map} +0 -0
  205. /package/dist/{setup-J5SHDFIE.js.map → setup-TJ57DQ6I.js.map} +0 -0
  206. /package/dist/{to-hwpx-X7JE6YJB.js.map → to-hwpx-6JF6Q2TZ.js.map} +0 -0
  207. /package/dist/{to-hwpx-XQULU2I7.js.map → to-hwpx-DLVARUND.js.map} +0 -0
  208. /package/dist/{visual-4HRP2VIH.js.map → visual-VBDQUUKP.js.map} +0 -0
  209. /package/dist/{watch-WZBW6UE7.js.map → watch-6CHDQ355.js.map} +0 -0
package/NOTICE CHANGED
@@ -244,3 +244,24 @@ Modifications:
244
244
 
245
245
  You may obtain a copy of the MIT License at:
246
246
  https://opensource.org/licenses/MIT
247
+
248
+ ================================================================================
249
+
250
+ zxing-cpp (zxing-wasm 으로 배포)
251
+ https://github.com/zxing-cpp/zxing-cpp
252
+ https://github.com/Sec-ant/zxing-wasm
253
+
254
+ Copyright 2016 Nu-book Inc. and ZXing authors (zxing-cpp) · Copyright (c) 2023 Ze-Zheng Wu (zxing-wasm)
255
+ Licensed under the Apache License, Version 2.0 (zxing-cpp) · MIT License (zxing-wasm)
256
+
257
+ Used in:
258
+ - src/qr.ts — 그림 속 QR 코드 읽기(`qrCodes: true`). optional dependency `zxing-wasm` 을 켰을 때만 동적
259
+ import 로 불러오고, 패키지 안 wasm(zxing-wasm/reader/zxing_reader.wasm)을 넘겨 네트워크에 접근하지 않는다
260
+
261
+ Modifications:
262
+ - 없음(코드를 싣지 않고 런타임 의존성으로만 쓴다)
263
+
264
+ 라이선스 전문: THIRD_PARTY/apache-2.0.LICENSE
265
+
266
+ You may obtain a copy of the Apache License at:
267
+ http://www.apache.org/licenses/LICENSE-2.0
package/README.md CHANGED
@@ -125,7 +125,7 @@ await writeFile("보고서.hwpx", Buffer.from(hwpx))
125
125
  | 법령 별표 | 272건 · 346표 | HWP **346/346**, PDF **343/346 · 99.13%** |
126
126
  | PDF 전체 | 1,911문서 중 1,729건 채점 | 글 커버리지 **99.80%** |
127
127
  | OCR | 53문서 · 102쪽 · 66표 | CER **0.0239** · 글자 재현율 **99.32%** · 표 구조 일치 **34/66** |
128
- | KoOCR-Bench v2.0c (외부) | 공개 877쪽 (표·글·손글씨·순서) | 종합 기본값 **0.883** · `ocrRec: "auto"` **0.885** · 손글씨 **0.901** · 제목 재현율 0.924 (4.24.47) |
128
+ | KoOCR-Bench v2.0c (외부) | 공개 877쪽 (표·글·손글씨·순서) | 종합 기본값 **0.891** · `ocrRec: "auto"` **0.892** · 표 **0.897** · 손글씨 **0.901** · 제목 재현율 0.924 (4.24.48) |
129
129
  | opendataloader-bench | PDF 200문서 | 종합 기본값 **0.965** · OCR 끔 **0.939** |
130
130
  | HWPX 렌더 배치 | 한컴 PDF 짝 1,565문서(쪽 수 일치 1,508) · 글 조각 111,480 · 그림 4,300 | 글 위치(±1.5pt) **106,904 · 95.9%** · 그림 위치(±2pt) **4,213 · 98.0%** |
131
131
 
@@ -133,15 +133,15 @@ await writeFile("보고서.hwpx", Buffer.from(hwpx))
133
133
 
134
134
  ## 최근 업데이트
135
135
 
136
- 최신 배포: **[4.24.47](https://github.com/chrisryugj/kordoc/releases/tag/v4.24.47)** · 2026-11-06
136
+ 최신 배포: **[4.24.48](https://github.com/chrisryugj/kordoc/releases/tag/v4.24.48)** · 2026-11-06
137
137
 
138
138
  | 버전 | 주요 변경 | 수치 변화 |
139
139
  | --- | --- | --- |
140
+ | 4.24.48 | OCR: 보도자료 "담당 부서" 표 직급·이름·전화 칸 되살리기 · 위아래 두 열린 표가 한 표로 붙던 것 · 그림 속 차트 판 글 빼기 · 쪽을 넘는 표의 옅은 행 구분선 · PDF 큰 그림 PDFium 디코딩(메모리 절반) · 그림 속 QR 값 `qrCodes` | KoOCR-Bench 종합 0.8834 → **0.8912**(`auto` 0.8846 → **0.8924**) · 표 묶음 .771 → **.818** · 통계표 .894 → **.902** · 자체 벤치 문서별 하락 0 |
140
141
  | 4.24.47 | OCR: 위아래로 쌓은 표 머리 글자("서/울") 다시 읽기 · 단위·소수 붙은 숫자 자릿수 재인식 · 문장 줄 든 두 행 표를 행으로 흩지 않기 · DOCX 조판 쪽 번호(`pageNumber`·`pages`) | KoOCR-Bench 종합 0.8830 → **0.8834**(`auto` 0.8842 → **0.8846**) · 관보 CER .082 → .080 · 자체 벤치 문서별 하락 0 |
141
142
  | 4.24.46 | OCR: 숫자 줄 획이 가짜 가로선이 되어 값이 쌓이던 계속비·통계표 · 묶음 첫 열 이름표 아래 하위 행 펼치기 · 본문 두 행뿐인 작은 표 열 · PDF 위아래로 쌓인 두 열린 표 · 엑셀 표 칸의 원본 시트 주소(`sourceRows`·`sourceCols`) | KoOCR-Bench 종합 0.881 → **0.883**(`auto` **0.884**) · 관보 CER .091 → .082 · 통계표 .886 → .893 · 자체 벤치 문서별 하락 0 |
142
143
  | 4.24.45 | OCR: 순위표 이름·값 열("중 국155,252" → 국적 \| 입국자) 가르기 · 상자 하나가 비켜 앉아 통째로 남던 통계표 하위 행 펼치기 · 걸친 글 이름표 옆 쌓인 구성비 행 | KoOCR-Bench 종합 0.878 → **0.881**(`auto` **0.882**) · 통계표 .872 → **.886** · 자체 벤치 문서별 하락 0 |
143
144
  | 4.24.44 | OCR: 여러 단 본문(펼친 교재·용어 단)이 군집 표로 묶이던 것 · 그림 OCR(`ocr: true`)이 옅은 글 한 줄 띠 그림(각주)도 읽기 | KoOCR-Bench 종합 0.877 → **0.878**(`auto` **0.879**, 측정 변환기 수정 기준) · 사용자 실문서 CER .301 → .285 · ODL `ocr: true` .9665 → .9666 · 자체 벤치 문서별 하락 0 |
144
- | 4.24.43 | OCR: 사전에 없는 원문자 자모·영문(㉠~㉭·ⓐ~ⓩ) 되살리기(고리 속 다시 읽기·홀자모 획 판정) · 번호 장·절 제목·영문 대문자 줄 제목 · PDF 특허 문단 번호 · 빈 중첩표만 든 후행 열 | KoOCR-Bench 종합 0.872 → **0.877**(`auto` **0.877**) · 수능 원문자 보존 .682 → **.947** · 제목 재현율 .798 → .924 · ODL 제목 .949 → .953 · 자체 벤치 문서별 하락 0 |
145
145
 
146
146
  이전 버전과 상세 내용은 [변경 이력](CHANGELOG.md)에 있습니다.
147
147
 
@@ -53,7 +53,7 @@ import {
53
53
  usesGaejosikMunche,
54
54
  usesLogicStructure,
55
55
  validateHwpx
56
- } from "./chunk-Z5TDZDWU.js";
56
+ } from "./chunk-WVUR3HYW.js";
57
57
  import {
58
58
  blocksToPdf,
59
59
  extractRenderedRegions,
@@ -64,16 +64,16 @@ import {
64
64
  renderHwp5Pages,
65
65
  renderHwpxToSvg,
66
66
  renderSceneToHtml
67
- } from "./chunk-NYIJU4Q6.js";
67
+ } from "./chunk-MYIRYP6D.js";
68
68
  import {
69
69
  blocksToPages
70
- } from "./chunk-CQ33HCSU.js";
70
+ } from "./chunk-GOYAJVR6.js";
71
71
  import {
72
72
  extractClickHereFields,
73
73
  patchHwp,
74
74
  patchHwpx
75
- } from "./chunk-56FEGA44.js";
76
- import "./chunk-HMD35PMD.js";
75
+ } from "./chunk-E47LO7XG.js";
76
+ import "./chunk-D4TKVZKB.js";
77
77
  import {
78
78
  AGENCY_COMMON_NAME,
79
79
  PRESET_ALIAS,
@@ -83,7 +83,7 @@ import {
83
83
  markdownToHwpx,
84
84
  normalizeGongmunPreset,
85
85
  placeTotalRow
86
- } from "./chunk-LEUAWTMU.js";
86
+ } from "./chunk-SUOJQHIN.js";
87
87
  import {
88
88
  SPACE_EM_FIXED,
89
89
  SPACE_EM_FONT,
@@ -92,15 +92,15 @@ import {
92
92
  measureTextWidth,
93
93
  simulateWrap,
94
94
  simulateWrapKeepWord
95
- } from "./chunk-MOWJOFIH.js";
95
+ } from "./chunk-GFWCBYAI.js";
96
96
  import {
97
97
  addMemoHwpx
98
- } from "./chunk-FI7ULBC6.js";
98
+ } from "./chunk-N6B5BINC.js";
99
99
  import {
100
100
  placeSealHwpx
101
- } from "./chunk-BP5GDQBT.js";
102
- import "./chunk-AO3YFJVW.js";
103
- import "./chunk-VL43TUO6.js";
101
+ } from "./chunk-E5RJLP2S.js";
102
+ import "./chunk-FQMPHPHE.js";
103
+ import "./chunk-UJ3TZF4Y.js";
104
104
  import {
105
105
  ValueCursor,
106
106
  applySplices,
@@ -114,15 +114,15 @@ import {
114
114
  isLabelCell,
115
115
  scanSectionXml
116
116
  } from "./chunk-3AHL6YEA.js";
117
- import "./chunk-AB7MYMPZ.js";
117
+ import "./chunk-AC7FZDVP.js";
118
118
  import {
119
119
  convertToHwpx,
120
120
  hwpToHwpx
121
- } from "./chunk-SQ5Q4Q3R.js";
122
- import "./chunk-FOTG4MMD.js";
123
- import "./chunk-VKVDMH7X.js";
121
+ } from "./chunk-HW3DZ7TY.js";
122
+ import "./chunk-REERG473.js";
123
+ import "./chunk-TQ4QOCKT.js";
124
124
  import "./chunk-OFVHQ2TZ.js";
125
- import "./chunk-BO2IJGNZ.js";
125
+ import "./chunk-NLPIXQOV.js";
126
126
  import "./chunk-WFKFG2RT.js";
127
127
  import {
128
128
  DEFAULT_REDACT_RULES,
@@ -131,8 +131,8 @@ import {
131
131
  } from "./chunk-3WSNLH4B.js";
132
132
  import {
133
133
  blocksToChunks
134
- } from "./chunk-YLYSJSEP.js";
135
- import "./chunk-TN5ZK2WN.js";
134
+ } from "./chunk-WO6PZMMB.js";
135
+ import "./chunk-4N2ESXR2.js";
136
136
  import "./chunk-VQFA55IC.js";
137
137
  import {
138
138
  detectFormat,
@@ -145,16 +145,16 @@ import {
145
145
  } from "./chunk-GHHVT4Q5.js";
146
146
  import "./chunk-H7K5YHWQ.js";
147
147
  import "./chunk-IIOBUTXH.js";
148
- import "./chunk-2CBIY2OH.js";
148
+ import "./chunk-OBNOOHAW.js";
149
149
  import {
150
150
  blocksToMarkdown,
151
151
  flattenLayoutTables,
152
152
  hasStructuredCellContent
153
- } from "./chunk-KSE5HSU3.js";
153
+ } from "./chunk-MHLTZ3VI.js";
154
154
  import "./chunk-KFF47XZ7.js";
155
155
  import {
156
156
  VERSION
157
- } from "./chunk-57BKTVR5.js";
157
+ } from "./chunk-SHYNOLL6.js";
158
158
  export {
159
159
  AGENCY_COMMON_NAME,
160
160
  BUILTIN_TEMPLATES,
@@ -268,4 +268,4 @@ export {
268
268
  usesLogicStructure,
269
269
  validateHwpx
270
270
  };
271
- //# sourceMappingURL=-PWMZE4CC.js.map
271
+ //# sourceMappingURL=-3EMVBTE7.js.map
@@ -1,5 +1,5 @@
1
1
  // src/utils.ts
2
- var VERSION = true ? "4.24.47" : "0.0.0-dev";
2
+ var VERSION = true ? "4.24.48" : "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-SUIH5LY7.js.map
164
+ //# sourceMappingURL=chunk-3UY7ARXP.js.map
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  KordocError,
4
4
  OPTIONAL_DEP_INSTALL_HINT
5
- } from "./chunk-57BKTVR5.js";
5
+ } from "./chunk-SHYNOLL6.js";
6
6
 
7
7
  // src/render/rasterize.ts
8
8
  var densityExponent = null;
@@ -88,4 +88,4 @@ export {
88
88
  rasterizeSvg,
89
89
  rasterizePageSvg
90
90
  };
91
- //# sourceMappingURL=chunk-TN5ZK2WN.js.map
91
+ //# sourceMappingURL=chunk-4N2ESXR2.js.map
@@ -36,7 +36,7 @@ import {
36
36
  tidyScriptTags,
37
37
  visibleText,
38
38
  wrapScript
39
- } from "./chunk-IPXFIH5E.js";
39
+ } from "./chunk-OO4DHHTG.js";
40
40
  import {
41
41
  KordocError,
42
42
  compareSectionPaths,
@@ -48,7 +48,7 @@ import {
48
48
  stripDtd,
49
49
  unescapeHtml,
50
50
  unzipLimitBytes
51
- } from "./chunk-SUIH5LY7.js";
51
+ } from "./chunk-3UY7ARXP.js";
52
52
 
53
53
  // src/hwpx/generator.ts
54
54
  import JSZip2 from "jszip";
@@ -23425,4 +23425,4 @@ export {
23425
23425
  markdownToHwpxFromTemplate,
23426
23426
  markdownToHwpx
23427
23427
  };
23428
- //# sourceMappingURL=chunk-2VXVBB5Q.js.map
23428
+ //# sourceMappingURL=chunk-6YUMHSBG.js.map
@@ -3,7 +3,7 @@ import {
3
3
  ensureModelsIn,
4
4
  getModelStatusIn,
5
5
  getModelsDir
6
- } from "./chunk-HFQFCAEJ.js";
6
+ } from "./chunk-OQPIN2OY.js";
7
7
 
8
8
  // src/ocr/models.ts
9
9
  import { join } from "path";
@@ -175,4 +175,4 @@ export {
175
175
  parseCharacterDict,
176
176
  ocrModelPath
177
177
  };
178
- //# sourceMappingURL=chunk-T5J4GW6B.js.map
178
+ //# sourceMappingURL=chunk-7EL6BCO5.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  KordocError
3
- } from "./chunk-SUIH5LY7.js";
3
+ } from "./chunk-3UY7ARXP.js";
4
4
 
5
5
  // src/pdf/formula/models.ts
6
6
  import { createHash as createHash2 } from "crypto";
@@ -310,4 +310,4 @@ export {
310
310
  ensureFormulaModels,
311
311
  ensureSingleModel
312
312
  };
313
- //# sourceMappingURL=chunk-GRQXAWNW.js.map
313
+ //# sourceMappingURL=chunk-7F5SKDUG.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; } var _class;
2
2
 
3
3
 
4
- var _chunkO2652KK3cjs = require('./chunk-O2652KK3.cjs');
4
+ var _chunkLHZL52HOcjs = require('./chunk-LHZL52HO.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 _chunkWAFJUSUFcjs = require('./chunk-WAFJUSUF.cjs');
12
+ var _chunkYFTD6WOPcjs = require('./chunk-YFTD6WOP.cjs');
13
13
 
14
14
 
15
15
 
16
- var _chunkBKK2SMVMcjs = require('./chunk-BKK2SMVM.cjs');
16
+ var _chunkVXHZPUMScjs = require('./chunk-VXHZPUMS.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 _chunkO2652KK3cjs.getModelsDir.call(void 0, "ppocr");
68
+ return _chunkLHZL52HOcjs.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 _chunkO2652KK3cjs.ensureModelsIn.call(void 0, dir, todo, onProgress);
113
+ await _chunkLHZL52HOcjs.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) _chunkWAFJUSUFcjs.CELL_EDGES.set(to, e);
3283
+ if (e) _chunkYFTD6WOPcjs.CELL_EDGES.set(to, e);
3263
3284
  }
3264
3285
  function hasOpenCellSeam(a, b) {
3265
- const u = _chunkWAFJUSUFcjs.CELL_EDGES.get(a), d = _chunkWAFJUSUFcjs.CELL_EDGES.get(b);
3286
+ const u = _chunkYFTD6WOPcjs.CELL_EDGES.get(a), d = _chunkYFTD6WOPcjs.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 = _chunkWAFJUSUFcjs.CELL_EDGES.get(a), d = _chunkWAFJUSUFcjs.CELL_EDGES.get(b);
3290
+ const u = _chunkYFTD6WOPcjs.CELL_EDGES.get(a), d = _chunkYFTD6WOPcjs.CELL_EDGES.get(b);
3270
3291
  if (!u || !d) return;
3271
- _chunkWAFJUSUFcjs.CELL_EDGES.set(a, { t: u.t, b: d.b, l: u.l || d.l, r: u.r || d.r });
3292
+ _chunkYFTD6WOPcjs.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 _chunkWAFJUSUFcjs.tidyScriptTags.call(void 0, out);
3468
+ return _chunkYFTD6WOPcjs.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 >= _chunkWAFJUSUFcjs.HEADING_RATIO_H1) level = 1;
6847
- else if (ratio >= _chunkWAFJUSUFcjs.HEADING_RATIO_H2) level = 2;
6848
- else if (ratio >= _chunkWAFJUSUFcjs.HEADING_RATIO_H3) level = 3;
6867
+ if (ratio >= _chunkYFTD6WOPcjs.HEADING_RATIO_H1) level = 1;
6868
+ else if (ratio >= _chunkYFTD6WOPcjs.HEADING_RATIO_H2) level = 2;
6869
+ else if (ratio >= _chunkYFTD6WOPcjs.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 * _chunkWAFJUSUFcjs.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;
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 * _chunkYFTD6WOPcjs.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; ) {
@@ -8601,16 +8622,16 @@ function isProseSpread(items) {
8601
8622
  for (let i = 1; i < sorted.length; i++) {
8602
8623
  gaps.push(sorted[i].x - (sorted[i - 1].x + sorted[i - 1].w));
8603
8624
  }
8604
- const maxGap = _chunkBKK2SMVMcjs.safeMax.call(void 0, gaps);
8625
+ const maxGap = _chunkVXHZPUMScjs.safeMax.call(void 0, gaps);
8605
8626
  const avgLen = items.reduce((s, i) => s + i.text.length, 0) / items.length;
8606
8627
  if (items.length >= 4 && maxGap < 40 && avgLen < 5) return true;
8607
- const minGap = _chunkBKK2SMVMcjs.safeMin.call(void 0, gaps);
8628
+ const minGap = _chunkVXHZPUMScjs.safeMin.call(void 0, gaps);
8608
8629
  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
8630
  }
8610
8631
  function detectColumns(yLines) {
8611
8632
  const allItems = yLines.flat();
8612
8633
  if (allItems.length === 0) return null;
8613
- const pageWidth = _chunkBKK2SMVMcjs.safeMax.call(void 0, allItems.map((i) => i.x + i.w)) - _chunkBKK2SMVMcjs.safeMin.call(void 0, allItems.map((i) => i.x));
8634
+ const pageWidth = _chunkVXHZPUMScjs.safeMax.call(void 0, allItems.map((i) => i.x + i.w)) - _chunkVXHZPUMScjs.safeMin.call(void 0, allItems.map((i) => i.x));
8614
8635
  if (pageWidth < 100) return null;
8615
8636
  let bigoLineIdx = -1;
8616
8637
  for (let i = 0; i < yLines.length; i++) {
@@ -9008,13 +9029,13 @@ function partTex(group) {
9008
9029
  const base = Math.min(...g.filter((i) => i.fontSize >= size * SCRIPT_SIZE_RATIO).map((i) => i.y));
9009
9030
  let s = "", run = "";
9010
9031
  const flush = () => {
9011
- if (run) s += _chunkWAFJUSUFcjs.toTex.call(void 0, run);
9032
+ if (run) s += _chunkYFTD6WOPcjs.toTex.call(void 0, run);
9012
9033
  run = "";
9013
9034
  };
9014
9035
  g.forEach((it, k) => {
9015
9036
  if (it.fontSize < size * SCRIPT_SIZE_RATIO && it.y - base >= size * SCRIPT_RISE_EM) {
9016
9037
  flush();
9017
- s += `^{${_chunkWAFJUSUFcjs.toTex.call(void 0, it.text)}}`;
9038
+ s += `^{${_chunkYFTD6WOPcjs.toTex.call(void 0, it.text)}}`;
9018
9039
  return;
9019
9040
  }
9020
9041
  if (k && it.x - (g[k - 1].x + g[k - 1].w) > spaceGapThreshold(it.fontSize)) run += " ";
@@ -9187,7 +9208,7 @@ function rebuildUnitLine(items, grid) {
9187
9208
  function prependUnitRow(cells, cols, line, usedItems) {
9188
9209
  const text = cleanCellText(line.map((item) => item.text).join(""));
9189
9210
  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]) _chunkWAFJUSUFcjs.CELL_EDGES.set(cell, NO_EDGES);
9211
+ for (const cell of cells[0]) _chunkYFTD6WOPcjs.CELL_EDGES.set(cell, NO_EDGES);
9191
9212
  for (const item of line) usedItems.add(item);
9192
9213
  }
9193
9214
  function attachUnitRow(items, grid, cells, cols, usedItems) {
@@ -9769,7 +9790,7 @@ function recordFrameTitle(table, source, pageNum) {
9769
9790
  const [label, spacer, title] = cells;
9770
9791
  if (!/^(?:붙임|별첨|첨부|부록)\s*\d{1,3}$/.test(label.text.trim()) || spacer.text.trim() || !title.text.trim()) return;
9771
9792
  if (cells.some((c) => {
9772
- const e = _chunkWAFJUSUFcjs.CELL_EDGES.get(c);
9793
+ const e = _chunkYFTD6WOPcjs.CELL_EDGES.get(c);
9773
9794
  return !e || e.t || e.b || e.l || e.r;
9774
9795
  })) return;
9775
9796
  const xs = TABLE_COLXS.get(table), style = dominantStyle(source), fs = _nullishCoalesce(_optionalChain([style, 'optionalAccess', _393 => _393.fontSize]), () => ( 0));
@@ -10526,7 +10547,7 @@ function extractBlocksWithGrids(items, pageNum, pageWidth, pageHeight, grids, ho
10526
10547
  groupSizes.push(1);
10527
10548
  }
10528
10549
  const allY = remaining.map((i) => i.y);
10529
- const pageH = _chunkBKK2SMVMcjs.safeMax.call(void 0, allY) - _chunkBKK2SMVMcjs.safeMin.call(void 0, allY);
10550
+ const pageH = _chunkVXHZPUMScjs.safeMax.call(void 0, allY) - _chunkVXHZPUMScjs.safeMin.call(void 0, allY);
10530
10551
  const gapThreshold = Math.max(15, pageH * 0.03);
10531
10552
  const sides = frameColumnTextBands(remaining, spanning, gx);
10532
10553
  const textBlocks = [];
@@ -10542,7 +10563,7 @@ function extractBlocksWithGrids(items, pageNum, pageWidth, pageHeight, grids, ho
10542
10563
  finalTextBlocks.push(...detectListBlocks(textBlocks));
10543
10564
  } else {
10544
10565
  const allY = remaining.map((i) => i.y);
10545
- const pageH = _chunkBKK2SMVMcjs.safeMax.call(void 0, allY) - _chunkBKK2SMVMcjs.safeMin.call(void 0, allY);
10566
+ const pageH = _chunkVXHZPUMScjs.safeMax.call(void 0, allY) - _chunkVXHZPUMScjs.safeMin.call(void 0, allY);
10546
10567
  const gapThreshold = Math.max(15, pageH * 0.03);
10547
10568
  const groups = xyCutOrder(remaining, gapThreshold);
10548
10569
  const textBlocks = [];
@@ -10897,7 +10918,7 @@ function extractPageBlocksFallback(items, pageNum, fullPage = false, detectTable
10897
10918
  blocks.push(...columnTextToBlocks(tableText, pageNum, bbox, dominantStyle(items)));
10898
10919
  } else {
10899
10920
  const allY = items.map((i) => i.y);
10900
- const pageHeight = _chunkBKK2SMVMcjs.safeMax.call(void 0, allY) - _chunkBKK2SMVMcjs.safeMin.call(void 0, allY);
10921
+ const pageHeight = _chunkVXHZPUMScjs.safeMax.call(void 0, allY) - _chunkVXHZPUMScjs.safeMin.call(void 0, allY);
10901
10922
  const gapThreshold = Math.max(15, pageHeight * 0.03);
10902
10923
  const orderedGroups = proseCutX !== null ? splitTwoColumnProse(items, proseCutX) : xyCutOrder(items, gapThreshold, 0, void 0, minGap);
10903
10924
  for (const group of orderedGroups) {
@@ -11142,4 +11163,4 @@ function rowParagraphs(block) {
11142
11163
 
11143
11164
 
11144
11165
  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-UFY6XX4U.cjs.map
11166
+ //# sourceMappingURL=chunk-A6EOKPKG.cjs.map