android
  #1  
Old 01-24-2010, 12:40 PM
ZaPx64's Avatar
ZaPx64 ZaPx64 is offline
Member
 
Join Date: Nov 2009
Location: Germany
Posts: 136
Default Notee-fi - a text editor for Zen

See attachments for a download & Screenshot.

Notee-fi is a complex plane-text editor.

Features:

- Load & save files
- Customized keyboard (have a look at custom_keyboard.txt to customize your keyboard - remember to escape special characters e.g. backslash \\)
- common edit methods - place the cursor with your finger to insert or delete characters between two other ones
- handle even large texts
- qwerty key layout
- some nice button graphics
- hide keyboard to read large texts

Controls:

*.txt - Load / save a file.
[<-] - Backspace
The long bar - Well, space
/# - customized keyboard (Numbers and special keys)
a/A - Toggle lower/upper keys.
- Tap the text to set the cursor position.
- Slide your fimger over the scrollbar to scroll
- Slide your finger over the text to scroll (finetuning)


Have fun with this!

~ZaP
Attached Images
File Type: png notee-fi.PNG (23.6 KB, 557 views)
Attached Files
File Type: zip Notee-fi.zip (19.5 KB, 657 views)

Last edited by ZaPx64; 04-13-2010 at 05:35 AM.
Reply With Quote

Advertisement [Remove Advertisement]

  #2  
Old 01-24-2010, 12:59 PM
bzdbbb's Avatar
bzdbbb bzdbbb is offline
X-Fi2 Development Moderator
 
Join Date: Dec 2009
Location: Gloucestershire, UK
Posts: 94
Default

The easy solution would be to not allow filenames. Just have file1.txt, file2.txt and allow the user to save and load to these. I don't think it would be too restrictive doing it that way because the app would most likely be used for note taking, not a novel :P

Another option is to write all saves to a single save file. This would give you the feature of naming the files and being able to choose from a list of textfiles, but would make it harder to access on a pc.. You could of course write a computer app to read such files.

I've noticed that you haven't mentioned the problem of creating the files on the fly. Have you found a way to do this?

Just a few ideas

Last edited by bzdbbb; 01-24-2010 at 01:19 PM.
Reply With Quote

  #3  
Old 01-24-2010, 01:45 PM
RobertsAccount's Avatar
RobertsAccount RobertsAccount is offline
X-Fi2 App Master
 
Join Date: Jan 2010
Location: UK
Posts: 310
Default

must.have.text.editor.
Can't wait! good luck with the rest of the project
Reply With Quote

  #4  
Old 01-24-2010, 02:05 PM
ZaPx64's Avatar
ZaPx64 ZaPx64 is offline
Member
 
Join Date: Nov 2009
Location: Germany
Posts: 136
Default

@bzdbbb:
Well, I haven't tried yet writing into non-existing files, but I guess if you use the write-mode the file will be created.

//EDIT: Just tested it, you can write into files on the fly using io.open("file_to_create.txt", "w"); but unfortunatly its no Windows-standard newline encoding so you must use an advanced text editor (e.g. wordpad, notepad++, etc...) to read the file with white-spaces.

@RobertsAccount:
No release soon, you will have to wait a while...

Last edited by ZaPx64; 01-24-2010 at 02:13 PM.
Reply With Quote

  #5  
Old 01-25-2010, 06:55 AM
Brett_val's Avatar
Brett_val Brett_val is offline
Senior Member
 
Join Date: Jan 2010
Location: The Netherlands
Posts: 636
Default

Whoaa it's coming Cool! I like the name too!

I don't mind using wordpad or maybe a different app for reading/editing the text file on the computer. Usability on the X-Fi2 is top priority I would say.. The (possible) app for editing it could just be loaded onto the device like the rsssynchonizer already is.

Last edited by Brett_val; 01-25-2010 at 07:02 AM.
Reply With Quote

  #6  
Old 01-25-2010, 07:47 AM
bzdbbb's Avatar
bzdbbb bzdbbb is offline
X-Fi2 Development Moderator
 
Join Date: Dec 2009
Location: Gloucestershire, UK
Posts: 94
Default

