kordoc 4.24.63 → 4.24.65

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 (184) hide show
  1. package/README.md +4 -4
  2. package/dist/{-JKJWVZ7E.js → -3Q26OZHW.js} +21 -21
  3. package/dist/{chunk-AKMBPYRU.js → chunk-27ZUZMQY.js} +5 -5
  4. package/dist/{chunk-PEDFVAXJ.js → chunk-3JHKWOVZ.js} +52 -7
  5. package/dist/chunk-3JHKWOVZ.js.map +1 -0
  6. package/dist/{chunk-XIJH4QF7.js → chunk-3Z7WJCP2.js} +5 -5
  7. package/dist/chunk-3Z7WJCP2.js.map +1 -0
  8. package/dist/{chunk-4J7PCDT5.cjs → chunk-4T4Y2WRR.cjs} +2 -2
  9. package/dist/{chunk-4J7PCDT5.cjs.map → chunk-4T4Y2WRR.cjs.map} +1 -1
  10. package/dist/{chunk-WDFJGFAH.cjs → chunk-6J5RTSBG.cjs} +3 -3
  11. package/dist/{chunk-WDFJGFAH.cjs.map → chunk-6J5RTSBG.cjs.map} +1 -1
  12. package/dist/{chunk-HG6K7PDG.js → chunk-6R4M2LVY.js} +2 -2
  13. package/dist/{chunk-E3IGBNLD.js → chunk-7DQI7BU6.js} +2 -2
  14. package/dist/{chunk-ROHCAUUO.js → chunk-7PTPUYYJ.js} +3 -3
  15. package/dist/{chunk-CL2GZ7JO.js → chunk-ABA2Z4LT.js} +2 -2
  16. package/dist/{chunk-FIKCNQ5Q.js → chunk-AKYUE4JE.js} +2 -2
  17. package/dist/{chunk-X4PFJ3S3.js → chunk-AX34AL6K.js} +2 -2
  18. package/dist/{chunk-CB365CYO.cjs → chunk-B4AKPVWA.cjs} +137 -92
  19. package/dist/chunk-B4AKPVWA.cjs.map +1 -0
  20. package/dist/{chunk-SQT5Z35B.cjs → chunk-B4ZNG3G7.cjs} +25 -25
  21. package/dist/{chunk-SQT5Z35B.cjs.map → chunk-B4ZNG3G7.cjs.map} +1 -1
  22. package/dist/{chunk-3R4LS2QM.js → chunk-BPNJBWKQ.js} +15 -15
  23. package/dist/{chunk-TFEQHER2.js → chunk-BRDRZHVC.js} +2 -2
  24. package/dist/{chunk-NCI5VSUC.js → chunk-BYTIJ226.js} +2 -2
  25. package/dist/{chunk-B7JISVV7.js → chunk-CLI5IIY3.js} +2 -2
  26. package/dist/{chunk-XABC4RKP.js → chunk-DKSSS4ED.js} +2 -2
  27. package/dist/{chunk-KWISIIRJ.js → chunk-DQQ6C7WA.js} +2 -2
  28. package/dist/{chunk-FZNNNXEW.js → chunk-EG47QXJE.js} +5 -5
  29. package/dist/{chunk-7OBVSSAQ.js → chunk-FTMDZ4Y5.js} +34 -29
  30. package/dist/chunk-FTMDZ4Y5.js.map +1 -0
  31. package/dist/{chunk-XYMBGOXH.cjs → chunk-GITPHKYL.cjs} +11 -11
  32. package/dist/chunk-GITPHKYL.cjs.map +1 -0
  33. package/dist/{chunk-SUXFV3AL.js → chunk-GZC4XIKW.js} +5 -5
  34. package/dist/{chunk-UMF44YJH.js → chunk-I2HHHJF5.js} +2 -2
  35. package/dist/{chunk-JMYWAW2S.js → chunk-JW6PNIXI.js} +7 -7
  36. package/dist/{chunk-BW2KS7VQ.js → chunk-KUAPGGQE.js} +37 -32
  37. package/dist/chunk-KUAPGGQE.js.map +1 -0
  38. package/dist/{chunk-YRMVLAYZ.js → chunk-LXRBEPYC.js} +2 -2
  39. package/dist/{chunk-SPEEZYS4.js → chunk-MTUGM4ZK.js} +6 -6
  40. package/dist/{chunk-MQNJY7II.js → chunk-NBBT2EYG.js} +2 -2
  41. package/dist/{chunk-ZVUZZFGY.js → chunk-NTMN5UKQ.js} +3 -3
  42. package/dist/{chunk-55QH5LSM.js → chunk-PWSUGKMS.js} +5 -5
  43. package/dist/{chunk-55QH5LSM.js.map → chunk-PWSUGKMS.js.map} +1 -1
  44. package/dist/{chunk-SUMSKQ43.js → chunk-RH6E2YVG.js} +2 -2
  45. package/dist/{chunk-MKH2CVD2.cjs → chunk-S5XPBZQ6.cjs} +3 -3
  46. package/dist/{chunk-MKH2CVD2.cjs.map → chunk-S5XPBZQ6.cjs.map} +1 -1
  47. package/dist/{chunk-CD7YHKSF.js → chunk-TN2C7M6Q.js} +11 -11
  48. package/dist/{chunk-DQEZVDKS.js → chunk-TYJFA5S7.js} +2 -2
  49. package/dist/{chunk-JCNNDOOW.js → chunk-U2TSYPPM.js} +2 -2
  50. package/dist/{chunk-WB4LZYGW.cjs → chunk-UJI2ZP6M.cjs} +113 -108
  51. package/dist/chunk-UJI2ZP6M.cjs.map +1 -0
  52. package/dist/{chunk-UZDSVTD4.js → chunk-UYEZER77.js} +2 -2
  53. package/dist/{chunk-Q2ZKAVNU.js → chunk-VMR3QMB5.js} +53 -8
  54. package/dist/chunk-VMR3QMB5.js.map +1 -0
  55. package/dist/{chunk-PTWPZYBM.js → chunk-VQZIP2UW.js} +10 -10
  56. package/dist/{chunk-WIPBQVIK.js → chunk-XS254L5R.js} +3 -3
  57. package/dist/{chunk-A73BTJH5.js → chunk-Y6UT3AYV.js} +4 -4
  58. package/dist/{chunk-JIH23K74.cjs → chunk-ZMJVWAH2.cjs} +58 -58
  59. package/dist/{chunk-JIH23K74.cjs.map → chunk-ZMJVWAH2.cjs.map} +1 -1
  60. package/dist/chunks-LAMEBTHT.js +11 -0
  61. package/dist/cli.js +45 -45
  62. package/dist/{formula-WTTPNY2I.cjs → formula-HNVGC323.cjs} +13 -9
  63. package/dist/formula-HNVGC323.cjs.map +1 -0
  64. package/dist/{formula-DNS3KV3C.js → formula-N6HZBMYV.js} +8 -4
  65. package/dist/formula-N6HZBMYV.js.map +1 -0
  66. package/dist/{formula-VKUUIOIT.js → formula-WDYM2TBT.js} +7 -3
  67. package/dist/formula-WDYM2TBT.js.map +1 -0
  68. package/dist/generator-GJID5Q4V.cjs +12 -0
  69. package/dist/{generator-NDQUC266.cjs.map → generator-GJID5Q4V.cjs.map} +1 -1
  70. package/dist/generator-LGSVRPVO.js +11 -0
  71. package/dist/generator-QQTCTEMZ.js +18 -0
  72. package/dist/{hancom-QGPXR2US.js → hancom-TJ2T5WD7.js} +2 -2
  73. package/dist/{hancom-IBHKEOO5.js → hancom-XNW5F3S5.js} +2 -2
  74. package/dist/{hancom-JYQQYZPV.cjs → hancom-Y4QJMNTG.cjs} +5 -5
  75. package/dist/{hancom-JYQQYZPV.cjs.map → hancom-Y4QJMNTG.cjs.map} +1 -1
  76. package/dist/{image-ocr-OHVXCHWL.cjs → image-ocr-2P6OUO7R.cjs} +28 -28
  77. package/dist/{image-ocr-OHVXCHWL.cjs.map → image-ocr-2P6OUO7R.cjs.map} +1 -1
  78. package/dist/{image-ocr-TKWNXWUY.js → image-ocr-EEI3UA36.js} +10 -10
  79. package/dist/{image-ocr-6O6E6XIZ.js → image-ocr-HXQV325C.js} +7 -7
  80. package/dist/index.cjs +1115 -1115
  81. package/dist/index.js +9 -9
  82. package/dist/mcp.js +36 -36
  83. package/dist/memo-JYBL4KYT.js +17 -0
  84. package/dist/{model-bundle-ICW2B75K.js → model-bundle-QMXOK6ML.js} +5 -5
  85. package/dist/{models-ZIAOV7EN.js → models-VRTWSRWY.js} +5 -5
  86. package/dist/{parse-worker-v2-QBMUV2FV.js → parse-worker-v2-4YEQVFDN.js} +22 -22
  87. package/dist/{parser-IYDEYLT2.js → parser-4FZWTV4P.js} +12 -12
  88. package/dist/{parser-FIVOMRFD.cjs → parser-5X3O5FMI.cjs} +166 -166
  89. package/dist/{parser-FIVOMRFD.cjs.map → parser-5X3O5FMI.cjs.map} +1 -1
  90. package/dist/{parser-7SXRUERF.js → parser-6ZIQHTU7.js} +9 -9
  91. package/dist/pdf-ocr-47CN4L3H.cjs +43 -0
  92. package/dist/{pdf-ocr-YVLMXFYG.cjs.map → pdf-ocr-47CN4L3H.cjs.map} +1 -1
  93. package/dist/{pdf-ocr-L2FDPW4J.js → pdf-ocr-HHWYGVYA.js} +9 -9
  94. package/dist/{pdf-ocr-NJAOCNPW.js → pdf-ocr-TIYXB6UN.js} +6 -6
  95. package/dist/{profile-io-ZFFUBVD7.js → profile-io-6FHN5UEA.js} +3 -3
  96. package/dist/{rasterize-73LPY77L.js → rasterize-JFBYSQSV.js} +3 -3
  97. package/dist/{redact-doc-PMLOYY4I.js → redact-doc-PYL7KZBW.js} +21 -21
  98. package/dist/{render-6IUG73FB.js → render-6V2YIVO3.js} +12 -12
  99. package/dist/{rewrite-fallback-MLILIZUH.js → rewrite-fallback-53SOLUTC.js} +13 -13
  100. package/dist/seal-KRIMAC4M.js +16 -0
  101. package/dist/{setup-GOFOC4YG.js → setup-LFIDDDUO.js} +3 -3
  102. package/dist/{to-hwpx-3LMSUQTA.js → to-hwpx-PVXV4MP3.js} +7 -7
  103. package/dist/to-hwpx-SNIR5XQE.cjs +16 -0
  104. package/dist/{to-hwpx-OPZN5DZY.cjs.map → to-hwpx-SNIR5XQE.cjs.map} +1 -1
  105. package/dist/{to-hwpx-Y3MXBDML.js → to-hwpx-VPIDINZP.js} +4 -4
  106. package/dist/visual-HKD7SS2K.js +38 -0
  107. package/dist/{watch-WHMWDPKY.js → watch-RDE5VTIX.js} +22 -22
  108. package/package.json +1 -1
  109. package/dist/chunk-7OBVSSAQ.js.map +0 -1
  110. package/dist/chunk-BW2KS7VQ.js.map +0 -1
  111. package/dist/chunk-CB365CYO.cjs.map +0 -1
  112. package/dist/chunk-PEDFVAXJ.js.map +0 -1
  113. package/dist/chunk-Q2ZKAVNU.js.map +0 -1
  114. package/dist/chunk-WB4LZYGW.cjs.map +0 -1
  115. package/dist/chunk-XIJH4QF7.js.map +0 -1
  116. package/dist/chunk-XYMBGOXH.cjs.map +0 -1
  117. package/dist/chunks-XCTKHHQF.js +0 -11
  118. package/dist/formula-DNS3KV3C.js.map +0 -1
  119. package/dist/formula-VKUUIOIT.js.map +0 -1
  120. package/dist/formula-WTTPNY2I.cjs.map +0 -1
  121. package/dist/generator-B7BQ7GSG.js +0 -11
  122. package/dist/generator-NDQUC266.cjs +0 -12
  123. package/dist/generator-SBFQTDAS.js +0 -18
  124. package/dist/memo-TRWRHDYB.js +0 -17
  125. package/dist/pdf-ocr-YVLMXFYG.cjs +0 -43
  126. package/dist/seal-KDPRMM4D.js +0 -16
  127. package/dist/to-hwpx-OPZN5DZY.cjs +0 -16
  128. package/dist/visual-VI4WYIWM.js +0 -38
  129. /package/dist/{-JKJWVZ7E.js.map → -3Q26OZHW.js.map} +0 -0
  130. /package/dist/{chunk-AKMBPYRU.js.map → chunk-27ZUZMQY.js.map} +0 -0
  131. /package/dist/{chunk-HG6K7PDG.js.map → chunk-6R4M2LVY.js.map} +0 -0
  132. /package/dist/{chunk-E3IGBNLD.js.map → chunk-7DQI7BU6.js.map} +0 -0
  133. /package/dist/{chunk-ROHCAUUO.js.map → chunk-7PTPUYYJ.js.map} +0 -0
  134. /package/dist/{chunk-CL2GZ7JO.js.map → chunk-ABA2Z4LT.js.map} +0 -0
  135. /package/dist/{chunk-FIKCNQ5Q.js.map → chunk-AKYUE4JE.js.map} +0 -0
  136. /package/dist/{chunk-X4PFJ3S3.js.map → chunk-AX34AL6K.js.map} +0 -0
  137. /package/dist/{chunk-3R4LS2QM.js.map → chunk-BPNJBWKQ.js.map} +0 -0
  138. /package/dist/{chunk-TFEQHER2.js.map → chunk-BRDRZHVC.js.map} +0 -0
  139. /package/dist/{chunk-NCI5VSUC.js.map → chunk-BYTIJ226.js.map} +0 -0
  140. /package/dist/{chunk-B7JISVV7.js.map → chunk-CLI5IIY3.js.map} +0 -0
  141. /package/dist/{chunk-XABC4RKP.js.map → chunk-DKSSS4ED.js.map} +0 -0
  142. /package/dist/{chunk-KWISIIRJ.js.map → chunk-DQQ6C7WA.js.map} +0 -0
  143. /package/dist/{chunk-FZNNNXEW.js.map → chunk-EG47QXJE.js.map} +0 -0
  144. /package/dist/{chunk-SUXFV3AL.js.map → chunk-GZC4XIKW.js.map} +0 -0
  145. /package/dist/{chunk-UMF44YJH.js.map → chunk-I2HHHJF5.js.map} +0 -0
  146. /package/dist/{chunk-JMYWAW2S.js.map → chunk-JW6PNIXI.js.map} +0 -0
  147. /package/dist/{chunk-YRMVLAYZ.js.map → chunk-LXRBEPYC.js.map} +0 -0
  148. /package/dist/{chunk-SPEEZYS4.js.map → chunk-MTUGM4ZK.js.map} +0 -0
  149. /package/dist/{chunk-MQNJY7II.js.map → chunk-NBBT2EYG.js.map} +0 -0
  150. /package/dist/{chunk-ZVUZZFGY.js.map → chunk-NTMN5UKQ.js.map} +0 -0
  151. /package/dist/{chunk-SUMSKQ43.js.map → chunk-RH6E2YVG.js.map} +0 -0
  152. /package/dist/{chunk-CD7YHKSF.js.map → chunk-TN2C7M6Q.js.map} +0 -0
  153. /package/dist/{chunk-DQEZVDKS.js.map → chunk-TYJFA5S7.js.map} +0 -0
  154. /package/dist/{chunk-JCNNDOOW.js.map → chunk-U2TSYPPM.js.map} +0 -0
  155. /package/dist/{chunk-UZDSVTD4.js.map → chunk-UYEZER77.js.map} +0 -0
  156. /package/dist/{chunk-PTWPZYBM.js.map → chunk-VQZIP2UW.js.map} +0 -0
  157. /package/dist/{chunk-WIPBQVIK.js.map → chunk-XS254L5R.js.map} +0 -0
  158. /package/dist/{chunk-A73BTJH5.js.map → chunk-Y6UT3AYV.js.map} +0 -0
  159. /package/dist/{chunks-XCTKHHQF.js.map → chunks-LAMEBTHT.js.map} +0 -0
  160. /package/dist/{generator-B7BQ7GSG.js.map → generator-LGSVRPVO.js.map} +0 -0
  161. /package/dist/{generator-SBFQTDAS.js.map → generator-QQTCTEMZ.js.map} +0 -0
  162. /package/dist/{hancom-QGPXR2US.js.map → hancom-TJ2T5WD7.js.map} +0 -0
  163. /package/dist/{hancom-IBHKEOO5.js.map → hancom-XNW5F3S5.js.map} +0 -0
  164. /package/dist/{image-ocr-TKWNXWUY.js.map → image-ocr-EEI3UA36.js.map} +0 -0
  165. /package/dist/{image-ocr-6O6E6XIZ.js.map → image-ocr-HXQV325C.js.map} +0 -0
  166. /package/dist/{memo-TRWRHDYB.js.map → memo-JYBL4KYT.js.map} +0 -0
  167. /package/dist/{model-bundle-ICW2B75K.js.map → model-bundle-QMXOK6ML.js.map} +0 -0
  168. /package/dist/{models-ZIAOV7EN.js.map → models-VRTWSRWY.js.map} +0 -0
  169. /package/dist/{parse-worker-v2-QBMUV2FV.js.map → parse-worker-v2-4YEQVFDN.js.map} +0 -0
  170. /package/dist/{parser-IYDEYLT2.js.map → parser-4FZWTV4P.js.map} +0 -0
  171. /package/dist/{parser-7SXRUERF.js.map → parser-6ZIQHTU7.js.map} +0 -0
  172. /package/dist/{pdf-ocr-L2FDPW4J.js.map → pdf-ocr-HHWYGVYA.js.map} +0 -0
  173. /package/dist/{pdf-ocr-NJAOCNPW.js.map → pdf-ocr-TIYXB6UN.js.map} +0 -0
  174. /package/dist/{profile-io-ZFFUBVD7.js.map → profile-io-6FHN5UEA.js.map} +0 -0
  175. /package/dist/{rasterize-73LPY77L.js.map → rasterize-JFBYSQSV.js.map} +0 -0
  176. /package/dist/{redact-doc-PMLOYY4I.js.map → redact-doc-PYL7KZBW.js.map} +0 -0
  177. /package/dist/{render-6IUG73FB.js.map → render-6V2YIVO3.js.map} +0 -0
  178. /package/dist/{rewrite-fallback-MLILIZUH.js.map → rewrite-fallback-53SOLUTC.js.map} +0 -0
  179. /package/dist/{seal-KDPRMM4D.js.map → seal-KRIMAC4M.js.map} +0 -0
  180. /package/dist/{setup-GOFOC4YG.js.map → setup-LFIDDDUO.js.map} +0 -0
  181. /package/dist/{to-hwpx-3LMSUQTA.js.map → to-hwpx-PVXV4MP3.js.map} +0 -0
  182. /package/dist/{to-hwpx-Y3MXBDML.js.map → to-hwpx-VPIDINZP.js.map} +0 -0
  183. /package/dist/{visual-VI4WYIWM.js.map → visual-HKD7SS2K.js.map} +0 -0
  184. /package/dist/{watch-WHMWDPKY.js.map → watch-RDE5VTIX.js.map} +0 -0
