# Third-party libraries and references

Asterism-owned software is proprietary under the root LICENSE. The licenses below apply only to their respective third-party materials, not the entire application. IBM Plex and Noto OFL texts and all upstream notices remain unchanged.

핵심 문서/편집/조판 엔진은 이 저장소의 Rust 코드이다. rhwp, HanDoc, LibreOffice, ProseMirror, TipTap, Slate, Lexical을 제품 dependency로 사용하지 않는다.

## Direct dependencies

| Library | Role | License |
|---|---|---|
| Tauri, tauri-build, @tauri-apps/api, CLI | Native window, IPC, app packaging | MIT OR Apache-2.0 |
| React, React DOM | Toolbar and canvas component lifecycle | MIT |
| serde, serde_json | Internal typed serialization | MIT OR Apache-2.0 |
| unicode-segmentation | Grapheme boundaries | MIT OR Apache-2.0 |
| unicode-linebreak | Unicode line-breaking primitive | Apache-2.0 |
| rustybuzz | Glyph shaping primitive | MIT |
| ttf-parser | Font parsing and outline extraction | MIT OR Apache-2.0 |
| fontdb | System font discovery and face matching | MIT |
| cfb | Low-level OLE Compound File streams | MIT |
| image | Low-level PNG/JPEG/WebP decoding; Asterism owns object geometry | MIT OR Apache-2.0 |
| base64 | Compact IPC raster resource encoding | MIT OR Apache-2.0 |
| flate2 | Bounded raw DEFLATE decoding and PDF image compression | MIT OR Apache-2.0 |
| zip | ZIP container and compression | MIT |
| roxmltree | XML parser | MIT OR Apache-2.0 |
| pulldown-cmark | CommonMark/GFM syntax primitive; Asterism owns conversion/edit/layout | MIT |
| scraper, ego-tree | HTML5 syntax tree primitive; no browser layout or execution | ISC |
| html5ever | HTML5 tokenization/tree construction (transitive) | MIT OR Apache-2.0 |
| snap | Raw Snappy decompression for research-only Pages inspector | BSD-3-Clause |
| rfd | Native open/save/message dialogs | MIT |
| tiny_http | Development test bridge only | MIT OR Apache-2.0 |
| TypeScript | Frontend compiler/typechecker | Apache-2.0 |
| Vite, Vitest, @vitejs/plugin-react | Build and tests | MIT |
| @playwright/test | Headless integration tests | Apache-2.0 |
| Prettier | Source formatter | MIT |
| @types/react, @types/react-dom, @types/node | Development types | MIT |
| Noto Sans CJK KR Regular | Bundled Korean/Latin/CJK glyphs | SIL Open Font License 1.1 |
| IBM Plex Sans KR 400/500/600/700 | UI only, full WOFF2 container conversions | SIL Open Font License 1.1; IBM copyright and Reserved Font Name Plex preserved |

