8. Configure Desktop Environments for Arabic

8.1. Setup FVWM

http://www.fvwm.org/

Recently (Dec. 18, 2002), a patch was added to the FVWM CVS repository, allowing for full Arabic support. This means that FVWM supports both bidi and Arabic shaping. Since this is yet to be in a release, you will have to download the source code from cvs and compile it yourself.

8.1.1. Download From CVS

In order to login to cvs and download the source code, you need to do the following:

$ cvs -d:pserver:anonymous@cvs.fvwm.org:/home/cvs/fvwm login
(Enter Password: guest)
$ cvs -d:pserver:anonymous@cvs.fvwm.org:/home/cvs/fvwm co fvwm
      

8.1.2. Compile and Install FVWM

This will download the source code to a subdirectory fvwm/.

$ cd fvwm
$ utils/configure_dev.sh
$ ./configure
$ make && make install
      

Now you have your new FVWM installed. Run it and make sure everything is working. This can be done by including it in your ~/.xinitrc. For example:

exec fvwm
      

Then you can run xinit

$ xinit &
      

8.1.3. Configure FVWM

Now that we have FVWM running we need to configure it to do what we want. In order for FVWM to handle Arabic text, you will need to tell it what fonts to use. This can be done by modifying your ~/.fvwm/.fvwm2rc to include the following:

Style * Font -misc-fixed-medium-r-normal--20-200-75-75-c-100-arabeyes-1/iso10646-1
Style * IconFont -misc-fixed-medium-r-normal--20-200-75-75-c-100-arabeyes-1/iso10646-1
      

8.2. Setup Gnome

http://old.arabeyes.org/project.php?proj=gnome-i18n

8.2.1. Localize Interface

To be completed.

8.2.2. Set Arabic Keyboard Layout

Gnome 2.0.2 and later will give you the proper keybaord based on your locale settings. See setlocales for more information.

8.3. Setup KDE

http://old.arabeyes.org/project.php?proj=kde-i18n

8.3.1. Localize Interface

http://i18n.kde.org/teams/index.php?action=info&team=ar

Download the latest Arabic translation from the above link and then:

$ tar jxvf kde-i18n-ar.tar.bz2
$ cd kde-i18n-ar
$ ./configure[8]
$ make install
      

KDE's default fonts are not full Unicode fonts. In other words, they do not include Arabic. Now that we have the actual Arabic interface translations installed, we need to make sure that the default KDE font is set to a Unicode font or one that at least is a full Arabic font. If you are using one of the MS fonts Arial (arialuni.ttf) and Courier New (cour.ttf) are both full Unicode fonts you can use.

If you are using KDE < 3.1 then: Control Center->Look & Feel->Fonts. If you are using a later version then: Control Center->Appearance and Theme->Fonts

So far all we have done is prepare everything for a full Arabic interface. If you are not interested in a complete Arabic interface you can skip this and move on to kdearabickeyboard.

To configure the interface, if you are using KDE < 3.1 then: Control Center. If you have a later version of KDE then: Control Center->Regional & Accessibilty->Country/Region & Language->Add Language->Choose Arabic

8.3.2. Set Arabic Keyboard Layout

To be completed.

8.3.3. Force Arabic Fonts on Konqueror

Some sites use stylesheets that ask for fonts that you do not have. Konqueror often replaces it with a font that does not support Arabic, so you end up with squared.

To force your Style Sheet in Konqueror you can:

  1. Settings->Configure Konqueror->Stylesheets

  2. Under the General Tab and select Customize.

  3. Choose a font under Base Family, then check the "User same family for all text" box.

  4. Press OK and re-start Konqueror.

Please do note that doing this will make all sites use the one font you have selected (and may not look very pretty on every page). Others have reportedly changed fontnames and aliases to fool the Browser into thinking certain fonts do exist in the system.



[8] You can add a '--prefix' option to tell it to install it relative to where your other KDE files are