public inbox for cygwin-xfree@sourceware.org
help / color / mirror / Atom feed
From: Hans Dekker <hans.dekker.ext@juntadeandalucia.es>
To: cygwin-xfree@cygwin.com
Subject: Re: Define a foreign language keyboard in HP-Ux CDE, with theAltGrkey?
Date: Thu, 13 Nov 2003 13:52:00 -0000	[thread overview]
Message-ID: <3FB38C75.60008@juntadeandalucia.es> (raw)
In-Reply-To: <Pine.LNX.4.58.0311131132240.12355@herkules.hrz.tu-chemnitz.de>

Looks interesting to do 'X tricks'.

REMARKABLE OBSERVATION:
It looks like the AltGr key is mapped well to the keyboard. Shift-key 
combinations work well for a Spanish keyboard.

IMPORTANT:
The command "xmodmap -pk" shows that there is NO third definition -so no 
definition for usage of AltGr key- for any key. All other keys using 
Shift (2nd definition for a key) shows the Spanish keyboard is mapped fine.

Changing the keyboard from Spanish to English in WindowsXP didn't make 
any difference.

So what happened to the definition of the 3rd meaning (being AltGr) of 
the keys?

Is there a mix between US keyboards (with no AltGr key combinations) and 
other keyboards with AltGr combinations, but still loading the two 
definitions from the keyboard language mapping?

Regards,

Hans.


I did the following:

Defined in XF86Config:

     Option "XkbModel"    "pc105"
     Option "XkbLayout"   "es"
     Option "XkbVariant"  "basic" # As the "es" file below opts.
     Option RightAlt      "ModeShift"


The file /etc/X11/xkb/symbols/pc/es is changed to (because the RightAlt 
option in XF86Config doesn't seem to change the mapping of AltGr):

     key <RALT>  { type[Group1]="TWO_LEVEL",
                   [ Mode_switch, Multi_key ]   };
     modifier_map Mod5   { <RALT> };


Output from xev, using Alexander Gottwalt's directions:

KeyPress event, serial 23, synthetic NO, window 0x1800001,
	root 0x3a, subw 0x0, time 2395765, (1,139), root:(535,281)
	stat 0x10, keycode 113 (keysym 0xff7e, Mode_switch), same_screen YES
	XlookupString gives 0 bytes: ""

KeyRelease event, serial 23, synthetic NO, window 0x1800001,
	root 0x3a, subw 0x0, time 20395875, (1,139), root:(535,281)
	stat 0x10, keycode 113 (keysym 0xff7e, Mode_switch), same_screen YES
	XlookupString gives 0 bytes: ""





Alexander Gottwald escribió:
> On Thu, 13 Nov 2003, Franz Roters wrote:
> 
> 
>>Sorry I am no expert at all in these things, but if you could give a 
>>step by step instruction how to do this. I would be glad to help.
> 
> 
> Start xwin
> login to CDE
> start a CDE xterm
>   $ xhost +
> start cygwin bash
>   $ DISPLAY=localhost:0.0 xev
> 
> A white window should open. Move the pointer into the window and press 
> AltGr. The logmessages now go to the bash window.  
> 



  reply	other threads:[~2003-11-13 13:52 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-13 10:06 Franz Roters
2003-11-13 10:34 ` Alexander Gottwald
2003-11-13 13:52   ` Hans Dekker [this message]
2003-11-13 15:39     ` Define a foreign language keyboard in HP-Ux CDE, with theAltGrkey?: Alexander Gottwald
2003-11-13 16:58       ` Hans Dekker

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3FB38C75.60008@juntadeandalucia.es \
    --to=hans.dekker.ext@juntadeandalucia.es \
    --cc=cygwin-xfree@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).