android
  #101  
Old 03-18-2010, 04:50 PM
ZaPx64's Avatar
ZaPx64 ZaPx64 is offline
Member
 
Join Date: Nov 2009
Location: Germany
Posts: 136
Default

Quote:
Originally Posted by Brett_val View Post
That's a nice idea (for when left-right scrolling is off)

But for that, I first need to find a formula to calculate how the length of characters change with the textsize.. I tried some calculations but they didn't turn out accurate, which is also why it still isn't possible to type or to set the cursor at a specific place when zoomed in/out.
If anyone has any ideas for that it would be great.
That's why I tried a bitmap font instead of text.draw() because it has a fixed character width. It's a bit tricky to use but it's faster at all.
__________________
Zen X-Fi2 Apps: Notee-fi (notepad) | TicTacToe | Mahjongg
http://www.starfare.eu/ - a free real-time strategy game.
Reply With Quote

Advertisement [Remove Advertisement]

  #102  
Old 03-18-2010, 05:09 PM
Brett_val's Avatar
Brett_val Brett_val is offline
Senior Member
 
Join Date: Jan 2010
Location: The Netherlands
Posts: 636
Default

Quote:
Originally Posted by ZaPx64 View Post
That's why I tried a bitmap font instead of text.draw() because it has a fixed character width. It's a bit tricky to use but it's faster at all.
Yeah I've noticed a few times already that it's better to let all the characters have the same width, but I think it looks better when they have their own width. Even when I was playing around with bitmap fonts I made it draw the "i" for 3 pixels and the "w" for 13, for example.
That is what you mean, right?

I measured all the characters manually, so I will stick to it
Reply With Quote

  #103  
Old 03-19-2010, 01:06 AM
G.Ri G.Ri is offline
Junior Member
 
Join Date: Jan 2010
Posts: 37
Default

Love the new version. Some nice improvements. Just a few things:

-When typing in a file name (save/load) and the player is turned portrait, the phone style keyboard comes up and the file naming dialog box disappears. You can still type but you can't see it. Then when you turn back to landscape it looks all glitchy, but if you press a letter the dialog returns over the glitchy screen. It'd be nice to see the SMS keyboard useable in these screens though. But temporarily disabling it there in this version would be a good fix for now.

-There's no indication when the capslock is on in the SMS keyboard. That would be helpful.

-When left-right scrolling is off and you zoom in on view mode, the text goes off the screen and you can't scroll to it. Enabling word wrapping while zooming (like was mentioned above) would be an optimal fix, but maybe left and right scrolling could automatically turn on when you zoom in (but not right when you enter read mode, if that's possible) for now?

-This one might just be a preference thing, but the hide keys button with the arrow behind it looks kinda weird to me.

Overall, nice work. I hope my notes help. And good luck figuring out word wrapping in zoom mode!
Reply With Quote

  #104  
Old 03-19-2010, 03:23 AM
fzbm123 fzbm123 is offline
Junior Member
 
Join Date: Jan 2010
Posts: 49
Default

nice app jus some suggestions here:


1) how bout give some feedback wen typing in SMS mode (eg. highlighting the buttons wen u click on them)

Quote:
Originally Posted by G.Ri View Post
There's no indication when the capslock is on in the SMS keyboard. That would be helpful.
2) ya true, make us able to see whether we r typing in caps lock mode or not wen typing in SMS mode
(eg. make the characters in the button small mode (eg. abcdef) wen capslock is off n make the characters in the button capital mode (eg. ABCDEF) wen capslock in on)

3) give the ability to move the curser wen in SMS mode

4) im not sure abt this cuz it will takes up space so its up to u. anw its abt giving more features in SMS mode (eg. enter button, shift button etc)

5) can the buttons in SMS mode also be coloured (eg. wen we choose the buttons colour green in the menu, the buttons in SMS mode becomes green)


Thx i hope my suggestions won go to waste. im not a programmer so i can only give suggestions. im trying to learn to program now so wish me luck
Reply With Quote

  #105  
Old 03-19-2010, 01:54 PM
nipico nipico is offline
Junior Member
 
Join Date: Feb 2010
Posts: 43
Default

Hello Brett_val

Congratulation for your app

I'm interested in your sms mode because i want to put it in my app to ask for name of player.
Is it possible to have access to your code because when i open your main file in Lua Edit, I can't see anything.

Thx
Reply With Quote

  #106  
Old 03-21-2010, 05:52 PM
Brett_val's Avatar
Brett_val Brett_val is offline
Senior Member
 
