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.

Dot Categories: 

Comments

by Tom (not verified)

I might just purchase TUX :)

by John Dead Keys Freak (not verified)

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 testerus (not verified)

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

by Ingo Klöcker (not verified)

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 testerus (not verified)

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 (not verified)

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 capit. Igloo (not verified)

Yudit ? (www.yudit.org)

by testerus (not verified)

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 capit. Igloo (not verified)

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).

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 testerus (not verified)

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 Dominic (not verified)

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 Anonymous bin Ich (not verified)

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

by Martin (not verified)

...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 Shift (not verified)

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 Carewolf (not verified)

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 ac (not verified)

You can add it yourself with xmodmap ;)

by jon (not verified)

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:

http://desktops.linux.com/desktops/04/06/03/1558258.shtml

by superstoned (not verified)

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 Ian Monroe (not verified)

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

by ochnap2 (not verified)

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 Michal Kosmulski (not verified)
by testerus (not verified)

a) you could use Compose + ? + ?
b) you might want to fill an enhancement request against x.org
(https://bugs.freedesktop.org/enter_bug.cgi?product=xorg)

by Macavity (not verified)

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?

~Macavity

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

by gerd (not verified)

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

---

I usually get my é with ` + e