Ebook reader¶
MiningCat includes a reader for your books. Words are coloured by status (new, learning), and a click on a word looks it up in your dictionaries to make an Anki card (see Dictionaries & Anki cards). The text is plain text in a web page, so Yomitan works on it too if you prefer it.
The reader opens at http://127.0.0.1:5050/reader/. It's also reachable from the Reader link at the top of the converter page (make gui).
Library¶
Click Add books or drop files on the page. Supported formats:

| Format | Notes |
|---|---|
| EPUB | Chapters, table of contents, images, furigana (ruby), notes and cross references. DRM-protected files can't be opened. |
| TXT | UTF-8, UTF-16, Big5, GB18030, Shift-JIS and EUC-KR are detected. Chapters are found from headings like 第1章, Chapter 1, 제1장. |
| HTML, Markdown | Read as a single chapter. |
Books are copied into the library/ folder of the project, with their reading progress. Removing a book from the library deletes this copy, not your original file.
Folders¶
Sort books, comics and images into folders, and folders into folders: New folder creates one in the folder you're in. Drag a cover (or a folder) onto a folder to put it in; to take it out, drag it onto a folder of the path above the books (Library / …). On a touch screen, use the folder button on the cover instead. What you import (or paste) while a folder is open goes into it. Deleting a folder doesn't delete what it holds: it goes up one level. Folders belong to the language you study.
The library shows the last book read first; choose Title above the covers to sort by title instead (chapter 2 before chapter 10), and click the arrow next to it to reverse the order. Folders come first, by name.
To import a whole folder of your computer, drop it in the library or use Add a folder: it becomes a folder of the library, with its books, comics and images, and its folders inside (other files are left out). A folder that holds only images (a manga chapter scanned) becomes an album instead, named after it, its pages in the order of their names (2.jpg before 10.jpg).
Comics and manga¶
The library also takes comics and manga: drop their archive (or use + Add books) (.cbz, .zip, and .cbr, .cb7, .cbt when your system's bsdtar reads them, as on macOS). A folder of images? Drop it, or use Add a folder: it becomes an album (see below).
A PDF is taken too, as a document read like a comic: each page is turned into a picture, at the resolution of its scans. A scanned book or manga has its text read by OCR; a PDF with selectable text (exported from a word processor or LaTeX) gives its own text, exact and ready at once, its formulas and layout kept on the page. Read these pages again reads such a page by OCR anyway.
A single image (.png, .jpg, .webp, .gif, .bmp, .tiff, .avif, .jxl) is taken too: a screenshot, a photo of a sign or a page. It opens like a comic of one page, its text read by OCR. No need to save a picture first: copy it (or take a screenshot to the clipboard) and paste it in the library with Ctrl+V (⌘V).
Drag an image onto another image to put them together: the image dragged becomes the next page of an album, which you read like a comic. Drag more images onto the album to add pages.
The text of each page is read by OCR the first time the page is shown (and the next pages while you read), then kept. On macOS it's Apple Live Text, which reads vertical text; elsewhere EasyOCR, horizontal text only. The lines read are grouped into speech bubbles and drawn over the page, where they were read.
- Click a word to look it up. The sentence around it (cut at 。!? and . ! ?) is the card's sentence, the one lit when the mouse is over it, and the page its picture (sentence audio: the voice of the card creator).
- A sentence split across bubbles (or paragraphs): select them with the ⊕ at the corner of each bubble (shown on hover), on this page or the next ones, then click a word in one of them. The card's sentence is then the text of all of them, one after the other.
Esc(or Clear, at the bottom) clears the selection; making a card does too. - Text (
T, or 文): shown on hover (default), outlined, or always shown. - Pages: one, two (side by side), or automatic (two when the window is wide); the cover can stand alone so that facing pages match the printed book. A double page scanned as one image always stands alone.
- Reading direction: right to left for Japanese and Chinese, left to right otherwise; change it per comic in Aa.
- Characters of the text (Mandarin): Traditional or Simplified, for the OCR.
- Read these pages again: when the text read is wrong (after changing the script, for example).
Keys: ← → turn the page in the reading direction, Space / Shift+Space next / previous, Home End, F fullscreen. Clicking the page outside the text, or scrolling, turns it too.
Zoom: pinch (trackpad or touch screen), Ctrl/⌘ + the wheel, + - (or the 🔍 buttons), 0 to fit the screen again. Zoomed in, the wheel scrolls the page and dragging moves it; turning the page shows the next one from its top, zoom kept.
Limits: the OCR reads text over busy backgrounds or sound effects poorly.
Reading¶

| Action | How |
|---|---|
| Turn pages | ← →, Space, Page Up/Down, the mouse wheel, a click in the side margins, or a swipe |
| Contents | T or ☰ |
| Recommended sentences | R or i+1 (see comprehension and recommended sentences) |
| Settings | S or Aa |
| Back to the library | Esc or ← |
In vertical text the book reads from right to left, so ← goes to the next page.

Clicks on the text itself don't turn pages: they look words up (this can be changed in the settings).
Settings¶

Per book:
- Text direction: automatic, horizontal or vertical (縦書き). Automatic uses vertical text for Japanese and Chinese EPUBs laid out from right to left, and horizontal text otherwise.
- Characters (Mandarin only): Traditional or Simplified, detected from the book's metadata and checked against its text. It picks the right fonts.
The library only shows the books of the language you study. A Chinese book imported while you study Cantonese or Taigi is filed under that language (Chinese text alone can't tell them apart); a book clearly in another language (e.g. Japanese while you study Mandarin) goes to that language's library.
For all books: font size, line spacing, margins, serif or sans-serif font, theme (light, sepia, dark, or following your system), showing or hiding furigana, how to look up words, and word colours.
Audio of a converted book¶
When you convert a book with its audiobook (or generate its audio with a voice), MiningCat can bring the audio to the reader:
- after the conversion, click Read with audio in the Done dialog: the book opens in the reader, with its audio;
- or, for a book already in the library, open Aa › Audio › Link the last conversion's audio (the conversion's files must still be in
output/).
The audio and subtitles are copied next to the book in library/, so you can clear output/ or convert another book afterwards.
Then, click a word: ▶ Sentence in the popup plays its sentence, and the card creator gets the sentence's audio by itself (Sentence audio).
The sentence is found in the subtitles by its text, so it works even when the reader's chapters don't match the converted ones. With subtitles transcribed by Whisper (Generate subtitles mode), the transcription may differ a little from the book: the closest subtitle is used, and a sentence too different isn't found.
Progress¶
Your position is saved automatically, as the exact character you're reading. It's restored when you open the book again, even after changing the font size, the window size or the text direction.