Join Date: Jan 2010
Location: The Netherlands
Posts: 636
Default

Quote:
Originally Posted by G.Ri View Post
-When typing in a file name (save/load) and the player is turned portrait, the phone style keyboard comes up and the file naming dialog box disappears. You can still type but you can't see it. Then when you turn back to landscape it looks all glitchy, but if you press a letter the dialog returns over the glitchy screen. It'd be nice to see the SMS keyboard useable in these screens though. But temporarily disabling it there in this version would be a good fix for now.
While reading your post I thought about disabling the portraitmode while saving/loading, but I think you have a good point that it should be useable. Disabling it for now would be an option, but I think that it is just as easy as making it work properly v2.61 will have this fix, thanks!

I'll also make something to indicate that capslock is on.

I also really like the idea of rewrapping everything when zooming out, but until I figure out a formula for the length of the characters in function of text size, I'll just enable left-right scrolling when you have zoomed in, to make everything viewable.

(I broke my head over this for a few hours while playing around with paint and test-apps, but it really is a mystery to me... If anyone else is also interested in this, maybe I can make a development thread about it?)

Quote:
-This one might just be a preference thing, but the hide keys button with the arrow behind it looks kinda weird to me.
I really liked the arrow key at the bottom left, like it was before. So I had to place it somewhere else instead of removing it.. I agree that it looks a little weird though, I was also experimenting a little with images behind text, like the red ball behind shift which I personally really like. But yeah, the arrow needs to go.. Ill take it out sometime..
Quote:
Originally Posted by fzbm123 View Post
nice app jus some suggestions here:
1) how bout give some feedback wen typing in SMS mode (eg. highlighting the buttons wen u click on them)
3) give the ability to move the curser wen in SMS mode
4) im not sure abt this cuz it will takes up space so its up to u. anw its abt giving more features in SMS mode (eg. enter button, shift button etc)
5) can the buttons in SMS mode also be coloured (eg. wen we choose the buttons colour green in the menu, the buttons in SMS mode becomes green)
1) and 5) it would indeed be a lot nicer if those buttons have the same color(s) as the normal mode. I'll try and find some other keys for it. And with that, I'll think of some indication when you click on them

3)I know that that's missing, and I tried to add that piece of code, but it resulted in the app going nuts when I clicked it. (really, it flickered to options screens and such, as if I clicked everything at the same time) But, I understand that its needed, so Ill give it another try, it must be something I overlooked before

4)Well, I wanted to add that, but I dont really know where to place it..
Should I place the Enter button above the keyboard?

Quote:
Thx i hope my suggestions won go to waste. im not a programmer so i can only give suggestions. im trying to learn to program now so wish me luck
Hey if you want to program for the Zen, just look at the wiki for the commands, and view some apps to see how those commands are used, combine that with some math and a lot of common sense, and you will get pretty far
Quote:
Originally Posted by nipico View Post
Hello Brett_val
Congratulation for your app
I'm interested in your sms mode because i want to put it in my app to ask for name of player.
Is it possible to have access to your code because when i open your main file in Lua Edit, I can't see anything.
Thx
Thanks Nipico,
And yes I compiled the code with the app from ThievingSix. Its not that I dont want anyone to look into the code, but I thought it would be a little faster this way. At least I think its faster..
Anyway I pmed you the sms code.

If anyone wants something from my code, I'll be happy to supply it. Even when it's not compiled I don't think it would make a lot of sense if you search through it, because it's full of variables I made up and they all connect to eachother in some way. So just pm me and I'll try to explain it.

I really appreciate the nice comments That's really what keeps me going to keep improving this app. Just to let you know, I'm working on a copy/paste option. While I was trying to program a little game with it, I thought it would be very useful if you could select strings and delete them, or copy them somewhere else. That would also replace the touch.hold for the backbutton, which isn't working properly anyway.

I also noticed that my wordwrapping is not solid. When you just keep pressing one button it starts doing strange things. So I'll be working on that too.
Reply With Quote

  #107  
Old 03-21-2010, 08:41 PM
kushndonuts kushndonuts is offline
Junior Member
 
Join Date: Jan 2010
Location: Maryland
Posts: 29
Default

this is so cool
Reply With Quote

  #108  
Old 03-21-2010, 08:48 PM
G.Ri G.Ri is offline
Junior Member
 
Join Date: Jan 2010
Posts: 37
Default

