Skip to main content

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 helpers
  • versed.qcf: QCF Quran font decoding
  • versed.classify: local page classification and backend selection
  • versed.routing: cost-aware routing heuristics
  • versed.layout: aligned words to semantic blocks
  • versed.markdown: semantic blocks to Markdown/plain text
  • versed.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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

versed_pdf-1.1.0-py3-none-any.whl (2.9 MB view details)

Uploaded Python 3

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

Hashes for versed_pdf-1.1.0.tar.gz
Algorithm Hash digest
SHA256 5e83b84888603bcd09490d79058a9f55e299d985bf61ec9be96b1619325e927c
MD5 ce2e93f5c94b3b6ce223121234eeb77b
BLAKE2b-256 f252d1cb285bebacf87461ef95e97b637a6306e76e36f8419d2450fb019968f5

See more details on using hashes here.

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

Hashes for versed_pdf-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e0c219e153ddf498e54ea794961d6b68f4a3ec7f8900131d062da2dce49540bd
MD5 10d1cac89e22ed06c64dcab145d35b30
BLAKE2b-256 0855dbed56b4f34293c4e38dd434f77cf15ff461da5b8d4c45a0d0c6e7220217

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page