Skip to content

About

CoolReader for PocketBook: open-source EPUB and FB2 reader with font and page controls, offline StarDict dictionaries, bookmarks and Wi-Fi updates.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

 
 

Repository files navigation

CoolReader for PocketBook

CoolReader is an open-source EPUB and FB2 reader for PocketBook Linux e-readers, with adjustable fonts and page layouts, bookmarks, offline StarDict dictionaries and Wi-Fi updates. This fork supports compatible firmware on Touch HD 3, Verse, Verse Pro, Era and InkPad 4; see the compatibility and testing details below.

Downloads · Installation · Manual · Release 1.0.8

Release 1.0.8 fixes the crash when opening Settings with Russian localization, completes the current Russian UI catalog, and adds the Verse PB629 profile for firmware U629.6.11.2020. Book info, bookmarks, notes, recent books, contents, Help, shortcuts and tap-zone settings now share the current reader design. Book info uses readable stacked values and preserves special characters.

It retains the offline dictionary downloads, StarDict support, grouped settings, font controls and reading-state improvements from earlier releases.

It provides one shared ARMv7 Linux executable and install ZIP for the five models below. Firmware snapshots used for verification:

Device Firmware tested
Touch HD 3 / PB632 U632.6.11.2001
Verse / PB629 U629.6.11.2020
Verse Pro / PB634 U634.6.10.3425
Era / PB700 U700.6.10.3209
InkPad 4 / PB743G U743g.6.11.1683

Twenty-four ARM regression groups and thirteen software probes on each additional firmware pass; interactive hardware testing and end-to-end device OTA acceptance remain pending. Firmware builds are no longer restricted to this list; unknown models and API levels below 6.10 are rejected. See the device matrix and shared installation guide for qualification limits.

The revised 1.0.4 adopts KOReader-style firmware parsing and API-level admission: model prefixes such as U743g are handled separately from the numeric suffix. The highest known API at or below the firmware version is selected (6.10 or 6.11). Patch/build numbers do not block startup or updates. The executable uses common SDK 6.10 interfaces; this is not a port of KOReader's complete FFI catalog. Compatible firmware libraries are still required; accepted API versions alone do not establish hardware or library ABI compatibility.

Existing shared 1.0.3 and 1.0.4 installations can update over Wi-Fi. The preceding releases remain available for rollback.

Release 1.0.4 adds the firmware-library startup setting used by KOReader for newer PocketBook loaders. The startup entry point lives inside the updateable application files, so existing 1.0.3 launchers can receive it through OTA. The package still contains one ARM executable shared by all models. Firmware checks now record executable-stack requirements and exercise the actual startup entry point on all four runtimes. The reported InkPad 4 failure has no device logs yet; this release does not establish that its cause is resolved on hardware.

Every model uses the same download and Wi-Fi update channel. Settings → About & updates → Check for updates checks manually; automatic checks are optional. Settings → About & updates → Version shows the installed release. Moving from the earlier PB632-only release requires one USB installation of the shared package and launcher; later shared releases can update over Wi-Fi.

Install ZIPs contain only system/ and applications/ at the top level. Guides, licenses and build reports live under system/share/cr3/, keeping them out of Library. Existing settings, history, bookmarks and custom assets are preserved.

Fresh shared installations use general reading defaults and runtime device DPI. Saved user and book settings take precedence. The historical pb632-fw6 build configuration remains available with its earlier Touch HD 3 reading preferences; its existing downloads and update channel remain separate.

Install

Extract the release ZIP and merge its system and applications folders into the reader’s USB storage, preserving existing settings. Safely eject it, then open Applications → CoolReader. For Library’s Open with menu, follow the file-association instructions.

See the shared guide for backups and troubleshooting.

