Re: To be or not to be (ordinary keys ~ ^ `)



On Mon, May 26, 2008 at 06:34:13 -0300, Gabriel Parrondo wrote:
El lun, 26-05-2008 a las 10:03 +0200, Luis Fernando Llana Diaz escribió:
Hello,
Since some months there has been a change in the behavior of the combination
AltGr+4 of the spanish keyboard. See, bug #477197
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=477197

I am glad that change will be reverted. But I would like to make a change in
the configuration of the keyboard, that I do not know how to do. In Spanish
there are no chars like â, è (I think it is the first time I written the è
char since I was in Italy 15 years ago). But I ussually work with LaTeX, and
therefore I use the chars ^ and ` much more often. It would be nice to be
able to write those chars just by simply typing shift+` or ` not like now
that I have to type shift+`+space or `+space. I do not want make a global,
since that is the ordinary behavior of the windows keyboard, even Microsoft
systems behave like that.

My question is the following, which is the file I have to modify to change
that behavior. Where there are simple instructions to modify it?

For spanish keyboard, it's /etc/X11/xkb/symbols/es. To do what you ask,
for example, you have to modify the line:
key <AD11> { [ dead_grave, dead_circumflex ],
as follows:
key <AD11> { [ grave, dead_circumflex ],


That would make the change system-wide. If you only want your user to
see this behaviour, you can use xmodmap.

If you want shift+` to print the actual ` character, use:
xmodmap -e 'keycode 34 = dead_grave grave'

You can also make ` (it's called grave) print the grave and shift+`
"print" dead grave (which is the current behaviour) with:
xmodmap -e 'keycode 34 = grave dead_grave'

I would use something like

xmodmap -e "keycode 34 = grave asciicircum bracketleft degree bracketleft degree"

or the opening square bracket with AltGr + ` will not work anymore.

The "dead tilde" problem of AltGr + 4 can be fixed with:

xmodmap -e "keycode 13 = 4 dollar asciitilde dollar asciitilde dollar"

You can always put the '...' part of this commands in ~/.xmodmaprc and
most DEs will load it for you on login.

If that does not work, check out the section CUSTOMIZING THE STARTUP
PROCEDURE in the manpage of "Xsession". There is an example showing how
to add both system-wide and user-specific Xmodmaps.

Read 'man xmodmap' for more info.

--
Regards, | http://users.icfo.es/Florian.Kulzer
Florian |


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • Re: To be or not to be (ordinary keys ~ ^ `)
    ... AltGr+4 of the spanish keyboard. ... which is the file I have to modify to change ... You can also make ` (it's called grave) print the grave and shift+` ...
    (Debian-User)
  • Re: How to apply accents in Spanish using Spanish keyboard?
    ... Even without a Spanish keyboard, the built-in keyboard shortcut is ... Word MVP FAQ site: http://word.mvps.org ... If you setup a Spanish keyboard as Klaus suggested earlier in the thread, ...
    (microsoft.public.word.docmanagement)
  • Re: How to apply accents in Spanish using Spanish keyboard?
    ... If you setup a Spanish keyboard as Klaus suggested earlier in the thread, ... layout) and remember the shortcut keys for the spanish characters ...
    (microsoft.public.word.docmanagement)
  • Re: Mouse and Keyboard Support in WinCE 5.0
    ... Using the keyboard APIs should work just fine. ... the registry and resetting is certainly a valid workaround, though, if you ... > In the issue of Keyboard, I found the registry entry to modify the ... >> modify the mouse driver to do so, ...
    (microsoft.public.windowsce.platbuilder)
  • RE: SIP modification
    ... Use a image editor such as, paintshop pro to modify the largekb.bmp file of ... the large keyboard SDK sample. ... then modify the coordinate to key conversion functions, ...
    (microsoft.public.windowsce.app.development)