One day I decided that I wanted to read The Count of Monte Christo by Alexander Dumas. However, I didn’t want to strain my eyes on the computer screen so I decided to read it on my TI-89, where I’ve read numerous other books including Arabian Nights and Alice in Wonderland.
However, my initial problem was that the book wasn’t available online in TI ebook format. But no worries, I could easily convert it using TIGCC Tools. Hum de dum, I fired up command prompt and proceeded to convert the book but ran into a file size limit problem of course. The TI-89 had a file size limit of around 60KB. The Count of Monte Christo is pretty long…in fact, it’s about 1.8MB. Now, I could either start cutting and pasting chapters from the text into files so that I could convert them with the TICT ebook generator, or I could write a program that automatically did this for me. Naturally, I chose the latter :). It took a small while and I wrote it in PHP, but it did the job well.
10/2/04 UPDATE: Because I didn’t feel like starting up PHP and Apache everytime I wanted to split an ebook up, I ported the script over to Python.
Download: ebktag.zip (PHP Version 2KB).
Download: ebkgen.py (Python Version 3KB).
NOTE: To run, you need a PHP interpreter. This means that you can upload it to a web server and run it too. In fact, since I run a local apache + php server, I use that to execute this script. Perhaps if there is a way to compile PHP scripts….
P.S. The book is good :).
One Trackback
[...] mikeXstudios (mikexstudios) wrote,@ 2004-06-23 18:58:00 TI Ebook Generator script One day I decided that I wanted to read The Count of Monte Christo by Alexander Dumas. However, I didn’t want to strain my eyes on the computer screen so I decided to read it on my TI-89, where I’ve read numerous other books including Arabian Nights and Alice in Wonderland.However, my initial problem was that the book wasn’t available online in TI ebook format. But no worries, I could easily convert it using TIGCC Tools. Hum de dum, I fired up command prompt and proceeded to convert the book but ran into a file size limit problem of course. The TI-89 had a file size limit of around 60KB. The Count of Monte Christo is pretty long…in fact, it’s about 1.8MB. Now, I could either start cutting and pasting chapters from the text into files so that I could convert them with the TICT ebook generator, or I could write a program that automatically did this for me. Naturally, I chose the latter :). It took a small while and I wrote it in PHP, but it did the job well. Download: ebktag.zip (2KB).NOTE: To run, you need a PHP interpreter. This means that you can upload it to a web server and run it too. In fact, since I run a local apache + php server, I use that to execute this script. Perhaps if there is a way to compile PHP scripts….P.S. The book is good :).View this post on my blog(Post a new comment) [...]