Quote:
Originally Posted by Brett_val View Post
I really liked the arrow key at the bottom left, like it was before. So I had to place it somewhere else instead of removing it.. I agree that it looks a little weird though, I was also experimenting a little with images behind text, like the red ball behind shift which I personally really like. But yeah, the arrow needs to go.. Ill take it out sometime..
I like the red ball behind shift too. It looks sort of similar to how my caps key looks on my real keyboard.
You could switch the positions of menu and hide keys, and the put the arrow below the text and make the button bigger. It might be helpful to keep it to make the function of the up arrow in zoom more obvious to someone who hasn't used your app much.

Quote:
4)Well, I wanted to add that, but I dont really know where to place it..
Should I place the Enter button above the keyboard?
Above the keyboard would look a little funny imo. Maybe split the backspace and put it there? I don't know the exact dimensions but you could practically use the same backspace and enter from the qwerty keyboard, couldn't you?

Copy/paste sounds awesome! That would be pretty useful.

fzbm123 also suggested shift on the SMS keyboard. You could integrate that into the caps key like on the qwerty keyboard.

Also, I just noticed the 0 key on the SMS keyboard doesn't actually let you type 0. haha you might want to add that.
Reply With Quote

  #109  
Old 03-22-2010, 11:56 AM
bad.boy bad.boy is offline
Junior Member
 
Join Date: Mar 2010
Posts: 2
Talking

Ik vind het een handig programma, het menu kun je inderdaad wat beter maken, maar voor de rest vind ik het wel goed.

P.S. Kun je niet een apart bestandsformaat maken, dan kun je het makkelijk op je pc maken.
----------------------------------------------------------------------------------------
I think it's a good program. You could improve/make a menu, but it's ok.

P.S. Could you make a fileformat, so you can edit it better on your pc?

P.S.S. I'm not good at English
Reply With Quote

  #110  
Old 03-22-2010, 01:49 PM
RobertsAccount's Avatar
RobertsAccount RobertsAccount is offline
X-Fi2 App Master
 
Join Date: Jan 2010
Location: UK
Posts: 310
Default

Quote:
Originally Posted by bad.boy View Post
P.S.S. I'm not good at English
"If you are good enough at English to apologize, then there is no need to." - Habhome's friend.
Reply With Quote

  #111  
Old 03-22-2010, 05:35 PM
Brett_val's Avatar
Brett_val Brett_val is offline
Senior Member
 
Join Date: Jan 2010
Location: The Netherlands
Posts: 636
Default

Quote:
Originally Posted by G.Ri View Post
I like the red ball behind shift too. It looks sort of similar to how my caps key looks on my real keyboard.
You could switch the positions of menu and hide keys, and the put the arrow below the text and make the button bigger. It might be helpful to keep it to make the function of the up arrow in zoom more obvious to someone who hasn't used your app much.
Yeah that's what I thought, it helps to recognize the arrow key in the keyless-mode.
Thanks for the suggestion, I'll try it and see how it looks

Quote:
Above the keyboard would look a little funny imo. Maybe split the backspace and put it there? I don't know the exact dimensions but you could practically use the same backspace and enter from the qwerty keyboard, couldn't you?
Yeah those buttons would easily fit, but the point of the sms keyboard was to have larger keys. But okay I think splitting it in half would work, the sms keys are 80x80, and 80x40 is still larger than in the qwerty board.

Quote:
Copy/paste sounds awesome! That would be pretty useful.

fzbm123 also suggested shift on the SMS keyboard. You could integrate that into the caps key like on the qwerty keyboard.
Oh I forgot to mention that, yes ofcourse, I will keep the one press shift/two press caps function, it's very handy.
Quote:
Also, I just noticed the 0 key on the SMS keyboard doesn't actually let you type 0. haha you might want to add that.
Haha totally forgot about that.. I'll add the 0. I think the "/" has to go then.. or one of the "+,-,="..
Quote:
Originally Posted by bad.boy View Post
Ik vind het een handig programma, het menu kun je inderdaad wat beter maken, maar voor de rest vind ik het wel goed.

P.S. Kun je niet een apart bestandsformaat maken, dan kun je het makkelijk op je pc maken.
----------------------------------------------------------------------------------------
I think it's a good program. You could improve/make a menu, but it's ok.

P.S. Could you make a fileformat, so you can edit it better on your pc?

P.S.S. I'm not good at English
Thanks for that, I'm glad you like the app
What about the menu? Should I make it more obvious where you are?
And about file formats, I choose not to automatically append .txt or something after filenames, because sometimes you want to save it as .lua. And in the app file extensions aren't necessary at all.

