Re: Latin-1 characters in X, how?

2000-05-15 Thread Jan Pfeifer
I think my .Xmodmap may help you with this. It sets the two windows
keys as Mod3 (which I assign to window manager functions) and the
menu key to compose, aka Multi_key. The compose key will be
accepted by most of the software (all gnome, xemacs, powershell(this
one is great), gnome-terminal, xterm(?), ...). I hope you can adapt it
for your need :)

jan

-- .Xmodmap:
keycode 0x73 = Super_L
keycode 0x75 = Multi_key dead_cedilla
keycode 0x74 = Super_R

clear mod3
clear mod4
clear mod5

add mod3 = Super_L
add mod3 = Super_R
--

to load it, just do 

$ xmodmap ~/.Xmodmap

or insert it in your .xinitrc file (or .xsession)


 The question is, how can I do the same with X clients?  I know about
 xmodmap and I have read its manpage, but it doesn't help me because it
 only talks about mapping single keycodes to keysyms.  Is the
 interpretation of compose sequences something that's left to the
 client under X?  
I think so, but actually I would also like to know more about this
mechanism.

 If so, how do I enable this in rxvt (or in xterm, if
 needs be)?



Latin-1 characters in X, how?

2000-05-14 Thread itz

My apologies for the newbieness of this post; when it comes to the
world of icons, colors and pixels, I am indeed a newbie, having spent
the last 4 years or so in text mode.

On the Linux virtual consoles I can enter Latin-1 characters into any
program using the Compose key sequences, provided these are defined in
the loaded keymap.  For example, here's a piece of my 
/etc/console-tools/default.kmap:

keycode 52 =period  greater Meta_period Meta_greater \
Compose

compose '`' 'A' to 'À'
compose '`' 'a' to 'à'
compose '\'' 'A' to 'Á'
compose '\'' 'a' to 'á'
compose '^' 'A' to 'Â'
compose '^' 'a' to 'â'
compose '~' 'A' to 'Ã'
compose '~' 'a' to 'ã'
compose '' 'A' to 'Ä'
compose '' 'a' to 'ä'
compose 'O' 'A' to 'Å'
compose 'o' 'a' to 'å'
compose '0' 'A' to 'Å'
compose '0' 'a' to 'å'
compose 'A' 'A' to 'Å'
compose 'a' 'a' to 'å'
compose 'A' 'E' to 'Æ'
compose 'a' 'e' to 'æ'


The question is, how can I do the same with X clients?  I know about
xmodmap and I have read its manpage, but it doesn't help me because it
only talks about mapping single keycodes to keysyms.  Is the
interpretation of compose sequences something that's left to the
client under X?  If so, how do I enable this in rxvt (or in xterm, if
needs be)?

I use potato, and everything in the environment is set up for US
English, and I want to leave it this way.


-- 
Ian Zimmerman, Oakland, California, U.S.A.
In his own soul a man bears the source
from which he draws all his sorrows and his joys.
Sophocles.



Re: Latin-1 characters in X, how?

2000-05-14 Thread Johann Spies
On Sun, May 14, 2000 at 09:17:17AM -0700, [EMAIL PROTECTED] wrote:
 
 My apologies for the newbieness of this post; when it comes to the
 world of icons, colors and pixels, I am indeed a newbie, having spent
 the last 4 years or so in text mode.
 
 On the Linux virtual consoles I can enter Latin-1 characters into any
 program using the Compose key sequences, provided these are defined in
 the loaded keymap.  For example, here's a piece of my 




 The question is, how can I do the same with X clients? 

On my system I use Control-ScrolLock as compose key in X.  I think it
is the standard setup.

Johann

-- 
J.H. Spies, Hugenotestraat 29, Posbus 80, Franschhoek, 7690, South Africa
Tel/Faks 021-876-2337 Sel/Cell 082 898 1528(Johann) 082 255 2388(Hester)
 Yea, though I walk through the valley of the shadow of
  death, I will fear no evil, for thou art with me; 
  thy rod and thy staff they comfort me.  Psalms 23:4 



Re: Latin-1 characters in X, how?

2000-05-14 Thread Ian Zimmerman
 Johann == Johann Spies [EMAIL PROTECTED] writes:

itz On the Linux virtual consoles I can enter Latin-1 characters into
itz any program using the Compose key sequences, provided these are
itz defined in the loaded keymap.  The question is, how can I do the
itz same with X clients?

Johann On my system I use Control-ScrolLock as compose key in X.  I
Johann think it is the standard setup.

No, that only turns on ScrollLock for me, as if Control were not
involved.  I tried both left and right Control.

-- 
Ian Zimmerman, Oakland, California, U.S.A.
In his own soul a man bears the source
from which he draws all his sorrows and his joys.
Sophocles.



Re: Latin-1 characters in X, how?

2000-05-14 Thread Hartmut Figge
[EMAIL PROTECTED] wrote:

 On the Linux virtual consoles I can enter Latin-1 characters into any
 program using the Compose key sequences, provided these are defined in
 the loaded keymap.  For example, here's a piece of my
 /etc/console-tools/default.kmap:

 The question is, how can I do the same with X clients?  I know about

i've done it in this way:

some lines from my .bash_profile:

# cat ~/.keymap | loadkeys 
loadkeys /home/hafi/.keymap  /dev/null 

and the content of .keymap:

$ cat ~/.keymap
shift keycode 100 = Compose
altgr keycode 42 = Compose

cu
-- 
hafi