CHDK - virtual keyboard - testers needed! - page 11 - General Discussion and Assistance - CHDK Forum

CHDK - virtual keyboard - testers needed!

  • 150 Replies
  • 31454 Views
Re: CHDK - virtual keyboard - testers needed!
« Reply #100 on: 19 / January / 2012, 03:49:01 »
Advertisements
I'm pretty sure that changeset description went to the bad thread ;)

About changes in code of keyboard - actually I agree with that. I said before that for me better idea is to use arrays just like in EDI, without "|" separator. And in-module selection of charmaps solves problems with loading charmap from outside file.

About layout - That's like I was thinking about :) But Tobi has provided working code so I didn'd mind to change this....

Regards!
if (2*b || !2*b) {
    cout<<question
}

Compile error: poor Yorick

*

Offline philmoz

  • *****
  • 3332
    • Photos
Re: CHDK - virtual keyboard - testers needed!
« Reply #101 on: 19 / January / 2012, 03:51:56 »
I'm pretty sure that changeset description went to the bad thread ;)

Thanks, I've moved it to the right place.

Phil.
CHDK ports:
  sx30is (1.00c, 1.00h, 1.00l, 1.00n & 1.00p)
  g12 (1.00c, 1.00e, 1.00f & 1.00g)
  sx130is (1.01d & 1.01f)
  ixus310hs (1.00a & 1.01a)
  sx40hs (1.00d, 1.00g & 1.00i)
  g1x (1.00e, 1.00f & 1.00g)
  g5x (1.00c, 1.01a, 1.01b)
  g7x2 (1.01a, 1.01b, 1.10b)

Re: CHDK - virtual keyboard - testers needed!
« Reply #102 on: 19 / January / 2012, 17:37:59 »
I was reading the sources and thinking about charmaps compiled into module. However I'm not sure if this is a good idea. I think that loading charmaps just like we load language file is better idea. It gives every user, even without any programming skills a way to provide new charmap for different language. It doesn't require any compilations and so on.

About moving config into specified tbox.cfg file - I'm for it!

About Lua command - oh yes! I need this as far as possible! I did some work but still have no idea how to do this correctly (as described above)...

About new layout corresponding to the arrows on the keyboard - I also hope I'll have some free time this weekend so this will be my homework :)

And about potential crash - I'm pretty sure that I'm not sure what this code do and means... I'm not a programmer, so I don't know all consequences of the code... Also - the implementation of the tbox into the reyalp-flt was done by tsvstar and I don't understand this enough. Though. I'm reading the source and learn a lot from it, but I'm still so far away...
if (2*b || !2*b) {
    cout<<question
}

Compile error: poor Yorick

*

Offline philmoz

  • *****
  • 3332
    • Photos
Re: CHDK - virtual keyboard - testers needed!
« Reply #103 on: 19 / January / 2012, 18:03:23 »

I was reading the sources and thinking about charmaps compiled into module. However I'm not sure if this is a good idea. I think that loading charmaps just like we load language file is better idea. It gives every user, even without any programming skills a way to provide new charmap for different language. It doesn't require any compilations and so on.


Here's how I see it:
- the number of people using CHDK is relatively small
- the number of people who will use the text box in CHDK is smaller
- the number of people who will need alternate char maps is still smaller
- the number of people who would bother to create a char map (rather than posting a request that someone else create one for them) is approaching 0
- the number of potential char maps needed is finite - if the CHDK-DE devs picks this up you may get a good collection created fairly quickly.

I'd rather expend effort getting the system working, stable and usable instead of implementing features that will go mostly unused (IMO).

Phil.
CHDK ports:
  sx30is (1.00c, 1.00h, 1.00l, 1.00n & 1.00p)
  g12 (1.00c, 1.00e, 1.00f & 1.00g)
  sx130is (1.01d & 1.01f)
  ixus310hs (1.00a & 1.01a)
  sx40hs (1.00d, 1.00g & 1.00i)
  g1x (1.00e, 1.00f & 1.00g)
  g5x (1.00c, 1.01a, 1.01b)
  g7x2 (1.01a, 1.01b, 1.10b)


*

Offline philmoz

  • *****
  • 3332
    • Photos
Re: CHDK - virtual keyboard - testers needed!
« Reply #104 on: 20 / January / 2012, 04:12:47 »
I've created a temporary branch, textbox_test, with my re-work of the text box module & interface.
This branch contains the latest updates from the main trunk plus my mods to the text box.

