Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
10-10-2007, 11:28 AM
|
#1
|
|
Senior Member
Registered: Jul 2006
Location: London
Distribution: CentOS, Salix
Posts: 2,227
|
Creating new compose and dead-key combinations
Although one can alter the effect of AltGr by editing the keyboard file, there doesn't seem to be any way to alter the key combinations used by the Compose key. Thus Compose + "th" for "þ" is built in, but you can't add Compose + "dh" for "ð".
Also, the dead keys generated with AltGr can only be used in built-in combinations. AltGr + ";" will give dead_acute, but there is a limit to what you can type next: "s" for Polish is fine, but "k" for transliterated Macedonian is out.
One website suggests using a file ~/.XCompose for new defintions, but it doesn't work for me. Another suggests using "loadkeys", but that won't affect X.
I suspect that only altering the kernel will do the job, and I'm not opening that can of worms. Is there a simple solution I've just missed?
|
|
|
|
10-10-2007, 12:00 PM
|
#2
|
|
Member
Registered: Sep 2007
Location: Berlin
Distribution: Slackware
Posts: 509
Rep:
|
It's not an exact answer, but it maybe helps.
I tried to tweak a kind-of "what's the most common foreign language in Berlin keymap" and it worked surpringly nice. (I added a specific l from Poland and the turkish i without a dot, for example.)
If you want, you can also change your "Multi_key" ( xmodmap -e "keycode 109=Multi_key" would be right Ctrl instead of AltGr) to something different.
I took my
/etc/X11/xkb/symbols/pc/latin
and added
key <AD08> { [ i, I, rightarrow, idotless ] };
instead of
key <AD08> { [ i, I, idotless, rightarrow ] };
to gain the turkish i with AltGr-i. The best thing is: you can add Unicode codepoints - instead of idotless U0131.
I just add all mappings I did with compose keys to key combinations of the third (AltGr) or even fourth order (forgot which modifier key this is) in the keymap file and use them with AltGr. (I probably would map thorn on AltGr t, for example.)
But I usally use Unicode code points with Ctrl-Shift-u<codepoint> instead.
|
|
|
|
10-12-2007, 11:20 AM
|
#3
|
|
Senior Member
Registered: Jul 2006
Location: London
Distribution: CentOS, Salix
Posts: 2,227
Original Poster
|
Character composition
I've done most of the things you mention: they're just the sort of flexibilty that makes me use Linux!
The point I was making is that they have their limit. Suppose you're writing about Arabs and keep needing to enter names with ṣ &c in them. You may not have room to put the characters on the keyboard. You can't define a dead key, activated with AltGr or Compose, because the characters are not in the predefined set. You can decompose and use AltGr to get a combining underdot: that works in this case, but combining diacritics are often misplaced unless you have a very sophisticated font.
The answer is to put the difficult characters on a Gnome palatte, but I just hate the idea that there's something I can't do the way I want to — perfectionist or bloody-minded?
|
|
|
|
10-13-2007, 05:01 AM
|
#4
|
|
Member
Registered: Sep 2007
Location: Berlin
Distribution: Slackware
Posts: 509
Rep:
|
No, rightly so.
I'm a political scientist, I see immediately why someone would like to type arabic on a latin keyboard.
I use the compose key solution only for a handful of specific letters which are not part of latin1 or not on my keyboard - turkish i dotless, polish l, french accents - stuff like that.
If it comes to a single character or maybe two in chinese or japanese, I use Unicode code point intput with Ctrl-Shift-u.
Everything which somehow resembles an entire "word", I start scim for with a real input translation. First it seems a bit inconvenient, but one gets used to it.
The only language I'm thinking of connecting an entire different keyboard is for russian.
Or back to pen and ink. 
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 08:40 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|