LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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

Reply
 
Search this Thread
Old 10-10-2007, 11:28 AM   #1
DavidMcCann
Senior Member
 
Registered: Jul 2006
Location: London
Distribution: CentOS, Salix
Posts: 3,008

Rep: Reputation: 774Reputation: 774Reputation: 774Reputation: 774Reputation: 774Reputation: 774Reputation: 774
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?
 
Old 10-10-2007, 12:00 PM   #2
Su-Shee
Member
 
Registered: Sep 2007
Location: Berlin
Distribution: Slackware
Posts: 509

Rep: Reputation: 41
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.
 
Old 10-12-2007, 11:20 AM   #3
DavidMcCann
Senior Member
 
Registered: Jul 2006
Location: London
Distribution: CentOS, Salix
Posts: 3,008

Original Poster
Rep: Reputation: 774Reputation: 774Reputation: 774Reputation: 774Reputation: 774Reputation: 774Reputation: 774
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?
 
Old 10-13-2007, 05:01 AM   #4
Su-Shee
Member
 
Registered: Sep 2007
Location: Berlin
Distribution: Slackware
Posts: 509

Rep: Reputation: 41
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Binding Thinkpad Keys to Key Combinations CaffeineJunkie Linux - Desktop 0 10-03-2006 10:27 AM
Alt key combinations not working in mc, Slackware 10.2 jcdrywater Slackware 3 11-21-2005 05:28 AM
Key combinations that will stop a boot? txtedmacs Linux - General 11 08-22-2005 07:03 PM
key combinations to launch apps? will103 Linux - Software 2 09-11-2004 02:55 PM
compose key not working jkobrien Linux - Hardware 1 08-05-2004 08:18 AM


All times are GMT -5. The time now is 11:55 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration