[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Q: US keyboard layout and umlauts ?



On 11-Jul-99 Martin Schulze wrote:
> Gregor Hoffleit wrote:
>> I hope this problem is not too off-topic: In potato, how can I write
>> german umlauts with an traditional US keyboard layout ?
> 
> Interestingly I was trying a similar thing the other day.  Only US
> keyboards here. :-)
> 
> However, if it is just the layout, I'd say, switch to de*.map and
> switch back after use.  With this US keyboard, it didn't work.
> 
> If you only need umlauts in texts, I'd ask you to use Emacs and
> iso-accents-mode especially.  Using it, just type "s to get an ß.
> I've hooked it on M-i so I can switch whenever I want and in whatever
> mode I am.  I've heard, that vim has a similar thing.

I use the following additions to Xmodmap that allow me to enter the
umlaute via alt-r <x>. This works well for emacs/tcsh/vi/etc if I 
set LC_CTYPE to de_AT. Though for tcsh some functionality is lost (alt-l
d does not delete word anymor but prints out an umlaut).

! for switching to german umlaute
keysym Alt_R = Mode_switch
add Mod5 = Mode_switch

! ae, oe, ue, etc.
keysym a = a A adiaeresis
keysym o = o O odiaeresis
keysym u = u U udiaeresis
keysym s = s S ssharp ssharp

However, I think this (i.e. the alt_r mode switch) depends on the
xkdb-variant setting. I do use a default 104-key us keyboard. So my
X-server setting is

Section "Keyboard"
   Protocol        "Standard"
   XkbRules        "xfree86"
   XkbModel        "pc104"
   XkbLayout       "us"
EndSection

Of cause, someone should write a decent XKBD-variant file that includes
this. Or does it already exist and I am not aware of it?

Greetings, Peter


-------------------------------
Email: Peter.Pregler@risc.uni-linz.ac.at
WWW:   http://www.risc.uni-linz.ac.at/people/ppregler


Reply to: