Author Topic: nTxt - Nspire Text Editor  (Read 139198 times)

0 Members and 1 Guest are viewing this topic.

Offline lkj

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 485
  • Rating: +58/-1
    • View Profile
Re: nTxt - Nspire Text Editor
« Reply #135 on: March 16, 2014, 11:30:11 am »
Sorry for the late reply, I couldn't test it on my own calc sooner. For me it works. What calculator model do you have? And have you checked if you really have the newest version of nTxt on your calc? And unlike in the OS you have to press Ctrl and C or V at the same time.
 
« Last Edit: March 16, 2014, 11:55:28 am by lkj »

Offline mdr1

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 303
  • Rating: +21/-2
    • View Profile
Re: nTxt - Nspire Text Editor
« Reply #136 on: March 16, 2014, 11:54:20 am »
It works for some texts and doesn't for some other ones. Some special characters may corrupt the clipboard...



Offline lkj

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 485
  • Rating: +58/-1
    • View Profile
Re: nTxt - Nspire Text Editor
« Reply #137 on: March 16, 2014, 12:30:41 pm »
Yeah, that's an encoding problem. nTxt uses ASCII, but the clipboard uses UTF-8, so most special characters won't work. Making nTxt use UTF-8 is very much work, as it would mean rewriting most of the code. I'm not sure if or when I'll work on that, as I personally don't really need it and I also want to concentrate more on other projects after about 220 hours of work on nTxt.
What are you using nTxt for when this is a problem?

On an unrelated note, nTxt should work with Ndless3.6 (untested), but it will certainly crash when you cut/copy/paste.

Offline ExtendeD

  • CoT Emeritus
  • LV8 Addict (Next: 1000)
  • *
  • Posts: 825
  • Rating: +167/-2
    • View Profile
Re: nTxt - Nspire Text Editor
« Reply #138 on: March 17, 2014, 02:18:15 pm »
lkj: the integration of the syscalls is on the todo list, sorry for the delay.
Ndless.me with the finest TI-Nspire programs

Offline lkj

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 485
  • Rating: +58/-1
    • View Profile
Re: nTxt - Nspire Text Editor
« Reply #139 on: March 22, 2014, 09:53:29 am »
lkj: the integration of the syscalls is on the todo list, sorry for the delay.
No problem, the release of Ndless3.6 was much more important.

Offline joeym

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 19
  • Rating: +0/-0
    • View Profile
Re: nTxt - Nspire Text Editor
« Reply #140 on: March 24, 2014, 05:11:14 pm »
Forgive me for asking this but what do you guys use a text editor for on the calculator? I am just curious.

Offline Streetwalrus

  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3821
  • Rating: +80/-8
    • View Profile
Re: nTxt - Nspire Text Editor
« Reply #141 on: March 24, 2014, 05:58:58 pm »
Editing configs. That's about it.

Offline joeym

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 19
  • Rating: +0/-0
    • View Profile
Re: nTxt - Nspire Text Editor
« Reply #142 on: March 24, 2014, 06:04:05 pm »
Oh OK...I was also thinking you could use it for reading text files like an eBook reader. The file would be in plain text. But since this has trouble with special characters it would not work. The Lua based eBook reader that someone made has the same issue. If I have a pretty big file I would have to go through it and get rid of the special characters which would be very time consuming.
« Last Edit: March 24, 2014, 06:08:23 pm by joeym »

Offline Streetwalrus

  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3821
  • Rating: +80/-8
    • View Profile
Re: nTxt - Nspire Text Editor
« Reply #143 on: March 24, 2014, 06:11:39 pm »
Yeah, that is right.

Offline joeym

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 19
  • Rating: +0/-0
    • View Profile
Re: nTxt - Nspire Text Editor
« Reply #144 on: March 24, 2014, 07:56:47 pm »
If you have a text file that contains UTF-8 try opening the file up using Notepad++. Notepad++ gives the option to convert to ANSI. See if that works.

