EDIT 20101214: new release: v3
IMPORTANT: version 3 and up needs the core base package v4 in http://www.mobileread.com/forums/sho...d.php?p=887725
Lua 5.1 MegaPackage for DR
This is a megapackage including Lua interpreter bundled with a lot of useful modules and bindings compiled for the iRex DR devices, and some useful and interesting scripts.
All in all, it's a complete development framework to build applications for the iRex DR800 and DR1000, in 4 MB!!!
Note you need the core base package, version 4, which you can find at http://www.mobileread.com/forums/sho...d.php?p=887725
I've tried to emulate Hansel's incredible Lua port for Iliad  , but I've added some new packages. Consult section below to learn about all the modules included.
Not all of the included packages have been tested so please try and report any broken module. By now I'm aware of next non working packages: alien, and vte.
I've included the documentation, examples and tests of all the packages in the "docs" directory. You should not copy them to the DR device.
Steps to install:
1. enable SD card folders browsing (advance settings or look for the dr.ini file hack in mobileread forum)
2. connect device to your computer using the USB cable
3. create a folder "/Programs" in SD card root if it does not exist yet
4. you need libs core package installed into SD card/Programs/_base
5. copy "_lua" and "Tools" directory there
Now, you should have something like:
Don't copy "docs" folder or any other files to your DR, they are not necessary.
There are some scripts included with this package in _lua/scripts directory.
You could use them as examples, but they also have their interest and purpose.
This application lets run some other programs and get the output. It is specially useful to execute command line based scripts or to check why some applications don't start correctly.
It understands some special types of files like lua, python or shell scripts. Even it can run the proper command if you select a .desktop file!
It can be started from its own .desktop file, no command line needed.
A script which generates images for some types of files, updating device global database so you can see these images when browsing.
It currently supports next file types:
. Programs: parses .desktop files looking for an Icon entry
. FB2 files: extracts cover image if the ebook has one
A GUI frontend for icons.lua
[Detailed information in the README file]
lua, LuaFileSystem, LuaPosix, luaexpat, stdlib, penlight, alien, lpack, LuaBitOp, rings, lrandom, lmd5, lbase64, date, gzio, lpeg, lualogging, luaprofiler, lpc, luadaemon
LuaSocket, luacurl, luajson, cgilua, xavante, copas, coxpcal, wsapi, orbit
lgob (gobject, glib, gdk, atk, gtk, pango, cairo, gtksourceview, gtkspell, poppler, goocanvas, vte, webkit), lplot
nixio, ldbi, luadbus, ldbus, lhpdf
And now what?
Ok, ok... read next message...