the quick version: the demo is here Rat Reader — for reading, and rats poke it and see what it does or scroll down to see the readme.
The longer version
I had an app for RSVP reading on my phone, but then the app stopped being updated and it no longer works with new versions of android. So I decided to make a replacement for myself over the weekend.
And because I had to see if I could, I made it with as little javascript as possible. In the end the only necessary javascript for the reader is a small timer script that pretty much just clicks the next button at set intervals using the $tw.rootWidget.invokeActionString function.
I am pretty happy with that.
There are two other js libraries in it, but they are for parsing epub files and aren’t needed for the reader part. Once the raw text from the epub files is put into a tiddler all the rest of the parsing is done with wikitext widgets and filters. It may be cheating a bit but I can live with that.
It is the first version, so expect bugs and some limited features, but it is good enough that I have been using it the past two days.
It can load and parse epub files from urls, but not parse files that are embedded in the wiki yet because I use Bob and it has a built in file server. Using epub files saved in the wiki will come later.
There is something probably CORS related that keeps a lot of the epub files I have found online from loading.
The reader itself is set up the way I want it to and aside from adding some gestures won’t change significantly.
Enjoy.