Analysis updated 2026-05-18
Speed up tap-on-word dictionary lookups on a Kindle running KOReader.
Use large StarDict format dictionaries without waiting seconds per lookup.
Pre-build lookup caches ahead of time so the first taps on a dictionary are instant.
Verify that fast lookups match sdcv's original results before relying on them.
| asxelot/fastdict.koplugin | daveshap/rtw2_world_resistance | dmytro-dovg/pid-combinator | |
|---|---|---|---|
| Stars | 1 | 1 | 1 |
| Language | Lua | Lua | Lua |
| Setup difficulty | easy | easy | moderate |
| Complexity | 2/5 | 2/5 | 3/5 |
| Audience | general | general | general |
Figures from each repo's GitHub metadata at analysis time.
Just copy five Lua files into KOReader's plugins folder and restart.
FastDict is a plugin for KOReader, the open source e-reader software many Kindle owners install to replace the stock reading app. Its job is to make tap-on-word dictionary lookups faster. Normally, KOReader looks up definitions by launching a separate program called sdcv every time you tap a word, and that program rereads the entire dictionary file from scratch on each launch. With large dictionaries, such as a 46 megabyte file holding 1.7 million word forms, that rescan can take several seconds, which feels slow on an e-reader. FastDict fixes this by handling exact word lookups itself, inside KOReader's own process, instead of starting a new program each time. It builds small helper files, called cache files, once per dictionary, and then uses those caches to jump straight to the right entry with a fast search method rather than scanning the whole file again. When a dictionary or query type is not supported by this faster method, or if something goes wrong, FastDict automatically falls back to the original sdcv approach, so lookups should never fail, only sometimes run at the older speed. The plugin also tries a few simple English word shape guesses when an exact match is not found, such as turning streets into street or walked into walk, so common inflected words still resolve quickly. It only accepts a guess if it matches a real dictionary entry, so it will not invent answers, though irregular words like went still rely on the slower fallback search. Installing FastDict on a Kindle means copying a handful of Lua files into KOReader's plugins folder and restarting the app. There is also an optional step to pre build the lookup caches right away instead of waiting for the first tap. The project includes a companion Python tool for merging dictionary index files offline, plus test scripts to check that results match the original sdcv output exactly and that the plugin's behavior is correct on a desktop computer before using it on a device.
A KOReader plugin that makes tap-on-word dictionary lookups on Kindles much faster by searching dictionaries in-process instead of restarting a slow helper program each time.
Mainly Lua. The stack also includes Lua, LuaJIT, Python.
No license information is stated in the README.
Setup difficulty is rated easy, with roughly 5min to a first successful run.
Mainly general.
This repo across BitVibe Labs
Verify against the repo before relying on details.