hwpx2f 0.0.0-stage → 0.1.0
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/LICENSE +21 -0
- package/README.md +124 -2
- package/THIRD_PARTY_NOTICES.md +75 -0
- package/dist/cli.js +76 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.js +32 -0
- package/dist/lib/chunk-36PRCVPO.js +131 -0
- package/dist/lib/chunk-45BAITEX.js +9749 -0
- package/dist/lib/chunk-4NRZ6MWV.js +133 -0
- package/dist/lib/chunk-6CFXTS7A.js +11971 -0
- package/dist/lib/chunk-6CPCDYOD.js +104 -0
- package/dist/lib/chunk-B6MTS4XP.js +313 -0
- package/dist/lib/chunk-BX24E7EG.js +1427 -0
- package/dist/lib/chunk-C64I2SU4.js +82 -0
- package/dist/lib/chunk-CEKQASS3.js +258 -0
- package/dist/lib/chunk-CMWTKXM2.js +204 -0
- package/dist/lib/chunk-E6KSYRHG.js +2189 -0
- package/dist/lib/chunk-IZDWVMTV.js +28786 -0
- package/dist/lib/chunk-JK6YR5NT.js +4276 -0
- package/dist/lib/chunk-O6FSHPNE.js +111 -0
- package/dist/lib/chunk-OYXOOP2U.js +199 -0
- package/dist/lib/chunk-PM4KBWF4.js +49 -0
- package/dist/lib/chunk-R5F3GHLO.js +290 -0
- package/dist/lib/chunk-R76DWHJR.js +1596 -0
- package/dist/lib/chunk-RFS3RTSR.js +6876 -0
- package/dist/lib/chunk-RYJRNK5Z.js +47 -0
- package/dist/lib/chunk-UOXPGSFH.js +43 -0
- package/dist/lib/chunk-UZH4UBMX.js +44 -0
- package/dist/lib/chunk-VZTE4GKI.js +52 -0
- package/dist/lib/chunk-WEOKEO6L.js +35291 -0
- package/dist/lib/detect-4XZNNYZA-O7IPA4XQ.js +32 -0
- package/dist/lib/dist-HVSOXNCJ.js +263 -0
- package/dist/lib/formula-LC62GV4D-K3VFC5GV.js +1173 -0
- package/dist/lib/generator-KYTTL4OS-TRAQ66QE.js +14 -0
- package/dist/lib/hancom-EM62ZVDM-WZKVI7XB.js +91 -0
- package/dist/lib/image-ocr-ZUZQXLYS-U66LBMRA.js +293 -0
- package/dist/lib/page-images-VCIFZAXK-KJLWQDRH.js +95 -0
- package/dist/lib/page-range-7R3JU6SQ-MDDQRZVK.js +10 -0
- package/dist/lib/parser-JQNH5QMM-HFFI4HYK.js +4310 -0
- package/dist/lib/pdf-ocr-C3MBR6J2-J3UGJKWT.js +46 -0
- package/dist/lib/to-hwpx-JUT2SOTT-MOPPK6OW.js +17 -0
- package/dist/notices/core-util-is/LICENSE +19 -0
- package/dist/notices/entities/LICENSE +11 -0
- package/dist/notices/immediate/LICENSE.txt +20 -0
- package/dist/notices/inherits/LICENSE +16 -0
- package/dist/notices/jszip/LICENSE.markdown +651 -0
- package/dist/notices/kordoc/LICENSE +21 -0
- package/dist/notices/kordoc/NOTICE +376 -0
- package/dist/notices/kordoc/THIRD_PARTY/apache-2.0.LICENSE +201 -0
- package/dist/notices/kordoc/THIRD_PARTY/claw-hwp.LICENSE +21 -0
- package/dist/notices/kordoc/THIRD_PARTY/hayro-pdf.txt +361 -0
- package/dist/notices/kordoc/THIRD_PARTY/hml-equation-parser.LICENSE +201 -0
- package/dist/notices/kordoc/THIRD_PARTY/hml-equation-parser.txt +35 -0
- package/dist/notices/kordoc/THIRD_PARTY/korean-report-hwpx.LICENSE +21 -0
- package/dist/notices/kordoc/THIRD_PARTY/memchr.LICENSE +21 -0
- package/dist/notices/kordoc/THIRD_PARTY/opendataloader-pdf.txt +32 -0
- package/dist/notices/kordoc/THIRD_PARTY/pix2text.txt +17 -0
- package/dist/notices/kordoc/THIRD_PARTY/quick-xml.LICENSE +23 -0
- package/dist/notices/kordoc/THIRD_PARTY/rhwp-forms.txt +35 -0
- package/dist/notices/lie/license.md +7 -0
- package/dist/notices/linkify-it/LICENSE +22 -0
- package/dist/notices/markdown-it/LICENSE +22 -0
- package/dist/notices/mdurl/LICENSE +45 -0
- package/dist/notices/pako/LICENSE +21 -0
- package/dist/notices/process-nextick-args/license.md +19 -0
- package/dist/notices/punycode.js/LICENSE-MIT.txt +20 -0
- package/dist/notices/readable-stream/LICENSE +47 -0
- package/dist/notices/safe-buffer/LICENSE +21 -0
- package/dist/notices/setimmediate/LICENSE.txt +20 -0
- package/dist/notices/string_decoder/LICENSE +48 -0
- package/dist/notices/uc.micro/LICENSE.txt +20 -0
- package/dist/notices/util-deprecate/LICENSE +24 -0
- package/package.json +66 -4
|
@@ -0,0 +1,376 @@
|
|
|
1
|
+
kordoc
|
|
2
|
+
Copyright 2026 chrisryugj
|
|
3
|
+
Licensed under the MIT License
|
|
4
|
+
|
|
5
|
+
This project includes code derived from the following third-party works:
|
|
6
|
+
|
|
7
|
+
================================================================================
|
|
8
|
+
|
|
9
|
+
OpenDataLoader PDF (opendataloader-pdf)
|
|
10
|
+
https://github.com/opendataloader-project/opendataloader-pdf
|
|
11
|
+
|
|
12
|
+
Copyright 2025-2026 Hancom, Inc.
|
|
13
|
+
Licensed under the Apache License, Version 2.0
|
|
14
|
+
|
|
15
|
+
Used in:
|
|
16
|
+
- src/pdf/line-detector.ts — TableBorderBuilder algorithm (line-based table
|
|
17
|
+
detection via PDF graphics commands, grid construction from line intersections)
|
|
18
|
+
- src/pdf/cluster-detector.ts — ClusterTableConsumer algorithm (cluster-based
|
|
19
|
+
borderless table detection via text alignment patterns)
|
|
20
|
+
|
|
21
|
+
Modifications:
|
|
22
|
+
- TypeScript rewrite from Java/Kotlin
|
|
23
|
+
- pdfjs-dist v4/v5 compatibility layer
|
|
24
|
+
- Korean PDF-specific optimizations (character spacing, cell text merging)
|
|
25
|
+
|
|
26
|
+
You may obtain a copy of the Apache License at:
|
|
27
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
28
|
+
|
|
29
|
+
================================================================================
|
|
30
|
+
|
|
31
|
+
hml-equation-parser
|
|
32
|
+
https://github.com/OpenBapul/hml-equation-parser
|
|
33
|
+
|
|
34
|
+
Copyright 2018 Open Bapul
|
|
35
|
+
Licensed under the Apache License, Version 2.0
|
|
36
|
+
|
|
37
|
+
Used in:
|
|
38
|
+
- src/hwpx/equation.ts — hmlToLatex() (HULK-style HWPX equation script →
|
|
39
|
+
LaTeX) derived from hulkEqParser.py and hulkReplaceMethod.py
|
|
40
|
+
|
|
41
|
+
Modifications:
|
|
42
|
+
- TypeScript rewrite from Python 3
|
|
43
|
+
- Inlined convertMap.json as TS constants
|
|
44
|
+
- Graceful error handling so failed conversion drops the equation rather
|
|
45
|
+
than leaking the HWP alt-text ("수식입니다") through the document
|
|
46
|
+
|
|
47
|
+
See THIRD_PARTY/hml-equation-parser.LICENSE for the full license text.
|
|
48
|
+
|
|
49
|
+
You may obtain a copy of the Apache License at:
|
|
50
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
51
|
+
|
|
52
|
+
================================================================================
|
|
53
|
+
|
|
54
|
+
cfb (Compound File Binary)
|
|
55
|
+
https://github.com/SheetJS/js-cfb
|
|
56
|
+
|
|
57
|
+
Copyright 2013-present SheetJS LLC
|
|
58
|
+
Licensed under the Apache License, Version 2.0
|
|
59
|
+
|
|
60
|
+
Used as a dependency for HWP 5.x OLE2 container parsing.
|
|
61
|
+
No modifications — used as a bundled npm package.
|
|
62
|
+
|
|
63
|
+
================================================================================
|
|
64
|
+
|
|
65
|
+
PDF.js
|
|
66
|
+
https://github.com/mozilla/pdf.js
|
|
67
|
+
|
|
68
|
+
Copyright Mozilla Foundation
|
|
69
|
+
Licensed under the Apache License, Version 2.0
|
|
70
|
+
|
|
71
|
+
Used in (rules and tables re-implemented so the PDF engine adapter yields the same
|
|
72
|
+
text chunks, operator lists, metadata and link targets kordoc was tuned on):
|
|
73
|
+
- src/pdf/ops.ts — operator-list numbering (OPS), image kinds, normalizeUnicode
|
|
74
|
+
- src/pdf/hayro-text.ts — getTextContent text-chunk rules (gaps, line breaks, spaces)
|
|
75
|
+
- src/pdf/bidi.ts — bidirectional text reordering (core/bidi.js), ported as is
|
|
76
|
+
- src/pdf/hayro-meta.ts — PDF string decoding (PDFDocEncoding table, UTF-16/UTF-8 BOM),
|
|
77
|
+
link target selection (parseDestDictionary, createValidAbsoluteUrl, recoverJsURL)
|
|
78
|
+
- rust/hayro-pdf/src/shadow.rs — DeviceCMYK to sRGB polynomial (DeviceCmykCS); text-state
|
|
79
|
+
arithmetic (TextState, getCurrentTextTransform, TJ spacing) for glyph positions in f64
|
|
80
|
+
|
|
81
|
+
Modifications:
|
|
82
|
+
- TypeScript / Rust rewrite; only the parts kordoc reads
|
|
83
|
+
|
|
84
|
+
You may obtain a copy of the Apache License at:
|
|
85
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
86
|
+
|
|
87
|
+
================================================================================
|
|
88
|
+
|
|
89
|
+
hayro
|
|
90
|
+
https://github.com/LaurenzV/hayro
|
|
91
|
+
|
|
92
|
+
Copyright (c) The Hayro Authors
|
|
93
|
+
Licensed under the Apache License, Version 2.0 OR the MIT License (Apache-2.0 is chosen)
|
|
94
|
+
|
|
95
|
+
Used in:
|
|
96
|
+
- src/pdf/hayro-pdf.wasm — rust/hayro-pdf (Rust code that runs hayro-interpret and
|
|
97
|
+
hands kordoc page events, fonts, images, document info and links)
|
|
98
|
+
compiled to wasm32 together with hayro and its dependencies. src/pdf/hayro.ts loads it.
|
|
99
|
+
|
|
100
|
+
Modifications:
|
|
101
|
+
- Built from a pinned git commit (rust/hayro-pdf/Cargo.toml): upstream main 61f50b42.
|
|
102
|
+
No changes.
|
|
103
|
+
|
|
104
|
+
Crate list, licenses and non-Apache license texts: THIRD_PARTY/hayro-pdf.txt
|
|
105
|
+
(generated by rust/hayro-pdf/licenses.mjs). The Rust standard library (core, alloc;
|
|
106
|
+
MIT OR Apache-2.0) is compiled in as well.
|
|
107
|
+
|
|
108
|
+
You may obtain a copy of the Apache License at:
|
|
109
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
110
|
+
|
|
111
|
+
================================================================================
|
|
112
|
+
|
|
113
|
+
JSZip
|
|
114
|
+
https://github.com/Stuk/jszip
|
|
115
|
+
|
|
116
|
+
Copyright 2009-2016 Stuart Knightley, David Duponchel, Franz Buchinger, Antonio Afonso
|
|
117
|
+
Dual-licensed under the MIT License OR GPL-3.0-or-later
|
|
118
|
+
This project uses JSZip under the MIT License.
|
|
119
|
+
|
|
120
|
+
Used for ZIP-based format parsing (HWPX, XLSX, DOCX).
|
|
121
|
+
No modifications — used as an npm package.
|
|
122
|
+
|
|
123
|
+
================================================================================
|
|
124
|
+
|
|
125
|
+
rhwp
|
|
126
|
+
https://github.com/edwardkim/rhwp
|
|
127
|
+
|
|
128
|
+
Copyright edwardkim
|
|
129
|
+
Licensed under the MIT License
|
|
130
|
+
|
|
131
|
+
Used in:
|
|
132
|
+
- src/hwp5/cfb-lenient.ts — LenientCfbReader algorithm (FAT/directory/mini-stream
|
|
133
|
+
parsing for corrupted CFB containers)
|
|
134
|
+
- src/hwp5/crypto.ts — Distribution document decryption algorithm (AES key
|
|
135
|
+
extraction from MSVC LCG-scrambled payload)
|
|
136
|
+
|
|
137
|
+
Modifications:
|
|
138
|
+
- TypeScript rewrite from Rust
|
|
139
|
+
- Added sector size validation, chain length limits, and cycle detection
|
|
140
|
+
- Pure JS AES-128 ECB implementation (no native dependency)
|
|
141
|
+
|
|
142
|
+
================================================================================
|
|
143
|
+
|
|
144
|
+
Pix2Text — Mathematical Formula Detection & Recognition
|
|
145
|
+
https://github.com/breezedeus/Pix2Text
|
|
146
|
+
|
|
147
|
+
Copyright 2023-2024 breezedeus
|
|
148
|
+
MFD (Mathematical Formula Detection): trained on Ultralytics YOLOv8 — MFD model
|
|
149
|
+
weights themselves are distributed under MIT via the HuggingFace repository
|
|
150
|
+
`breezedeus/pix2text-mfd`, but the underlying YOLOv8 architecture carries an
|
|
151
|
+
AGPL-3.0 license from Ultralytics. Users distributing derivative works built on
|
|
152
|
+
MFD outputs should review Ultralytics' licensing terms.
|
|
153
|
+
MFR (Mathematical Formula Recognition): HuggingFace `breezedeus/pix2text-mfr`,
|
|
154
|
+
MIT License.
|
|
155
|
+
|
|
156
|
+
Used in:
|
|
157
|
+
- src/pdf/formula/detector.ts — YOLOv8 letterbox preprocessing, NMS post-processing
|
|
158
|
+
- src/pdf/formula/recognizer.ts — DeiT encoder + TrOCR decoder greedy decoding
|
|
159
|
+
- src/pdf/formula/postprocess.ts — LaTeX output cleanup (derived from Pix2Text
|
|
160
|
+
`latex_ocr.py` post_process)
|
|
161
|
+
|
|
162
|
+
Models are downloaded at runtime from HuggingFace with SHA-256 verification.
|
|
163
|
+
No model weights are redistributed with this package. Algorithm implementations
|
|
164
|
+
are original TypeScript ports referencing the Pix2Text algorithm descriptions.
|
|
165
|
+
|
|
166
|
+
You may obtain a copy of the MIT License at:
|
|
167
|
+
https://opensource.org/licenses/MIT
|
|
168
|
+
|
|
169
|
+
================================================================================
|
|
170
|
+
|
|
171
|
+
PaddleOCR / PP-OCRv5 — Text Detection & Recognition Models
|
|
172
|
+
https://github.com/PaddlePaddle/PaddleOCR
|
|
173
|
+
|
|
174
|
+
Copyright PaddlePaddle Authors
|
|
175
|
+
Licensed under the Apache License, Version 2.0
|
|
176
|
+
|
|
177
|
+
Model weights (ONNX conversions, downloaded at runtime with SHA-256 verification,
|
|
178
|
+
not redistributed with this package):
|
|
179
|
+
- PP-OCRv5_mobile_det (HuggingFace `PaddlePaddle/PP-OCRv5_mobile_det_onnx`)
|
|
180
|
+
- korean_PP-OCRv5_mobile_rec + character dictionary
|
|
181
|
+
(HuggingFace `PaddlePaddle/korean_PP-OCRv5_mobile_rec_onnx`)
|
|
182
|
+
|
|
183
|
+
Used in:
|
|
184
|
+
- src/ocr/engine.ts — DBNet det pre/post-processing (resize_long 960, thresh/
|
|
185
|
+
box_thresh/unclip per official inference.yml; DB unclip approximated with
|
|
186
|
+
axis-aligned component boxes) + CTC greedy decoding, following the PaddleOCR
|
|
187
|
+
inference operator specifications. Original TypeScript implementation.
|
|
188
|
+
- src/ocr/models.ts — model specs + inference.yml character_dict parser
|
|
189
|
+
|
|
190
|
+
You may obtain a copy of the Apache License 2.0 at:
|
|
191
|
+
https://www.apache.org/licenses/LICENSE-2.0
|
|
192
|
+
|
|
193
|
+
================================================================================
|
|
194
|
+
|
|
195
|
+
korean-handwriting-rec — Korean Handwriting Recognition Model (optional)
|
|
196
|
+
https://github.com/VerifiedIdiot/korean-handwriting-rec
|
|
197
|
+
|
|
198
|
+
Licensed under the Apache License, Version 2.0 (as stated by the model repository)
|
|
199
|
+
|
|
200
|
+
Model weights (ONNX, downloaded at runtime only when needed, with SHA-256
|
|
201
|
+
verification, not redistributed with this package):
|
|
202
|
+
- rec_korean_hw_v1.2.onnx (HuggingFace `Rebeccaaaaaaaa/korean-handwriting-rec`
|
|
203
|
+
model/rec_korean_hw.onnx, pinned revision e28b61b77df91aa024f9bbf5af962289ad0a8fa8)
|
|
204
|
+
and rec_korean_hw_v1.2.yml (same repository and revision,
|
|
205
|
+
model/ppocrv5_korean_dict.yml) — when `ocrRec: "handwriting"` is selected
|
|
206
|
+
- rec_korean_hw.onnx (same repository, model/rec_korean_hw.onnx, pinned revision
|
|
207
|
+
bb4c2714cf6b05e5d13bfe22199d0e6d30866597) — v1.0, when the default or
|
|
208
|
+
`ocrRec: "auto"` re-reads a handwritten page
|
|
209
|
+
|
|
210
|
+
Fine-tuned from korean_PP-OCRv5_mobile_rec (PaddleOCR, above). v1.0 uses its
|
|
211
|
+
character dictionary; v1.2's dictionary is the PP-OCRv5 Korean dictionary with
|
|
212
|
+
two handwritten symbols (₩, 〃) appended. The base model, conversion tools and training data
|
|
213
|
+
sources (AI Hub datasets) are described in the model repository README.
|
|
214
|
+
No training data is redistributed with this package.
|
|
215
|
+
|
|
216
|
+
Used in:
|
|
217
|
+
- src/ocr/models.ts — model spec (OCR_HANDWRITING_REC_MODEL, OCR_HANDWRITING_REC_DICT, OCR_HANDWRITING_FALLBACK_REC_MODEL)
|
|
218
|
+
|
|
219
|
+
You may obtain a copy of the Apache License 2.0 at:
|
|
220
|
+
https://www.apache.org/licenses/LICENSE-2.0
|
|
221
|
+
|
|
222
|
+
================================================================================
|
|
223
|
+
|
|
224
|
+
claw-hwp
|
|
225
|
+
https://github.com/DoHyun468/claw-hwp
|
|
226
|
+
|
|
227
|
+
Copyright (c) 2026 DoHyun468
|
|
228
|
+
Licensed under the MIT License
|
|
229
|
+
|
|
230
|
+
Used in:
|
|
231
|
+
- src/hwpx/chart-gen.ts — OOXML chartSpace 조립(buildChartSpace)·차트 타입 20종
|
|
232
|
+
테이블·계열/축/색 XML 생성을 hwpx-edit.js에서 TS로 이식 (한컴독스 GT 검증 구현)
|
|
233
|
+
- src/form/seal.ts — 도장 부유 배치의 폰트 메트릭 위치 산정(전각/반각 em 폭,
|
|
234
|
+
정렬 이동 보정)과 부유 개체 속성 규칙(treatAsChar=0 + flowWithText=0 +
|
|
235
|
+
allowOverlap=1)을 cell-patch.js placeSealInPlace에서 이식
|
|
236
|
+
- src/form/match.ts — secure-fill 포맷엔진과 require_occurrence 규칙 이식
|
|
237
|
+
- src/validate.ts — validate.py 의 실측 검사셋 이식
|
|
238
|
+
|
|
239
|
+
라이선스 전문: THIRD_PARTY/claw-hwp.LICENSE
|
|
240
|
+
|
|
241
|
+
You may obtain a copy of the MIT License at:
|
|
242
|
+
https://opensource.org/licenses/MIT
|
|
243
|
+
|
|
244
|
+
================================================================================
|
|
245
|
+
|
|
246
|
+
hwp-auto-docfit
|
|
247
|
+
https://github.com/haijun93/hwp-auto-docfit
|
|
248
|
+
|
|
249
|
+
Copyright (c) 2026 haijun93 (마포구청 공혁준)
|
|
250
|
+
Licensed under the MIT License
|
|
251
|
+
|
|
252
|
+
Used in:
|
|
253
|
+
- src/hwpx/gongmun-lint.ts — 기간 대시·요일·"끝."/붙임 2타 규칙 착안, 공공언어 쉬운 말·맞춤법
|
|
254
|
+
낱말표와 조사 경계식 (document_rules.py·writing_aids.py·korean_proofread.py)
|
|
255
|
+
- src/hwpx/paste-clean.ts — 생성형 AI 붙여넣기 흔적(보이지 않는 글자·† 인용 표시·이스케이프된 굵게) 정리 규칙 착안 (pasted_text.py)
|
|
256
|
+
- src/hwpx/gongmun-typo.ts — 열거 뒤 '등'·'낱말 숫자,' 열거 묶음 빈칸 규칙 착안
|
|
257
|
+
- src/hwpx/number-lint.ts — 본문 수치 ↔ 표 수치 대조 범위·임계값 (number_check.py)
|
|
258
|
+
- src/hwpx/level-styles.ts — 단계별 대표 서식 투표 임계값과 편차 검수 (style_unify.py·document_review.py)
|
|
259
|
+
- src/roundtrip/integrity.ts — 패치 결과 다층 무결성 검사 착안 (fidelity/verify.py)
|
|
260
|
+
|
|
261
|
+
Modifications:
|
|
262
|
+
- TypeScript 재구현(규칙·임계값은 kordoc 코퍼스로 다시 확인), 한/글 COM 의존 없음
|
|
263
|
+
|
|
264
|
+
라이선스 전문: THIRD_PARTY/hwp-auto-docfit.LICENSE
|
|
265
|
+
|
|
266
|
+
You may obtain a copy of the MIT License at:
|
|
267
|
+
https://opensource.org/licenses/MIT
|
|
268
|
+
|
|
269
|
+
================================================================================
|
|
270
|
+
|
|
271
|
+
korean-report-hwpx
|
|
272
|
+
https://github.com/UpstageAI/korean-report-hwpx
|
|
273
|
+
|
|
274
|
+
Copyright (c) 2026 Upstage (작성 Mia, 윤승미)
|
|
275
|
+
Licensed under the MIT License
|
|
276
|
+
|
|
277
|
+
Used in:
|
|
278
|
+
- src/hwpx/agency-styles.ts — 중앙행정기관별 서식 실측값(정책브리핑 보도자료 2,670건 집계: rules/·rules_report/·
|
|
279
|
+
rules_report/_참고머리.json)을 scripts/build-agency-styles.mjs 로 옮긴 데이터. 계층값 보정 규칙(engine/compose.py·report.py)도 같다
|
|
280
|
+
- src/hwpx/gen-docframe.ts — 보도자료 담당 표 6칸 꼴과 칸 폭 비율 (engine/compose.py contact)
|
|
281
|
+
|
|
282
|
+
Modifications:
|
|
283
|
+
- 원천 JSON 을 그대로 싣지 않고 kordoc 이 쓰는 값(단계 글꼴·크기·2단계 부호·표 머리·라벨 칸 색·본문 방식)만 뽑았다.
|
|
284
|
+
연한 라벨 칸 바탕의 글자색은 검정으로 정했다(원천 기본은 흰색). 생성 엔진은 kordoc 자체 구현
|
|
285
|
+
|
|
286
|
+
라이선스 전문: THIRD_PARTY/korean-report-hwpx.LICENSE
|
|
287
|
+
|
|
288
|
+
You may obtain a copy of the MIT License at:
|
|
289
|
+
https://opensource.org/licenses/MIT
|
|
290
|
+
|
|
291
|
+
================================================================================
|
|
292
|
+
|
|
293
|
+
zxing-cpp (zxing-wasm 으로 배포)
|
|
294
|
+
https://github.com/zxing-cpp/zxing-cpp
|
|
295
|
+
https://github.com/Sec-ant/zxing-wasm
|
|
296
|
+
|
|
297
|
+
Copyright 2016 Nu-book Inc. and ZXing authors (zxing-cpp) · Copyright (c) 2023 Ze-Zheng Wu (zxing-wasm)
|
|
298
|
+
Licensed under the Apache License, Version 2.0 (zxing-cpp) · MIT License (zxing-wasm)
|
|
299
|
+
|
|
300
|
+
Used in:
|
|
301
|
+
- src/qr.ts — 그림 속 QR 코드 읽기(`qrCodes: true`). optional dependency `zxing-wasm` 을 켰을 때만 동적
|
|
302
|
+
import 로 불러오고, 패키지 안 wasm(zxing-wasm/reader/zxing_reader.wasm)을 넘겨 네트워크에 접근하지 않는다
|
|
303
|
+
|
|
304
|
+
Modifications:
|
|
305
|
+
- 없음(코드를 싣지 않고 런타임 의존성으로만 쓴다)
|
|
306
|
+
|
|
307
|
+
라이선스 전문: THIRD_PARTY/apache-2.0.LICENSE
|
|
308
|
+
|
|
309
|
+
================================================================================
|
|
310
|
+
|
|
311
|
+
libheif · libde265 (libheif-js 로 배포)
|
|
312
|
+
https://github.com/strukturag/libheif
|
|
313
|
+
https://github.com/strukturag/libde265
|
|
314
|
+
https://github.com/catdad-experiments/libheif-js
|
|
315
|
+
|
|
316
|
+
Copyright (c) struktur AG (libheif·libde265) · Copyright (c) Kiril Vatev (libheif-js)
|
|
317
|
+
Licensed under the GNU Lesser General Public License v3.0 (libheif·libde265·libheif-js)
|
|
318
|
+
|
|
319
|
+
Used in:
|
|
320
|
+
- src/image/heic.ts — HEIC·HEIF 이미지 입력. 사용자가 `libheif-js` 를 설치했을 때만 동적 import 한다(optional peer dependency,
|
|
321
|
+
kordoc 패키지에 포함하지도, 함께 설치하지도 않는다 — HEVC 는 특허가 걸린 코덱이라 필요한 사용자가 직접 설치한다)
|
|
322
|
+
|
|
323
|
+
Modifications:
|
|
324
|
+
- 없음(코드를 싣지 않고 런타임 의존성으로만 쓴다)
|
|
325
|
+
|
|
326
|
+
You may obtain a copy of the Apache License at:
|
|
327
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
328
|
+
|
|
329
|
+
================================================================================
|
|
330
|
+
|
|
331
|
+
quick-xml · memchr (rust/xml-flat 의 wasm 으로 배포)
|
|
332
|
+
https://github.com/tafia/quick-xml
|
|
333
|
+
https://github.com/BurntSushi/memchr
|
|
334
|
+
|
|
335
|
+
Copyright (c) 2016 Johann Tuffe (quick-xml) · Copyright (c) 2015 Andrew Gallant (memchr)
|
|
336
|
+
Licensed under the MIT License (quick-xml) · Unlicense OR MIT License (memchr — MIT 를 고른다)
|
|
337
|
+
|
|
338
|
+
Used in:
|
|
339
|
+
- src/xml/xml-flat-wasm.ts — rust/xml-flat(quick-xml 0.38 로 XML 을 읽는 Rust 코드)을 wasm32 로 빌드해 base64 로 실은
|
|
340
|
+
생성 파일. src/xml/dom.ts 가 이 wasm 으로 XML 을 읽는다. Rust 표준 라이브러리(core·alloc, MIT OR Apache-2.0)도
|
|
341
|
+
함께 컴파일된다
|
|
342
|
+
|
|
343
|
+
Modifications:
|
|
344
|
+
- 없음(crates.io 배포본을 그대로 컴파일한다. 버전은 rust/xml-flat/Cargo.lock)
|
|
345
|
+
|
|
346
|
+
라이선스 전문: THIRD_PARTY/quick-xml.LICENSE · THIRD_PARTY/memchr.LICENSE
|
|
347
|
+
|
|
348
|
+
You may obtain a copy of the MIT License at:
|
|
349
|
+
https://opensource.org/licenses/MIT
|
|
350
|
+
|
|
351
|
+
================================================================================
|
|
352
|
+
|
|
353
|
+
schift-ko-pii-ax-v1 — Korean Person-Name and Address Tagger (optional)
|
|
354
|
+
https://huggingface.co/schift-io/schift-ko-pii-ax-v1
|
|
355
|
+
|
|
356
|
+
Copyright Schift Inc.
|
|
357
|
+
Licensed under the Schift License v2.0 (Apache License 2.0 base with a revenue threshold: an entity whose annual
|
|
358
|
+
gross revenue exceeded USD 10,000,000 in its most recently completed fiscal year needs a commercial license for
|
|
359
|
+
revenue-generating use; research, evaluation and non-profit use are always permitted). Fine-tuned from
|
|
360
|
+
skt/A.X-Encoder-base (Apache License 2.0); the tokenizer files are copied unchanged from that repository.
|
|
361
|
+
|
|
362
|
+
Model weights (ONNX int8 · 4-bit, tokenizer.json — downloaded at runtime only when the user turns the model on
|
|
363
|
+
(`redact --model`, `use_model`, `loadPiiModel()`), pinned revision with SHA-256 verification, not redistributed
|
|
364
|
+
with this package).
|
|
365
|
+
|
|
366
|
+
Used in:
|
|
367
|
+
- src/redact-model.ts — model specs, WordPiece tokenizer over tokenizer.json (original TypeScript implementation
|
|
368
|
+
following the HuggingFace `tokenizers` WordPiece/BertPreTokenizer behaviour), 512-token windowing and BIOES span
|
|
369
|
+
decoding
|
|
370
|
+
- tests/fixtures/pii-wordpiece-parity.json — a 61-piece synthetic vocabulary with ids/offsets recorded from Python
|
|
371
|
+
`tokenizers` 0.22.2 (no model data)
|
|
372
|
+
|
|
373
|
+
Modifications:
|
|
374
|
+
- 없음(가중치를 싣지 않고 켤 때만 받는다)
|
|
375
|
+
|
|
376
|
+
License text: https://huggingface.co/schift-io/schift-ko-pii-ax-v1/blob/main/LICENSE
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "{}"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright {yyyy} {name of copyright owner}
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 DoHyun468
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
|
13
|
+
all copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
+
THE SOFTWARE.
|