doclang-ts
Copyright 2026 doclang-ts contributors

This product includes software developed for the DocLang specification project.

The files in `schemas/` (doclang.xsd, doclang.sch) are copied verbatim from the
official DocLang specification repository:

    https://github.com/doclang-project/doclang  (release v0.6.0)
    Licensed under the Apache License, Version 2.0.

These artifacts are redistributed here under the same Apache-2.0 license for
reference, differential testing, and optional external validation backends.

----------------------------------------------------------------------

This product also contains code ported/adapted to TypeScript from third-party
projects:

  - Docling (MIT, Copyright (c) 2024 International Business Machines) — portions
    of the PDF layout handling in `@doclith/pdf`.
  - DocLang reference implementation (Apache-2.0) — portions of the validation
    rules (`@doclith/validator`) and CLI semantics (`@doclith/cli`), modified.

Full third-party license texts and attributions are in THIRD-PARTY-NOTICES.md.

----------------------------------------------------------------------

Optional PDF layout understanding (`@doclith/pdf`, opt-in) downloads at runtime
the document-layout detection model:

    docling-layout-heron (RT-DETRv2), INT8 ONNX export
    https://huggingface.co/stefanj0/docling-layout-heron-int8-onnx
    base model: https://huggingface.co/docling-project/docling-layout-heron-onnx
    Licensed under the Apache License, Version 2.0.

The model weights are NOT redistributed in this package; they are fetched from
Hugging Face into a local cache on first use (SHA-256 pinned).
