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

0 Members and 1 Guest are viewing this topic.

Offline mdr1

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 303
  • Rating: +21/-2
    • View Profile
Re: nTxt - Nspire Text Editor
« Reply #30 on: November 01, 2012, 06:49:04 pm »
Some other ideas came to my mind :
- add characters (square ², grec, french letters as é, è, ç ...)
- be able to connect a real keybord with USB :P



Offline Adriweb

  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1708
  • Rating: +229/-17
    • View Profile
    • TI-Planet.org
Re: nTxt - Nspire Text Editor
« Reply #31 on: November 02, 2012, 04:49:09 am »
Well, full support of UTF-8 ? :P
My calculator programs
TI-Planet.org co-admin.
TI-Nspire Lua programming : Tutorials  |  API Documentation

Offline Jim Bauwens

  • Lua! Nspire! Linux!
  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1881
  • Rating: +206/-7
  • Linux!
    • View Profile
    • nothing...
Re: nTxt - Nspire Text Editor
« Reply #32 on: November 02, 2012, 02:49:02 pm »
Well, full support of UTF-8 ? :P

(I haven't been following this thread, so maybe this was mentioned before)
It would be smart to use TI's font and functions for this, as they support UTF-16. You could ask Levak for the syscalls et all, as he has done some work in this area.

Offline Rhombicuboctahedron

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 437
  • Rating: +41/-6
    • View Profile
Re: nTxt - Nspire Text Editor
« Reply #33 on: November 03, 2012, 01:21:10 pm »
If you are going to use a keyboard, I think the best way would be to make a text editor for linux (yeah, it has nano, but if you don’t press enter, you get one long ugly line) and try to make it so that you can save your files

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 #34 on: November 03, 2012, 01:26:40 pm »
Glad to see a new text editor. I didn't follow the other one progress much but I didn't realize that it wasn't being maintained anymore.

Offline lkj

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 485
  • Rating: +58/-1
    • View Profile
Re: nTxt - Nspire Text Editor
« Reply #35 on: November 03, 2012, 09:37:42 pm »
Sorry for not replying, but I wanted an update first  :P

Update:
-select text
-delete selected text
-cut, copy and paste

What do you mean by "2 touches for vertical scroll"? Multitouch on the touchpad? I believe that's not possible hardware wise.
2 touches for scrollling page per page, so faster than line per line.
Do you mean opening several texts simultaneously in tabs?
Yes, I do.
I'll keep the idea with multiple texts in mind, but it won't come soon.
As for the scrolling, which keys would you suggest for page up/down?

Some other ideas came to my mind :
- add characters (square ², grec, french letters as é, è, ç ...)
- be able to connect a real keybord with USB :P
The french letters are already there, you just can't enter them :P
I'll look into utf-8 or 16 and provide some way to enter special characters similar to TI's OS.

If Ndless provides some USB routines I will look into it, but as of today it's too difficult for me.

Well, full support of UTF-8 ? :P
(I haven't been following this thread, so maybe this was mentioned before)
It would be smart to use TI's font and functions for this, as they support UTF-16. You could ask Levak for the syscalls et all, as he has done some work in this area.
I'll ask Levak, if he has syscalls to use TI's fonts and string manipulation and disp functions that would save me some work ;)

If you are going to use a keyboard, I think the best way would be to make a text editor for linux (yeah, it has nano, but if you don’t press enter, you get one long ugly line) and try to make it so that you can save your files
I have never done any linux dev and there surely is a better editor which could be ported, and besides I have a non-CX and can't use linux. Someone else will have to do this :)

Glad to see a new text editor. I didn't follow the other one progress much but I didn't realize that it wasn't being maintained anymore.
IIRC the maintainer said he would come back to Omni and continue development in the summer holidays, but he didn't log in for five months and the last project update was almost one year ago :(

Offline ExtendeD

  • CoT Emeritus
  • LV8 Addict (Next: 1000)
  • *
  • Posts: 825
  • Rating: +167/-2
    • View Profile
Re: nTxt - Nspire Text Editor
« Reply #36 on: November 04, 2012, 03:11:44 am »
Nice :)

If Ndless provides some USB routines I will look into it, but as of today it's too difficult for me.

I have worked again yesterday on USB support. The *BSD USBDI functions have been pushed to the Ndless trunk (altough most are untested at the moment).
It still need to be stabilized. I'll try to hook into the OS event management. Ndless programs such as nTxt will then just need to use the event read function to pop key events, whether they come from the pad or a USB keyboard.
Ndless.me with the finest TI-Nspire programs

Offline Lionel Debroux

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2135
  • Rating: +290/-45
    • View Profile
    • TI-Chess Team
Re: nTxt - Nspire Text Editor
« Reply #37 on: November 04, 2012, 03:40:36 am »
Pretty good ;)

But don't forget to work on integrating the bFLT loader as well - it's very important :)
« Last Edit: November 04, 2012, 03:45:27 am by Lionel Debroux »
Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.

Offline mdr1

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 303
  • Rating: +21/-2
    • View Profile
Re: nTxt - Nspire Text Editor
« Reply #38 on: November 05, 2012, 04:04:27 am »
The selection of text works well ! Good job. But when I try to open a document with CTRL+O, my caltos restarts.

