LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 06-14-2013, 08:52 AM   #1
polytropos
LQ Newbie
 
Registered: Jun 2003
Posts: 13

Rep: Reputation: 0
What is the difference between Mode_switch and ISO_Level3_Switch


I didn't find this information anywhere else, so here it is.

`xmodmap -pke' results in lines like this:

Code:
keycode   8 =
keycode   9 = Escape NoSymbol Escape
keycode  10 = 1 exclam 1 exclam
keycode  11 = 2 at 2 at
keycode  12 = 3 numbersign 3 numbersign
keycode  13 = 4 dollar 4 dollar
keycode  14 = 5 percent 5 percent
keycode  15 = 6 asciicircum 6 asciicircum dead_circumflex dead_circumflex dead_circumflex
Etc.

The format is:
Code:
keycode <NNN> = <symbol1> <symbol2> <symbol3> <symbol4> <symbol5> <symbol6> <symbol7> <symbol8>
The story in short is:
Quote:
Mode_switch selects <symbol3>
Mode_switch+Shift selects <symbol4>
ISO_Level3_Switch selects <symbol5>
ISO_Level3_Switch+Shift selects <symbol6>
(i) You can just dump the whole current keymap via `xmodmap -pke > .Xmodmap'.
(ii) Then edit it all you want. In the editing, you should define some particular key as the Mode_switch or ISO_Level3_Switch. (But, apparently, not both.)
(iii) You may also have to add Mode_switch or ISO_Level3_Switch (which-ever you have chosen) to one of the modifier keys. (It probably isn't required in modern systems. It isn't required in mine.)
(iv) Load the file as the new keymap, via `xmodmap .Xmodmap'.

Two fine pages to learn more are given below. The first link has much which is outdated (at least for my system -- xserver-xorg-core 2:1.12.4-6 -- but the explanation is short and good).

http://www.in-ulm.de/~mascheck/X11/xmodmap.html
https://github.com/leoboiko/pointless-xcompose

Example:
Two lines of my `xmodmap -pke' output say:
Code:
keycode  27 = p P p P U2018 NoSymbol U2018
keycode  28 = y Y y Y U2019 NoSymbol U2019
So, using the ISO_Level3_Latch key, I can directly type Unicode symbols U2018() and U2019().

Note that setting keys via `xmodmap' is now deprecated, but it works, and setting them via setxkbmap looks too complicated. (I myself use a patchwork of strange and crazy keymays -- not something to be emulated! You may go about in a clean manner though.)

For the difference between ISO_Level3_Shift, ISO_Level3_Latch and ISO_Level3_Lock, see another post.
http://www.linuxquestions.org/questi...19#post4971719

Last edited by polytropos; 06-14-2013 at 09:14 AM. Reason: added a link
 
Old 06-15-2013, 04:03 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
Thread is marked as being [SOLVED], seems to be informational and no question is asked.

Taken off the zero-reply list.
 
  


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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Making a Difference; Selling a Difference LXer Syndicated Linux News 0 09-23-2010 06:00 AM
shell script to find the difference betwwn two file and place the difference to other kittunot4u Linux - General 3 07-19-2010 05:26 AM
XKeyEvent and the mode_switch (AltGr) modifier LonelyStar Programming 1 10-04-2007 02:35 PM
keyboard layout (alternative key with mode_switch) super-momo Debian 2 02-13-2005 12:22 AM
Difference? Jongi Linux - Newbie 4 08-22-2003 03:21 AM


All times are GMT -5. The time now is 09:43 PM.

Main Menu
Advertisement
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