But if you want your computer to recognize it as a text document, you can just type "filename.doc" (for Word documents), or "filename.txt" in the "save as" screen.
Reply With Quote

  #112  
Old 03-30-2010, 02:37 PM
Brett_val's Avatar
Brett_val Brett_val is offline
Senior Member
 
Join Date: Jan 2010
Location: The Netherlands
Posts: 636
Default

I'm revising the whole code, implementing things I have learned about LUA, and I'm also trying to make it a little faster.
The wordwrap as it is now contains some faults.. I'm really sorry about that.. I spend hours testing it and I think it's almost foolproof now Just have to do some more testing..
I really want this app to be stable, user friendly, foolproof and fast, and I won't stop working on it until I'm 100% happy with it.

While loading different textfiles I found some new characters (again) that the Zen displays as Chinese signs. This time it was because of this little bugger: “. The he also has a little brother that usually joins him at the other end of the sentence: ”
And I found this one: ’

They seem like normal quotation marks and an apostrophe, but they are different from these: " and ' , and the Zen doesn't want to display them properly, and I also can't find these on my pc keyboard.

Do any of you know about the difference between “ , ” and ", or ’ and ' ?
Reply With Quote

  #113  
Old 03-31-2010, 12:20 PM
chieldeblock chieldeblock is offline
Junior Member
 
Join Date: Feb 2010
Posts: 4
Default

I really have to say that you did a GREAT job!! It's really amazing and it works perfect (you're updates are getting better and better ^^)!! THANK YOU
Reply With Quote

  #114  
Old 03-31-2010, 01:48 PM
bzdbbb's Avatar
bzdbbb bzdbbb is offline
X-Fi2 Development Moderator
 
Join Date: Dec 2009
Location: Gloucestershire, UK
Posts: 94
Default

Quote:
Do any of you know about the difference between “ , ” and ", or ’ and ' ?
As far as I know theres no differerence apart from the ASCII value - what kinda difference were you looking for?
Reply With Quote

  #115  
Old 03-31-2010, 02:12 PM
Habhome's Avatar
Habhome Habhome is offline
Moderator
 
Join Date: Jan 2010
Location: Sweden
Posts: 1,080
Default

Quote:
Originally Posted by bzdbbb View Post
As far as I know theres no differerence apart from the ASCII value - what kinda difference were you looking for?
I'm pretty sure he's figured out the ASCII value is different He wants to know what the grammatical difference and usage of those are. And I can't really say that I know of any difference.
__________________
"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

  #116  
Old 03-31-2010, 04:26 PM
Les23 Les23 is offline
Junior Member
 
Join Date: Jan 2010
Location: Rome
Posts: 38
Default

cursive and not is too obvious?
Reply With Quote

  #117  
Old 04-02-2010, 01:50 PM
samarkand samarkand is offline
Junior Member
 
Join Date: Mar 2010
Posts: 2
Default

Thanks for the great app! I did want to say that the new version has been crashing my Zen after I load up a stored file. The file will load, but from there, it locks up and I have to hit the reset button. I'm just going to go back to the older version, which seemed to work fine (and I don't need the lost accelerometer functionality).

Quote:
Originally Posted by Brett_val View Post
While loading different textfiles I found some new characters (again) that the Zen displays as Chinese signs. This time it was because of this little bugger: . The he also has a little brother that usually joins him at the other end of the sentence:
And I found this one:

They seem like normal quotation marks and an apostrophe, but they are different from these: " and ' , and the Zen doesn't want to display them properly, and I also can't find these on my pc keyboard.

Do any of you know about the difference between , and ", or and ' ?
I think the problem is smart-quotes. It's something that Word does automatically (though the user can turn it off) that creates the fancy close and open quotation marks, which then get carried over as unicode, which apparently the Zen is not fond of. I've just been going through the text file and find-replace-ing the smart quotes with regular quotes.


I'm mainly using this app as a reader. Is there anyone working on an app that is only a reader with no other functions? I just want to be able to load in a txt file and read it on the go.
Reply With Quote

  #118  
Old 04-02-2010, 05:52 PM
Brett_val's Avatar
Brett_val Brett_val is offline
Senior Member
 
Join Date: Jan 2010
Location: The Netherlands
Posts: 636
Default

