Semantic PDF-to-Markdown engine for Arabic and bilingual texts with local routing and repair
Project description
versed
Local PDF-to-Markdown tooling for Arabic and bilingual texts.
It repairs broken extraction, decodes QCF Quran fonts, classifies pages, and renders semantic Markdown from local PDFs.
Install
pip install versed-pdf
pip install versed-pdf[pdf]
pip install versed-pdf[pdf,ocr]
Quick start
from versed import extract_document
result = extract_document("book.pdf", title="Book")
print(result.markdown)
CLI
versed repair-text "taf߬l"
versed detect book.pdf
versed classify book.pdf
versed extract book.pdf -o book.md
Public modules
versed.repair: Sabon mojibake repair helpersversed.qcf: QCF Quran font decodingversed.classify: local page classification and backend selectionversed.routing: cost-aware routing heuristicsversed.layout: aligned words to semantic blocksversed.markdown: semantic blocks to Markdown/plain textversed.extract: end-to-end local extraction
License
MIT
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
versed_pdf-1.1.0.tar.gz
(2.8 MB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file versed_pdf-1.1.0.tar.gz.
File metadata
- Download URL: versed_pdf-1.1.0.tar.gz
- Upload date:
- Size: 2.8 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5e83b84888603bcd09490d79058a9f55e299d985bf61ec9be96b1619325e927c
|
|
| MD5 |
ce2e93f5c94b3b6ce223121234eeb77b
|
|
| BLAKE2b-256 |
f252d1cb285bebacf87461ef95e97b637a6306e76e36f8419d2450fb019968f5
|
File details
Details for the file versed_pdf-1.1.0-py3-none-any.whl.
File metadata
- Download URL: versed_pdf-1.1.0-py3-none-any.whl
- Upload date:
- Size: 2.9 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e0c219e153ddf498e54ea794961d6b68f4a3ec7f8900131d062da2dce49540bd
|
|
| MD5 |
10d1cac89e22ed06c64dcab145d35b30
|
|
| BLAKE2b-256 |
0855dbed56b4f34293c4e38dd434f77cf15ff461da5b8d4c45a0d0c6e7220217
|