Skip to Content

Revision of Arabic file names under KDE and GNOME from Wed, 07/07/2004 - 12:51pm

The revisions let you track differences between multiple versions of a post.

Pronco's picture

Ok, This article needs to be cleaned and to be tested/verified.

احب ان اوضح فى البداية اننى لن اتطرق فى هذا المقال الى كيفية تثبيت الخطوط العربية على نظام اللينوكس كما لن اتطرق الى كيفية تمكين كل من GNOME و KDE من عرض المحتوى العربى كل الخطوات التالية تتطلب ان تكون مستخدم جذرى "root" لقد قمت بتجربة هذه الخطوات على نظام Mandrake 9.0 و باستخدام خط Tahoma من نسخة ويندوز 2000 الاصلية الخاصة بى

ينبغى اولا تعريف النظام باننا نريد التعامل مع اسماء الملفات الموجوده على اجزاء القرص الصلب الخاص بنظام تشغيل الويندوز باستخدام اليونيكود

نقوم بفتح الملف /etc/fstab

علينا فقط تعديل السطور الخاصة باقسام ويندوز فمثلا الملف الحاص بى كالتالى

/dev/hda12 / ext3 defaults 1 1

/dev/hda9 /boot ext3 defaults 1 2

none /dev/pts devpts mode=0620 0 0

/dev/hda10 /home ext3 defaults 1 2

/dev/cdrom /mnt/cdrom auto users,ro,noauto,exec 0 0

/dev/sr0 /mnt/cdrom2 auto users,noauto,ro,exec 0 0

/dev/fd0 /mnt/floppy vfat umask=0,sync,nosuid,noauto,user,nodev,unhide 0 0

/dev/hda1 /mnt/win_c vfat defaults 0 0

/dev/hda5 /mnt/win_d vfat defaults 0 0

/dev/hda6 /mnt/win_e vfat defaults 0 0

/dev/hda7 /mnt/win_f vfat defaults 0 0

/dev/hda8 /mnt/win_g vfat defaults 0 0

none /proc proc defaults 0 0

/dev/hda11 swap swap defaults 0 0

بالتاكيد سيختلف الملف الخاص بك هن هذا

سنقوم بالتعديل فى السطور اللتى تحتوى على vfat فى الخانة الثالثة

سنقوم باضافة iocharset=utf8 الى الخانة الرابعة فى هذه الاسطر لتصبح كالتالى

/dev/hda12 / ext3 defaults 1 1

/dev/hda9 /boot ext3 defaults 1 2

none /dev/pts devpts mode=0620 0 0

/dev/hda10 /home ext3 defaults 1 2

/dev/cdrom /mnt/cdrom auto users,ro,noauto,exec 0 0

/dev/sr0 /mnt/cdrom2 auto users,noauto,ro,exec 0 0

/dev/fd0 /mnt/floppy vfat umask=0,sync,nosuid,noauto,user,nodev,unhide 0 0

/dev/hda1 /mnt/win_c vfat defaults,iocharset=utf8 0 0

/dev/hda5 /mnt/win_d vfat defaults,iocharset=utf8 0 0

/dev/hda6 /mnt/win_e vfat defaults,iocharset=utf8 0 0

/dev/hda7 /mnt/win_f vfat defaults,iocharset=utf8 0 0

/dev/hda8 /mnt/win_g vfat defaults,iocharset=utf8 0 0

none /proc proc defaults 0 0

/dev/hda11 swap swap defaults 0 0

الان يتبقى خطوتين

اولا: اعداد GNOME2

قم بفتح الملف /etc/profile و اضافة السطر التالى اليه:

export CHARSET=ISO_8859-6

export G_BROKEN_FILENAMES=1

اذا كنت من مستخدمى نظام RedHat 8.0 فيمكنك اغفال باقى الخطوات

ثانيا: اعداد KDE3

اذا كنت تستخدم نظام Mandrake قم بتثبيت حزمة RPM المسماه locales-ar عن طريق الامر التالى:

urpmi locales-ar

فم باضافة السطر التالى الى الملف /etc/profile

export LC_ALL=ar_EG.UTF-8

الان قم باعادى تشغيل اللينوكس

مبروك عليك الاسماء العربية :-)

فى الواقع الطريقة الاصح هى عمل ملف فى /etc/profile.d نسمية مثلا ar.sh ونقوم باعطائه التراخيص 755 و نضع فية السطرين كالتالى:

touch /etc/profile.d/ar.sh

echo "export G_BROKEN_FILENAMES=1" >> /etc/profile.d/ar.sh

echo "export CHARSET=ISO_8859-6" >> /etc/profile.d/ar.sh

echo "export LC_ALL=ar_EG.UTF-8" >> /etc/profile.d/ar.sh

chmod 755 /etc/profile.d/ar.sh ====================================================

Comments

Pronco's picture

iocharset=utf8

Unable to read arabic file names

UTF8 =


I used to be indecisive .. but now I'm not so sure

MSameer's picture

What's this output ? -- I

What's this output ?

maslan's picture

It worked fine for me

It worked fine for me since mdk8 till 10.1 thnx uniball

Pronco's picture

Output

The current output that I read it instead of arabic font


I used to be indecisive ... but now I'm not so sure

MSameer's picture

did it work with konqueror or

did it work with konqueror or what ?? are you doing ls in a terminal ??

Pronco's picture

konquueror

did not work with konqueror

  • Mounted Partition

I used to be indecisive .. but now I'm not so sure

MSameer's picture

Donno really, try it with any

Donno really, try it with any gtk app.

Pronco's picture

startx lagging process

When I export LC_ALL="en_US.UTF-8" the locale language working properly but it's so lagging on the startx process otherwise When I remove the exportion it starting properly and fast

What does it supposed to be ?

Maybe I'm using a very big font with thousands of characters, it can happen that all the characters are rasterized on startup, and this can take a lot of time

AFAIR loading an UTF8 font can take some time

Maybe I can probably try to use an arabic specific locale and font.

Any ideas ?


I used to be indecisive .. but now I'm not so sure

Pronco's picture

GNOME 2.6

export CHARSET=ISO_8859-6

export G_BROKEN_FILENAMES=1

does not work on GNOME 2.6


I used to be indecisive .. but now I'm not so sure

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.


Dr. Radut | book