Saturday, 4 April 2009

Writing In Arabic in Sugar

To get Arabic Language working on OLPC Sugar OS, follow the following steps:
(For more information please refer to this link).

First of all you have to be a root to use 'yum' package manager, so follow these commands:

$ su
# yum update
# yum install fonts-arabic
# yum install scim scim-gtk
# yum install scim-m17n scim-tables
# yum install m17n-db-arabic.noarch

After doing this, you need now to activate scim at the start of Sugar (the interface of XO laptop), to do so you need to copy this file ~olpc/.xsession-example to ~olpc/.xsession and then configuring it to add some line of code as follow:

# cp ~olpc/.xsession-example ~olpc/.xsession
# vi ~olpc/.xsession

Then add the following lines to the file:

export GTK_IM_MODULE=scim
export USE_XOPENIM=t
scim -d

Now you need to reboot you XO laptop, just type:
# reboot
After booting, Open Browse Activity put the cursor on the text field then hit the HOT KEY for SCIM which is (CTRL+SPACE) a little pop-up window on the right bottom of the screen will show, just change the language to Arabic and start typing, Wohoo, it's writing Arabic characters.

There's one main Problem I am still facing typing in Arabic:
  1. There's some letters don't come in the correct format, for example if you typed "m" Arabic letter followed by "n" Arabic Letter, it won't attach them to each other, instead they will be like separated letters! (See Picture)

This is a good start in Arabizing OLPC. However it still needs a lot of work.

If you have problems in writing Arabic in OLPC, please send us a note we will try our best to help you.