Omnimaga

Calculator Community => Other Calc-Related Projects and Ideas => TI-Nspire => Topic started by: bwang on August 30, 2010, 12:41:16 pm

Title: Nspire Text Viewer
Post by: bwang on August 30, 2010, 12:41:16 pm
This is a small project I made for personal use, but I'll post it here anyway in case someone finds it useful.
It displays a text file in the Examples directory (any file with name of the form *.txt.tns). You can scroll down through the file, but not up :(
To use, find a text file, rename it with a .txt.tns extension, and send it to Examples. Then run the program and select the file from the list.
The program is Non-CAS only, since there are no CAS symbols for the directory listing functions yet.
Title: Re: Nspire Text Viewer
Post by: DJ Omnimaga on August 30, 2010, 03:44:30 pm
Some sort of Notepad for Nspire?
Title: Re: Nspire Text Viewer
Post by: calc84maniac on August 30, 2010, 03:48:25 pm
I thought there were non-cas symbols for directory listing?
Title: Re: Nspire Text Viewer
Post by: apcalc on August 30, 2010, 03:49:47 pm
Looks nice bwang!

I will try this if I ever get ndless working on the CAS rom in the emulator!

Great job :)
Title: Re: Nspire Text Viewer
Post by: bwang on August 30, 2010, 05:30:12 pm
Some sort of Notepad for Nspire?
Not really. No editing :(
I thought there were non-cas symbols for directory listing?
Whoops, I meant Non-CAS only :-[
Title: Re: Nspire Text Viewer
Post by: apcalc on August 30, 2010, 05:33:18 pm
Well, in that case, I'll try it out as soon as I'm done with my homework. :

Btw, if you need a text editor for the Nspire and you have the computer software, I have found it easy to copy and paste the text into a notes page and edit it from there.  Sadly, this is almost impossible to do if you don't have the computer software.
Title: Re: Nspire Text Viewer
Post by: bwang on August 30, 2010, 05:50:18 pm
The notes app is slow for long files - I'm talking about stuff like 500KB game walkthroughs :P
Title: Re: Nspire Text Viewer
Post by: apcalc on August 30, 2010, 06:07:15 pm
Yeah, that is true.  I used it to store text files I might need for school (I once used it to store the text of an essay that I could not lose at all costs, if I lost my hard copy, I still had the calc :)).  Still, using you program will probably be much easier.  Now, for Ndless 2 to be released so I can use it in school... :)
Title: Re: Nspire Text Viewer
Post by: bwang on August 30, 2010, 06:11:12 pm
eh, its not an editor, just a viewer, so it cannot replace the notes app yet.
I'm working on it :D
Title: Re: Nspire Text Viewer
Post by: apcalc on August 30, 2010, 06:12:33 pm
I know, but for what I use the Notes App for, I never have to edit, only view. :P
Title: Re: Nspire Text Viewer
Post by: yunhua98 on August 30, 2010, 06:16:30 pm
nice job!
Any chance of screenshots?  :P
Title: Re: Nspire Text Viewer
Post by: apcalc on August 30, 2010, 06:23:00 pm
Here you go:

(http://i974.photobucket.com/albums/ae226/apcalc/Capture-1.png)
Title: Re: Nspire Text Viewer
Post by: bwang on August 30, 2010, 06:23:18 pm
I know, but for what I use the Notes App for, I never have to edit, only view. :P
A rather unfortunate drawback of this viewer is it only scrolls down :( I'll need to make some moderate code changes to implement scrolling up.
nice job!
Any chance of screenshots?  :P
I'll post some as soon as I get back to my computer.
EDIT: Ninja'd by apcalc! Thanks apcalc! Now I don't have to walk back to my dorm :D
Title: Re: Nspire Text Viewer
Post by: DJ Omnimaga on August 31, 2010, 03:02:16 am
/me wonders if this will have formatting and stuff eventually ^^
Title: Re: Nspire Text Viewer
Post by: bwang on August 31, 2010, 03:10:54 am
Might. First I need to let the user scroll up :P
Title: Re: Nspire Text Viewer
Post by: DJ Omnimaga on August 31, 2010, 03:43:42 am
Yeah true ;D
Title: Re: Nspire Text Viewer
Post by: Lionel Debroux on August 31, 2010, 09:23:20 am
Yeah, this could evolve into a formatted text viewer ala Hib-View / uView, though the Nspire OS has some built-in text formatting, unlike the TI-68k OS.
Title: Re: Nspire Text Viewer
Post by: willrandship on August 31, 2010, 11:47:13 am
Hmm, so is there any chance of a menu or gui of some kind? it would be nice if you could load and save to different files without closing the viewer.
Title: Re: Nspire Text Viewer
Post by: bwang on August 31, 2010, 11:50:51 am
What do you mean? This can't even edit text.
Title: Re: Nspire Text Viewer
Post by: Builderboy on August 31, 2010, 02:49:33 pm
Heh, its a text viewer ^^ And yeah, scrolling up is a mite bit harder :P I found that out myself when writing my small font editor.  Good luck!
Title: Re: Nspire Text Viewer
Post by: DJ Omnimaga on August 31, 2010, 03:08:05 pm
What do you mean? This can't even edit text.
He probably just means so you can open another document without exiting the text viewer to do so

EDIT: Nvm, I just noticed the "save" part of his post.
Title: Re: Nspire Text Viewer
Post by: bwang on August 31, 2010, 05:06:46 pm
Heh, its a text viewer ^^ And yeah, scrolling up is a mite bit harder :P I found that out myself when writing my small font editor.  Good luck!
Got any advice for scrolling up? I'd appreciate it :D
Title: Re: Nspire Text Viewer
Post by: fb39ca4 on September 01, 2010, 03:30:41 pm
The notes app is slow for long files - I'm talking about stuff like 500KB game walkthroughs :P
Are those for GBC games, by any chance?
Title: Re: Nspire Text Viewer
Post by: bwang on September 01, 2010, 03:36:37 pm
Yep.
It's nice to not have to go to a computer when you get stuck.
Title: Re: Nspire Text Viewer
Post by: DJ Omnimaga on September 01, 2010, 05:43:12 pm
This is nice to have a walkthrough handy on the exact same handheld as the game itself :P (although I guess having to exit the game everytime isn't too convenient)
Title: Re: Nspire Text Viewer
Post by: fb39ca4 on September 01, 2010, 08:01:37 pm
I printed out a walkthrough for link's awakening and it took 10 mins to finish. (This was a laser printer too)