Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - whatkindofausernameisthis

Pages: [1]
1
TI-Nspire / Re: Lua-based Ebook Reader (Does not require ndless)
« on: March 05, 2013, 11:56:47 pm »
Updated to support 32 bit systems. I don't want to get anyone's hopes up, but I am not continuing to update this. I'm in college now, and I had to return my high school's Nspire. Hopefully the open-source nature of this program will encourage some of you to play around with the project and pick up some computer programming. It's an awesome skill to have.

2
TI-Nspire / Re: Lua-based Ebook Reader (Does not require ndless)
« on: July 22, 2012, 09:36:48 pm »
This is really old, but I was trying to use this and keep getting "An error was found in the format of this document." on my NSpire.  The ebook.exe works fine, no errors.  The document transfers fine, too.  The problem happens when I try to open it.

The weird thing is I can open your sample book.  It works just fine.  The problem is none of my books seem to work!  Just wondering if anyone else had a similar issue or can offer any suggestions.

Sorry, I realize this was really old,
 - gfrung4

Sorry about this. I should have mentioned this in the readme. The Nspire can't handle Unicode characters, so they have to be stripped out of the original file before converting the book. If you have Word or OpenOffice, you can do this easily with the search and replace function. Make sure you replace smart quotes (“...” and ‘...’) with regular "dumb" quotes ("..." and '...'), em dashes with regular dashes (-) and ellipses (…) with three periods (...). There might be additional characters with accents that you have to fix as well. Sorry, I know this can be a big inconvenience, but I didn't encounter it too frequently when using it myself.

