[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Problem with console and locales



Awesome... we are on the road now, I've tried console-setup package in combination with the
console-terminus fonts as you told me, but the issue still remains. When I use "more" I see a "white square" instead of  "á - ú or ñ" characters, and when I check the text file with aspell it does not show these special characters neither (shows "C rdoba" instead of "Córdoba").

 Maybe if I show you some of mine configuration files we can solve this:

#====================================================
Euclides:/etc# egrep -v "^\#|^$" locale.gen
en_US.UTF-8 UTF-8

Euclides:/etc# locale
LANG=en_US.UTF-8
LANGUAGE=en_US
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

Euclides:/etc# egrep -v "^\#|^$" default/console-setup
VERBOSE_OUTPUT=no
ACTIVE_CONSOLES="/dev/tty[1-6]"
CHARMAP="UTF-8"
CODESET="Lat15"
FONTFACE="TerminusBold"
FONTSIZE="20x10"
XKBMODEL="pc105"
XKBLAYOUT="es"
XKBVARIANT="nodeadkeys"
XKBOPTIONS="lv3:ralt_switch,compose:rwin"
BOOTTIME_KMAP_MD5="80842f76431ec5259444e6b8f4a53b62"
#====================================================================

my xorg.conf file contains:

#====================================================================
Section "InputDevice"
        Identifier      "Generic Keyboard"
        Driver          "kbd"
        Option          "CoreKeyboard"
        Option          "XkbRules"      "xorg"
        Option          "XkbModel"      "pc105"
        Option          "XkbLayout"     "es"
        Option          "XkbVariant"    "la"
EndSection
#====================================================================

Thank you in Advance

On Feb 3, 2008 12:46 PM, Florian Kulzer <florian.kulzer+debian@icfo.es> wrote:
On Wed, Jan 30, 2008 at 21:03:30 -0200, Andres Migliazzo wrote:

[...]

> I have a similar question... I'm wondering if is doable to set up your
> debian system in English and read special characters (like á-ú,ñ) in the tty
> console.

Yes, that is possible. You need an English locale that allows you to
encode these characters and a font that contains the necessary symbols.

>          I'm a TeX user and use to do a spelling check using aspell (#aspell
> -t -c file.tex --lang=es), but when I've to do texts in Spanish I'm not able
> to see the special characters because it's not supported by my system. For
> instance, instead of  "Córdoba" you see "C rdoba), and when you use a file
> parser like more, you see funny characters in "ó" place.

The missing character in "C rdoba" suggests that your tty font does not
have the "ó" symbol. If you see more than one strange character in
"more" then you might furthermore have a mix-up between iso-8859-1 and
utf-8 encoding.

> Does anyone have a clue how to set up my system to achieve this?

Which locale do you use at the moment? Run "locale" to find out. I use
"en_US.UTF-8" and the console-setup package in combination with the
console-terminus fonts.

These are my settings in /etc/default/console-setup:

CHARMAP="UTF-8"
CODESET="Lat15"

FONTFACE="TerminusBold"
FONTSIZE="20x10"

XKBMODEL="pc105"
XKBLAYOUT="es"
XKBVARIANT="nodeadkeys"
XKBOPTIONS="lv3:ralt_switch,compose:rwin"

This gives me access to all the special characters used in Spanish, as
well as to other symbols (e.g. "ø") by means of the right-Windows key
which acts as a "compose" key. Of course, characters like ñ, ¿, ¡, º,
etc. can be entered directly by using their dedicated keys.

If you prefer to have "dead" accent keys (most of my Spanish colleagues
seem to like this configuration) then you can omit the XKBVARIANT=...
line. If you also use X on that machine then it is probably the best to
use the same keyboard configuration as under X. (The console-setup
configuration accepts the same definitions as the keyboard section of
xorg.conf.)

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



Reply to: