#114986 - dantheman - Fri Jan 12, 2007 1:11 am
There's a way to do it, but it's not very easy. Since DSLinux recently enabled the unzip command in the RAM builds, I thought it would be possible to download the .zip file directly from the Moonbooks website and unzip it, but it's apparently a compression type that DSLinux can't handle. So a new plan was needed.
If the book you want is on a website like Project Gutenberg, then this is possible. First download the wrapper.pl file linked to from the previous Moonbooks thread and save it to your media card somewhere. In Retawq in DSLinux, browse to the .txt file itself. Hit the "d" key to dump the page to your card's "/linux/home" folder with the filename you specify (in my examples it will be called romeo.txt). Then type "perl wrapper.pl romeo.txt 40" to wrap it to 40 characters. If you did not save wrapper.pl to your /linux/home directory, your command will need to reflect that. For instance, if you're using a RAM build, the root directory of your card is at "/media/" so if it's on the root directory of your card, type "perl /media/wrapper.pl romeo.txt 40" etc. Let it finish; it will take a while. It will produce romeo.txt.wrap which Moonshell can't recognize, so rename it with the mv command: "mv romeo.txt.wrap romeo_wrap.txt" for example. If you want to move it to a different folder, use the mv command again (it works for both renaming and moving): "mv romeo_wrap.txt /media/books/romeo_wrap.txt" for example.
Like I said, it's difficult, but it's possible.
#115143 - Firon - Sat Jan 13, 2007 6:16 am
Moonshell may support text wrapping soon. However, if it is implemented (no guarantees!), it will only work on text files 1MiB or smaller.
Also, 1.6 finalfinalbeta1 supports dual screen viewing. I think it's just spanned vertically, though.
#115144 - RVK - Sat Jan 13, 2007 6:23 am
Although I really appreciate this project. Wordwrap should not be that difficult. Although Tepples will shoot me down again. And unfortunately the latest DSOrganize has broken .txt support. I just wanna read a book easily!