### Install riordino from source Source: https://github.com/ale-grassi/riordino/blob/main/README.md Clones the repository, creates and activates a virtual environment, and installs the package. Run from a terminal in the desired parent directory. ```bash git clone https://github.com/YOUR_USERNAME/riordino.git cd riordino python -m venv .venv source .venv/bin/activate pip install . ``` -------------------------------- ### Install development dependencies Source: https://github.com/ale-grassi/riordino/blob/main/README.md Installs the package in editable mode with development dependencies (ruff, mypy, pytest). ```bash pip install -e '.[dev]' # installs ruff, mypy, pytest ``` -------------------------------- ### Install Tesseract language data packages Source: https://github.com/ale-grassi/riordino/blob/main/README.md Install language data packages for each language you plan to use. riordino checks for these at startup. ```bash # Arch Linux (example: German, French, Italian, Polish) sudo pacman -S tesseract-data-deu tesseract-data-fra tesseract-data-ita tesseract-data-pol ``` ```bash # Ubuntu / Debian sudo apt install tesseract-ocr-deu tesseract-ocr-fra tesseract-ocr-ita tesseract-ocr-pol ``` -------------------------------- ### Install Tesseract with OSD data Source: https://github.com/ale-grassi/riordino/blob/main/README.md Install Tesseract OCR with OSD data on Arch Linux, Ubuntu/Debian, or macOS. Required before running riordino. ```bash # Arch Linux sudo pacman -S tesseract tesseract-data-osd ``` ```bash # Ubuntu / Debian sudo apt install tesseract-ocr tesseract-ocr-osd ``` ```bash # macOS brew install tesseract ``` -------------------------------- ### Build riordino Docker image Source: https://github.com/ale-grassi/riordino/blob/main/README.md Builds the Docker image. The second command installs additional language packs at build time using the `LANGS` build argument. ```bash docker build -t riordino . # Install additional language packs at build time: docker build -t riordino --build-arg LANGS="deu fra ita" . ``` -------------------------------- ### Create .env with GOOGLE_API_KEY and RIORDINO_LANGUAGES Source: https://github.com/ale-grassi/riordino/blob/main/README.md Create a `.env` file in the project root. `RIORDINO_LANGUAGES` sets the default for `--language`; if omitted, defaults to `en`. ```bash GOOGLE_API_KEY=your_api_key_here RIORDINO_LANGUAGES=en,de,fr,it,pl ``` -------------------------------- ### Run riordino Docker container Source: https://github.com/ale-grassi/riordino/blob/main/README.md Runs the riordino container, passing the `GOOGLE_API_KEY` environment variable and mounting the current directory to `/data`. Processes `/data/scan.pdf` and writes output to `/data/output/`. ```bash docker run --rm \ -e GOOGLE_API_KEY \ -v "$PWD":/data \ riordino /data/scan.pdf -o /data/output/ ``` -------------------------------- ### Process PDFs with riordino.py Source: https://github.com/ale-grassi/riordino/blob/main/README.md Processes one or more scanned PDFs. Multiple PDFs are merged into one bulk for analysis. Output files are written to the same directory as the first input file. ```bash # Single PDF python riordino.py scan.pdf # Multiple PDFs (merged into one bulk for analysis) python riordino.py scan1.pdf scan2.pdf scan3.pdf ```