LDP/LDP/howto/docbook/Euro-Char-Support.xml

252 lines
5.2 KiB
XML

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
"http://docbook.org/xml/4.1.2/docbookx.dtd" []>
<article id="Euro-Char-Support">
<articleinfo>
<title>Euro Character Support Mini HOWTO</title>
<date>March 3, 2002</date>
<author>
<firstname>Ari</firstname>
<surname>Mäkelä</surname>
<affiliation>
<address>hauva@arska.org</address>
</affiliation>
</author>
<revhistory id="revhistory">
<revision>
<revnumber>v1.0.2</revnumber>
<date>2002-04-06</date>
<authorinitials>am</authorinitials>
<revremark>
Added the info that emacs support is read-only and removed
the question about how the support works.
</revremark>
</revision>
<revision>
<revnumber>v1.0.1</revnumber>
<date>2002-03-03</date>
<authorinitials>am</authorinitials>
<revremark>
Cent: added comment that cent is not usually used. More Euro links.
Added information on KDE and Gnome.
</revremark>
</revision>
<revision>
<revnumber>v1.0.0</revnumber>
<date>2001-09-29</date>
<authorinitials>am</authorinitials>
<revremark>Original release</revremark>
</revision>
</revhistory>
<abstract>
<title>Abstract</title>
<para>
This document describes how to make the Euro character support in
GNU/Linux work. Finnish users might be interested to consult the Finnish
HOWTO which is written in Finnish.
</para>
</abstract>
</articleinfo>
<sect1>
<title>Copyright and Thanks</title>
<para>
The document is licensed under <emphasis>GNU Free Documentation License
</emphasis>, version 1.1.
</para>
<para>
Thanks for numerous people who gave me advice in Usenet.
</para>
</sect1>
<sect1>
<title>The Euro Character</title>
<para>
The new character set, <emphasis>ISO-8859-15</emphasis> which is also known
as <emphasis>latin9</emphasis> and in order
to maximize confusion as <emphasis>latin0</emphasis>, was created to
replace <emphasis>ISO-8859-1 (latin1)</emphasis>
and it includes the euro character.
</para>
<para>
The Euro is mapped to <emphasis>AltGr-e</emphasis> and the cent
- if it is used - is mapped
to <emphasis>AltGr-Shift-e</emphasis> in X and on AltGr-c on console.
</para>
<para>
The Euro Mini HOWTO was written on a Debian system and the set up
works on Debian 3.0 (Debian testing as the time of writing).
</para>
</sect1>
<sect1>
<title>The Euro and Locales</title>
<para>
<emphasis>glibc 2.2</emphasis> and newer support the Euro. The correct locale
is, for example, <emphasis>fi_FI@euro</emphasis>.
</para>
</sect1>
<sect1>
<title>The Euro and the Console</title>
<para>
Check that the file /usr/share/keymaps/include/euro.inc.gz includes lines
</para>
<screen>
altgr keycode 18 = currency
altgr keycode 46 = cent
</screen>
<para>
A console font, which suppports euro, must be loaded. Red Hat uses
command setfont and Debian uses command consolechars.
</para>
<para>
In Debian the file /etc/console-tools/config must have ISO-8859-15
screen font:
</para>
<screen>
SCREEN_FONT=lat0-16
</screen>
<para>
In Red Hat the file /etc/sysconfig/i18n must have lines
</para>
<screen>
SYSFONT=lat0-16
SYSFONTACM=iso15
</screen>
</sect1>
<sect1>
<title>The Euro in the X Window System</title>
<para>
With default configuration <emphasis>AltGr-e</emphasis> (the <emphasis>right
Alt</emphasis> for those who have
no AltGr) produces the generic currency symbol which looks like a four
legged spider. When the font of the program is changed to a
<emphasis>ISO-8859-15</emphasis> font the currency symbol is replaced by
the Euro symbol. In Debian
this can be achieved by adding line
</para>
<screen>
.XTerm.VT100.font: -jmk-neep alt-medium-r-*-*-*-120-*-*-*-*-iso8859-15
</screen>
<para>
to the file <filename>/etc/X11/app-defaults/XTerm</filename>. The fonts
available in distributions and installations vary.
</para>
<para>
If AltGr-e does not work add line
</para>
<screen>
keycode 26 = e E EuroSign
</screen>
<para>
to the file /etc/X11/Xmodmap
</para>
<sect2>
<title>KDE</title>
<para>
Change the font setting in KControl to ISO-8859-15.
</para>
</sect2>
<sect2>
<title>GTK and Gnome</title>
<para>
Change the font setting in Gnome Control Center to ISO-8859-15.
</para>
<para>
A better way of doing this is changing the system wide GTK+ configuration
with commands
</para>
<screen>
cd /etc/gtk
ln -s gtkrc.iso-8859-15 gtkrc
</screen>
</sect2>
</sect1>
<sect1>
<title>Emacs</title>
<para>
Emacsen 21 and newer have partial euro support. The following elisp
should work:
</para>
<screen>
(set-face-font
'default '"-*-courier-medium-r-*-*-*-120-*-*-*-*-iso8859-15")
</screen>
<para>
Note that you cannot write Euro characters. You can only see them.
</para>
</sect1>
<sect1>
<title>Euro-links</title>
<para>
<ulink url="http://www.koffice.org/kword/euro.phtml">KWord Euro Page
</ulink>.
<ulink url="http://www.debian.org/doc/manuals/debian-euro-support/">
Debian Euro HOWTO
</ulink>.
<ulink url="http://garbo.uwasa.fi/ldp/HOWTO/mini/Euro-Char-Support/index.html">
Euro Character Support mini HOWTO
</ulink>
<ulink url="http://www.ibiblio.org/guylhem/programmes/EURO-2.tgz">
Guylhem Aznar's Euro Pack
</ulink>
<ulink url="http://lwn.net/1998/1119/a/euro-readme.html">
The README of the Euro Pack
</ulink>
<ulink url="http://www.linuxjournal.com/article.php?sid=3200">
Linux Journal on the Euro Pack
</ulink>
</para>
</sect1>
</article>