package/README.md CHANGED
@@ -126,7 +126,7 @@ await writeFile("보고서.hwpx", Buffer.from(hwpx))
126
126
  | 법령 별표 | 272건 · 346표 | HWP **346/346**, PDF **343/346 · 99.13%** |
127
127
  | PDF 전체 | 1,911문서 중 1,729건 채점 | 글 커버리지 **99.80%** |
128
128
  | OCR | 53문서 · 102쪽 · 65표 | CER **0.0237** · 글자 재현율 **99.33%** · 표 구조 일치 **33/65** |
129
- | KoOCR-Bench v2.0c (외부) | 공개 877쪽 (표·글·손글씨·순서) | 종합 기본값 **0.905** · 표 **0.915** · 손글씨 **0.921** · 순서 **0.914** · 제목 재현율 0.930 (4.24.62) |
129
+ | KoOCR-Bench v2.0c (외부) | 공개 877쪽 (표·글·손글씨·순서) | 종합 기본값 **0.906** · 표 **0.915** · 손글씨 **0.921** · 순서 **0.914** · 제목 재현율 0.930 (4.24.65) |
130
130
  | opendataloader-bench | PDF 200문서 | 종합 기본값 **0.965** · `ocr: true` **0.967** · OCR 끔 0.939 (4.22.14) |
131
131
  | HWPX 렌더 배치 | 한컴 PDF 짝 1,565문서(쪽 수 일치 1,508) · 글 조각 111,480 · 그림 4,300 | 글 위치(±1.5pt) **106,904 · 95.9%** · 그림 위치(±2pt) **4,213 · 98.0%** |
132
132
 
@@ -134,15 +134,15 @@ await writeFile("보고서.hwpx", Buffer.from(hwpx))
134
134
 
135
135
  ## 최근 업데이트
136
136
 
137
- 최신 배포: **[4.24.63](https://github.com/chrisryugj/kordoc/releases/tag/v4.24.63)** · 2026-11-11
137
+ 최신 배포: **[4.24.65](https://github.com/chrisryugj/kordoc/releases/tag/v4.24.65)** · 2026-11-12
138
138
 
139
139
  | 버전 | 주요 변경 | 수치 변화 |
140
140
  | --- | --- | --- |
141
+ | 4.24.65 | OCR 그림 속 글: 숲 그림(forest plot) 판·생존 곡선 아래 위험 인원 표가 표·문단으로 나가던 것 | KoOCR-Bench 0.90517 → **0.90568** (글 0.861 → **0.864**) · 자체 벤치 문서별 하락 0 |
142
+ | 4.24.64 | 공문 HWPX 의 "-" 항목이 4칸 들여쓰기로 코드 블록이 되던 것 · PDF 수식 OCR 막대 둘 노름(`||x||` → `\|x\|`) · OCR 감색 머리 열 행 괘선 | 수식 OCR 정확 0.615 → **0.617**(보고 전용) · 자체 벤치 문서별 하락 0 |
141
143
  | 4.24.63 | 본문 URL·QR 주소가 마크다운 뷰어에서 원래 주소로 열리게, HTML 표 셀 링크를 `<a href>` 로 내는 `htmlCellLinks` 옵션(기본 꺼짐) (#204) · OCR 감색 머리 열 흰 틈 행 경계 | 자체 벤치 문서별 하락 0 · KoOCR-Bench 0.90517 그대로 |
142
144
  | 4.24.62 | 견본 없이 만든 HWPX 에 `version.xml` 이 빠지던 것(#207) · PDF·OCR 쪽 제목과 맨 아래 한 줄이 한 덩어리로 묶여 표 앞에 읽히던 것 · OCR 이웃 줄 글자 조각을 문 글자 상자 | KoOCR-Bench 0.90509 → **0.90517** (순서 0.913 → **0.914**) · OCR robust skew-2 CER 0.0475 → **0.0463** · 자체 벤치 문서별 하락 0 |
143
145
  | 4.24.61 | OCR 글자 세로 획이 이어 만든 가짜 세로 괘선이 표 열을 쪼개던 것 · OCR 두 줄을 덮어 무너지게 읽힌 줄 상자 · MiniCPM-OCR OcrProvider 예제(#205) | KoOCR-Bench 0.90439 → **0.90509** (표 0.913 → **0.915**) · 자체 OCR 표 구조 일치 32 → **33**/65 |
144
- | 4.24.60 | XML 파서를 quick-xml(wasm)로 교체(#202, 의존성 하나 줄고 깨진 XML 회복) · PDF 수식 OCR 여러 줄 식 가운데 줄 놓침 · OCR 기울기 보정으로 번진 세로 괘선 · OCR 표 칸 기호(○) 저신뢰 버림 · 공문서 본문 "○○ MCP" 낱말 지움(#203) | 수식 OCR 재현율 0.9758 → **0.9775**, 정밀도 0.9699 → **0.9725**(보고 전용) · OCR robust skew+3 CER 0.0481 → **0.0444**, scan 0.0550 → **0.0542** · 자체 벤치 문서별 하락 1(조직도 세로쓰기 조각 순서) |
145
- | 4.24.59 | OCR 점선 칸 괘선 너머 이웃 행 글자 끝자락이 숫자 상자에 붙어 이웃 행 값과 한 칸에 몰리던 것 · OCR 스캔 상자 테두리 옆 번진 띠 때문에 조직도 글이 상자 밖으로 새던 것 | KoOCR-Bench 0.90378 → **0.90439** (표 0.912 → **0.913**) · OCR robust scan CER 0.0591 → **0.0557** |
146
146
 
147
147
  이전 버전과 상세 내용은 [변경 이력](CHANGELOG.md)에 있습니다.
148
148
 
@@ -53,7 +53,7 @@ import {
53
53
  usesGaejosikMunche,
54
54
  usesLogicStructure,
55
55
  validateHwpx
56
- } from "./chunk-3R4LS2QM.js";
56
+ } from "./chunk-BPNJBWKQ.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-PTWPZYBM.js";
67
+ } from "./chunk-VQZIP2UW.js";
68
68
  import {
69
69
  blocksToPages
70
- } from "./chunk-YRMVLAYZ.js";
70
+ } from "./chunk-LXRBEPYC.js";
71
71
  import {
72
72
  extractClickHereFields,
73
73
  patchHwp,
74
74
  patchHwpx
75
- } from "./chunk-CD7YHKSF.js";
76
- import "./chunk-WIPBQVIK.js";
75
+ } from "./chunk-TN2C7M6Q.js";
76
+ import "./chunk-XS254L5R.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-BW2KS7VQ.js";
86
+ } from "./chunk-KUAPGGQE.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-MQNJY7II.js";
95
+ } from "./chunk-NBBT2EYG.js";
96
96
  import {
97
97
  addMemoHwpx
98
- } from "./chunk-SPEEZYS4.js";
98
+ } from "./chunk-MTUGM4ZK.js";
99
99
  import {
100
100
  placeSealHwpx
101
- } from "./chunk-AKMBPYRU.js";
102
- import "./chunk-CL2GZ7JO.js";
103
- import "./chunk-FIKCNQ5Q.js";
101
+ } from "./chunk-27ZUZMQY.js";
102
+ import "./chunk-ABA2Z4LT.js";
103
+ import "./chunk-AKYUE4JE.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-UZDSVTD4.js";
117
+ import "./chunk-UYEZER77.js";
118
118
  import {
119
119
  convertToHwpx,
120
120
  hwpToHwpx
121
- } from "./chunk-JMYWAW2S.js";
122
- import "./chunk-FZNNNXEW.js";
121
+ } from "./chunk-JW6PNIXI.js";
122
+ import "./chunk-EG47QXJE.js";
123
123
  import "./chunk-FU6ZDWCI.js";
124
124
  import "./chunk-OFVHQ2TZ.js";
125
- import "./chunk-B7JISVV7.js";
125
+ import "./chunk-CLI5IIY3.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-HG6K7PDG.js";
135
- import "./chunk-UMF44YJH.js";
134
+ } from "./chunk-6R4M2LVY.js";
135
+ import "./chunk-I2HHHJF5.js";
136
136
  import "./chunk-VQFA55IC.js";
137
137
  import {
138
138
  detectFormat,
@@ -146,16 +146,16 @@ import {
146
146
  import "./chunk-H7K5YHWQ.js";
147
147
  import "./chunk-IIOBUTXH.js";
148
148
  import "./chunk-QLZHIJWJ.js";
149
- import "./chunk-TFEQHER2.js";
149
+ import "./chunk-BRDRZHVC.js";
150
150
  import {
151
151
  blocksToMarkdown,
152
152
  flattenLayoutTables,
153
153
  hasStructuredCellContent
154
- } from "./chunk-55QH5LSM.js";
154
+ } from "./chunk-PWSUGKMS.js";
155
155
  import "./chunk-KFF47XZ7.js";
156
156
  import {
157
157
  VERSION
158
- } from "./chunk-DQEZVDKS.js";
158
+ } from "./chunk-TYJFA5S7.js";
159
159
  export {
160
160
  AGENCY_COMMON_NAME,
161
161
  BUILTIN_TEMPLATES,
@@ -269,4 +269,4 @@ export {
269
269
  usesLogicStructure,
270
270
  validateHwpx
271
271
  };
272
- //# sourceMappingURL=-JKJWVZ7E.js.map
272
+ //# sourceMappingURL=-3Q26OZHW.js.map
@@ -1,21 +1,21 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  parseRenderStyles
4
- } from "./chunk-CL2GZ7JO.js";
4
+ } from "./chunk-ABA2Z4LT.js";
5
5
  import {
6
6
  patchZipEntries
7
- } from "./chunk-FIKCNQ5Q.js";
7
+ } from "./chunk-AKYUE4JE.js";
8
8
  import {
9
9
  applySplices,
10
10
  scanSectionXml
11
11
  } from "./chunk-3AHL6YEA.js";
