Contents |
Die Compose-Taste wird verwendet um Zeichen auf der Tastatur zu tippen, die normalerweise nicht verfügbar sind. Solche Zeichen können "Umlaute", ein "Längezeichen" oder Akzente auf Buchstaben werden:
Diese Beschreibungen wurden auf einigen Kubuntu Hardy Heron 8.04.1 Systemen getestet. Weitere Informationen finden Sie in dem Abschnitt Verknüpfungen und weitere Informationen unterhalb.
Die Änderungen werden unter (fast) allen Anwendungen, einschließlich der Arbeitsflächenumgebung, Browser, OpenOffice.org, sowie viele Konsolen / Nur Text-Anwendungen, funktionieren.
Die folgenden Anweisungen werden eine Compose-Taste einrichten, die auf die rechte Logo-Taste gelegt wird (auf den meisten Tastaturen ist dieses Logo das Windowslogo).
Um dies richtig zu tun, werde ich versuchen den "ganzheitlichen" Weg über das Terminal zu gehen:
$ sudo dpkg-reconfigure console-setup
Ich würde lieber die Symboltaste links nutzten, aber diese ist in den Konsoleneinstellungen nicht verfügbar. Aber in der grafischen Fenster-Umgebung (KDE Plasma) ist dies möglich.
Ich denke, dass die Auswahl mir die gewünschten Zeichen bietet.
Now we can go on and configure our windowing environment. This description uses either Kcontrol or the Kubuntu configuration tool, which exposes the same option dialogue.
Now we can go on and configure our windowing environment (Plasma). This description uses the System Settings as they're available in the K-Menu of the Kubuntu install:
These instructions apply to KDE 4.5 and above.
GTK (such as also Firefox) and Gnome applications use (on an Ubuntu system) usually SCIM as the input method, not XIM (X Input Method) that relies on the configurations from (X)Compose. Therefore, you will often find that the "a" and "o" macron characters can yield the female/male ordinals "ª" and "º". To still make it work, GTK applications need to be "told" to use XIM instead.
For a single application you can do it by just setting the environment variable GTK_IM_MODULE for the application to be launched to xim:
$ GTK_IM_MODULE=xim firefox
More permanently that can be done for a single shell session like this:
$ export GTK_IM_MODULE=xim
This can, of course, also be persisted for a single user in your ~/.bash_profile, or for all users in /etc/environment. This is, however, the less elegant way, the more elegant way follows below.
$ sudo cp /etc/X11/xinit/xinput.d/default /etc/X11/xinit/xinput.d/xim
... GTK_IM_MODULE=xim QT_IM_MODULE=xim ...
$ sudo ln -sf /etc/X11/xinit/xinput.d/xim /etc/X11/xinit/xinput.d/all_ALL
If you are using a Debian-derived distribution use following instead
$ sudo update-alternatives --verbose --install /etc/X11/xinit/xinput.d/all_ALL xinput-all_ALL /etc/X11/xinit/xinput.d/xim 20
Now that you're using XIM, you can further tweak the XCompose input map for further characters, or for characters in more convenient locations, etc.
To do that follow these steps:
# ~/.XCompose # This file defines custom Compose sequences for Unicode characters
# Import default rules from the system Compose file: include "/usr/share/X11/locale/en_US.UTF-8/Compose"
# To put some stuff onto compose key strokes: <Multi_key> <minus> <greater> : "→" U2192 # Compose - > <Multi_key> <colon> <parenright> : "☺" U263A # Compose : ) <Multi_key> <h> <n> <k> : "hugs and kisses" # Compose h n k <Multi_key> <less> < p> : "< p></p>" # Compose < p
The compose key will be now whatever you have configured it to be, e. g. right logo.
compose + shift + hyphen then <vowel >or compose + underscore then <vowel >
--> āēīōū ĀĒĪŌŪ
compose + shift + <single quote> then <vowel >or compose + <double quotes> then <vowel >
--> äëïöü ÄËÏÖÜ
compose then s and s (twice the "s")-->
ß