Author Topic: Exchanging "/" And ","  (Read 8738 times)

daniel3000

  • Hero Member
  • *****
  • Posts: 1003
    • View Profile
    • http://
Exchanging "/" And ","
« on: April 24, 2006, 12:32:58 pm »
Hello,

on my new SL-C3100 with Cacko 1.23 the "/" and "," key codes seem to be reversed.
Pushing the / key, I get a /.
Pushing Shift-/ I get a ,.

That's probably how the key is intended to be used, but in Cacko 1.23b1 on the SL-C3000 I had it the other way around, which is good for writing texts.

How can I change that in Cacko 1.23?

I have already removed and reinserted the section

Code: [Select]

 
  
  
  
  

 
  
  
  
  

 
  
  
  
  

and reloaded keyhelper, but to no avail. The keys are always reversed, no matter if I have this section in keyhelper.xml or not.
What setting may be overlaying this?

I have set German and US key mappings in keyboard setting, for fast switching on the symbol in the tray right besides the clock.

Thanks!
daniel
« Last Edit: April 24, 2006, 12:50:23 pm by daniel3000 »
SL-C3200 with weeXpc, based on pdaXrom 1.1.0beta3
HP 200LX with MS-DOS 5.0

bam

  • Hero Member
  • *****
  • Posts: 1213
    • View Profile
    • http://thegrinder.ws
Exchanging "/" And ","
« Reply #1 on: April 24, 2006, 01:33:20 pm »
look into /home/QtPalmtop/etc/keycode.tbl
SL-C3100 current: Stock/Tetsu 18h
Socket BT CF Card
Linksys WCF-12 802.11b/Cheapie USB Ethernet

The Grinder

tombraider

  • Sr. Member
  • ****
  • Posts: 409
    • View Profile
    • http://atoah.com/zaurus/
Exchanging "/" And ","
« Reply #2 on: April 24, 2006, 05:56:04 pm »
I have the same wish...to switch the forward slash and comma;  I looked at keycode.tbl, but don't know what to do with it.

Can someone give me a clue?

Thanks.  
 
Quote
look into /home/QtPalmtop/etc/keycode.tbl
[div align=\"right\"][a href=\"index.php?act=findpost&pid=124396\"][{POST_SNAPBACK}][/a][/div]
Learning Chinese?  Have a Mac?  Try Hanzi Master: Download for free

Tombraider's Zaurus C1000 Tips Web Site

SL-3200 from Conics.net: Sharp ROM| SL-C1000: Pdaxrom Beta 3

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
Exchanging "/" And ","
« Reply #3 on: April 24, 2006, 10:14:56 pm »
Quote
Hello,

on my new SL-C3100 with Cacko 1.23 the "/" and "," key codes seem to be reversed.
Pushing the / key, I get a /.
Pushing Shift-/ I get a ,.

That's probably how the key is intended to be used, but in Cacko 1.23b1 on the SL-C3000 I had it the other way around, which is good for writing texts.

How can I change that in Cacko 1.23?

I have already removed and reinserted the section

Code: [Select]

 
  
  
  
  

 
  
  
  
  

 
  
  
  
  

and reloaded keyhelper, but to no avail. The keys are always reversed, no matter if I have this section in keyhelper.xml or not.
What setting may be overlaying this?

I have set German and US key mappings in keyboard setting, for fast switching on the symbol in the tray right besides the clock.

Thanks!
daniel
[div align=\"right\"][a href=\"index.php?act=findpost&pid=124391\"][{POST_SNAPBACK}][/a][/div]

just remove that section and restart keyhelper. the default setting is that the /, key produces , and / is produced with shift mode. the above code section switches it around.
SL-C3000 - pdaXii13 build5.4.9 (based on pdaXrom beta3) / SL-C3100 - Sharp ROM 1.02 JP (heavily customised)
Netgear MA701 CF, SanDisk ConnectPlus CF, Socket Bluetooth CF, 4GB Kingston CF,  4GB pqi SD, 4GB ChoiceOnly SD, 2GB SanDisk SD USB Plus, 1GB SanDisk USB Plus, 1GB Transcend SD, 2GB SanDisk MicroSD with SD adaptor, Piel Frama Leather Case, GoldX 5-in-1 USB cable, USB hub, USB mouse, USB keyboard, USB ethernet, USB HDD, many other USB accessories...
(Zaurus SL-C3000 owner since March 14. 2005, Zaurus SL-C3100 owner since September 21. 2005)
http://members.iinet.net.au/~wyso/myZaurus - zBook3K

daniel3000

  • Hero Member
  • *****
  • Posts: 1003
    • View Profile
    • http://
Exchanging "/" And ","
« Reply #4 on: April 25, 2006, 04:55:24 am »
Quote
just remove that section and restart keyhelper. the default setting is that the /, key produces , and / is produced with shift mode. the above code section switches it around.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=124432\"][{POST_SNAPBACK}][/a][/div]

Hi Meanie,

I did exactly that, but after a khctl reload the key still produces the slash without shift... There must be another place where this is set.
keycode.tbl is somewhat cryptic. There is an entry for Key_Slash, but I don't know exactly what to do there.

Thanks!
daniel
SL-C3200 with weeXpc, based on pdaXrom 1.1.0beta3
HP 200LX with MS-DOS 5.0

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
Exchanging "/" And ","
« Reply #5 on: April 25, 2006, 06:33:18 am »
Quote
Quote
just remove that section and restart keyhelper. the default setting is that the /, key produces , and / is produced with shift mode. the above code section switches it around.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=124432\"][{POST_SNAPBACK}][/a][/div]

Hi Meanie,

I did exactly that, but after a khctl reload the key still produces the slash without shift... There must be another place where this is set.
keycode.tbl is somewhat cryptic. There is an entry for Key_Slash, but I don't know exactly what to do there.

Thanks!
daniel
[div align=\"right\"][a href=\"index.php?act=findpost&pid=124457\"][{POST_SNAPBACK}][/a][/div]

reload wont help you because you removed something and not added something. does the key work correctly if you turn off keyhelper? you might need to disable keyhelper, reboot and then reload keyhelper.
SL-C3000 - pdaXii13 build5.4.9 (based on pdaXrom beta3) / SL-C3100 - Sharp ROM 1.02 JP (heavily customised)
Netgear MA701 CF, SanDisk ConnectPlus CF, Socket Bluetooth CF, 4GB Kingston CF,  4GB pqi SD, 4GB ChoiceOnly SD, 2GB SanDisk SD USB Plus, 1GB SanDisk USB Plus, 1GB Transcend SD, 2GB SanDisk MicroSD with SD adaptor, Piel Frama Leather Case, GoldX 5-in-1 USB cable, USB hub, USB mouse, USB keyboard, USB ethernet, USB HDD, many other USB accessories...
(Zaurus SL-C3000 owner since March 14. 2005, Zaurus SL-C3100 owner since September 21. 2005)
http://members.iinet.net.au/~wyso/myZaurus - zBook3K

daniel3000

  • Hero Member
  • *****
  • Posts: 1003
    • View Profile
    • http://
Exchanging "/" And ","
« Reply #6 on: April 25, 2006, 07:42:52 am »
Quote
reload wont help you because you removed something and not added something. does the key work correctly if you turn off keyhelper? you might need to disable keyhelper, reboot and then reload keyhelper.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=124471\"][{POST_SNAPBACK}][/a][/div]


If I type khctl disable, the key works as I want it to work.
Subsequent reboot does NOT help, though: After the reboot, keyhelper is enabled again and the key again works as it should NOT do.

I'm stuck - why doesn't keyhelper accept my change? Is there another file which keyhelper uses?

I did another change: I inserted a mapping for Shift-Space to generate a space rather than the pipe symbol (because I accidentally hit Shift-Space a lot of times, especially with sticky shift key). That one works! So the keyhelper.xml file s really used. Strange..

daniel
SL-C3200 with weeXpc, based on pdaXrom 1.1.0beta3
HP 200LX with MS-DOS 5.0

Stubear

  • Hero Member
  • *****
  • Posts: 1164
    • View Profile
    • http://
Exchanging "/" And ","
« Reply #7 on: April 25, 2006, 08:18:00 am »
Quote
Quote
reload wont help you because you removed something and not added something. does the key work correctly if you turn off keyhelper? you might need to disable keyhelper, reboot and then reload keyhelper.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=124471\"][{POST_SNAPBACK}][/a][/div]


If I type khctl disable, the key works as I want it to work.
Subsequent reboot does NOT help, though: After the reboot, keyhelper is enabled again and the key again works as it should NOT do.

I'm stuck - why doesn't keyhelper accept my change? Is there another file which keyhelper uses?

Looks like you haven't properly removed the comma - slash switching section. Post you keyhelper.xml and we can have a look at what you might have missed.

Or if you'd rather start with a new empty keyhelper.xml and slowly add back the functionality you want.

Stu
SL-C1000, Hand converted to English with Japanese Input
Running X apps via X/Qt
iRiver USB host cable; Diatec P-Cord usb power cable (extendable); Acro's Reel Cable USB (A to A, B, Mini-B,  & Mini-B 8pin); GreenHouse 1Gb PicoDrive+; 2x256Mb Hagiwara SD cards; 128Mb Transcend CF card; 512Mb PQI CF card; AmbiCom WL1100C-CF 11B WLAN card

daniel3000

  • Hero Member
  • *****
  • Posts: 1003
    • View Profile
    • http://
Exchanging "/" And ","
« Reply #8 on: April 25, 2006, 10:02:57 am »
Quote
Looks like you haven't properly removed the comma - slash switching section. Post you keyhelper.xml and we can have a look at what you might have missed.

Or if you'd rather start with a new empty keyhelper.xml and slowly add back the functionality you want.

Stu
[div align=\"right\"][a href=\"index.php?act=findpost&pid=124486\"][{POST_SNAPBACK}][/a][/div]


I have doucle-checked the syntax and have found no problems with it. But maybe I missed something. Here is my /home/zaurus/Settings/keyhelper.xml file:

Code: [Select]



    
  
      
  

    
  
      
  

    
  
  


  
  






  
  
      
      
      
      
  



  
  
      
          
      
  

  
  
      
      
      
  




    
    



  
  
      
  

  
  
      
  

  
  
  
  

      
  
  
      
  



Any ideas?

Thanks
daniel
SL-C3200 with weeXpc, based on pdaXrom 1.1.0beta3
HP 200LX with MS-DOS 5.0

bam

  • Hero Member
  • *****
  • Posts: 1213
    • View Profile
    • http://thegrinder.ws
Exchanging "/" And ","
« Reply #9 on: April 25, 2006, 09:10:56 pm »
hmmmz, you could probably get a keycode.tbl from the stock rom and replace the one you have, that would do it for you, make sure to make a backup first (of your cacko keycode.tbl)
« Last Edit: April 25, 2006, 09:11:13 pm by bam »
SL-C3100 current: Stock/Tetsu 18h
Socket BT CF Card
Linksys WCF-12 802.11b/Cheapie USB Ethernet

The Grinder

daniel3000

  • Hero Member
  • *****
  • Posts: 1003
    • View Profile
    • http://
Exchanging "/" And ","
« Reply #10 on: April 26, 2006, 03:45:12 am »
Quote
hmmmz, you could probably get a keycode.tbl from the stock rom and replace the one you have, that would do it for you, make sure to make a backup first (of your cacko keycode.tbl)
[div align=\"right\"][a href=\"index.php?act=findpost&pid=124576\"][{POST_SNAPBACK}][/a][/div]

thanks for the idea.
Could someone send me one please (PM)?

What is the relation between keyhelper.xml and keycode.tbl? How does keyhelper work at all? Knowing that would allow me to understand much better what the issue could be.

THanks a lot
daniel
SL-C3200 with weeXpc, based on pdaXrom 1.1.0beta3
HP 200LX with MS-DOS 5.0

bam

  • Hero Member
  • *****
  • Posts: 1213
    • View Profile
    • http://thegrinder.ws
Exchanging "/" And ","
« Reply #11 on: April 26, 2006, 04:59:04 am »
keyhelper intercepts the keypresses then sends out a modified one(if any exists in the keyhelper.xml), basically speaking, but Stubear is much more detailed and knowledgeable than I at this subject.

keycode.tbl is what the os uses at a lower level, this is just a guess.
« Last Edit: April 26, 2006, 04:59:52 am by bam »
SL-C3100 current: Stock/Tetsu 18h
Socket BT CF Card
Linksys WCF-12 802.11b/Cheapie USB Ethernet

The Grinder

daniel3000

  • Hero Member
  • *****
  • Posts: 1003
    • View Profile
    • http://
Exchanging "/" And ","
« Reply #12 on: April 26, 2006, 08:42:08 am »
Quote
keyhelper intercepts the keypresses then sends out a modified one(if any exists in the keyhelper.xml), basically speaking, but Stubear is much more detailed and knowledgeable than I at this subject.

keycode.tbl is what the os uses at a lower level, this is just a guess.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=124621\"][{POST_SNAPBACK}][/a][/div]


Well, I meant more what keyhelper does when configuring the keycode conversion (i.e. e.g. "read in the XML, convert it into keycode.tbl, which is ued by lower system layer..." but that's only my guess yet).

daniel
SL-C3200 with weeXpc, based on pdaXrom 1.1.0beta3
HP 200LX with MS-DOS 5.0

Stubear

  • Hero Member
  • *****
  • Posts: 1164
    • View Profile
    • http://
Exchanging "/" And ","
« Reply #13 on: April 26, 2006, 10:15:06 am »
Sorry, my bad. I had forgotten that Anton had integrated keyhelper with cyrinput and that some of the keyhelper stuff is over-ridden by the cyrinput settings.

To get get slash and comma back to their default settings and to keep keyhelper working you will need to edit the "english" file in /home/zaurus/Application/cyrillica.

This is the default input method used by cyrinput for Cacko, if you have changed that using the Keyboard app in the Settings tab then you will need to edit that language file.

Anyway, a quick overview of what is happening with keypresses in Cacko (at least my understanding of it anyway).

Cyrinput (called CyrKeyboard in the input methods menu) parses the default language file in /home/zaurus/Application/cyrillica. This file has 4 sections [label], [screen], [keyboard] and [keyboard-fn]. The [screen] section maps out the onscreen keyboard seen when you select CyrKeyboard as an input method, the [keyboard] and [keyboard-fn] are used for the physical keyboard.

If you look at the default english file the keyboard section is
Code: [Select]
[keyboard]
','  ','  '/'
'/'  ','  ','
'?'  '?' '.'
0   0   0

which from a very dusty memory (search for cyrinput on the forums for a long thread on the layout of this file) tells cryinput to map slash to comma and comma to slash. If you want to do some other mappings here the order is
'original key'   'new value with shift'  'new value'
Not sure why the second line is '/' ',' ',' and not '/' '/' ',' but hey it works

These values overide anything that is mapped in keyhelper.xml, that is why you still see the slash-comma reversal after you edit keyhelper.xml.

to get your desired effect, remove the first 2 lines in the [keyboard] section and reboot.

Stu
SL-C1000, Hand converted to English with Japanese Input
Running X apps via X/Qt
iRiver USB host cable; Diatec P-Cord usb power cable (extendable); Acro's Reel Cable USB (A to A, B, Mini-B,  & Mini-B 8pin); GreenHouse 1Gb PicoDrive+; 2x256Mb Hagiwara SD cards; 128Mb Transcend CF card; 512Mb PQI CF card; AmbiCom WL1100C-CF 11B WLAN card

daniel3000

  • Hero Member
  • *****
  • Posts: 1003
    • View Profile
    • http://
Exchanging "/" And ","
« Reply #14 on: April 26, 2006, 11:04:26 am »
Quote
to get your desired effect, remove the first 2 lines in the [keyboard] section and reboot.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=124652\"][{POST_SNAPBACK}][/a][/div]


THANKS!!

Partial success.

I use the English and German layout via fast-switch. The "english" is now fixed. If english is activated I have the desired behavior.
However, I also removed these lines from the "german" file, but in the german keyboard setting the ke functions are still reversed...

The only difference of the two files is the [keybord-fn] section, which in the english file contains only "0 0 0" but in the german file it contains some lines with key codes:

Code: [Select]
[keybord-fn]
0x201b 0x20ac 0x20ac #euro
0x200a 0xd6 0xf6
0x200b 0xdc 0xfc
0x200c 0xc4 0xe4
0x2007 0xdf 0xdf
#0x2008 0  0
0 0 0

Could there be another mapping inside this code block?
BTW: How can I determine the codes of the keys?


Another question:
In about one year of heavy daily Zaurus usage I have never used that virtual keyboard or any other of these virtual input methods (only the physical keyboard). Is there a way to remove them cleanly from the entire system (and thus to avoid such kinds of problems)?


thanks again

daniel
SL-C3200 with weeXpc, based on pdaXrom 1.1.0beta3
HP 200LX with MS-DOS 5.0