LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-10-2010, 05:37 PM   #1
agi93
Member
 
Registered: Jan 2010
Posts: 101

Rep: Reputation: 17
Accented characters in a minimal desktop?


Hello Slackware Community!

I am running Slackware64 v13.0 with XMonad as my window manager and dzen2 as my status bar. Sometimes I do my Spanish homework on this computer, and I would like to know the best way to get accented characters and other symbols. Normally, in desktop environments or proprietary OSs, there is a window I can open to select certain special characters. I don't have any of that on this system, and I need to know if there is a simple, minimal program that displays special characters like this or if there is another way to use them easily. I would prefer something light and without many dependencies (just because I prefer simpler software), but I'm open to other solutions if something like this is not available.

How do other Slackers do this?

Last edited by agi93; 04-11-2010 at 10:15 AM.
 
Old 04-10-2010, 06:12 PM   #2
in_texas_dallas
Member
 
Registered: Sep 2009
Location: DFW
Distribution: Debian Lenny
Posts: 38

Rep: Reputation: 17
Agi> You may consider using language that doesn't insult other people's choices. I can understand you might have reasons for running a "minimal desktop", but that doesn't mean that everybody else is using either a "bloated desktop environment" or a "proprietary OS".

ANY distribution can have ANY program installed. There is not ONE particular thing that makes a DE bloated or not.

What you need to do is go to your package manager and search for "special characters". Your particular distribution will have a special repository with all the required

In KDE I do this: apt-cache search char|grep special

I get this result: kcharselect
 
0 members found this post helpful.
Old 04-10-2010, 06:16 PM   #3
harryhaller
Member
 
Registered: Sep 2004
Distribution: Slackware-14.2
Posts: 468

Rep: Reputation: Disabled
You don't need a program - just the compose key on your keyboard.
http://www.hermit.org/Linux/ComposeKeys.html

Now the question should be: How do I modify the keyboard to get a compose key?

The easiest way is in your /etc/X11/xorg.conf file:
Code:
Section "InputDevice" 
        Identifier      "Keyboard0" 
        Driver          "kbd" 
        Option          "XkbModel"      "pc104" 
        Option          "XkbLayout"     "us" 
        Option          "XkbOptions"    "compose:rwin" 
EndSection
Or you can change your $HOME/.Xmodmap file:
Code:
keycode 116 = Multi_key
Further info to keyboard reconfiguration here:
http://wiki.linuxquestions.org/wiki/...ring_keyboards

BTW: On my keyboard (pc105), the keycode is 117. Depends on your keyboard.
 
Old 04-10-2010, 06:17 PM   #4
sombragris
Member
 
Registered: Jul 2004
Location: Asuncion, Paraguay, South America
Distribution: Slackware
Posts: 858

Rep: Reputation: 383Reputation: 383Reputation: 383Reputation: 383
I would suggest you use the US-International layout. For setting up that layout on an X environment, type:

Code:
setxkbmap -layout us_intl
See also: http://en.wikipedia.org/wiki/Keyboar...-International
 
Old 04-10-2010, 07:19 PM   #5
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,264
Blog Entries: 24

Rep: Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194
I think this is what you are looking for

As I understand your question, you are looking for a utility to allow you to copy and paste these characters, or to get their encodings - not a keyboard map as suggested by others.

If that is the case and you have any recent Slackware installed then just run
Code:
# charmap
That is a simple utility that will show many sets of special characters and their encodings, and allow you to copy and paste them (or whole sentences) into your documents.

Hope this helps.

Last edited by astrogeek; 04-10-2010 at 07:21 PM.
 
Old 04-11-2010, 12:50 PM   #6
in_texas_dallas
Member
 
Registered: Sep 2009
Location: DFW
Distribution: Debian Lenny
Posts: 38

Rep: Reputation: 17
Talking

Quote:
Originally Posted by astrogeek View Post
As I understand your question, you are looking for a utility to allow you to copy and paste these characters, or to get their encodings - not a keyboard map as suggested by others.

If that is the case and you have any recent Slackware installed then just run
Code:
# charmap
That is a simple utility that will show many sets of special characters and their encodings, and allow you to copy and paste them (or whole sentences) into your documents.

Hope this helps.
Astrogeek> Thanks, that was what I was trying to suggest, finding a program that would do that... I don't use slackware, so I don't know the programs for that distro.

Here it is on my distro:

Code:
in_texas_dallas@kubuntu-pc:~$ apt-cache search char|grep special
kcharselect - special character utility for KDE 4
 
0 members found this post helpful.
Old 04-13-2010, 02:16 AM   #7
camphor
Member
 
Registered: Jan 2009
Location: USA
Distribution: Fedora 14 / Slackware 13.1
Posts: 85

Rep: Reputation: 20
Quote:
Originally Posted by harryhaller View Post
You don't need a program - just the compose key on your keyboard.
http://www.hermit.org/Linux/ComposeKeys.html

Now the question should be: How do I modify the keyboard to get a compose key?

The easiest way is in your /etc/X11/xorg.conf file:
Code:
Section "InputDevice" 
        Identifier      "Keyboard0" 
        Driver          "kbd" 
        Option          "XkbModel"      "pc104" 
        Option          "XkbLayout"     "us" 
        Option          "XkbOptions"    "compose:rwin" 
EndSection
Or you can change your $HOME/.Xmodmap file:
Code:
keycode 116 = Multi_key
Further info to keyboard reconfiguration here:
http://wiki.linuxquestions.org/wiki/...ring_keyboards

BTW: On my keyboard (pc105), the keycode is 117. Depends on your keyboard.
I cóuld ńȯt lįve withoųt mẏ múlti kéy!
 
Old 04-13-2010, 06:41 PM   #8
agi93
Member
 
Registered: Jan 2010
Posts: 101

Original Poster
Rep: Reputation: 17
charmap works perfectly! This is exactly what I wanted!

Thank you for telling me about the compose key, too. That should help a lot when I'm typing something with a lot of foreign characters.
 
  


Reply



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
Inputting accented characters under xfce wizardhat Slackware 6 03-19-2009 03:30 PM
no accented characters on an old olivetti laptone plbrt Linux - Software 0 08-10-2006 02:48 PM
Quanta accented characters spaniard Linux - Software 4 11-04-2005 12:08 AM
How to type accented Greek characters? fishpi Linux - Software 1 08-04-2005 02:26 PM
Accented characters in C Orkie Programming 2 05-17-2005 12:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:53 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
Open Source Consulting | Domain Registration