Translate
Appearance
Text
This page always uses small font size
Width
AllTutorials/ComposeKey
Translate to ibibio
Translation of the wiki page Tutorials/ComposeKey from English (en).
This tool does not work without JavaScript. JavaScript is disabled, failed to work, or this browser is unsupported.
Translations:Tutorials/ComposeKey/Page display title/ibb
Tutorials/ComposeKey
You need translation rights to translate messages.Get permission
Loading...
Latest updatesAll changes
Suggestions
In other languages
Need more help?Ask for more information
Translations:Tutorials/ComposeKey/2/ibb
== Introduction ==
You need translation rights to translate messages.Get permission
Loading...
Latest updatesAll changes
Suggestions
In other languages
Need more help?Ask for more information
The ''compose key'' is used to enter characters on the keyboard that are usually not available on the key caps. Such letters could be an "umlaut", a "macron" or accents on letters:
* http://en.wikipedia.org/wiki/Umlaut_(diacritic)
* http://en.wikipedia.org/wiki/Macron_(diacritic)
Further information may be found in the ''[[#Links and Further Information|Links and Further Information]]'' section below.
The modifications will work with (almost) all applications, including the desktop environment, browsers, LibreOffice, as well as many console/text only applications.
The following instructions will configure a ''compose'' key, which will be mapped to the ''right logo key'' (on most keyboards this logo is the ''Windows'' logo).
* Click the box next to <menuchoice>Configure Keyboard Options</menuchoice> to enable changing keyboard options
̣{{Note|This instruction are old and only works in Debian based system. If you know a better way, feel free to edit this wiki page.}}
* Reconfigure the console for the used keyboard, and the character encoding. Do this in a text terminal or the console.
{{Input|1= $ sudo dpkg-reconfigure console-setup}}
* Follow these steps in the configuration:
** Choose your keyboard (here a default 104 US keyboard)
** If you want the !AltGr key replacement, choose one
** Choose which key you would like your ''compose key'' to be mapped to. I use the ''right logo key.''<p>I'd much rather like to use the ''left logo key,'' but that's not available in the console setting. But in the graphical window environment (KDE Plasma) that is possible.</p>
** Choose the console's encoding, set it to ''UTF-8''
** Choose what character set should be available on the console. I use ''Combined - Latin; Slavic Cyrillic; Hebrew; basic Arabic''<p>I guess that selection should give me the wanted characters.</p>
** Choose what type of console output you'd like (do whatever you like, to be safe you can go with the given current defaults)
** A new ''initial RAM disk'' for the next boot will be created now.
{{Note|This instruction are probably obsolete. If GTK applications don't work ''out-of-the-box'', please go to the [[Special:myLanguage/Tutorials/ComposeKey#Troubleshooting|Troubleshooting section]].}}
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''':
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.
* Edit the file ''/etc/X11/xinit/xinput.d/xim'' and set the input method for ''GNOME'' and ''KDE'' to ''xim''
If you are using a Debian-derived distribution use following instead
{{Input|1= $ 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:
* Create a ''~/.XCompose'' file, and put the following lines into it:
{{Input|1=
# ~/.XCompose
# This file defines custom Compose sequences for Unicode characters<br />
# Import default rules from the system Compose file:
include "/usr/share/X11/locale/en_US.UTF-8/Compose"<br />
# 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
}}
* Just log out and in again (no restart necessary), and you can use your new "multi key short strokes" using the compose key to your desire. As you see this even works for creating longer character sequences.
The <keycap>compose</keycap> key will be now whatever you have configured it to be, e. g. <keycap>right logo</keycap>.
* Macrons
{{Input|1=<keycap>compose + shift + hyphen</keycap> then ''<vowel >''}}or {{Input|1=<keycap>compose + underscore</keycap> then ''<vowel >''}}
* Umlauts
{{Input|1=<keycap>compose + shift + <single quote></keycap> then ''<vowel >''}}or {{Input|1=<keycap>compose + <double quotes></keycap> then ''<vowel >''}}
* The German ''Ess-Zet'' ligature
{{Input|1=<keycap>compose</keycap> then <keycap>s</keycap> and <keycap>s</keycap> (twice the "s")}}
In {{Path|.xinputrc}}, delete the line with the following content: <code>run_im ibus</code>. Then reboot your computer, or restart the X server.
* http://cyberborean.wordpress.com/2008/01/06/compose-key-magic/
* http://ubuntuforums.org/showthread.php?t=209115
* http://www.seedwiki.com/wiki/takomapark/compose2
* http://wiki.linuxquestions.org/wiki/Accented_Characters
* http://people.uleth.ca/~daniel.odonnell/Blog/custom-keyboard-in-linuxx11
* http://hdante.blogspot.com/2007/05/kiel-oni-skribas-typing-esperanto.html
Loading messages...
0% translated, 0% reviewed
Retrieved from "https://userbase.kde.org/Special:Translate"