Also includes the ability to call the text box from a Lua script and a sample script in CHDK/SCRIPTS/TEST/tboxtest.lua.

Phil.
CHDK ports:
  sx30is (1.00c, 1.00h, 1.00l, 1.00n & 1.00p)
  g12 (1.00c, 1.00e, 1.00f & 1.00g)
  sx130is (1.01d & 1.01f)
  ixus310hs (1.00a & 1.01a)
  sx40hs (1.00d, 1.00g & 1.00i)
  g1x (1.00e, 1.00f & 1.00g)
  g5x (1.00c, 1.01a, 1.01b)
  g7x2 (1.01a, 1.01b, 1.10b)

*

Offline msl

  • *****
  • 1276
  • A720 IS, SX220 HS 1.01a
    • CHDK-DE links
Re: CHDK - virtual keyboard - testers needed!
« Reply #105 on: 20 / January / 2012, 04:22:11 »
Here's how I see it:
- the number of people using CHDK is relatively small
- the number of people who will use the text box in CHDK is smaller
- the number of people who will need alternate char maps is still smaller
- the number of people who would bother to create a char map (rather than posting a request that someone else create one for them) is approaching 0
- the number of potential char maps needed is finite - if the CHDK-DE devs picks this up you may get a good collection created fairly quickly.

I so agree.

For a extra German char map we need only seven extra chars (äöüÄÖÜß), which can be incorporated into standard map. I miss the currency char € in the default map. There are also other languages with a few extra characters. They can also built in standard map when needed.

Maybe we need optional maps for languages with other signs, e.g. cyrillic, greek, chinese.

msl
CHDK-DE:  CHDK-DE links

Re: CHDK - virtual keyboard - testers needed!
« Reply #106 on: 20 / January / 2012, 06:34:41 »
I like the changes.

There's a problem with russian keyboard now. When I selected russian and run tbox (either from Lua of fselect) there appears only charmap line. There is no whole gui (window, text field, buttons...). When I chande letters (shoot_half) russian keyboard doesn't appear...
if (2*b || !2*b) {
    cout<<question
}

Compile error: poor Yorick

*

Offline philmoz

  • *****
  • 3332
    • Photos
Re: CHDK - virtual keyboard - testers needed!
« Reply #107 on: 20 / January / 2012, 06:40:51 »
I like the changes.

There's a problem with russian keyboard now. When I selected russian and run tbox (either from Lua of fselect) there appears only charmap line. There is no whole gui (window, text field, buttons...). When I chande letters (shoot_half) russian keyboard doesn't appear...

Looks like the special characters got converted to unicode (16 bit values) in the source file.

I've updated SVN - see if that fixes it.

Phil.
CHDK ports:
  sx30is (1.00c, 1.00h, 1.00l, 1.00n & 1.00p)
  g12 (1.00c, 1.00e, 1.00f & 1.00g)
  sx130is (1.01d & 1.01f)
  ixus310hs (1.00a & 1.01a)
  sx40hs (1.00d, 1.00g & 1.00i)
  g1x (1.00e, 1.00f & 1.00g)
  g5x (1.00c, 1.01a, 1.01b)
  g7x2 (1.01a, 1.01b, 1.10b)


Re: CHDK - virtual keyboard - testers needed!
« Reply #108 on: 20 / January / 2012, 08:16:39 »
Works with no problems now. For me I can now try to work on gui and then let it move to the trunk :)
if (2*b || !2*b) {
    cout<<question
}

Compile error: poor Yorick

Re: CHDK - virtual keyboard - testers needed!
« Reply #109 on: 21 / January / 2012, 03:32:29 »
Hi
I'm back (I was a bit sick and had not enough time to write code).
Now I have implemented a "button style keyboard" (as philmoz wanted). It works but it is not good, it would be much easier
if we store the keyboard (as said above) in an array. But to make that big parts need a rewrite and so I have made a working "alpha version".
Now it needs to know the length of the characters for the buttons but if we make the keyboard as an array we could use strlen.

About new layout corresponding to the arrows on the keyboard - I also hope I'll have some free time this weekend so this will be my homework :)
If you have a better Idea then my implementation please make it or implement the
saving of the keyboard as an array.

I've made a checkout from tbox_test branch and worked on this (I don't know if it's the
same as trunk or reyalp-flt)!

 

Related Topics