doclang
توضیحات
DocLang reference toolkit
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | doclang-0.9.0 |
| نام | doclang |
| نسخه کتابخانه | 0.9.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | DocLang Project |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/doclang/ |
| مجوز | - |
<p align="center">
<a href="https://github.com/doclang-project/doclang">
<img loading="lazy" alt="DocLang" src="https://github.com/doclang-project/doclang/raw/main/resources/logo.png" width="30%"/>
</a>
</p>
# DocLang
[](https://pypi.org/project/doclang/)

[](https://github.com/astral-sh/uv)
[](https://github.com/astral-sh/ruff)
[](https://mypy-lang.org/)
[](https://github.com/pre-commit/pre-commit)
[](https://opensource.org/licenses/Apache-2.0)
**[DocLang](https://www.doclang.ai/) is the AI-native markup format for unstructured content** — including documents, images, and more. It maps cleanly to LLM tokens while preserving structure, semantics, layout, and geometry in a single, unambiguous representation.
This repository is the home of the normative specification and the reference toolkit for DocLang. If you build with LLMs and VLMs on real-world content, this is where the standard lives.
For additional background information see [MOTIVATION.md](https://github.com/doclang-project/doclang/blob/main/MOTIVATION.md).
## Specification
The source of the specification is available in [spec.md](https://github.com/doclang-project/doclang/blob/main/spec.md)
and exports to different formats can be found in the [exports/](https://github.com/doclang-project/doclang/tree/main/exports)
directory.
In case of discrepancies, the authoritative version of the specification is the original Markdown document.
## Reference Toolkit
The commands below illustrate basic scenarios. For advanced installation and usage options
(minimal install, platform notes, custom Schematron backends, Python API), see the
[toolkit README](https://github.com/doclang-project/doclang/blob/main/doclang/README.md).
### Installation
```bash
pip install "doclang[schematron-saxon]"
```
### Validation
```bash
doclang validate -n my_document.dclg
```
### Packaging
```bash
doclang pack my_document.dclg
```
## Citation
If you use DocLang in academic or technical work, please cite the specification:
```bibtex
@misc{doclang_2026,
title = {DocLang: Universal AI Document Format},
author = {{DocLang Project}},
year = {2026},
version = {main},
howpublished = {\url{https://github.com/doclang-project/doclang}},
}
```
## Development
To work on this repository — setup, tests, reference generation, releases — see [CONTRIBUTING.md](https://github.com/doclang-project/doclang/blob/main/CONTRIBUTING.md).
## We ❤️ Open Source AI
DocLang is developed in the open and supported by the [LF AI & Data Foundation](https://lfaidata.foundation/projects/). Learn more about the project at [doclang-project](https://github.com/doclang-project).
## Acknowledgements
The following people have contributed to the DocLang specification.
| Name | Company |
|------|---------|
| Peter Staar | IBM |
| Panos Vagenas | IBM |
| Maksym Lysak | IBM |
| Nikolaos Livathinos | IBM |
| Christoph Auer | IBM |
| Michele Dolfi | IBM |
| Said Gürbüz | IBM |
| Santosh Borse | IBM |
| Yousaf Shah | IBM |
| Maroun Touma | IBM |
| Christopher Giblin | IBM |
| Marlene Wolfgruber | ABBYY |
| Maxime Vermeir | ABBYY |
| Morgan Logue | ABBYY |
| Andrew Pery | ABBYY |
| Jehlum Vitasta Pandit | RedHat |
| Ali Maredia | RedHat |
| Micaela Kaplan | HumanSignal |
| Ryan Chesler | NVIDIA |
| Riccardo Maggioni | Forgis |
## License
DocLang is licensed under the Apache License 2.0. See [LICENSE](https://github.com/doclang-project/doclang/blob/main/LICENSE) for details.
نیازمندی
| مقدار | نام |
|---|---|
| - | lxml>=4.8.0 |
| - | typer>=0.15.1 |
| xtr | saxonche>=12.9.0; |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.10 | Python |
نحوه نصب
نصب پکیج whl doclang-0.9.0:
pip install doclang.whl
نصب پکیج tar.gz doclang-0.9.0:
pip install doclang.tar.gz