N.B.: The OpenOffice regex [^a-z0-9 ?.!-"':;,] (finds characters that aren't a-z, 0-9, or common punctuation, don't know if the same will work in Word) works great in identifying characters that the Nspire won't support.

Do we have to type in the books?

No, the dialogue that pops up just asks for the title.

Also, the Nspire that I used to have I rented from my high school. Now that I'm going off to college I (1) don't have an Nspire to test programs on and (2) won't have time to write and test programs. All the software that I've released is open source and has all the source code included with the release. (I do have to apologize for the messiness of the code.) If any aspiring developer wants to pick up development of this program, you are free to do so. I'm sorry to leave everything in such an unfinished state.

3
News / Re: Turn your Nspire into a real clock!
« on: April 18, 2012, 09:45:43 pm »
Edit : Wait I'm trying right now... I think I get it... just put the contrast to the minimum on CX while I'm getting rid of this evil endless loop.
Agh. Four days and the thread is already 4 pages longer. I just want to confirm that this works.

4
News / Re: Turn your Nspire into a real clock!
« on: April 15, 2012, 11:33:22 am »
Doesn't seem to work for me. Hook installs, but calc freezes when the program is launched a second time.

5
News / Re: Ndless 3.1 adds support for file associations
« on: February 05, 2012, 10:11:18 am »
Awesome. So does trying to open a ".png.tns" file open it with mViewer, or does it just open mViewer and you still have to navigate to the file you want to open?

6
TI-Nspire / Nspire audio?
« on: February 04, 2012, 06:50:03 pm »
I haven't had any experience with the Nspire USB protocol, so I would like to ask the community this: would it be possible to use this (http://www.amazon.com/GE-95554-Stereo-Adapter-3-5mm/dp/B0022NHQ9Q) or something like it to allow the Nspire to play audio?

-----
Edit: New thought. What about something like this (www.google.com/search?q=usb+mini+to+usb+a+female&tbm=shop) for flash drives?

7
TI-Nspire / Re: Lua-based Ebook Reader (Does not require ndless)
« on: January 20, 2012, 12:39:05 am »
Now that Ndless 3 is out, I'll be switching over to work on a C-based ebook reader. I'll still update this every so often so that you can still have access to books if TI comes out with a new OS.

8
TI-Nspire / Re: Lua-based Ebook Reader (Does not require ndless)
« on: December 14, 2011, 11:51:20 am »
There is also much more space, so pictures might be possible.
And adding support for styling/different font sizes isn't too hard either :)

Pictures are definitely a possibility, but I haven't come up with an easy, user-friendly way of getting pictures (like covers, maps, and chapter delimiters) embedded in the correct position in the book.
Styling is limited in Lua for the nspire to only "serif" and "sansserif" fonts. Font sizing is already supported (use +/-) to increase/decrease font size.

wow. how big will be the file per page?

Size depends a lot on how easily the book can be compressed, but a 600 page book (The Three Musketeers) ended up being about 580 KB, so I would say roughly 1 KB per physical page.

D: I got:


Error: Failed attempt to launch program or document:
Action: <totns.bat>
Params: <"test">

Specifically: Le fichier spédifié est introuvable


        Line#
--->  012: Run,totns.bat "%bookName%"

The current thread will exit.


I dragged and dropped the txt file on the exe with all the needed files in the folder ??? I don't know what the problem is

Whoops. Looks I forgot to package one of the files. Should be fixed now. Try downloading it again.

9
TI-Nspire / Lua-based Ebook Reader (Does not require ndless)
« on: December 13, 2011, 07:17:23 pm »
Hey everybody. I made this a while ago:
http://ourl.ca/9752

But to be honest, that program sucked. So I've made a new one in the only programming language available at the time--Lua. This is a simple script that will convert a plaintext file into a Lua program that can display the book on your calculator. This is still in a beta stage (there are a few bugs left to squash), but since I won't be able to work on this any more until my college applications are done, I'll release this early.

You need to have luna in the same directory as this program for it to function. Get luna here: http://www.mirari.fr/DC0p
Your folder should look like this:


Usage:
ebook.exe <book.txt>
It will prompt you for the title of the book

Alternatively, you can just drag and drop a *.txt file onto ebook.exe

Included is a copy of Brandon Sanderson's Free online ebook, Warbreaker

Bugs:
  • Overflow errors on the last line of a paragraph
  • I haven't found an elegant way of going backwards a page, so the back button goes back a paragraph instead.
  • No support (yet) for formatting (i.e. italics, bold, underline)
  • No search or jump-to function

Notes:
  • The page number is measured in thousands of characters, i.e. one "page" = 1000 characters
  • to jump to a particular spot, insert a calculator page and enter "curpos:=###" where ### is the character you want to jump to
  • +/- to change font size
  • Left/Right to navigate

Pictures:




Download:
http://dl.dropbox.com/u/4752797/Nspire%20Ebook%20Reader%202.zip

10
Trapped for the TI-Nspire and TI-89 / Re: Block Dude Nspire
« on: April 05, 2011, 05:39:39 pm »
vsilvar, you need to be using Ndless 2.1 if you are using OS 2.1.

11
TI-Nspire / Nspire Ebook Reader
« on: March 20, 2011, 05:55:10 pm »
Hey. Its my first time posting on this forum.

I've been working on an ebook reader for the TI Nspire. Spring break is just about to end for me, so I thought I'd post what I have so far. Right now all it can do is display plain text files. It can open files a lot faster than the built-in notes editor because it doesn't have to decompress anything, it's much easier to format a book for this program than for the built-in editor, and navigating pages is a lot easier.

Controls:
  • Up/Down or 5/8 to navigate the file browser
  • Enter to open the file
  • Left/Right or 4/6 to turn the page

There are still a few issues
  • The text right now is really small (7pt Tahoma) and there is currently no option to change it.
  • There may also be a small memory leak-I haven't checked through all the code to make sure all the dynamically allocated memory gets freed.
  • It currently doesn't check if you've reached the end of the book, so you might get garbled stuff at the very end and you can go beyond the end of the book data.

I plan on adding the following (though I may not have much time to do it):
  • Ability to change the font size and the vertical spacing between lines
  • Support of a more compact file format
  • Support for bold and italics
  • Page numbers and a jump to page option.

This program is still in a beta stage, so I can't guarantee its stability.

I have a couple of questions for the community.
1) Does anyone know of a program that can generate raster font data? The current method I've been using to get binary font data is really tedious.
2) How do you attach a file? All I can do is post a link: http://dl.dropbox.com/u/4752797/Nspire%20Ebook%20Reader.zip
I apologize ahead of time if the code is unreadable.

Pages: [1]