Settings → Font & text → Font weight offers 0 through 1.75 in steps of 0.25. Choices include short hints: 0 (Normal), 0.25 (Slightly heavier), 0.5 (Medium), 0.75 (Semi-bold), 1 (Bold), 1.25 (Extra bold), 1.5 (Heavy) and 1.75 (Extra heavy). 0 is the original Normal setting and 1 is the original Bold setting. Existing Normal/Bold preferences retain their appearance. The effect depends on the selected font and size; the renderer uses available font variants or synthesizes intermediate weights. Status-line weight remains Normal/Bold.

Firmware 6 settings are grouped into Font & text, Page layout, Screen & sleep, Controls, Advanced, and About & updates. Larger labels, explicit two-choice buttons and size/margin steppers make changes easier to read and select. A font sample shows the staged face, size and weight without reformatting the book. Done applies changes from any settings submenu; Back returns to the parent, and Cancel on the main settings screen discards pending changes. The header identifies whether settings belong to this book or reader defaults.

Build and test

Local Docker build (macOS or Linux)

Requirements: a running Docker engine, Python 3.9+ and curl. The SDK runs in a Linux AMD64 container; the build also works on Apple Silicon using Rosetta.

For Apple Silicon with Colima, install Rosetta once if needed, then configure an ARM64 VM with the settings tested on this project:

softwareupdate --install-rosetta --agree-to-license
colima stop
colima start --arch aarch64 --vm-type vz --vz-rosetta --cpu 6 --memory 12

Stopping Colima interrupts its running containers. If it is already running with suitable settings, skip these setup commands. Docker Desktop users can use their existing engine with Linux AMD64 emulation enabled.

From the repository root, build and test:

CR3_REVISION=local bash tools/docker-build-touch-hd3.sh

The equivalent target-aware command is CR3_REVISION=local bash tools/docker-build-pocketbook.sh pb632-fw6. List enabled targets with python3 tools/targets.py --list.

The first run downloads approximately 1.1 GB of pinned SDK/firmware archives, verifies their SHA-256 hashes, prepares the Linux build environment, builds the ARM executable, and runs all twenty-four ARM/QEMU regression groups and package checks. No remote build server or connected PocketBook is required.

Artifacts are written to dist/:

  • coolreader-touch-hd3-fw6.11.2001-local.zip — installation package.
  • coolreader-touch-hd3-fw6.11.2001-local.zip.sha256 — package checksum.
  • coolreader-touch-hd3-local.tests.json — automated test results.
  • coolreader-touch-hd3-local.debug — separate debug symbols.

To change the artifact label or number of parallel jobs:

JOBS=2 CR3_REVISION=my-test bash tools/docker-build-touch-hd3.sh

The default is four parallel jobs. Repeated builds reuse the Docker image, SDK, firmware runtime and object files. Downloaded archives stay in work/downloads/; extracted inputs and build objects stay in the coolreader-touch-hd3-work Docker volume. Builds leave source files read-only inside the container and do not install or publish the resulting package.

See BUILDING.md for cache management, Docker options and details.

Native Linux build

Use Linux with CMake 3.18+, Make, gettext, zip, OpenSSL tools, Python 3 and the B288 SDK described in the detailed guide. Keep SDKs, extracted firmware and host tools under work/.

export POCKETBOOK_SDK="$PWD/work/sdk/SDK-B288-6.10"
bash tools/build-touch-hd3.sh

The script builds the ARM application, keeps debug symbols, runs twenty-three ARM/QEMU regression groups and checks packaging evidence before producing dist/coolreader-touch-hd3-fw6.11.2001-dev.zip and its SHA-256 file. Set CR3_REVISION to label a candidate and CR3_BUILD_DIR to use another build directory. The QEMU tests need the compatible firmware runtime under work/firmware/runtime; see tests/README.txt.

Published binaries belong in GitHub Releases. Generated packages, translations, SDKs and firmware images are excluded from Git. Packaged styles, hyphenation patterns, Chinese dictionaries and manuals come from the single asset tree in cr3gui/data; translations are compiled from cr3gui/po.

