- TypeScript 64.3%
- CSS 32.9%
- JavaScript 2.8%
| fonts | ||
| images | ||
| src | ||
| texts | ||
| .gitignore | ||
| bun.lock | ||
| index.ts | ||
| package.json | ||
| README.md | ||
| tsconfig.json | ||
Fasciculus Geomanticus
To install dependencies:
bun install
Build the static reader:
bun run build-all
This writes the complete static site to dist/. Upload dist/ to Netlify or any other static host.
Run the local development server:
bun run dev
The dev server rebuilds when files in texts/, images/, or fonts/ change and live-reloads the browser. It serves the site at http://localhost:3000 by default.
Generate the print PDF:
bun run build-pdf
This writes dist/fasciculus-geomanticus.pdf. PDF generation uses Playwright Chromium from the project dependencies, so it does not require a system Chrome install. On a new machine, run bun install first so Playwright can install its Chromium binary.
Page Files
Scans live in images/ as page-001.jpg, page-002.jpg, and so on.
Translations live in texts/ with matching names such as page-005.md. Pages without a matching Markdown file still render the scan and leave the translation column blank.
The optional texts/cover.md file becomes the first web page and the first PDF page.
OCR
> sudo apt install tesseract-ocr
> tesseract images/page-007.jpg - | wl-copy