I'll keep the idea with multiple texts in mind, but it won't come soon.
As for the scrolling, which keys would you suggest for page up/down?
CTRL 9 : page up
CTRL 3 : page down
CTRL 7 : go to the start of the document
CTRL 1 : go to the end

The french letters are already there, you just can't enter them :P
I'll look into utf-8 or 16 and provide some way to enter special characters similar to TI's OS.

If Ndless provides some USB routines I will look into it, but as of today it's too difficult for me.
Well, you could enable us to enter a letter by its hexadecimal code, and do so that we can choose our shortcut for the letters.
You could for that use the "var" key as the "alt" key on a computer.
As new keys for new characters, I suggest :
- the [²] key for "²"
- CTRL + [²] (√) for "√"
- the flag key for changing a letter (e=>é=>è=>ê=>ë, a=>à, e=>€, c=>ç ...)
- a list of characters when we press on the book key

Other suggestions :
- select all : CTRL A
- previous action : CTRL Z
- a faster cursor
- be able to choose a smaller font-size



Offline lkj

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 485
  • Rating: +58/-1
    • View Profile
Re: nTxt - Nspire Text Editor
« Reply #39 on: November 05, 2012, 02:20:38 pm »
Nice :)

If Ndless provides some USB routines I will look into it, but as of today it's too difficult for me.

I have worked again yesterday on USB support. The *BSD USBDI functions have been pushed to the Ndless trunk (altough most are untested at the moment).
It still need to be stabilized. I'll try to hook into the OS event management. Ndless programs such as nTxt will then just need to use the event read function to pop key events, whether they come from the pad or a USB keyboard.
Very nice, keep up the good work  :)


The selection of text works well ! Good job. But when I try to open a document with CTRL+O, my caltos restarts.
It works for me. Try updating ndless. If this doesn't fix it, could you send me the file that causes a crash?

Quote
I'll keep the idea with multiple texts in mind, but it won't come soon.
As for the scrolling, which keys would you suggest for page up/down?
CTRL 9 : page up
CTRL 3 : page down
CTRL 7 : go to the start of the document
CTRL 1 : go to the end
Ok, I'll do that in the next update.

Quote
The french letters are already there, you just can't enter them :P
I'll look into utf-8 or 16 and provide some way to enter special characters similar to TI's OS.

If Ndless provides some USB routines I will look into it, but as of today it's too difficult for me.
Well, you could enable us to enter a letter by its hexadecimal code, and do so that we can choose our shortcut for the letters.
You could for that use the "var" key as the "alt" key on a computer.
As new keys for new characters, I suggest :
- the [²] key for "²"
- CTRL + [²] (√) for "√"
- the flag key for changing a letter (e=>é=>è=>ê=>ë, a=>à, e=>€, c=>ç ...)
- a list of characters when we press on the book key
I'm currently using CTRL like the alt key on the computer, but VAR may indeed be better.
Yeah, the flag key and the character list are on my todo list. But it may take some time.

Quote
Other suggestions :
- select all : CTRL A
- previous action : CTRL Z
- a faster cursor
- be able to choose a smaller font-size
CTRL A is a good idea and easy to do.
CTRL Z is too difficult (at least just now)
I've had an idea for a faster cursor, I'll look when I have time for it.
I'll look what I can do about fonts.

Offline TheNlightenedOne

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 427
  • Rating: +16/-1
    • View Profile
Re: nTxt - Nspire Text Editor
« Reply #40 on: November 15, 2012, 06:35:30 pm »
Any updates?
"Eris" (Ndless 3.1)
"Keto" (Ndless 3.1)
"Luna" (AMS 3.10, HW4)
"Aurora" (2.55MP)

Offline lkj

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 485
  • Rating: +58/-1
    • View Profile
Re: nTxt - Nspire Text Editor
« Reply #41 on: November 16, 2012, 05:32:19 pm »
I've too much to do for school and the utf-16 thing is rather time consuming (I have to write the disp part myself or finish Levak's work to use syscalls because he didn't have time yet to complete it and make it stable).
I'll possibly make an update with some small things like ctrl+a and pg up/dn next week.

Offline mdr1

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 303
  • Rating: +21/-2
    • View Profile
Re: nTxt - Nspire Text Editor
« Reply #42 on: December 02, 2012, 11:28:43 am »
Any update ?



Offline lkj

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 485
  • Rating: +58/-1
    • View Profile
Re: nTxt - Nspire Text Editor
« Reply #43 on: December 02, 2012, 03:32:13 pm »
I decided to rewrite much more than I initially wanted and therefore haven't completed everything I wanted in the next release (no page up/down, no home/end), but some things are already here:
- ctrl + a
- go to start and end of document (with ctrl+7 and ctrl+1 respectively)
- there should be less glitches with lines longer than what fits on one line on the screen, up/down arrow navigation works with them now
- fixed some bugs


What keys should I use for home and end? I couldn't find any key combo in TI's apps which does that.
The next update shouldn't take too long, "only" some bug fixing with page up and down.

mdr1: BTW, do you have any details on which files made it crash for you?

Offline lkj

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 485
  • Rating: +58/-1
    • View Profile
Re: nTxt - Nspire Text Editor
« Reply #44 on: December 05, 2012, 05:48:41 pm »
Update: page up and down implemented as ctrl+9 and ctrl+3  :)