12
12
  import {
13
13
  readZipEntry
14
- } from "./chunk-UZDSVTD4.js";
14
+ } from "./chunk-UYEZER77.js";
15
15
  import {
16
16
  KordocError,
17
17
  precheckZipSize
18
- } from "./chunk-DQEZVDKS.js";
18
+ } from "./chunk-TYJFA5S7.js";
19
19
 
20
20
  // src/form/seal.ts
21
21
  import JSZip from "jszip";
@@ -321,4 +321,4 @@ export {
321
321
  collectSites,
322
322
  placeSealHwpx
323
323
  };
324
- //# sourceMappingURL=chunk-AKMBPYRU.js.map
324
+ //# sourceMappingURL=chunk-27ZUZMQY.js.map
@@ -37,7 +37,7 @@ import {
37
37
  stackedGlyphBands,
38
38
  starRun,
39
39
  tallInkCount
40
- } from "./chunk-A73BTJH5.js";
40
+ } from "./chunk-Y6UT3AYV.js";
41
41
  import {
42
42
  validateOcrOptions
43
43
  } from "./chunk-TBGGAR7W.js";
@@ -50,7 +50,7 @@ import {
50
50
  import {
51
51
  KordocError,
52
52
  OPTIONAL_DEP_INSTALL_HINT
53
- } from "./chunk-X4PFJ3S3.js";
53
+ } from "./chunk-AX34AL6K.js";
54
54
 