Font source: [notofonts/noto-cjk](https://github.com/notofonts/noto-cjk/blob/main/Sans/OTF/Korean/NotoSansCJKkr-Regular.otf). The license is bundled at `assets/fonts/OFL.txt`; font is unmodified. PDF visible glyphs are outline forms, with Unicode text mapping.

Locked transitive dependency inventories: [Rust](docs/THIRD_PARTY_RUST.md), [npm](docs/THIRD_PARTY_NPM.md). These include development/build tools and macOS-platform crates. Cargo.lock and pnpm-lock.yaml are authoritative version locks. Other OS dependency inventories should be generated on that target before distribution.

`pnpm run third-party:report` collects upstream LICENSE/NOTICE files into `assets/licenses/third-party-licenses.txt`. The macOS app bundle includes these notices, the project license, and the Noto OFL under `Contents/Resources/licenses`.

## Specification/reference research

- [Microsoft WordprocessingML structure](https://learn.microsoft.com/en-us/office/open-xml/word/how-to-open-and-add-text-to-a-word-processing-document)
- [Microsoft bold property](https://learn.microsoft.com/en-us/dotnet/api/documentformat.openxml.wordprocessing.bold)
- [Hancom HWPX package structure](https://tech.hancom.com/hwpxformat/)
- [Hancom section/paragraph/run and property references](https://tech.hancom.com/python-hwpx-parsing-2/)
- [Hancom official OWPML model](https://github.com/hancom-io/hwpx-owpml-model) (Apache-2.0): font/paragraph/table/cell/picture source definitions consulted for XML element ordering. No source copied into the shipped engine and no runtime linkage.
- [Tauri platform prerequisites](https://v2.tauri.app/start/prerequisites/)
- [rHWP blank HWPX fixture](https://github.com/ic4u2u/rHWP/blob/main/samples/hwpx/blank_hwpx.hwpx): package manifest 경로 비교용으로 `.tools`에서만 조사. fixture 및 source code는 제품에 포함하지 않는다.

No external office program is installed or invoked by the application. Fixture documents are generated by repository tools and carry synthetic Korean test text.

- [Hancom HWP 5.0 revision 1.3 public specification](https://m.hancom.com/support/downloadCenter/hwpOwpml): HWP record semantics independently implemented.
- Public rHWP table/text documents were examined in ignored `.tools` only; redistribution rights for underlying documents were not assumed. No external parser code/runtime engine is included.

- [image-rs decoder limits](https://docs.rs/image/latest/image/struct.Limits.html): strict dimension and best-effort allocation limits plus own pixel/byte bounds.
- [Microsoft DrawingML Blip](https://learn.microsoft.com/en-us/dotnet/api/documentformat.openxml.drawing.blip): independently implemented picture relationship mapping.

- [CommonMark](https://spec.commonmark.org/0.31.2/) and [GFM](https://github.github.com/gfm/) semantic syntax references.
- [Obsidian syntax](https://help.obsidian.md/syntax) consulted for explicit optional wikilinks/callouts; no Obsidian runtime or vault access.
- [Pages research sources and license review](docs/PAGES_RESEARCH.md): MIT framing/schema research, no source copied; independent bounded inspector.

## Alpha 0.4 artwork tooling

Seven original icon PNGs were provided and approved by the user; they are retained verbatim as official master artwork. They are not recreated from external icon packs. The development-only asset converter uses [Pillow](https://python-pillow.github.io/) (HPND license) and [NumPy](https://numpy.org/) (BSD-3-Clause); Python/Pillow/NumPy are not part of the shipped document engine. Generated artwork uses deterministic exterior-white matting, crop/Lanczos resizing/format encoding, with no added artwork. Original opaque masters remain byte-identical; transparent derivatives protect real paper/background/fold interiors. DOCX numbering/hyperlinks use independently written ZIP/XML mappings and existing low-level dependencies.

## Alpha 0.5 dependencies

Added PDF.js (`pdfjs-dist`, Apache-2.0) for PDF raster/text/form widget metadata; pdf-lib (MIT) for low-level PDF objects/save; @pdf-lib/fontkit (MIT) for Unicode font embedding. PDF.js CMaps, standard fonts, WASM codecs and ICC resources carry their distributed Apache/OFL notices under bundled pdf-resources/licenses and `assets/licenses/third-party-licenses.txt`. Existing Noto CJK font is SIL OFL; user-loaded fonts are not redistributed by the repository.

WASM uses Rust's wasm32 target, wasm-bindgen 0.2.129 build glue (MIT/Apache-2.0) and existing CFB/ZIP/XML/font/shaping libraries. Text fontdb native filesystem/fontconfig features are target-gated; no new Office/editor engine. The Hanja seed and fixtures are Asterism-authored materials under the current root proprietary LICENSE; they are not third-party MIT components. Updated generated reports union native and wasm dependency metadata; a transitive dependency listing does not imply every library is linked into every binary. See `docs/THIRD_PARTY_RUST.md` and `docs/THIRD_PARTY_NPM.md`.

Primary references: [GIS token model](https://developers.google.com/identity/oauth2/web/guides/use-token-model), [Drive Picker](https://developers.google.com/workspace/drive/picker/guides/overview), [Drive uploads](https://developers.google.com/workspace/drive/api/guides/manage-uploads), [PDF.js API](https://mozilla.github.io/pdf.js/api/index.html), [pdf-lib API](https://pdf-lib.js.org/docs/api/), [Hancom public specifications](https://shop.hancom.co.kr/support/downloadCenter/hwpOwpml). Official OWPML model pagePr/landscape enums are reference-only; not runtime dependencies.

## Alpha 0.9.2 optional document fonts and chart references

Four unmodified TTF faces from Google Fonts commit
`45e3d5269e4a17d823f6d84470bc084dc5ae46f6` are distributed on demand: IBM Plex
Sans KR, IBM Plex Mono, NanumGothic and NanumMyeongjo (SIL OFL 1.1). Exact source
URLs, file hashes and fsType are in `assets/fonts/document/manifest.json`, with
individual OFL files beside them and in Web/macOS license resources. These fonts
are not owned by the proprietary project license. PDF embedding and redistribution
rights remain separate; user font licensing restrictions still apply.

The independently authored cached DrawingML chart reader uses existing XML/ZIP/CFB
primitives, not another office engine. Public Hancom Chart revision1.2/OWPML and
Microsoft DrawingML structures were consulted; see `docs/HWP_ALPHA092_CHARTS.md`.
The authored PDF regression fixture embeds unmodified OFL Noto/Nanum fonts and
uses pdf-lib/fontkit as development fixture tooling. The fixture is not a Hancom,
ChatGPT or third-party user document.

## Alpha 0.9.5 optional document fonts

Pretendard, SUIT, NanumSquare Neo, NanumBarunGothic, MaruBuri, Noto Serif KR and
D2Coding are unmodified static Regular400 fonts under their original SIL OFL1.1
licenses. They are separate from the QuadraJ proprietary project license. Original
copyright/OFL texts are next to each font and copied into Web/macOS license resources.
The source/version/bytes/SHA-256/fsType manifest is `assets/fonts/document/manifest.json`.
[Full audit, copyright, redistribution/RFN and embedding details](docs/ALPHA_0.9.5_FONTS.md).
Files load on demand into the Rust engine; they are not embedded in startup WASM.
No commercial proprietary fonts or user-imported font files are redistributed.

## Alpha 0.9.7 font additions

STIX Two Math Regular (STIX release v2.13b171) and Gowun Batang Regular/Bold
are unmodified SIL OFL1.1 fonts, separate from the proprietary application license.
Original copyright/RFN/license texts and exact source commits, SHA-256, bytes,
face weights and fsType are in assets/fonts/document/manifest.json and adjacent
*-OFL.txt files. They load on demand; STIX math constants are read by ttf-parser.
No font files are compiled into the startup engine by this addition. Only the
listed faces are supplied; no actual STIX Bold/Italic face is claimed.
