YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
๐ Book Translator v1 โ by Malemsana
Ever wanted to read Sherlock Holmes or any classic bookโฆ
but the language was so ancient it hurt your brain? ๐ฉ๐
This tool changes that.
Welcome to the Book Translator v1, a powerful tool that rewrites and translates books into simpler, modern, or native-language versions โ all powered by an LLM like Gemini.
โจ Features
- ๐ Translate entire
.epubor.txtbooks - ๐ง Convert Victorian/Old English to simple, readable English
- ๐ Works with multiple languages
- โ๏ธ Modify writing style as well as language (e.g., casual tone, academic tone)
- ๐ฆ Output is saved as a clean
.epubโ ready to read on your favorite e-reader
๐งฐ Requirements
You can run this in Google Colab (recommended) or locally with Python 3.
pip install ebooklib langdetect tqdm
# plus either OpenAI or Gemini API packages:
pip install openai
# or for Gemini:
pip install google-generativeai
๐ How to Use (Colab Recommended)
๐ข Step-by-step (Colab):
- Open
book_translator_colab.ipynb - Upload your
.epubor.pdffile when prompted - Enter:
- Your API key (Gemini or OpenAI)
- Your source style or language (e.g., โVictorian Englishโ)
- Your target style or language (e.g., โSimple Englishโ or โHindiโ)
- Run all the cells โ the notebook:
- Breaks your book into chunks
- Sends each one to the LLM
- Reassembles them into a translated
.epub
- Download and enjoy your upgraded book ๐ค๐ฑ
๐ง Example Prompt
We send prompts like this to the model:
โRewrite the following text into simple, modern English.
Make sure itโs easy to understand, while keeping the original meaning.
Avoid old-fashioned vocabulary.โ
This creates output thatโs smooth and readable โ perfect for younger readers or second-language learners!
๐งช Example Result
Original:
โTo James Mortimer, M.R.C.S., from his friends of the C.C.H.,โ was written on it...
Translated:
It said, โTo James Mortimer, M.R.C.S., from his friends at the C.C.H.โ...
๐ฎ Future Upgrades
- ๐จ Tone options like โchild-friendlyโ, โdetective reportโ, or โchat-styleโ
- ๐ Upload multiple books
- ๐ฃ๏ธ Convert to audio with text-to-speech
- ๐ Web UI version in the works
๐ Author
Created with love by Malemsana ๐งช
This project was born from a desire to actually finish reading Sherlock Holmes without needing a dictionary.
Check out my profile: huggingface.co/Malemsana
โ๏ธ License
MIT โ use it, remix it, improve it. Give old books new life.
โญ If this tool helps you read, learn, or enjoy more books โ give it a star!