hunsdoc-go
Copyright 2026 chrisryugj
Licensed under the MIT License

hunsdoc-go 는 kordoc(TS/Node, MIT)의 1:1 Go 이식이다. 따라서 kordoc 이 밝힌 제3자
저작물 어트리뷰션을 포팅된 모듈에 한해 승계하며, Go 이식에서 더 이상 쓰지 않는
의존(JSZip·PDF 수식 OCR·내장 ONNX OCR)은 이 목록에서 뺐다. 각 항목의 "Used in" 은
kordoc 의 TS 원본 경로가 아니라 **이 저장소의 Go 경로**다.

This project includes code derived from the following third-party works:

================================================================================

kordoc (원본 TS/Node 구현)
https://github.com/chrisryugj/kordoc

Copyright 2026 chrisryugj
Licensed under the MIT License

파서·생성기·redact·form·roundtrip·render·PDF 로직 전반을 Go 로 이식했다.
마크다운 방출 관례·IR 계약·게이트 채점기는 kordoc 저장소 자산을 그대로 쓴다.

================================================================================

OpenDataLoader PDF (opendataloader-pdf)
https://github.com/opendataloader-project/opendataloader-pdf

Copyright 2025-2026 Hancom, Inc.
Licensed under the Apache License, Version 2.0

Used in:
- internal/pdf/linedetector.go·lineextract.go·linetypes.go — TableBorderBuilder
  algorithm (선 기반 표 감지: 그래픽 명령에서 선을 뽑아 교차로 격자를 세움)
- internal/pdf/clusterdetect.go — ClusterTableConsumer algorithm (텍스트 정렬
  패턴으로 테두리 없는 표를 감지)
- internal/pdf/tablegrid.go·verticalbridge.go·imageregions.go — 격자 조립·세로
  다리 잇기·이미지 영역

Modifications:
- TypeScript 로 1차 재작성(Java/Kotlin → TS)된 것을 다시 Go 로 이식
- pdfjs 아티팩트 호환 계층, 한국 공문서 PDF 특화(글자 간격·칸 글자 병합)

라이선스 전문: THIRD_PARTY/apache-2.0.LICENSE · THIRD_PARTY/opendataloader-pdf.txt

You may obtain a copy of the Apache License at:
http://www.apache.org/licenses/LICENSE-2.0

================================================================================

hml-equation-parser
https://github.com/OpenBapul/hml-equation-parser

Copyright 2018 Open Bapul
Licensed under the Apache License, Version 2.0

Used in:
- internal/hwpx/equation.go — hmlToLatex() (HULK 스타일 HWPX 수식 스크립트 →
  LaTeX) — hulkEqParser.py·hulkReplaceMethod.py 에서 파생

Modifications:
- Python → TS → Go 재이식
- 5패스(frac → rootOf → matrix → bar → brace)를 UTF-16 코드유닛 규율로 재현

See THIRD_PARTY/hml-equation-parser.LICENSE for the full license text.

You may obtain a copy of the Apache License at:
http://www.apache.org/licenses/LICENSE-2.0

================================================================================

cfb (Compound File Binary)
https://github.com/SheetJS/js-cfb

Copyright 2013-present SheetJS LLC
Licensed under the Apache License, Version 2.0

Used in:
- internal/hwp5/cfb.go — CFB.parse·CFB.find·cfb.FileIndex 세 표면의 시맨틱
  (throw 분할·FileIndex 순서)을 HWP 5.x OLE2 컨테이너 파싱용으로 재현

Modifications:
- npm cfb 사용 표면만 Go 로 이식(직접 파서)

You may obtain a copy of the Apache License at:
http://www.apache.org/licenses/LICENSE-2.0

================================================================================

rhwp
https://github.com/edwardkim/rhwp

Copyright edwardkim
Licensed under the MIT License

Used in:
- internal/hwp5/cfb-lenient.go — LenientCfbReader algorithm (손상 CFB 컨테이너용
  FAT/디렉터리/미니스트림 파싱)
- internal/hwp5/crypto.go·pw-crypto.go — 배포용 문서 복호화(AES 키 추출),
  암호 HWP 비밀번호 처리

Modifications:
- Rust → TS → Go 재이식
- 섹터 크기 검증·체인 길이 상한·순환 감지 추가. AES-128 ECB 는 Go 표준
  crypto/aes 블록 암호로 처리(결정론적이라 블록 출력 동일)

You may obtain a copy of the MIT License at:
https://opensource.org/licenses/MIT

================================================================================

claw-hwp
https://github.com/DoHyun468/claw-hwp

Copyright (c) 2026 DoHyun468
Licensed under the MIT License

Used in:
- internal/hwpx/chart-gen.go — OOXML chartSpace 조립(buildChartSpace)·차트 타입
  20종 테이블·계열/축/색 XML 생성 (hwpx-edit.js 이식, 한컴독스 GT 검증 구현)
- internal/form/seal.go — 도장 부유 배치의 폰트 메트릭 위치 산정과 부유 개체
  속성 규칙(treatAsChar=0 + flowWithText=0 + allowOverlap=1)
- internal/form/match.go — secure-fill 포맷엔진과 require_occurrence 규칙
- internal/validate/validate.go — validate.py 의 실측 검사셋

라이선스 전문: THIRD_PARTY/claw-hwp.LICENSE

You may obtain a copy of the MIT License at:
https://opensource.org/licenses/MIT

================================================================================

giraffesyo/pdf (vendored fork)
https://github.com/giraffesyo/pdf

Copyright (c) 2026 Michael McQuade (@giraffesyo)
Licensed under the MIT License

Used in:
- third_party/pdfengine/ — 순수 Go PDF 엔진 포크(`replace` 지시자). pdfjs 의
  두 아티팩트(getTextContent 아이템·getOperatorList fnArray/argsArray) 계약을
  방출하도록 확장했다 — 경로·클립·ExtGState·이미지 방출, /Differences·폰트
  실명 노출, pdfjs opcode 번호 체계 재현.

라이선스 전문: third_party/pdfengine/LICENSE
변경분·알려진 이탈: third_party/pdfengine/FORK.md

================================================================================

다음은 kordoc 이 쓰지만 이 Go 이식에는 **없다**(목록에서 뺐다):

- JSZip (MIT OR GPL-3.0) — Go 는 표준 라이브러리 archive/zip 을 쓴다.
- pdfjs-dist (Apache-2.0) — 런타임 의존이 아니라 **아티팩트 골든 대조용 참조
  오라클**로만 쓰인다(코드를 배포물에 담지 않는다). 골든은 kordoc 덤퍼가
  pdfjs 4.10.38 로 구웠다.
- Pix2Text · PaddleOCR/PP-OCRv5 (수식·내장 ONNX OCR) — 계획 §6 이 범위 밖으로
  못박았다. Go 의 OCR 은 `OcrProvider` 인터페이스로 외부 서브프로세스(pdftoppm/
  mutool + Tesseract)에 위임하며 모델 가중치를 배포하지 않는다.
