Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Write an article for LinuxForums Today! Win Great Prizes!
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > GNU Linux Zone > Linux Desktop / X-Windows > Modifying the keyboard (with a teaspoon!)

Forgot Password?
 Linux Desktop / X-Windows   Anything X. Gnome, KDE, remote desktop's, XGames etc.

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds
Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 07-22-2007   #1 (permalink)
Just Joined!
 
Join Date: Jul 2007
Posts: 6
Send a message via Skype™ to Aleksandersen
Arrow Modifying the keyboard (with a teaspoon!)

Hi,

I am usually not a slow learner. However xmodmap remains a mystery to me! I have studied examples, read the manual, searched the web, ... I still do not get it.

Please explain in detail in ultra–slow–motion–using–a–teaspoon how to modify my hyphen key. I want it to work like this:
  • - = hyphen-minus (-) U+002D
  • Menu + - = figure dash (‒) U+2012
  • AltGr + - = en dash (–) U+2013
  • AltGr + Shift + -= em dash (—) U+2014
Thanks for your patience!
Aleksandersen is offline  



Reply With Quote
Old 10-16-2007   #2 (permalink)
Just Joined!
 
Join Date: Oct 2007
Location: London
Posts: 1
If you are still there and waiting, Alek, try this:

1. Start a text editor and enter this line
xmodmap -e 'keycode 20 = minus figdash endash emdash'
2. Save in your home directory with a suitable name like ~/.mykeys
3. Enter the menu and find in the system-preferences-sessions box the startup programs option. Add an entry for the script you've just written, like /home/alex/.mykeys

This should work. Mind you, on my system only the first two definitions get read: the AltGr ones are ignored!

The alternative is to go to /usr/share/X11/xkb/symbols/latin or /etc/X11/xkb/symbols/latin (different distros use different addresses) and alter the file.

Incidentally, are you sure you won't need the underscore character? And the en-dash and figure-dash will probably be the same: they are in any printer's fonts I've ever met. The extra point in Unicode is probably for languages like Russian where there's no en-dash and they use the em-dash instead.
DavidMcCann is offline   Reply With Quote
Old 10-16-2007   #3 (permalink)
Just Joined!
 
Join Date: Jul 2007
Posts: 6
Send a message via Skype™ to Aleksandersen
Quote:
Originally Posted by DavidMcCann View Post
If you are still there and waiting, Alek, try this:

1. Start a text editor and enter this line
xmodmap -e 'keycode 20 = minus figdash endash emdash'
2. Save in your home directory with a suitable name like ~/.mykeys
3. Enter the menu and find in the system-preferences-sessions box the startup programs option. Add an entry for the script you've just written, like /home/alex/.mykeys

This should work. Mind you, on my system only the first two definitions get read: the AltGr ones are ignored!
Are the keycodes the same om every computer? What does the arangement of the dashes have to say? Which keys, etc?

Quote:
Originally Posted by DavidMcCann View Post
The alternative is to go to /usr/share/X11/xkb/symbols/latin or /etc/X11/xkb/symbols/latin (different distros use different addresses) and alter the file.

Incidentally, are you sure you won't need the underscore character? And the en-dash and figure-dash will probably be the same: they are in any printer's fonts I've ever met. The extra point in Unicode is probably for languages like Russian where there's no en-dash and they use the em-dash instead.
I meant horizonal bar and not figure dash.
Aleksandersen is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
A Newbie's Getting Started Guide to Linux
Learn the basics of the Linux operating systems. Get to know what it is all about, and familiarize yourself with the practical side. Basically, if you're a complete Linux newbie and looking for a quick and easy guide to get you started this is it.
subscribe
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 02:29 AM.






© 2000 - - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.1