
这是一个面向 M5Paper V1.1 开发套件的中文 TXT/EPUB 电子书阅读器项目,硬件基础是 ESP32 加电子纸墨水屏。项目在墨水屏上实现中文阅读功能,包含自定义字体渲染、后台分页索引、章节目录跳转、书架排序、休眠壁纸选择,以及用于在局域网内传输书籍、字体和图片的 Web 界面。作者注明项目仅用于个人学习与探索,开发中借助 AI 辅助设计、编写和调试,并参考了开源项目 M5ReadPaper。
格式支持方面,TXT 可自动识别并转换 UTF-8、GBK/GB18030 与 UTF-16 高低字节序编码,后台自动识别章节标题生成目录;EPUB 支持 2 与 3 版本,书架显示书名,读取书内目录,封面与插图以独立插图页显示并支持渐进式 JPEG。首次打开先显示开头章节,其余章节在后台逐步转换。针对中文排版,项目还处理了行首禁则标点的换行问题。
阅读体验上,阅读菜单里打开目录即可跳转到任意章节,支持按页码或百分比用数字键盘跳转,顶部实时显示当前页码、总页数与进度。打开书籍即刻渲染首屏,后台增量建立分页索引文件。这类项目的价值在于,把墨水屏阅读器的核心体验拆成可复用的模块:字体渲染、分页索引、格式转换和局域网传书,都可以在其他 ESP32 电子纸项目里借鉴。
本文来源:https://m5ware.com/projects/1580
若有版权问题,请来信告知:13951431913#139.com 或在右方提交评论。
This is a Chinese TXT/EPUB e-book reader project for the M5Paper V1.1 development kit, built on an ESP32 with an e-paper display. It implements Chinese reading on e-paper with custom font rendering, background pagination indexing, chapter navigation, bookshelf sorting, sleep wallpaper selection and a web interface for transferring books, fonts and images over a local network. The author notes the project is for personal study and exploration, used AI assistance for design, coding and debugging, and drew on the open-source M5ReadPaper project.
On format support, TXT files get automatic detection and conversion for UTF-8, GBK/GB18030 and UTF-16 in both byte orders, with chapter titles detected in the background to build a table of contents. EPUB 2 and 3 are supported: the shelf shows book titles, the in-book table of contents is read, and cover images and illustrations appear on separate pages with progressive JPEG support. The first opening shows the opening chapter while remaining chapters convert gradually in the background. Chinese typography also gets line-break handling for prohibited leading punctuation.
For reading, the menu opens a chapter list for direct jumps, numeric keypad entry supports page number or percentage navigation, and the top bar shows current page, total pages and progress in real time. Opening a book renders the first screen immediately while a pagination index file is built incrementally in the background. The value of such a project is that it breaks the e-paper reader experience into reusable modules: font rendering, pagination indexing, format conversion and LAN book transfer can all be borrowed for other ESP32 e-paper builds.
本文来源:https://m5ware.com/projects/1580
若有版权问题,请来信告知:13951431913#139.com 或在右方提交评论。