Personal fork with several features
Hi! I've been using pixel-reader on a Miyoo Mini+ and put together a personal fork with a handful of features, all tested on real hardware: https://github.com/jajarom82/pixel-reader
- lower-idle-power main loop (also opened as a standalone PR).
- pixel-level (smoooooth) auto-scroll (press Y, then L2 and R2 to adjust speed)
- Screen rotation (0/90/180/270°) - this took a while to get right; the panel on my Mini+ turned out to need an extra 180° software compensation on top of whatever rotation is requested, and blitting the app's drawing surface directly to the video surface silently applies its own unwanted 180° flip on this hardware - both had to be routed around. I saw you'd already been poking at rotation (and an SDL2 migration) on sdl2-and-rotation-claude - thought the specifics of what I ran into might be useful there even if you go the SDL2 route.
- Battery % (Onion OS exposes it at /tmp/.axp_result, not /tmp/battery), shown as a small battery-shaped icon with a charge gauge. Does not appear during read, only in menus
- Bookmarks, separate from the table of contents (press START to mark a page, browse them from the same menu as the TOC).
- Custom color theme, + folder styling (book you are reading also stand out due to different color)
- per-book progress in the file list, as a flat bar below each title
- gallery/cover view
- dyslexia-friendly font
- small reading margin (2px fixed left and right), so you can tilt your device, the border of the letters won't be chopped.
No pressure at all to merge any of it - mostly wanted to flag it in case any piece is useful, given the rotation/SDL2 branch. All that was made using an AI tool (Claude - Sonnet), based on the different user requests that have been made. I looked also to include arabic or japanese support but it was far more complex for such a project that aims to keep things small.
I know that lastly there are a lot of buzz around AI and vibe coding. I want to be clear that I did not modify any line of code by myself, but wanted to use this project as a personal proof of concept of the AI possibilities, in a context for which I have a lot of interest. I have to say that the results got beyond my expectations, so I wanted to share those with other enthusiasts of this beautiful app. If some people dare to give it a try (I use it everyday and did not spot any issue), please give some feedback.
Wow, I really like the smooth scrolling! I'm not sure I can go back to the original way after seeing that.
And yes, hand-coding is dead. My standard for this repo would be AI coding + human review, so it would take a while to merge, but lots of good ideas here!