Skip to content

RoTour/RecipeBookTranslator

Repository files navigation

recipe-book-translator

This project helps translating recipe books from PDF files into different languages and format (.md) using OCR and translation services (OpenRouter).

To install dependencies:

bun install

Steps:

  1. Setup your OpenRouter API key in the environment variable OPENROUTER_API_KEY.
  2. Put your PDF file into the books folder.
  3. Run the extraction script to extract text from the PDF using OCR:
bun run extract --input ./books/MyCookbook.pdf
  1. Run the translation script to translate the extracted text and save it as a new PDF:
bun run translate --input "output/MyCookbook" --output ./translations/MyCook

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors