LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > General
User Name
Password
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!

Notices



Reply
 
Search this Thread
Old 07-04-2011, 02:30 AM   #1
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 3,289

Rep: Reputation: 50
English with accents.


kernel 2.6.21.5, slackware 12.0

Hi:

I once had a Window$ OS that came with what they called "English with accents" (EA). I am used to the US keyboard (kb) layout. The EA feature, had the US kb layout. But there was a difference: you could press Meta+'`' (ascii 0x60) and the cursor did not advance. Now you wrote a letter. And the letter got accentuated.

So this is a question not of kb layout but of kb behavior: some keys, in combination with the Alt key, if Alt is the Meta key, do not make the cursor move. Any hint?
 
Old 07-04-2011, 02:46 AM   #2
MrCode
Member
 
Registered: Aug 2009
Location: Oregon, USA
Distribution: Arch
Posts: 864
Blog Entries: 31

Rep: Reputation: 148Reputation: 148
Read up on how to map a key on your keyboard to the Compose key. That should be pretty much what you're after. The neat thing about it is that you can do way more than just accent vowels with it: Œ, etc.

Here is an excellent list of Compose sequences you can experiment with.
 
Old 07-04-2011, 03:25 AM   #3
TheIndependentAquarius
Senior Member
 
Registered: Dec 2008
Posts: 4,634
Blog Entries: 29

Rep: Reputation: 900Reputation: 900Reputation: 900Reputation: 900Reputation: 900Reputation: 900Reputation: 900Reputation: 900
MTK had a blog on the compose keys, perhaps that'll be helpful here: http://www.linuxquestions.org/questi...key-in-x-2885/
 
Old 07-04-2011, 04:11 AM   #4
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 3,289

Original Poster
Rep: Reputation: 50
This is unbelievable. It works to perfection. Hail MTK. And Anisha Kaul too. Unfortunately, I sometimes compose my letters with vim, working in a virtual terminal (VT). Can this be done in a VT?

Last edited by stf92; 07-04-2011 at 04:19 AM.
 
Old 07-04-2011, 08:41 AM   #5
16pide
Member
 
Registered: Jan 2010
Posts: 418

Rep: Reputation: 83
I have a US keyboard. I've set it to US-International.
I can now type using it in French, Spanish, and some eastern European languages:




ćś
etc ...
use this:
Code:
system-config-keyboard
then type 'e and you'll get etc ...
type 'space and you'll get '
 
Old 07-04-2011, 09:30 AM   #6
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 3,289

Original Poster
Rep: Reputation: 50
Hi:

Thanks for the post. 'system-config-keyboard' at a console (VT) gets command not found. Then I did this: I booted with the slackware instalation disc and first thing I am asked for is to choose a keyboard map. There were about a hundred of them. I chose querty/us-acentos.map. Then it said: "OK, the <don't remember what> is loaded now. Type any key you want to test. Then type 1 to accept and go on". When I typed "'" or "`" the keyboard stoped to echo. I had to use then backspace. Finally I type '1' on a line by itself and finally exited the setup (I entered typing 'setup').

However, in a console, it's the same as before: no accents (acentos in Spanish means accents). Well, perhaps I should have going on with the rest of the steps in 'setup'. I don't know. I'll try again.

Perhaps for this 'setup' thing, I must use a Spanish or French keyboard. But that would not do for me, as some keys in those keyboards are arranged in a completely different way. Regards.

Last edited by stf92; 07-04-2011 at 09:35 AM.
 
Old 07-04-2011, 01:25 PM   #7
DavidMcCann
Senior Member
 
Registered: Jul 2006
Location: London
Distribution: CentOS, Salix
Posts: 3,229

Rep: Reputation: 825Reputation: 825Reputation: 825Reputation: 825Reputation: 825Reputation: 825Reputation: 825
As you've seen, the console and Xorg manage their keyboards quite differently. Have a look in
/lib/kbd/keymaps/i386/qwerty/us-acentos.map.gz
and you can see what it does and (if necessary) alter it. The grave accent key defaults to a dead grave, so it won't display anything if you press it.
 
Old 07-04-2011, 01:32 PM   #8
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,285

Rep: Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664
# 5 : Just for information :
Quote:
use this:

system-config-keyboard
The 'system-config-keyboard' is a Fedora, Redhat, CentOS command only.
 
Old 07-04-2011, 01:45 PM   #9
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 3,289

Original Poster
Rep: Reputation: 50
This file I have it in /usr/share/kbd/keymaps/i386/qwerty/us-acentos.map.gz

I gzip -dv it and part of it is this:

Code:
compose '`' 'A' to ''
compose '`' 'a' to ''
compose '\'' 'A' to ''
compose '\'' 'a' to ''
compose '^' 'A' to ''
compose '^' 'a' to ''
compose '~' 'A' to ''
compose '~' 'a' to ''
compose '"' 'A' to ''
compose '"' 'a' to ''
compose 'O' 'A' to ''
What I don't know is if this map is installed. Seemingly it is not.
 
Old 07-04-2011, 01:58 PM   #10
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 3,289

Original Poster
Rep: Reputation: 50
I downloaded system-config-keyboard-1.3.0.tar.gz. Then, I made [code]
$ make
$ make install
make: intltool-merge: Command not found
make: *** [system-config-keyboard.desktop] Error 127
$
[code]
What's wrong?
 
Old 07-05-2011, 11:55 AM   #11
DavidMcCann
Senior Member
 
Registered: Jul 2006
Location: London
Distribution: CentOS, Salix
Posts: 3,229

Rep: Reputation: 825Reputation: 825Reputation: 825Reputation: 825Reputation: 825Reputation: 825Reputation: 825
All that system-config-keyboard does is edit a configuration file to insert the name of your default keyboard: you could do that yourself. And since it's a Red Hat tool, it may not even find the file on Slackware. As you've seen, Red Hat and Slackware put the console keyboard maps in completely different places!
 
Old 07-05-2011, 03:07 PM   #12
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 3,289

Original Poster
Rep: Reputation: 50
Quote:
Originally Posted by DavidMcCann View Post
All that system-config-keyboard does is edit a configuration file to insert the name of your default keyboard: you could do that yourself.
I agree: I can do that myself. But only if I knew the configuration file name. Besides, why a compilation when the insertion can be done with a script?
 
Old 07-06-2011, 12:49 PM   #13
DavidMcCann
Senior Member
 
Registered: Jul 2006
Location: London
Distribution: CentOS, Salix
Posts: 3,229

Rep: Reputation: 825Reputation: 825Reputation: 825Reputation: 825Reputation: 825Reputation: 825Reputation: 825
Quote:
Originally Posted by stf92 View Post
I agree: I can do that myself. But only if I knew the configuration file name.
I have a file /etc/sysconfig/keyboard could that be it?

Quote:
Besides, why a compilation when the insertion can be done with a script?
That's the penalty you pay for a fancy graphical program!
 
Old 07-06-2011, 06:06 PM   #14
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 3,289

Original Poster
Rep: Reputation: 50
No. The only paths where the element /sysconfig/ appears are
/usr/lib/python23.5
/usr/doc/python-2.5.1

I did 'locate keyboard'. This output nearly 350 lines. From among them, I list the following:

/usr/lib/qt-3.3.8/doc/html/qkeyboard_qws-h.html
/usr/lib/qt-3.3.8/doc/html/qwskeyboardhandler.html
/usr/lib/qt-3.3.8/doc/html/qwskeyboardhandler-members.html
/usr/man/man3/keyboard_init_return_fd.3.gz
/usr/man/man3/keyboard_init.3.gz
/usr/man/man3/keyboard_getstate.3.gz
/usr/man/man3/keyboard_seteventhandler.3.gz
/usr/man/man3/qwskeyboardhandler.3qt.gz
/usr/man/man3/keyboard_update.3.gz
/usr/man/man3/keyboard_keypressed.3.gz
/usr/man/man3/keyboard_clearstate.3.gz
/usr/man/man3/keyboard_setdefaulteventhandler.3.gz
/usr/man/man3/keyboard_close.3.gz
/usr/man/man3/keyboard_translatekeys.3.gz
/usr/man/man3/keyboard_waitforupdate.3.gz
/usr/doc/xsl-stylesheets-1.72.0/slides/keyboard.nav.html
/usr/doc/HTML/en/kcontrol/keyboard
/usr/doc/HTML/en/kcontrol/keyboard/index.cache.bz2
/usr/doc/HTML/en/kcontrol/keyboard/index.docbook
/usr/doc/HTML/en/kcontrol/keyboard/common
/usr/doc/HTML/en/ktouch/keyboard_options.png
/usr/doc/SDL-1.2.11/html/guideinputkeyboard.html
/usr/doc/SDL-1.2.11/html/sdlkeyboardevent.html
/usr/doc/gqview-2.1.5/html/11_2_keyboard_shortcuts.html
/usr/doc/lilo-22.8/README.nokeyboard
/usr/share/system-config-keyboard/system-config-keyboard.py

There are a lot under /usr/src/linux-2.6.21.5/drivers/input/keyboard/

If you can find some suggestive name here, please tell me. Otherwise, let us be it. Regards.

Last edited by stf92; 07-06-2011 at 06:08 PM.
 
Old 07-07-2011, 04:13 AM   #15
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 3,289

Original Poster
Rep: Reputation: 50
I was looking for certain command, because I had seen, in LQ, mentioned certain command very similar to hexdump. So I did find /usr/bin -name "*dump*". And among the many names listed by 'find', I set my eyes in a dumpkeys name.

It happens that there are the following commands in Slackware 12.0: loadkeys, dumpkeys, showkey and keymaps. Using these commands is the answer to issue being ventilated here. But I must study the manuals. Regards.
 
  


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
How to set up the keyboard for English with accents. stf92 Slackware 2 12-14-2010 09:14 PM
Way to use a good free English to English Dictionary linbose Linux - Software 6 06-03-2009 11:25 PM
English to English dictionary to configure on the http server on linux niraj.kumar Linux - Software 2 05-11-2009 05:12 AM
Can I have english menu with chinese/english/spanish input? codec Linux - General 9 10-04-2003 08:18 PM


All times are GMT -5. The time now is 11:01 AM.

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