jpirnay/witchhunt-reader
À propos
Witch(hunt) Reader
Autres projetsProgression mesurée des étoiles
- in 24h
- 0
- in 7 days
- +1
- in 15 days
- +6
- in 1 month
- Historique en cours
Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.
README.md
Original
Witch(hunt) Reader
E-reader firmware for the Xteink X3, X4 and X4 Pro, the LilyGo T5S3 Pro, the Murphy M3 and the BOOX Picco, based on crosspoint-reader, a great piece of software by Dave Allie and others. It reads EPUB, TXT, Markdown and XTC books, lays out their CSS properly, and sets text in Latin, Cyrillic, Greek, Hebrew, Arabic, ten Indic scripts, Burmese, Chinese, Japanese and Korean, right to left and top to bottom included.

Screenshots from an Xteink X3. Every script but Latin is set in a Noto font from the Font Manager.
| Device | Chip | Touch | Notes |
|---|---|---|---|
| Xteink X4 | ESP32-C3 | no | software clock |
| Xteink X3 | ESP32-C3 | no | clock chip, motion sensor (tilt page turns, auto-rotate) |
| Xteink X4 Pro | ESP32-S3 | yes | PSRAM, clock chip, reading light |
| LilyGo T5S3 Pro | ESP32-S3 | yes | PSRAM, clock chip, reading light |
| Murphy M3 | ESP32-S3 | yes | PSRAM, clock chip, reading light |
| BOOX Picco | ESP32-S3 | yes | PSRAM, clock chip, reading light, slide switch, motion sensor (tilt page turns, auto-rotate) |
Experimental: every release also has builds for three boards nobody on this project has run Witch Reader on. They come from the board descriptions in the shared SDK, are compiled with every change, and are offered because people asked for them. Expect rough edges: a build may not start, sleep or wake properly. Back up the whole flash before the first install, and tell us what works and what does not. What is known to be missing: Experimental boards.
| Device | Chip | Touch | Release files |
|---|---|---|---|
| Xteink X4 Classic | ESP32-S3 | no | firmware-x4c.bin, full-install-x4c.bin |
| Seeed reTerminal Sticky | ESP32-S3 | yes | firmware-sticky.bin, full-install-sticky.bin |
| EEGO Reader A4 | ESP32-S3 | yes | firmware-eego_a4.bin, full-install-eego_a4.bin |
Everything runs on the X3 and X4 as well. The two ESP32-C3 boards have no PSRAM, and still get the whole reader: TrueType and OpenType fonts, every script below with OpenType shaping and bidi, vertical Chinese, Japanese and Korean, the hyphenation packs and Publisher Fonts. What they lack is mostly hardware: touch, a reading light, USB drive mode (USB Transfer over the cable takes its place) and, on the X4, a clock chip; KOReader sync runs when a book closes rather than in the background. The full list: ESP32-C3 boards.
Want your device supported? Consider donating one: support for a board needs the board on the desk. Open an issue to arrange it.
Installation
Flashing is done from the browser — no toolchain or driver install needed. Use a Chromium-based browser (Chrome, Edge, Opera) or a recent Firefox version (>151); older versions of Firefox and Safari do not support WebSerial.
- Open the Witch Reader flasher. It offers the latest release, the four before it to go back to and, under Show pre-releases, any newer pre-release.
- Pick your device, connect it over USB and press Connect. The page reads the device's partition table and says whether it is Witch Reader's. If it is not, it says how much room the table leaves Witch Reader. Back up the whole flash saves everything on the device as a file first, each piece checked against the chip; written back with Custom file, it returns the device to what it holds now. Do it before the first install over another firmware.
- Choose what to write:
- Full install (recommended): boot loader, partition table and firmware. Use it the first time, coming from the original firmware or CrossPoint, and whenever the page does not find Witch Reader's partition table. It is the fix when an X3 or X4 shows Emergency mode: the partition table it kept from its previous firmware has too little room for fonts, interface language and hyphenation, and the page says how much. It also gives an X3 or X4 the faster-waking boot loader. It replaces the original firmware for good: keep a backup if you may want it back.
- Update only: just the firmware, on a device that already has Witch Reader's partition table, or on a BOOX Picco that keeps Onyx's (see below).
- Leave Install the web interface over USB afterwards on, so the web pages work without Wi-Fi setup.
Everything on the SD card stays: books, progress, settings, Wi-Fi networks, fonts. The page says what a full install resets in the device's own memory (the clock's last time, for one).
The release page also lists full-install-<device>.bin for other flashing tools (written from 0x0) and the
firmware-only firmware*.bin. Updating without a computer still works: Check for Updates over Wi-Fi, or copy the
firmware .bin to the card and use SD Firmware Update (Settings → System). The flasher's Custom file takes a
test build from a pull request.
The CrossPoint flash tools install Witch Reader too: pick your device,
choose Custom .bin and upload the firmware*.bin from the latest release. On an X4 Pro
they write the firmware only and keep the device's partition table, so an X4 Pro that still has its original table
needs the Full install above. The Murphy M3 is not listed there.
BOOX Picco. On its original firmware the Picco shows up as a USB drive with no port for the flasher: hold Power
and Volume Up (+) for more than 10 seconds, and it restarts into Onyx's recovery, which has one. Back up the whole
flash first (the flasher's Back up the whole flash, or esptool read-flash 0 ALL picco-backup.bin): Onyx's
firmware cannot be downloaded anywhere, and that backup is the only way back to it. The Full install gives the
Picco Witch Reader's partition table, with updates over Wi-Fi and from the card, and replaces Onyx's boot loader and
recovery. Update only keeps Onyx's table, boot loader and recovery and writes the firmware into Onyx's app slot
(0xE0000); Witch Reader cannot update itself there, so every later update comes from the flasher's Update only again.
Either way, Onyx's own firmware is replaced.
Seeed reTerminal Sticky (experimental). Its USB port is a serial bridge, which the flasher does not list. Use
esptool: back up first with esptool --chip esp32s3 read-flash 0 ALL sticky-backup.bin, then write
full-install-sticky.bin from the release page with esptool --chip esp32s3 write-flash 0 full-install-sticky.bin.
Updates after that come over Wi-Fi or from the card. USB Drive mode is not offered: the port is not the chip's own
USB.
For everything the reader does and how to use it, see the User Guide. How it compares with CrossPoint, feature by feature: Feature comparison.
Languages and scripts
| Script | Languages (examples) | Layout | Fonts (Font Manager) | Hyphenation |
|---|---|---|---|---|
| Latin, Cyrillic | English, German, French, Spanish, Vietnamese, Russian, Ukrainian, ... | full CSS layout | built in (Serif, Noto Sans), or any TrueType, OpenType or .cpfont |
20 languages; English built in, the others as downloadable packs |
| Greek | Greek | full CSS layout | any TrueType or OpenType font with Greek letters; the built-in reading fonts have none | none yet |
| Hebrew | Hebrew, Yiddish, Ladino | right to left, niqqud, right-to-left page turns | Noto Sans and Serif Hebrew | none |
| Arabic script | Arabic, Persian, Urdu, Pashto, Sindhi, Kurdish | right to left, OpenType joining and marks, the end-of-ayah sign around its number | Noto Naskh Arabic, Noto Sans Arabic | none |
| Indic, ten scripts | Hindi, Marathi, Nepali, Sanskrit, Bengali, Assamese, Punjabi, Gujarati, Odia, Tamil, Telugu, Kannada, Malayalam, Sinhala | OpenType shaping: conjuncts, reph, vowel signs | Noto Sans and Serif per script | 12 languages, between syllables |
| Myanmar | Burmese, Mon, Shan, S'gaw Karen | OpenType shaping, line breaks between syllables | Noto Sans and Serif Myanmar | syllable breaks |
| Chinese, Japanese, Korean | CJK line breaking and punctuation, ruby, emphasis dots, vertical text with tate-chu-yoko | Noto Sans and Serif CJK, per region | not needed |
Shaping is OpenType, done once when a chapter is laid out and identical to HarfBuzz on the shipped fonts; bidi follows
the Unicode algorithm, with the book's dir, <bdi>, <bdo>, unicode-bidi and page direction honoured. A book that
needs a font or a hyphenation pack it does not have offers to download it when it opens. The interface is translated
into 30 languages, among them Hebrew, Arabic and Persian, and the keyboard has English, French, German, Spanish, Russian, Ukrainian, Belarusian, Kazakh,
Hebrew, Arabic and Greek layouts. StarDict dictionaries look words up in horizontal and vertical text.
What this reader does differently
- Speed: pages render fast, the next ones are prepared in the background, and chapters are indexed during reading pauses, so the "Indexing" message shows up less often.
- Layout: floating figures with text wrapped around them, real tables (colspan, images inside), small caps,
strikethrough, superscript and subscript,
line-heightandfont-sizefrom the book, drop caps, GIF, PNG and JPEG images, large-image placeholders, Markdown with headings, tables and code. - Memory: where others run out, Witch Reader still works: on the X3 and X4 a chapter is laid out in an arena lent from the second framebuffer (on the S3 boards, in PSRAM), and hyphenation patterns come from packs on the SD card instead of the firmware image.
- Fonts: the Font Manager downloads TrueType, OpenType and
.cpfontfamilies over Wi-Fi; a book's own fonts can be used (Publisher Fonts); large-print sizes up to 26 pt. - Library: Books, Recent, New and Authors tabs, as file names, details or a cover grid; a Home screen of widgets (the book you read, shortcuts, clock, calendar, your week, weather, pictures) that you arrange in the web interface, or a cover carousel; a book information screen; bookmarks you can name, per book and across all books, that stay with their text when the layout changes; reading statistics.
- Sync and network: KOReader sync that lands on the exact page in both directions, OPDS catalogs, Calibre, a web interface with file manager and settings, WebDAV, captive-portal login, weather.
- Reading: reader bars over the page with a Layout sheet that lays the page out again as you change the font, size, spacing or margins; a search through the whole book that finds café when you type cafe.
- Device: a clock on every board, Dark Mode (on a schedule on the boards with a reading light), sleep screens with an information overlay, a transparent picture over the page or the weather forecast, user-defined actions for each button's single, double and long press, touch gestures on the X4 Pro, T5S3, Murphy and Picco.
What this reader doesn't
- Great UI design is not necessarily/obviously not a forte of mine, so if you look for a polished look and feel, I would recommend going e.g. to CrossInk, a great piece of work by uxJulia
- The most memory efficient reader might still be MicroReader by CidVonHighwind
- PDF and MOBI books; Thai, Lao, Khmer and Tibetan; Nastaliq for Urdu and kashida justification for Arabic.
- Indic and Burmese book titles outside the reader draw in the font of the last book read, and are left out when it lacks their script; hyphenation for Greek, Romanian and Kazakh. The full list: Current Limitations.
All of them have their strengths and constraints (as has Witch reader), so they deserve a testrun before you decide which one is right for you
Credits
This firmware stands on the work of others, crosspoint-reader above all; CREDITS.md lists the projects, the people whose code is ported here, the vendored libraries and the fonts. How the fork came to its name: Project history.
Explorer des projets similaires
Chargement…