Author Topic: Code for £ (UK Pound Sign) in KeyHelper anyone ?  (Read 3832 times)

Zuber

  • Sr. Member
  • ****
  • Posts: 277
    • View Profile
    • http://www.shirtpocket.co.uk
Code for £ (UK Pound Sign) in KeyHelper anyone ?
« on: June 04, 2004, 01:59:11 pm »
Anyone figured out what keycode to use to get a £ (UK pound sign) in keyhelper.

I can get it off the virtual keyboards, but the keyhelper config program does not accept virtual keyboard inputs, so I can\'t get it to gen. the code for me.
Zuber
ShirtPocket Ltd.
www.shirtpocket.co.uk

Zuber

  • Sr. Member
  • ****
  • Posts: 277
    • View Profile
    • http://www.shirtpocket.co.uk
Code for £ (UK Pound Sign) in KeyHelper anyone ?
« Reply #1 on: June 06, 2004, 06:25:08 am »
OK,

I guess I\'m the only person with a Zaurus that uses £££  

Roll on joining the Euro...
Zuber
ShirtPocket Ltd.
www.shirtpocket.co.uk

Zazz

  • Jr. Member
  • **
  • Posts: 69
    • View Profile
Code for £ (UK Pound Sign) in KeyHelper anyone ?
« Reply #2 on: June 06, 2004, 11:22:49 am »
root@zaurus(pts0):~# grep -i sterling /usr/X11R6/include/X11/keysymdef.h
#define XK_sterling            0x0a3

Never used this xkeyhelper but for xmodmap the string \'sterling\' works as do the numbers 163 or 0xa3 (and the string \'pound\' works for loadkeys).

cwaig

  • Full Member
  • ***
  • Posts: 153
    • View Profile
Code for £ (UK Pound Sign) in KeyHelper anyone ?
« Reply #3 on: June 07, 2004, 03:33:58 am »
From /opt/Qtopia/include/qnamespace.h:
        Key_sterling = 0x0a3
SL5500+Origo WIFI+Pocketop Keyboard+BlueMonkey Bluetooth+IBM Microdrive+SL6000+iRiver USB host+PackardBell USB RF mini-mouse+Cheapo Kingmax USB laptop Keyboard+Dynamode USB Ethernet Adaptor
Wrote a couple of things....
IRK, SubApplet, QMode2, NetActive, SimpleEdit, zPocketScript.

mikew

  • Full Member
  • ***
  • Posts: 193
    • View Profile
Code for £ (UK Pound Sign) in KeyHelper anyone ?
« Reply #4 on: June 07, 2004, 05:03:31 am »
Zuber

I assumed that it was a data entry & display problem, for example Hancock Word can\'t display a £ sign entered into a document on a PC, interestingly, I can copy the rectangle from Hancock Word to StageOne where it is displayed correctly.

I use the £ symbol all the time, so I would be interested in a solution that would work for all applications.

Mike
C3200, C760 Cacko 1.23 ROM, 1gb SD, 1gb CF, WiFi, Imate Jasjar & Psion Netbook

Zuber

  • Sr. Member
  • ****
  • Posts: 277
    • View Profile
    • http://www.shirtpocket.co.uk
Code for £ (UK Pound Sign) in KeyHelper anyone ?
« Reply #5 on: June 07, 2004, 05:26:29 pm »
Not sure exactly what is going on.

Tried the suggestions above, but crashed and burned.

Interestingly, Fn + I is called \"Sterling\" in KeyHelper Config. But it does not generate a £ in any of the apps. Not tried it in Stage One.

I currently get £ from using the virtual unicode keyboard. This has a £ and it is correctly reproduced. I guess this is mapped to a different character to \"Sterling\" Fn +I

A Solution would be nice...



Not tried it on stage one, but
Zuber
ShirtPocket Ltd.
www.shirtpocket.co.uk

Zuber

  • Sr. Member
  • ****
  • Posts: 277
    • View Profile
    • http://www.shirtpocket.co.uk
Code for £ (UK Pound Sign) in KeyHelper anyone ?
« Reply #6 on: June 09, 2004, 03:46:31 pm »
Bump...

Final call on this one I guess. If nobody has any other ideas, I guess I can resign myself to the virtual Unicode keyboard.

Just seams ashame, as it looks possible...
Zuber
ShirtPocket Ltd.
www.shirtpocket.co.uk

cwaig

  • Full Member
  • ***
  • Posts: 153
    • View Profile
Code for £ (UK Pound Sign) in KeyHelper anyone ?
« Reply #7 on: June 09, 2004, 05:05:45 pm »
I\'ve just tried this with my Pocketop keyboard by using IRK to map one of the keys to send the code 0xa3 (163 decimal), and it works fine. Up comes the £ sign, just like you\'d expect...
SL5500+Origo WIFI+Pocketop Keyboard+BlueMonkey Bluetooth+IBM Microdrive+SL6000+iRiver USB host+PackardBell USB RF mini-mouse+Cheapo Kingmax USB laptop Keyboard+Dynamode USB Ethernet Adaptor
Wrote a couple of things....
IRK, SubApplet, QMode2, NetActive, SimpleEdit, zPocketScript.

Zuber

  • Sr. Member
  • ****
  • Posts: 277
    • View Profile
    • http://www.shirtpocket.co.uk
Code for £ (UK Pound Sign) in KeyHelper anyone ?
« Reply #8 on: June 10, 2004, 05:04:06 am »
OK thanks.

Either I\'m overlooking something or it is a KeyHelper thing.
Zuber
ShirtPocket Ltd.
www.shirtpocket.co.uk

Zuber

  • Sr. Member
  • ****
  • Posts: 277
    • View Profile
    • http://www.shirtpocket.co.uk
Code for £ (UK Pound Sign) in KeyHelper anyone ?
« Reply #9 on: June 20, 2004, 04:06:41 pm »
Got it  

Following text in keyhelper does the job.

<define code=<\"200a\">
 <map key=\"sterling\"/>
 <map_unicode code=\"00A3\"/>
</define>

First line just assigns it to Fn + 6 (Looks a little bit like a pound sign if you squint...

Not sure what the second line does, but does not work without it. It does not even need to say \"sterling\" I just put that in there because it looks neater. Does have to contain a valid entry though. e.g. Give same result if it had \"yen\" in it.

Perhaps someone else can explain the how/why it works.

Anyway, in principle should be good for whatever unicode character you want...
Zuber
ShirtPocket Ltd.
www.shirtpocket.co.uk

mikew

  • Full Member
  • ***
  • Posts: 193
    • View Profile
Code for £ (UK Pound Sign) in KeyHelper anyone ?
« Reply #10 on: August 20, 2004, 08:52:23 am »
Zuber

Just been looking for a £ key after upgrading to Cacko ROM, which has keyhelper as standard.

Fn+P displays a £ character, P for Pound should be reasonably easy to remember.

Works in Hancom Word & StageOne.

I used copy £ from a Word file, displayed correctly in StageOne but not in Hancom Word.

Mike
C3200, C760 Cacko 1.23 ROM, 1gb SD, 1gb CF, WiFi, Imate Jasjar & Psion Netbook

mikew

  • Full Member
  • ***
  • Posts: 193
    • View Profile
Code for £ (UK Pound Sign) in KeyHelper anyone ?
« Reply #11 on: August 20, 2004, 09:00:17 am »
Interesting

The £ that I copied from a Word document is not the same one thats generated using Fn+P, the second one looks like this ₤, with 2 bars through the upright.

Mike
C3200, C760 Cacko 1.23 ROM, 1gb SD, 1gb CF, WiFi, Imate Jasjar & Psion Netbook