Offline lkj

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 485
  • Rating: +58/-1
    • View Profile
Re: nTxt - Nspire Text Editor
« Reply #145 on: March 30, 2014, 11:37:58 am »
Oh OK...I was also thinking you could use it for reading text files like an eBook reader. The file would be in plain text. But since this has trouble with special characters it would not work. The Lua based eBook reader that someone made has the same issue. If I have a pretty big file I would have to go through it and get rid of the special characters which would be very time consuming.
It wouldn't display the special characters correctly, but it's not necessary to remove them to be able to open the file.

If you have a text file that contains UTF-8 try opening the file up using Notepad++. Notepad++ gives the option to convert to ANSI. See if that works.
That's the best option for now.

Forgive me for asking this but what do you guys use a text editor for on the calculator? I am just curious.
When I started coding nTxt I wanted to be able to write programs on my calculator even when I don't have a computer with me, but without an on-calc assembler or compiler it's not very useful. And for Lua you can use the Notes app just as well... So I end up not using it often :P
« Last Edit: March 30, 2014, 11:39:54 am by lkj »

Offline lkj

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 485
  • Rating: +58/-1
    • View Profile
Re: nTxt - Nspire Text Editor
« Reply #146 on: April 18, 2014, 09:16:58 am »
The attached nTxt fully works on 3.1 and 3.6.

Offline bisam

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 7
  • Rating: +0/-0
    • View Profile
Re: nTxt - Nspire Text Editor
« Reply #147 on: October 08, 2014, 06:36:21 pm »
Hi.
With the progress of MicroPython on Nspire, nTxt may now be much more useful than it has been.
It can be a true editor for Python.

I'm a math and computer science teacher and 107 of my students just received their new Nspire CX CAS and I told them to use both MicroPython and nTxt (they were lucky to receive them with OS 3.6... so they could install Ndless).

But I noticed a few features that could enhance their use of nTxt :
- open last opened document instead of a new one when launching nTxt (or ask)
- keep in memory the position of last opened document in tree hierarchy
- better organize this hierarchy (some folders are not with the others, and there's no alphabetical order...)
- if possible, allow the launch of another Ndless program from nTxt (e.g. launch MicroPython that would read current opened file)

All this would be very useful for a programming point of view.

Thanks in advance to consider these feature requests... hoping this program is still in development...

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: nTxt - Nspire Text Editor
« Reply #148 on: October 09, 2014, 02:54:41 am »
Good to hear that your students got the OS 3.6 Nspires :)

As for the nTxt program, I am unsure if it's still being developed, but rewriting it in python instead of C would definitively be a lot of work, so it could take a while. That's unless you mean making nTxt so that it lets people write Python code inside it instead of just plain text files, which would definitively be very great. Some people prefer coding on-calc. :)

Offline bisam

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 7
  • Rating: +0/-0
    • View Profile
Re: nTxt - Nspire Text Editor
« Reply #149 on: October 09, 2014, 07:27:11 am »
Quote from: DJ O
unless you mean making nTxt so that it lets people write Python code inside it instead of just plain text files, which would definitively be very great.
That's exactly what I meant. Sorry for being unclear.

In fact, it already works. Just type your Python code in nTxt, save it as "anything.py.tns" and MicroPython will launch it.
My feature requests were only to simplify some routines many times repeated when testing a new program...

With the actual version of nTxt, if you want to modify a previously saved "anything.py.tns", you have to :
- launch nTxt
- ask to open an existing document
- close the current (empty) one
- search for your document in tree hierarchy and finally open it

Then you add the ":" that you forgot, save and close for testing it again.

And you have to do it again if you want to change anything.
It can get very annoying, especially for students leaning the language and making many syntax errors.

It would be a real big plus if this could be simplified.


If nTxt is not developped anymore, maybe I or someone else could modify it to allow these features (I didn't see any license, but the sources are given...) Just asking...