keyboard entry of "accented" characters
Can someone tell me how to enable and configure keyboard entry of "accented" characters such as the French 'e' with acute or grave accent, German 'u' with umlaut, Spanish 'c' with cedilla, etc?
That other software from Redmond will let me enter ALT plus numeric pad "0233" for the French 'e' acute. I cannot get anything similar working with linux. I suspect that I simply do not know what name the linux world uses to refer to this and similar features. I'm running Cinnamon on Linux Mint-12 (Ubuntu 11.10). Thanks is advance, ~~~ 0;-Dan |
Quote:
A "dead key" is a key which doesn't produce any output by itself, but acts as a modifier on the next keystroke/character. On my (non-English) keyboard, the ~ key is a dead key. I can produce "õ" and "ñ" by pressing "~" followed by "o" and "n" respectively. To get the "~" character by itself, I have to press ~ then space. I know precious little about keyboard settings in X, but some other linuxquestion.org user (or Google) will no doubt be able to point you in the right direction. |
ALT-233 looks like a "high ASCII" code (I looked it up; it is).
It's a DOS thing that long predates Windows, going back to when DOS text increased from 128 (ASCII) to 256 ("high" ASCII, "high" meaning "above 128") characters. I suspect that, if Redmond could figure some way to make it go away, they would. https://en.wikipedia.org/wiki/Extended_ASCII This might help: http://linux.die.net/man/1/uni2ascii but I have no desire to test it. |
Run the keyboard configuration tool in the preferences menu and set a key to use as the Compose key: Windows Menu or Right Control are popular choices. Then you can press the Compose key and the following keystrokes will be looked up in a table to find the accented character you want (see more information in Wikipedia):
Compose + ' + e → é Compose + , + c → ç Compose + " + u → ü Don't use dead keys: they are a pain on the "American international" keyboard, where you get a dead acute at the expense of having to press the apostrophe twice to get an apostrophe. |
On my systems <Alt Gr> is the compose key so pressing <Shift> then <Alt Gr> then e then ' gives me é.
I think it was this way by default, but this would only apply to Debian based systems. |
Quote:
As I look at my keyboard, I have the following key faces: Left-Ctrl ... Left-Windows ... Left-ALT ... Right-ALT ... Right-Menu ... Right-Ctrl ... Page-Left ... Page-Right From the other replies, it seems that I need to search out "Compose Key" as something to enable and configure. Thanks in advance, ~~~ 0;-Dan |
Sorry I had forgotten that some keyboards don't have one. It's the right Alt key whcih on my keyboard is labelled "Alt Gr" (which I think stands for Alternative Graphics) so depending on your distribution and setup right Alt may still work as it does for me.
http://en.wikipedia.org/wiki/Alt_gr |
See here for a list of the most common compose key sequences, and a short explanation on how to enable it.
http://www.hermit.org/Linux/ComposeKeys.html I have also modified and updated the script found on this page for searching the current compose key list on your system. It will output all the combinations that can be used for whatever character(s) you input (probably through cut&paste). Code:
#!/bin/bash Then just make it executable, and run it like this: Code:
$ ximkeys.sh ᄝ |
Quote:
|
For the record, if you need custom compose sequences, you don't need to run a script. Just copy the existing file (mine lives at /usr/share/X11/locale/en_US.UTF-8/Compose) to ~/.XCompose and then edit it. Ensure that your input module is xim (and not the the GTK one usually installed by default in Gnome distros): putting GTK_IM_MODULE=xim in /etc/environment should work.
|
Following the combined advice from these responses, I was able to solve my troubles.
On my Mint-12 with Cinnamon (sounds tasty...) workstation, I did:
I then made a local copy of the dot-XCompose file in my $HOME so that I could know and control what was available. I removed all of the Asian and similar language characters, and added a few of my special desirables. Thanks to all, ~~~ 0;-Dan |
Thanks for coming back and posting the end of the story. If someone else comes along with that question, LQ is now ready.
|
Quote:
Maybe LQ could "nag" the original poster after no activity for a while.. Glad you noticed. More glad I remembered... ~~~ 0;-Dan |
All times are GMT -5. The time now is 10:33 PM. |