TUX Magazine: Entering International Characters

Being a guy with an accent on one of the letters of his name, you can imagine that I probably spend a lot of time entering so-called "special characters" in my documents and e-mails. Short of keeping a document with these letters already written, then copying, and pasting them, entering an é can be amazingly time consuming. Worst of all, while OpenOffice.org lets me click Insert, Special Character to select from a list, not all applications have a handy list of characters to choose from. For everyone out there who routinely has to enter special characters or letters with accents, I'm going to give you a great KDE trick to use that will ease the pain.


I might just purchase TUX :)

By Tom at Tue, 2005/01/18 - 6:00am

Funny reading this for those of us foreign people who always used dead keys :)
Now what I'd really like for more complicated characters is something like:

- Press Special Key.
- (cursor look changes)
- Type character name/code
- (something like "lambda")
- Press Return
- And you got yourself a lambda

I've heard we can do this with X, not sure how though. Native KDE suport (eventually using X already built in capability) would be cool though, for easier set up, cursor effects, etc.

By John Dead Keys Freak at Tue, 2005/01/18 - 6:00am

You could use gucharmap, search for lambda and copy the symbol to where you want it.

By testerus at Tue, 2005/01/18 - 6:00am

John wants an easy way to enter special keys. In this particular case adding a Greek keyboard layout, switching to it with Ctrl+Alt+K, pressing l and switching back to his normal keyboard layout would be much easier than starting an extra application, search the symbol and then copy and paste the symbol.

By Ingo Klöcker at Tue, 2005/01/18 - 6:00am

That is only true if you don't have to search where the lambda resides on a greek keyboard. If you use gucharmap (which you could invoke with a shortcut), all you have to do is hit Ctrl + F, type lambda, hit Alt+C to close search dialog, hit Enter to add the lamda sign to "text to copy", hit Alt+C to copy and Strg+Q to close gucharmap and finally press Ctrl+V to enter the sign in the application.

By testerus at Tue, 2005/01/18 - 6:00am

Wow, I thought this is the right article at the right time for me. But it deals only with entering western letters, mostly precomposed diacritical marks.
What I was looking for is a hint on how to enter combining unicode accents using a cyrillic keyboard layout. Any pointers?

By testerus at Tue, 2005/01/18 - 6:00am

Yudit ? (www.yudit.org)

By capit. Igloo at Tue, 2005/01/18 - 6:00am

Well, using a special editor and using copy&paste is not very convenient and time consuming. What I was looking for is a way to enter combining characters in a kde application (in my case kwordquiz). Entering the cyrillic letter and pasting the combining accute does not work.

By testerus at Tue, 2005/01/18 - 6:00am

don't use copy&paste, save your text in a file (in utf-8) and then re-edit it with a kde app.
I know it's not a very convenient way, but for years now, I find nothing better, the system of yudit is so wonderful (the dream : the same system, but integrated in KDE).

By capit. Igloo at Wed, 2005/01/19 - 6:00am

Hold down "alt gr" and start hitting random keys. Lots quicker if you routinely use particular special characters but don't want to keep messing around with keyboard layouts.

By Jim at Tue, 2006/06/20 - 5:00am

Thanks to the polish article I added dead_acute, dead_grave and combining_acute, combining_grave to the russian keymap. Seems to work fine in KDE.

By testerus at Wed, 2005/01/19 - 6:00am

This is really cool, but it overwrites my xmodmap for adding support for the "History back/forward" keys and making Caps Lock a second Escape key. Is there anyway to incorporate that?

Right now, I call xmodmap with a file of this content:
! Page left and right (Thinkpad keyboard)
keycode 234 = F19
keycode 233 = F20
! Make Caps_Lock another Escape Key
remove Lock = Caps_Lock
keysym Caps_Lock = Escape
add Lock = Caps_Lock

By Dominic at Tue, 2005/01/18 - 6:00am

Did you get any reply? How did you solve the problem?

By Anonymous bin Ich at Sun, 2007/07/15 - 5:00am

...not really news for us international users I guess.
We wouldn't have been able to write texts all the time if we
didn't know that ;-)
BTW: A default SuSE installation has Shift+AltGr(=RightAlt) as compose key
by default. Just press Shift+AltGr. Then _release_
both keys (I'm mentioning this, because you usually don't use modifier
keys without an additional key). Then press the accent (accent gave,
accent circumflex, diaresis, etc). Then press a key (A,E,I,O,U,N,Y,
did I forget any?). Works perfectly here at work for entering Turkish,
Spanish, French, etc... without making all those accent keys "dead"
which is quite annoying when programming. If you have LOTS of text
to enter a different keyboard in the appropriate language is better
though. My colleagues are using them and thanks to cordless keyboards
this isnt the plugging-nightmare it once has been.

By Martin at Tue, 2005/01/18 - 6:00am

For international characters you can use the compose key (often Windows one).

Compose + O + E = Œ
Compose + ? + ? = ¿
Compose + n + ~ = ñ
Compose + o + / = ø
Compose + E + ' = É

Here I am at work on a Windows so I can't use Compose key and I miss it :)

By Shift at Tue, 2005/01/18 - 6:00am

Yes, this is the only key I really miss from Unix/Sun keyboards. I don't understand why all these new "multimedia" keyboards with extra keys have not added a compose button for some international correspondence.

By carewolf at Tue, 2005/01/18 - 6:00am

You can add it yourself with xmodmap ;)

By ac at Tue, 2005/01/18 - 6:00am

There's no need to use xmodmap -- you can select a key to be used as Compose through kcontrol:

Regional & Accessibility -> Keyboard Layout -> Xkb Options -> Compose Key.

Works pérfèctly ... and there's no need to keep on changing between different keyboard layouts. Also, if you want to create your own layout, there's a nice introductory article about Xkb here:


By jon at Tue, 2005/01/18 - 6:00am

you can set change this to your liking in the xkb options. I use the right-alt as compose key: right-alt - " - e makes ë... normally, " - e is just "e :D

just found out, really nice.

By superstoned at Tue, 2005/01/18 - 6:00am

It is there, it just has a silly flag on it.

By Ian Monroe at Wed, 2005/01/19 - 6:00am

I have already setup en_US with deadkeys. I has *almost* all the additional caracters I need except the opening question mark... Anyone knows how to solve it?

By ochnap2 at Tue, 2005/01/18 - 6:00am

By Michal Kosmulski at Tue, 2005/01/18 - 6:00am

a) you could use Compose + ? + ?
b) you might want to fill an enhancement request against x.org

By testerus at Tue, 2005/01/18 - 6:00am

On The dk-latin1 keymap there are two buttons for modyfying what kind of accents a given vaul will have. You either press, shift-press or altgr-press the button before you hit the next letter.

Theese are modyfier then letter combinations: ó é á ú and ö ë ä ü
Theese are shift-modyfier then letter: ò è à ù and ô ê â û
These are altgr-modyfier then letter: ã õ

Cant this behavior be ported to other keymaps?


PS: to make a single tilde i have to press altgr-modyfier then space

By Macavity at Tue, 2005/01/18 - 6:00am

IS there a way to map a Gamecontroller on a keyboard or a analog gamecontroller mouse?


I usually get my é with ` + e

By gerd at Tue, 2005/01/18 - 6:00am