How sumegig/seek-reader works
SEEK is custom firmware for the Xteink X4 e-paper reader. The principal workflow is hardware input through the activity UI to book selection, format parsing and page rendering, with reading position and statistics persisted on SD storage. Separate branches provide dictionary lookup, OPDS browsing, KOReader synchronization, file transfer and OTA updates, plus settings and themes. The README documents several capabilities whose implementation wiring is not sampled; those links are shown as documented relationships rather than inferred source calls.
Main entry points: ReaderActivity.cpp Reader · ChapterHtmlSlimParser.cpp Chapter HTML parser · GfxRenderer.cpp Graphics renderer · HomeActivity.cpp Home and browsing
Components 26
Device UI
- Reader
src/activities/reader/ReaderActivity.cpp - Activity manager
src/activities/ActivityManager.cpp - Home and browsing
src/activities/home/HomeActivity.cpp - Statistics views
src/activities/stats/StatsActivity.cpp - Settings screens
src/activities/settings/SettingsActivity.cpp - UI themes
src/components/themes/BaseTheme.cpp
Reading engine
- EPUB parser
lib/Epub/Epub.cpp - Chapter HTML parser
lib/Epub/Epub/parsers/ChapterHtmlSlimParser.cpp - CSS styles
lib/Epub/Epub/css/CssParser.cpp - Page blocks
lib/Epub/Epub/Page.cpp - Image decoding
lib/Epub/Epub/converters/ImageDecoderFactory.cpp - Graphics renderer
lib/GfxRenderer/GfxRenderer.cpp - Font cache
lib/GfxRenderer/FontCacheManager.cpp
Persistence
- Reading statistics
src/stats/ReadingStatsManager.cpp - Recent books
src/RecentBooksStore.cpp
Reader services
- Dictionary lookup
src/util/Dictionary.cpp - Lookup history
src/util/LookupHistory.cpp - KOReader sync
lib/KOReaderSync/KOReaderSyncClient.cpp - OPDS browsing
lib/OpdsParser/OpdsParser.cpp - Book transfer
src/network/WebDAVHandler.cpp - OTA updates
src/network/OtaTaskManager.cpp
Device platform
- SD storage
lib/hal/HalStorage.cpp - Mapped buttons
src/MappedInputManager.cpp - E-paper display
lib/hal/HalDisplay.cpp
Other components
- Network services
- Reader
Connections 22
- Reader → Mapped buttons: presses buttons
src/MappedInputManager.cpp - Activity manager → Reader: launches reader
src/activities/ActivityManager.cpp - Reader → EPUB parser: opens books
README.md - EPUB parser → Chapter HTML parser: parses chapters
lib/Epub/Epub/parsers/ChapterHtmlSlimParser.cpp - Chapter HTML parser → CSS styles: reads styles
- Chapter HTML parser → Page blocks: builds pages
lib/Epub/Epub/parsers/ChapterHtmlSlimParser.cpp - Chapter HTML parser → Image decoding: dispatches images
lib/Epub/Epub/parsers/ChapterHtmlSlimParser.cpp - Reader → Graphics renderer: renders reading view
README.md - Graphics renderer → Font cache: uses font cache
- Graphics renderer → E-paper display: updates screen
README.md - Reader → SD storage: caches book data
README.md - Reader → Reading statistics: tracks sessions
README.md - Statistics views → Reading statistics: shows analytics
README.md - Home and browsing → Recent books: shows recent books
README.md - Settings screens → UI themes: selects layouts
README.md - Reader → Dictionary lookup: looks up words
README.md - Dictionary lookup → Lookup history: records lookups
README.md - Reader → KOReader sync: syncs progress
README.md - Home and browsing → OPDS browsing: browses catalogs
README.md - Network services → Book transfer: uploads books
README.md - Network services → OTA updates: requests update
README.md - Book transfer → SD storage: writes book files
README.md