Quote:
Originally Posted by samarkand View Post
Thanks for the great app! I did want to say that the new version has been crashing my Zen after I load up a stored file. The file will load, but from there, it locks up and I have to hit the reset button. I'm just going to go back to the older version, which seemed to work fine (and I don't need the lost accelerometer functionality).
Thanks for the compliment, and the error that you speak of is new to me. I'd like some more details about it.
I have to say that I uploaded version 2.61 because version 2.6 would crash if you have firmware 1.12.08 installed. It's not that the accelerometer isn't functioning, but the old way of calling the accerometer would crash it anyway, or at least it did on my player. I may have understood that wrong, so I PMed you for some details.
Quote:
Originally Posted by samarkand View Post
I think the problem is smart-quotes. It's something that Word does automatically (though the user can turn it off) that creates the fancy close and open quotation marks, which then get carried over as unicode, which apparently the Zen is not fond of. I've just been going through the text file and find-replace-ing the smart quotes with regular quotes.
Okay that makes sense I did already find the codes for the characters, but the Zen doesn't like it indeed. My solution for now, is to have the app change those fancy quotes into regular quotes. (although that version is not available yet, I'm still working on it)
Quote:
Originally Posted by samarkand View Post
I'm mainly using this app as a reader. Is there anyone working on an app that is only a reader with no other functions? I just want to be able to load in a txt file and read it on the go.
I don't know of anyone working on such an app. You could just hide the keyboard, which turns it into a reader.

Another thing you could do, is to edit an xml file from an existing RSS feed on the player. Just replace the text between <description> and </description>. Funny thing is, the RSS reader does display the fancy quotes... which makes me wonder how the RSS reader manages to do this .

Last edited by Brett_val; 04-02-2010 at 05:59 PM.
Reply With Quote

  #119  
Old 04-02-2010, 09:29 PM
nikc4 nikc4 is offline
Junior Member
 
Join Date: Feb 2010
Location: In a cardboard box
Posts: 46
Default

Quote:
Originally Posted by Brett_val View Post
Funny thing is, the RSS reader does display the fancy quotes... which makes me wonder how the RSS reader manages to do this .
Maybe the player itself can read it, but the lua interpreter can't.
Reply With Quote

  #120  
Old 04-12-2010, 05:57 PM
Brett_val's Avatar
Brett_val Brett_val is offline
Senior Member
 
Join Date: Jan 2010
Location: The Netherlands
Posts: 636
Default

Quote:
Originally Posted by nikc4 View Post
Maybe the player itself can read it, but the lua interpreter can't.
Good point. That could explain it. But if that's the case, we'll never see every character displayed in a LUA notetaking app...

I heard there is a nosy journalist going through our apps, so I thought I'd hurry a bit with my updates.
No, seriously, I really love your initiative 3vil7ree! I think it's great what you are doing for the X-Fi2 community, and it also stimulates me a bit to get the work done

So, I have a new update!

First thing you will notice is that the images have changed. Thanks to Habhomes knowledge and advice I spend some time Gimp'in and I've finally created my own images . (okay there are three images left.. Ill create them myself later. Its just that Ive been working all day on this update and I wanted to upload what I have thusfar.)

I've revised almost the whole code, especially the main loop got a total makeover. Besides some possible improvents I think it's now also better readable for others, since this time I didn't care about the amount of lines the main.lua would get . Which is also because I learned that the size of the main.lua file only influences the startup speed of the app, and not the speed while it's running.. (which I also have to thank Habhome for)

The sms keyboard is still not really looking how I want it to be, but at least it's more functional now. I added the shift functionality, and you can now also do enters with it.
It's now also possible to place the cursor somewhere in smsmode by tapping (I think the code revising/cleanup did wonders, because before I got weird errors with this (like I posted before)).

I have to apologize for the bad wordwrapping I did before.. there were some really unnecessary bugs in it. The wordwrapping is much better now, and if anyone still finds some bugs, please discribe them carefully and Ill look into it.

I added an option: "new file" in main menu. While using the app I found that this was necessary.

New feature: Copy-paste can be accessed when you hold the screen above the keyboard, and also only when the keyboard is shown.
After the keys have disappeared, you can select text by moving your finger from RIGHT to LEFT. The selected text will be highlighted, and then you can click on "copy" or "cut". To paste the text, place the cursor somewhere and hold the screen at the same place, and then tap "paste".
For now, its only possible to select text from right to left, and also one line at a time.. I want to make it possible to select multiple lines, but I have to think about that some more.. again, it's just that I wanted to upload what I have thusfar, and I'm hoping to make this copy paste functionality a lot more user friendly later on.
Reply With Quote

Reply

Tags
application, notepad, x-fi 2

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 12:34 AM.