LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 10-30-2010, 10:07 AM   #1
starguy192
LQ Newbie
 
Registered: Oct 2010
Posts: 3

Rep: Reputation: 0
can't get certain french accents in TTY console


I'm trying to get all french accents to work in gentoo, so far everything works fine when in X/gnome, i type "setxkbmap ca" to load the french canadian keys and i'm able to type éàèÉéééÈ etc...

however when I switch to TTY console mode (ctrl-alt-F2 for example), i am only able to obtain è and none of the others like éà etc...

I know that in TTY the command loadkeys is responsible for the character set and does not affect gnome in X which leads me to believe I need to fiddle with loadkeys command, however I tried all instances of the french keymaps found in /usr/share/keymaps/i386/ by issuing "loadkeys fr","loadkeys fr-latin1", etc.. I tried them all, one of them was able to give me the accents I'm missing but didnt correspond to the keys on my keyboard (microsoft wired 500 series)..

my locales are set according to the gentoo localisation guide, echo $LANG outputs en_US.UTF-8 because I wish to keep my system prompts in english (I also tried setting to to french without success in the accents)

If anyone has suggestions on what else to look at or try it would be nice.

Regards,
 
Old 10-30-2010, 10:30 AM   #2
eSelix
Senior Member
 
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,281

Rep: Reputation: 320Reputation: 320Reputation: 320Reputation: 320
To select font displayed on the console use command:
Code:
setfont /usr/share/consolefonts/Uni3-TerminusBoldVGA16.psf.gz
You can choose another font file, as I known files starting with "Uni" contain Unicode format, but maybe other also works. You can also create symlink in this directory to your default font named "default.psf.gz". I don't know how to instruct linux to load it automatically, without using bashrc.

If you will get two chars after one keystroke then you must set console to work in unicode by:
Code:
unicode_start

Last edited by eSelix; 10-30-2010 at 10:34 AM.
 
Old 10-30-2010, 11:13 AM   #3
starguy192
LQ Newbie
 
Registered: Oct 2010
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by eSelix View Post
To select font displayed on the console use command:
Code:
setfont /usr/share/consolefonts/Uni3-TerminusBoldVGA16.psf.gz
You can choose another font file, as I known files starting with "Uni" contain Unicode format, but maybe other also works. You can also create symlink in this directory to your default font named "default.psf.gz". I don't know how to instruct linux to load it automatically, without using bashrc.

If you will get two chars after one keystroke then you must set console to work in unicode by:
Code:
unicode_start
That didn't work, I don't have Uni3-TerminusBoldVGA16.psf.gz this file, but tried the other 4-5 files in that directory without success, I also tried unicode_start.

I noticed that when I boot from a resscuecd that I have and type loadkeys cf all the keys work fine in TTY, I'm trying to see what settings are different from my system and the live cd.

any ideas? i did an output of locale and LANG so far on both systems
 
Old 10-30-2010, 02:49 PM   #4
starguy192
LQ Newbie
 
Registered: Oct 2010
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by starguy192 View Post
That didn't work, I don't have Uni3-TerminusBoldVGA16.psf.gz this file, but tried the other 4-5 files in that directory without success, I also tried unicode_start.

I noticed that when I boot from a resscuecd that I have and type loadkeys cf all the keys work fine in TTY, I'm trying to see what settings are different from my system and the live cd.

any ideas? i did an output of locale and LANG so far on both systems
** solved

I fixed the problem, i created 2 scripts, one to turn the french accents on and one to turn them off

french.sh

#!/bin/bash

/usr/bin/setxkbmap ca
/usr/bin/loadkeys cf


and

english.sh

#!/bin/bash

/usr/bin/setxkbmap us
/usr/bin/loadkeys us


I run both as administrator in gnome and they enable/disable french accents in both TTY and X environments without any problems, including vim and openoffice

Regards.
 
  


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
How to print a message from kernel module to terminal console or tty console yogesh_bansal Linux - Newbie 2 02-27-2009 09:10 AM
console tty assignment in mdk 10.1 bcotton56 General 0 01-11-2007 10:26 PM
tty console switching problem aldar Slackware 2 12-16-2005 06:30 PM
more then 12 tty /console ... apenguinlinux Debian 4 02-21-2005 09:56 PM
French accents/European Alphabet error with Apache/PHP rmanocha Programming 5 07-12-2004 07:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:09 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