Quote:
Just tested it, you can write into files on the fly using io.open("file_to_create.txt", "w")
Awesome, i can see that coming in handy.

Why not have a seperate text file that hold the file names of the files the user has created. Just read this file at start-up, gmatch the strings and then offer those to the user as a list. The only problem with this solution is being able to add text files from a computer, but again a specific app on the computer could handle that for you..

Quote:
The (possible) app for editing it could just be loaded onto the device like the rsssynchonizer already is.
Genius - if you use this solution you should defo do that :P
Reply With Quote

  #7  
Old 01-25-2010, 08:12 AM
JJLoke JJLoke is offline
Junior Member
 
Join Date: Jan 2010
Posts: 87
Default

i thought of the text reader for quite a while already.

i was very disappointed with the 'task' and 'calendar' in the player as it must be sync-ed with centrale and cannot record down any notes, neither can i update the calendar event on the go

im studying a foreign language as well, so i hope the text reader can read the foreign language, so i can also revise them during my free time during office hours
Reply With Quote

  #8  
Old 01-25-2010, 03:28 PM
ThievingSix ThievingSix is offline
Member
 
Join Date: Aug 2008
Posts: 218
Default

My first request to creative when they release the SDK(when they notify me by email) is immediate os.execute support! I mean nothing says thank you when you get something you want like saying you screwed up give me more!
__________________
Only ONE more functions in the Wiki need addressing!
Zen X-Fi2 LUA Wiki
Want to protect your applications? Click Here!
Tower Defense Thread
Zen Lock - Protect Your Zen!
Reply With Quote

  #9  
Old 01-26-2010, 03:21 AM
badazzmofo badazzmofo is offline
Junior Member
 
Join Date: Dec 2009
Posts: 75
Default

if you're going to create a file browser, it would be MUCH more useful to build a file browser for the microsd card.
Reply With Quote

  #10  
Old 01-26-2010, 06:55 AM
ZaPx64's Avatar
ZaPx64 ZaPx64 is offline
Member
 
Join Date: Nov 2009
Location: Germany
Posts: 136
Default

Hm, I think Creative disabled os.execute for some reason. I can imagine they don't want the people to modify their OS. However they could disable write access to its folders...
Well, I think I'm gonna use an external LUA file that stores all recently opened and saved files, and a filepath input loader as well.
Reply With Quote

  #11  
Old 01-28-2010, 02:21 AM
ThievingSix ThievingSix is offline
Member
 
Join Date: Aug 2008
Posts: 218
Default

Well, they could easily restrict any file location searches to the ms:/ base.
__________________
Only ONE more functions in the Wiki need addressing!
Zen X-Fi2 LUA Wiki
Want to protect your applications? Click Here!
Tower Defense Thread
Zen Lock - Protect Your Zen!
Reply With Quote

  #12  
Old 01-30-2010, 02:55 PM
Habhome's Avatar
Habhome Habhome is offline
Moderator
 
Join Date: Jan 2010
Location: Sweden
Posts: 1,079
Default

How's this one coming along? This is one of the apps I want to see working the most so I'm a bit anxious if you can get it to work ^^
__________________
"If you are good enough at English to apologize, then there is no need to." - A good friend of mine
Discovered something about the X-Fi2 you think others may not know? Post it here so others can learn about it!
Have a question about X-Fi2 apps? Consult the FAQ before creating a thread about it.
Like my work? Tell your friends. Don't like it? Tell me so I can improve. ^.^
Reply With Quote

  #13  
Old 01-31-2010, 12:45 PM
ZaPx64's Avatar
ZaPx64 ZaPx64 is offline
Member
 
Join Date: Nov 2009
Location: Germany
Posts: 136
Default

Patience young Padawan... I'm a bit busy with another project (not Zen-related) but be ensured that there -will- be a release soon.
Reply With Quote

  #14  
Old 01-31-2010, 04:08 PM
Habhome's Avatar
Habhome Habhome is offline
Moderator
 
Join Date: Jan 2010
Location: Sweden
Posts: 1,079
Default

Quote:
Originally Posted by ZaPx64 View Post
Patience young Padawan... I'm a bit busy with another project (not Zen-related) but be ensured that there -will- be a release soon.
I see. I know how that is. If it hadn't been for me having to build and program a Sumo Robot I'd be studying LUA right now to make my own apps =P
Well I'll be patiently waiting then ^^
__________________
"If you are good enough at English to apologize, then there is no need to." - A good friend of mine
Discovered something about the X-Fi2 you think others may not know? Post it here so others can learn about it!
Have a question about X-Fi2 apps? Consult the FAQ before creating a thread about it.
Like my work? Tell your friends. Don't like it? Tell me so I can improve. ^.^
Reply With Quote

  #15  
Old 02-08-2010, 03:29 PM
ZaPx64's Avatar
ZaPx64 ZaPx64 is offline
Member
 
Join Date: Nov 2009
Location: Germany
Posts: 136
Default

Well, for those of you who can't wait to write down some notes, here's a very early pre-release (see attachments).
You will be able to write, save and load text and append text to loaded files. The cursor position can not yet be changed and you cannot delete a linefeed. I'm working on these features but as I said I'm still busy with another project.
The editor even enables you to write LUA scripts. To save a script you will have to know the name of an empty folder and save your file as ../myfolder/main.lua (any existing file named main.lua will be overwritten)

Here's an interface description:
[123]-Button: Display number/special-char keyboard
[CAPS]-Button: Toggle upper/lower-char keyboard
[...]-Button: Save/Load file
[<-]-Button: Backspace

Have fun with this!
Attached Files
File Type: zip Notee-fi.zip (2.1 KB, 75 views)
Reply With Quote

  #16  
Old 02-08-2010, 03:50 PM
rplacido's Avatar
rplacido rplacido is offline
Junior Member
 
Join Date: Jan 2010
Location: Portugal
Posts: 36
Default

thanks a lot
i only cant load the files :S
Reply With Quote

  #17  
Old 02-08-2010, 04:14 PM
Habhome's Avatar
Habhome Habhome is offline
Moderator
 
Join Date: Jan 2010
Location: Sweden
Posts: 1,079
Default

Nice! Tried the app out.
And I know it's a pre-release so I won't complain much about bugs. But as rplacido said, loading doesn't seem to work. And perhaps do something about the spacing? It's a bit widely spaced sometimes, with double "l" and stuff like that.
Also when you switch to [123] it isn't completely obvious how to get back the keyboard, perhaps the [123] should change to [ABC].
Otherwise it's a really nice start! Looking forward to the first released version ^^
__________________
"If you are good enough at English to apologize, then there is no need to." - A good friend of mine
Discovered something about the X-Fi2 you think others may not know? Post it here so others can learn about it!
Have a question about X-Fi2 apps? Consult the FAQ before creating a thread about it.
Like my work? Tell your friends. Don't like it? Tell me so I can improve. ^.^
Reply With Quote

  #18  
Old 02-08-2010, 04:15 PM
jako123 jako123 is offline
Junior Member
 
Join Date: Feb 2010
Posts: 10
Default

yeah i cant load the files either. its a very good first atempt though
Reply With Quote

  #19  
Old 02-09-2010, 05:44 AM
ZaPx64's Avatar
ZaPx64 ZaPx64 is offline
Member
 
Join Date: Nov 2009
Location: Germany
Posts: 136
Default

Thanks for the feedback, loading does not work indeed, but it did once ago
As I said, I'm working on it
//EDIT: Work is (almost?) finished. See first post.

Last edited by ZaPx64; 02-13-2010 at 06:47 AM.
Reply With Quote

  #20  
Old 02-16-2010, 11:52 AM
JJLoke JJLoke is offline
Junior Member
 
Join Date: Jan 2010
Posts: 87
Default

hey ZaP, may i know what code did u use for deleting an alphanumeric character ? somehow i could not seem to find it in your code.

thanks !

i currently making a text reader program by myself too. simpler coding and nicer graphics. i have no knowledge on LUA, except to analyse existing code from users like you and learn from there by trial and error

=D
Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT -5. The time now is 03:22 PM.