Getting special characters ...

2007-12-25 11:54:00

Thanks to :

Valentin Popa <Val.Popa@east.sun.com>

Bernt Christandl <beb@MPA-Garching.MPG.DE>

The solution suggested by Bernt Christandl

worked and is :

---------------------------------

as usual with unix, there are many ways to heaven, but none that can

garantuee that you arrive there...

The best way on suns to write things like \344 \370 \351 \346 \347 ...

would be to have an original sun-keyboard with those 10 extra-keys

on the left side, one being the "SunCompose"-Key.

Then you should be able to "compose" the above (and many more)

characters (hitting "SunCompose" and then 2 other characters, which should

be "overlayed": "a" and "e" give "\346", "c" and "," give "\347" and so on)

The second best way, the one i use on my Linux-box, is to use "xev"

and "xmodmap" to re-define an (nearly) unused key on your keyboard

to act as a "SunCompose"-Key.

With "xev" you can see the "key-number" and "key-name" of your keys.

(That not really correct, but for me it's enough)

The output would be something like

KeyPress event, serial 18, synthetic NO, window 0x3800001,

    root 0x2a, subw 0x3800002, time 2169658793, (30,42), root:(1062,68),

    state 0x0, keycode 113 (keysym 0xff20, Multi_key), same_screen YES,

    XLookupString gives 0 characters: ""

KeyRelease event, serial 21, synthetic NO, window 0x3800001,

    root 0x2a, subw 0x3800002, time 2169658858, (30,42), root:(1062,68),

    state 0x8, keycode 113 (keysym 0xff20, Multi_key), same_screen YES,

    XLookupString gives 0 characters: ""

That means, my key "113" acts as "Multi_key", which *is* "SunCompose",

which i achieved with this command:

     xmodmap -e 'keycode 113 = SunCompose'

But be careful! This number ("113") is usually not the same on different

keyboards or for different OSses! So, if you put it into your .login

(or similar) file, then you suddenly may notice an unexpected failure

of an often used key, if you sit at another keyboard. (This way

i once disbled my "v" and wondered until i've learned my error.)

---------------------------------

The original question:

Working on intel solaris 7 and 8 with a normal

104 keys keyboard.

Is there anyway to generate special characters

like a,e,i,o,u with a dash on top of each of them

and umlauts and so on.. ?

TIA. Will summarize.

regards

Pravin

_______________________________________________

codeprof mailing list

codeprof@codeprof.com

http://www.codeprof.com/execute/ask/?codeinfoid=61243

Comments

Got something to say?

You must be logged in to post a comment.