55
55
  // src/ocr/ocr-stacked-rows.ts
56
56
  var NUMERIC = /^[-+−△▲▽▼]?[\d.,]+[%p원]?$|^[-–—·∼~]원?$|^\([-+−△▲▽▼]?[\d.,]+%?\)$/;
@@ -483,7 +483,8 @@ function detectRulingLines(rgba, width, height, scale) {
483
483
  if (!b || a.x2 - a.x1 < tol * 4) continue;
484
484
  const y = (a.y1 + b.y1) / 2;
485
485
  if (!onV(a.x1, y) || !onV(a.x2, y) || horizontals.some((h) => Math.abs(h.y1 - y) <= tol && h.x1 <= a.x1 + tol && h.x2 >= a.x2 - tol)) continue;
486
- horizontals.push({ x1: a.x1, y1: y, x2: a.x2, y2: y, thicknessPx: 1 });
486
+ const p = ruleH.find((p2) => Math.abs(p2.y1 - y) <= fillGap && (Math.abs(p2.x1 - a.x2) <= tol * 3 || Math.abs(a.x1 - p2.x2) <= tol * 3));
487
+ horizontals.push(p ? { ...p, x1: Math.min(a.x1, p.x1), x2: Math.max(a.x2, p.x2) } : { x1: a.x1, y1: y, x2: a.x2, y2: y, thicknessPx: 1 });
487
488
  }