The build vendors FreeType 2.15.0, libjpeg-turbo 3.2.0, libpng 1.6.59, zlib 1.3.2 and curl 8.23.0 as private static libraries. See dependency versions and checksums and dependency notes. Unused UnRAR was removed; ZIP, CHM and Word support are retained. HTTPS now verifies certificates using the firmware trust store. Candidate ZIPs include third-party license notices. The library upgrade was confirmed working on the Touch HD 3. The latest navigation/frontlight changes still need interactive device verification.

The application uses official CREngine 3.2.59-1, pinned at dcc2d4c88b7ee66b8ee1223833c1a72cad3cdbc5, while retaining the PocketBook touch UI. See migration status and remaining checks. Earlier device testing confirmed the engine upgrade, margin handling and book display. Comprehensive hardware and bookmark migration checks remain pending. Optional shaping/SVG integrations are not enabled yet.

Source layout

Directory Purpose
crengine/ Document parsing, layout and rendering engine
cr3gui/ PocketBook UI, translations and shared runtime assets
data/touch-hd3/ Launchers, welcome book and device configuration
thirdparty/, tinydict/ Rendering and document-format dependencies
tools/, tests/ Build, package and regression tooling
Website Standalone pocketbook-web repository
Hosting Website configuration and runbook

CMake builds the PocketBook frontend (CRGUI_PB). Historical desktop frontends, the obsolete Jinke metadata plugin, older SDK scripts and prebuilt OTA packages are not maintained in this fork.

Origin and license

Based on blchinezu/pocketbook-coolreader and the original CoolReader work by Vadim Lopatin and contributors. Older PocketBook builds and their documentation remain available from that upstream project and Git history.

CoolReader is licensed under GPL version 2. Third-party components retain their own notices and licenses in their source directories.

Easy Connect companion tool

The tools website also hosts Easy Connect, a standalone SSH and FTP app for PocketBook Touch HD 3 / PB632. Its page includes USB installation, password setup, the SSH pipe-shell command, FTP client settings, security limits and troubleshooting. CoolReader is not required. Easy Connect has separate code and downloads in its repository.

Responsiveness and saved state

PocketBook builds use a 512 KiB font glyph cache with hash lookup and corrected least-recently-used eviction. Three page images retain the current page and its neighbors. Idle prefetch follows the last page-turn direction and prepares only one neighbor per callback. Narrow screen changes compare/copy only their aligned pixel region; grayscale refresh decisions account for both old and new pixels. Document-cache writes use a cooperative 20 ms budget per idle slice. Individual storage operations can exceed that budget; input latency still needs device timing.

Font headers are cached at system/state/cr3/font-metadata-v1.ini and reused only when file identity, size and nanosecond modification/change timestamps match. The cache is versioned, checksummed, optional and rebuilt after corruption. Installed font order and font-list hashes are preserved. Its first write and standby-cover generation run after an idle delay rather than during first display.

Reading history and preferences are separate from these disposable caches. Current position is checkpointed after about 1.5 seconds of idle time, with a 15-second deadline during continued input. Sleep and task-switch paths save synchronously. Explicit navigation wins over pending position restoration after layout changes. Settings changes still save immediately; font shortcuts synchronize the actual engine values, retaining the requested size rather than a DPI-scaled display size. Unchanged settings avoid redundant writes, failed saves retry, and valid .bak files recover unreadable state files without overwriting the recovery backup with a damaged primary. Sudden power loss before a checkpoint can still lose the most recent page turn.

For on-device timing, launch the application with CR3_PERF=1. Standard-error logs record microseconds for font initialization, document parsing/layout, page images, screen flushes, prefetch, cover preparation and reading-state checkpoints. Timing is off by default. CR3_DISABLE_PAGE_PREFETCH=1 and CR3_DISABLE_FONT_METADATA_CACHE=1 allow controlled comparisons with the same executable. Record median and slowest page turns, cold/warm opening, and input latency while saving; emulation does not measure panel or storage latency.

About

CoolReader for PocketBook: open-source EPUB and FB2 reader with font and page controls, offline StarDict dictionaries, bookmarks and Wi-Fi updates.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages