How to enter greek alpha under Xorg?
Asked Answered
L

2

15

I want to enter greek alpha letter under Xorg. In system xcompose (/usr/share/X11/locale/en_US.UTF-8/Compose) there is line:

<dead_greek> <a> : "α" U03B1  # GREEK SMALL LETTER ALPHA

How to enter it with US keyboard? My locale is en_US.UTF-8. What is this key <dead_greek>?

Lugo answered 17/2, 2013 at 14:18 Comment(2)
xmodmap -pke might give you some hints about nearby keys...Blas
There is no output from: xmodmap -pke |grep -i greekLugo
L
6

I just looked up /usr/share/X11/locale/en_US.UTF-8/Compose and there is no dead_greek character. There are only dead_acute, dead_iota, and the like to combine with alpha. There is no plain greek alpha in this file.

If you use gnome, look at this answer How can I map a character to a key combination? over at http://askubuntu.com. In your case this would be

Ctrl-Shift-u03b1space

If you have no dead_greek key in your xmodmap output, you can add one yourself. Search for a key you want to use for that purpose, right windows key or right super key for example. Then you can replace the definition of this key with dead_greek

keycode 133 = dead_greek NoSymbol SuperR
Loriloria answered 17/2, 2013 at 15:25 Comment(3)
File is stock, unmodified from x11-libs/libX11-1.5.0 package.Lugo
@LeonidVolnitsky Then it might be a distribution thing. I'm using Ubuntu 12.04.Loriloria
@LeonidVolnitsky I just looked and my package's version is 1.4.99.1, so it might be a bit older than yours.Loriloria
S
0

you could put this somewhere that runs after your keyboard is set up in X:

xmodmap -pke | awk '/keycode[ \t]+65[ =]/ { $5="dead_greek"; print $0; }' | xmodmap -

for my keyboard that maps shift-space to dead_greek.

Takes a bit of getting-used-to.

Sos answered 5/8, 2020 at 15:5 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.