488
489
  for (const p of ruleH) {
489
490
  for (const side of [-1, 1]) {
@@ -492,7 +493,7 @@ function detectRulingLines(rgba, width, height, scale) {
492
493
  if (!a) continue;
493
494
  const far = side < 0 ? a.x1 : a.x2;
494
495
  if (!onV(far, p.y1) || horizontals.some((h) => Math.abs(h.y1 - p.y1) <= tol && h.x1 <= Math.min(far, end) + tol && h.x2 >= Math.max(far, end) - tol)) continue;
495
- horizontals.push({ ...p, x1: Math.min(far, end), x2: Math.max(far, end) });
496
+ horizontals.push({ ...p, x1: Math.min(far, p.x1), x2: Math.max(far, p.x2) });
496
497
  }
497
498
  }
498
499
  horizontals.push(...fillH);
@@ -2682,22 +2683,66 @@ function categoryRow(items, v) {
2682
2683
  const words = line.reduce((n, it) => n + it.text.trim().split(/\s+/).length, 0);
2683
2684
  return words >= 2 && Math.max(...line.map((it) => it.x + it.w)) > v.x2 + 6 * v.h ? line : [];
2684
2685
  }
2686
+ function forestPlotItems(items, horizontals, drop) {
2687
+ const cy = (it) => it.y + it.h / 2;
2688
+ for (const hz of [...horizontals, ...linearAxes(items)]) {
2689
+ const h = hz.h;
2690
+ const label = items.some((it) => cy(it) > hz.y1 - 3 * h && cy(it) < hz.y2 + 3 * h && /favou?rs?|better|우세/i.test(it.text));
2691
+ if (!label) continue;
2692
+ const rows = [...new Set(items.map(cy))].sort((a, b) => a - b);
2693
+ const at = rows.findIndex((y) => y >= hz.y1);
2694
+ let top = hz.y1, bottom = hz.y2;
2695
+ for (let i = at - 1; i >= 0 && rows[i + 1] - rows[i] <= 2.5 * h; i--) top = rows[i];
2696
+ const caption = (y) => items.some((it) => Math.abs(cy(it) - y) < h * 0.5 && /^(그림|Figure|Fig\.|표)\s*\d/.test(it.text.trim()));
2697
+ for (let i = at; i + 1 < rows.length && rows[i + 1] - rows[i] <= 2.5 * h && !caption(rows[i + 1]); i++) bottom = rows[i + 1];
2698
+ items.forEach((it, i) => {
2699
+ if (cy(it) >= top - h * 0.5 && cy(it) <= bottom + h * 0.5) drop.add(i);
2700
+ });
2701
+ }
2702
+ }
2703
+ function linearAxes(items) {
2704
+ const nums = items.filter((it) => number(it.text) !== null);
2705
+ const out = [];
2706
+ const used = /* @__PURE__ */ new Set();
2707
+ for (const seed of nums) {
2708
+ if (used.has(seed)) continue;
2709
+ const row = nums.filter((it) => Math.abs(it.y + it.h / 2 - seed.y - seed.h / 2) <= Math.min(it.h, seed.h) * 0.6).sort((a, b) => a.x - b.x);
2710
+ if (row.length < 3) continue;
2711
+ const pts = row.map((it) => ({ pos: it.x + it.w / 2, value: number(it.text) }));
2712
+ const slopes = pts.slice(1).map((p, i) => (p.pos - pts[i].pos) / (p.value - pts[i].value));
2713
+ if (slopes.some((k) => !(k > 0)) || Math.max(...slopes) > Math.min(...slopes) * 1.25) continue;
2714
+ for (const it of row) used.add(it);
2715
+ out.push({ x1: row[0].x, x2: row[row.length - 1].x + row[row.length - 1].w, y1: Math.min(...row.map((it) => it.y)), y2: Math.max(...row.map((it) => it.y + it.h)), h: seed.h });
2716
+ }
2717
+ return out;
2718
+ }
2685
2719
  function chartPlotItems(items) {
2686
2720
  const drop = /* @__PURE__ */ new Set();
2687
2721
  const verticals = valueAxes(items);
2688
- if (!verticals.length) return drop;
2689
2722
  const horizontals = timeAxes(items);
2723
+ forestPlotItems(items, horizontals, drop);
2724
+ if (!verticals.length) return drop;
2690
2725
  for (const v of verticals) {
2691
2726
  const hz = horizontals.find((a) => a.y1 >= v.y2 - v.h && a.y1 <= v.y2 + 5 * v.h && a.x1 >= v.x1 - v.h && a.x1 <= v.x2 + 4 * v.h && a.x2 > v.x2 + 8 * v.h);
2692
2727
  const cats = hz ? [] : categoryRow(items, v);
2693
2728
  if (!hz && cats.length === 0) continue;
2694
2729
  const bottom = hz ? hz.y2 + 2.5 * v.h : Math.max(...cats.map((c) => c.y + c.h)) + 0.5 * v.h;
2695
2730
  const right = hz ? hz.x2 + 2 * v.h : Math.max(...cats.map((c) => c.x + c.w)) + v.h;
2696
- const x1 = v.x1 - 5 * v.h, x2 = right, y1 = v.y1 - (hz ? 1.5 * v.h : Math.max(1.5 * v.h, v.gap ?? 0)), y2 = bottom;
2731
+ const x1 = v.x1 - 5 * v.h, x2 = right, y1 = v.y1 - Math.max(1.5 * v.h, v.gap ?? 0), y2 = bottom;
2697
2732
  items.forEach((it, i) => {
2698
2733
  const cx = it.x + it.w / 2, cy = it.y + it.h / 2;
2699
2734
  if (cx >= x1 && cx <= x2 && cy >= y1 && cy <= y2 && it.x >= x1 - v.h && it.x + it.w <= x2 + v.h) drop.add(i);
2700
2735
  });
2736
+ const cyOf = (it) => it.y + it.h / 2;
2737
+ const risk = items.find((it) => cyOf(it) > y2 - v.h && cyOf(it) < y2 + 4 * v.h && /at\s*risk|위험\s*(대상|인원)/i.test(it.text));
2738
+ if (risk) {
2739
+ const rows = [...new Set(items.map(cyOf))].sort((a, b) => a - b);
2740
+ let end = cyOf(risk);
2741
+ for (let k = rows.indexOf(end); k + 1 < rows.length && rows[k + 1] - rows[k] <= 2.5 * v.h && !items.some((it) => Math.abs(cyOf(it) - rows[k + 1]) < v.h * 0.5 && /^(그림|Figure|Fig\.|표)\s*\d/.test(it.text.trim())); k++) end = rows[k + 1];
2742
+ items.forEach((it, i) => {
2743
+ if (cyOf(it) >= cyOf(risk) - v.h * 0.5 && cyOf(it) <= end + v.h * 0.5) drop.add(i);
2744
+ });
2745
+ }
2701
2746
  }
2702
2747
  return drop;
2703
2748
  }
@@ -3410,4 +3455,4 @@ export {
3410
3455
  ocrItemsToBlocks,
3411
3456
  markOcrHeadings
3412
3457
  };
3413
- //# sourceMappingURL=chunk-PEDFVAXJ.js.map
3458
+ //# sourceMappingURL=chunk-3JHKWOVZ.js.map