OESF Portables Forum

Everything Else => General Support and Discussion => Zaurus General Forums => Archived Forums => Software => Topic started by: Zuber on June 04, 2004, 01:59:11 pm

Title: Code for £ (UK Pound Sign) in KeyHelper anyone ?
Post by: Zuber 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.
Title: Code for £ (UK Pound Sign) in KeyHelper anyone ?
Post by: Zuber 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...
Title: Code for £ (UK Pound Sign) in KeyHelper anyone ?
Post by: Zazz 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).
Title: Code for £ (UK Pound Sign) in KeyHelper anyone ?
Post by: cwaig on June 07, 2004, 03:33:58 am
From /opt/Qtopia/include/qnamespace.h:
        Key_sterling = 0x0a3
Title: Code for £ (UK Pound Sign) in KeyHelper anyone ?
Post by: mikew 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
Title: Code for £ (UK Pound Sign) in KeyHelper anyone ?
Post by: Zuber 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
Title: Code for £ (UK Pound Sign) in KeyHelper anyone ?
Post by: Zuber 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...
Title: Code for £ (UK Pound Sign) in KeyHelper anyone ?
Post by: cwaig 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...
Title: Code for £ (UK Pound Sign) in KeyHelper anyone ?
Post by: Zuber on June 10, 2004, 05:04:06 am
OK thanks.

Either I\'m overlooking something or it is a KeyHelper thing.
Title: Code for £ (UK Pound Sign) in KeyHelper anyone ?
Post by: Zuber 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...
Title: Code for £ (UK Pound Sign) in KeyHelper anyone ?
Post by: mikew 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
Title: Code for £ (UK Pound Sign) in KeyHelper anyone ?
Post by: mikew 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