An unified, opinionated web interface to OCR Japanese manga with mokuro and read with Yomitan.
read.mp4
Made as an alternative to the combination of mokuro CLI and Mokuro Reader, mokutan is designed to be simple in both its implementation and daily usage:
- Just the essentials
- Zero JavaScript
- Rely on the filesystem and classic browser features as much as possible
- No dealing with command line after installation, long waiting times and manual importing when you're just trying to read
-
Explore your filesystem directly, mokutan will render any folder containing images as a manga
-
ZIP and CBZ are transparently supported ("folder" will also refer to those)
-
Start new OCR jobs, optionally including next folders or subfolders
-
Pause, cancel, or change the priority of existing OCR jobs in the queue
-
Estimated difficulty calculation for every OCRed folder, takes into account:
- JPDB word frequency
- Word script composition (kanji vs hiragana vs katakana)
- Kanji stroke counts
- Soup factor (multiple all-kanji or all-kana consecutive words)
- Ambiguity caused by homophones close in frequency
- How many times the word has appeared in the manga
- Word category (particle, prefix/suffix, helper verb, etc.)
- Number of words in the sentence
- Number of sentences in the page
- Presence and maturity in Anki decks if connected
-
Take into account words learned in Anki for scores calculation if connected
-
Mark folders as read
-
Sort folders by name, length, difficulty, date read, etc.
-
Start reading while it's still OCRing, refreshes immediately bring new pages
-
Easy navigation: forget fighting with the UI on every page. Set your zoom once if the default isn't right for kanji deciphering, then just scroll down like any other sane web page.
-
When connected to Anki, OCRed words that are part of your decks are highlighted according to their status (red = not learned yet, orange = young, green = mature, black = not in decks). This allows novice learners to read faster and with less frustration by giving hints on words for which more or less recall efforts should be attempted before checking Yomitan.
-
Special logic to split text bubbles more aggressively. Example with the same panels, rendered in Mokuro Reader (left, jumbled text) vs mokutan (right, matches real layout):

Your system needs git, uv, and an up to date browser (since this program makes use of "newish" CSS features). Note that Firefox doesn't support themed scrollbars.
In a terminal:
git clone https://github.com/xrun1/mokutan
cd mokutanThen start with uv run mokutan.
Check uv run mokutan --help for supported options.
To update the program later, do git pull in the cloned repository folder
before running.
On Windows, the program can also be started with .venv\Scripts\mokutan.exe,
which gets created the first time you use the run command above.
Creating a shortcut to that executable in
%appdata%\Microsoft\Windows\Start Menu\Programs\Startup
will start mokutan on login automatically.
Open the URL shown in the terminal when you start the program, by default http://localhost:2323.
Note that loading folders with hundreds of manga for the first time can take some time due to difficulty calculation.
-
If you already have manga OCRed by mokuro before (original folder/archive + .mokuro file), just navigate there with mokutan, it deals with .mokuro files the same way
-
You can directly paste a path after
http://localhost:2323/in the address bar to point mokutan there, your browser should automatically translate special characters (including backslashes to slashes on Windows) -
Hovering on the difficulty scores under folder names reveals some more detailed information
-
If you see a page you want to get another look at later while reading, middle clicking on the filename box above it will essentially duplicate the current tab with the right scroll position
-
Still can't understand a sentence? Select → Right click → Translate
- Highlighting of words doesn't have access to Yomitan dictionaries, so the way things are parsed can differ with what Yomitan detects. See colors as hints only.
Do so from the Yomitan popup (setup guide)
Control the zoom with ctrl+mouse wheel or ctrl +/-. Images can't get wider than the browser, so if it's not enough, make your window larger.
Bookmarks
Don't sync on the cloud
Or mapped network drives on Windows, or mounted SMB shares on Linux, mokutan can browse those just fine
Leave the tab open
Use browser sync to sync your tabs
.anki-new, .anki-young, .anki-mature {
color: unset !important;
}body {
background: black;
}Here's your personal graph, updated every 24 hours:
(Read more)

