Localization/Guide/The Euro symbol

From Gentoo Wiki
Jump to: navigation, search

The Euro symbol for the console


In order to get your console to display the Euro symbol, you will need to set the consolefont variable in /etc/conf.d/consolefont to a file found in /usr/share/consolefonts/ (without the .psfu.gz). lat9w-16 has the Euro symbol.

FILE /etc/conf.d/consolefontSetting the console font

For more details see the consolefont section in Sakaki's EFI Install Guide.

You should verify that the consolefont service is in the boot runlevel:

root #rc-update -v show | grep consolefont

If no runlevel is displayed for consolefont, then add it to the proper level:

root #rc-update add consolefont boot

The Euro symbol in X

Most applications

Getting the Euro symbol to work properly in X is a little bit tougher. The first thing you should do is change the fixed and variable definitions in /usr/share/fonts/misc/fonts.alias to end in iso8859-15 instead of iso8859-1.

CODE Setting default X fonts
fixed        -misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso8859-15
variable     -*-helvetica-bold-r-normal-*-*-120-*-*-*-*-iso8859-15

Some applications use their own font, and you will have to tell them separately to use a font with the Euro symbol. You can do this at a user-specific level in .Xdefaults (you can copy this file to /etc/skel/ for use by new users), or at a global level for any application with a resource file in /usr/share/X11/app-defaults/ (like xterm). In these files you generally have to change an existing line, rather than adding a new one. To change our xterm font, for instance:

user $echo 'XTerm*font: fixed' >> ~/.Xresources
user $xrdb -merge ~/.Xresources

The Euro symbol in (X)Emacs

To use the Euro symbol in (X)Emacs, add the following to .Xdefaults :

FILE ~/.XdefaultsSetting the font for emacs
Emacs.default.attributeFont: -*-courier-medium-r-*-*-*-120-*-*-*-*-iso8859-15

For XEmacs (not plain Emacs), you have to do a little more. In /home/user/.xemacs/init.el , add:

FILE ~/.xemacs/init.elSetting the font for xemacs
(define-key global-map '(EuroSign) '[€])