diff --git a/PROJECT.md b/PROJECT.md index 3cad6de..31890e2 100644 --- a/PROJECT.md +++ b/PROJECT.md @@ -739,7 +739,15 @@ and CLI smoke checks have passed locally on Python 3.13 and on GitHub's ## 16. Installation for Users -Installation currently uses a local checkout. With uv installed: +Users can install directly from the public GitHub repository with uv and Git: + +```powershell +uv tool install --python 3.13 "git+https://github.com/Hasko7/matnocr.git" +matnocr doctor +``` + +uv downloads Python 3.13 if needed. A local checkout remains an alternative. +For project development: ```powershell uv sync --locked diff --git a/README.md b/README.md index ec5a68c..3aca53e 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ Fast, offline OCR for scanned PDFs on Windows. Built for Arabic books, with support for the OCR languages installed on your system. No cloud service or GPU required. -**Status:** Development preview. Install from a local checkout today; PyPI +**Status:** Development preview. Install directly from GitHub today; PyPI publishing and packaged Windows releases are planned. ![MatnOCR processing a PDF in Windows Terminal](docs/images/terminal.png) @@ -20,22 +20,26 @@ publishing and packaged Windows releases are planned. ## Installation -Requires Windows with `Windows.Media.Ocr`, Python 3.11 or later, uv, and an OCR -language pack for the text you want to recognize. The full Python version matrix -is still being validated. +Requires Windows with `Windows.Media.Ocr` and an OCR language pack for your text. +Python 3.11–3.14 is tested in CI. -From a local checkout: +Install [uv](https://docs.astral.sh/uv/getting-started/installation/) and +[Git for Windows](https://git-scm.com/downloads/win), then open PowerShell: ```powershell -uv tool install . +uv tool install --python 3.13 "git+https://github.com/Hasko7/matnocr.git" matnocr doctor ``` -For development, use the project environment instead: +uv downloads Python 3.13 if needed. No GitHub account or SSH setup is required. +If `matnocr` is not found, run `uv tool update-shell` and reopen PowerShell. + +Alternatively, clone the repository and install locally: ```powershell -uv sync --locked -uv run matnocr --help +git clone https://github.com/Hasko7/matnocr.git +cd matnocr +uv tool install --python 3.13 . ``` See the [development guide](docs/development.md) for editable installation and @@ -47,6 +51,9 @@ local checks. # Show installed OCR languages matnocr languages +# Install Arabic OCR if missing (Windows requests administrator approval) +matnocr languages install ar-SA + # Recognize an Arabic PDF matnocr book.pdf --lang ar diff --git a/TODO.md b/TODO.md index dfa4617..4b5bf50 100644 --- a/TODO.md +++ b/TODO.md @@ -350,6 +350,7 @@ README enthält: - [x] arabische Buchseite als `docs/images/book_page.png` mit unverändertem OCR-Beispiel ergänzen (Nutzer) - [x] Features - [x] Installation +- [x] kurze GitHub-Installationsanleitung mit Voraussetzungen, lokalem Klonen und geprüftem Python-Status ergänzen - [x] Quick Start - [x] Sprachen - [x] Windows-OCR-Sprachpakete