Open with your favourite editor the file /usr/X11R6/lib/X11/xkb/rules/xfree86.lst. Under !layout, add gb+el British And Greek
!layout gb+el British And Greek
Here's the relevant section in my XF86Config-4 file (located in /etc):
Section "InputDevice" Identifier "Keyboard0" Driver "keyboard" Option "XkbRules" "xfree86" Option "XkbModel" "pc105" Option "XkbLayout" "gb+el" Option "XkbOptions" "grp:ctrl_shift_toggle" EndSectionNotice the XkbLayout option and XkbOptions. This effectively uses my british keyboard with an option to switch to a greek keyboard using control+shift as a toggle.
On my system, those were located in
/etc/sysconfig/i18n. Set them to:
LANG=en_UK LC_CTYPE=el_GR
Redhat 7.3 provides greek language fonts on the following packages:
fonts-ISO8859-7-Type1-1.0-2 fonts-ISO8859-7-1.0-2 fonts-ISO8859-7-100dpi-1.0-2 fonts-ISO8859-7-75dpi-1.0-2You can also try the microsoft ttf font pack.
Run gnomecc (the gnome control centre). Go to "Theme Selector". Select your favourite theme (Metal's mine :-), and click on "Use Custom Font". Select a greek font that looks good. I Use helvetica greek (-greek-helvetica-medium-r-normal-*-12-*-*-*-p-*-iso8859-7). Make sure you've selected the correct encoding. Click OK to save your changes.
Run gnomecc (the gnome control centre). Go to HTML viewer. Select greek fonts for both screen and displaying. I've selected grfixed(etl) (-etl-grfixed-medium-r-normal-*-14-*-*-*-c-*-iso8859-7) for everything, which probably isn't a good choice, but works for me :-)
You need to use the babel package. Here's an example document:
\documentclass[a4paper,10pt]{letter} \frenchspacing \usepackage[english,greek]{babel} \usepackage[iso-8859-7]{inputenc} \selectlanguage{english} Hello \selectlanguage{greek} ΓειάTo parse it, you'll need the iso-8859-7.def encoding package, available here. As shown in the example above, use the \selectlanguage{} command to switch between languages.
Hope this document helps. Thanks to (some of) the people at the linux-greek-users mailing list for their help.