Pashto under Gentoo Linux :: Khyber.ORG

پښتو :: پښتانه :: پښتونخواه :: پښتونوالی

Pashto under Gentoo Linux, Omar Usman
Published in Khyber.ORG on Monday, June 21 2010 (http://www.khyber.org)


New Additions

[an error occurred while processing this directive]

From Archives


Black partridges are a beautiful breed of wild birds. As the name suggests, they are black .. so are crows. But their beauty is distinguished by small patches of gold, red, and white in their feathers. The bird is mostly found in the mountains of the Frontier, Punjab, and Balochistan. . . . Read More

عبدالرحمان بابا ، منشي احمد جان د پيښور

عبدالرحمان بابا په پښتنو شاعرانو کښ ټولو نه زيات مشهور او غوره شاعر دې. د دۀ په شعرونو کښ د نورو مسلمانانو شاعرانو د شعرونو په شان مژهبي او اخلاقي رنګ دې. او مضمون ئې اکثر د حقيقي عشق دې. چه صوفيانه رنګ ئې آخستې دې. ولې په بيان کښ ئې داسې جوش او ساده توب دې چه د فارسي د شاعرانو په غټو غټو الفاظو کښ او د ګل بلبل په قيصو کښ نيشته. دې د پښتو حافظ شيرازي دې. . . . نور

دمنزل په لور ، صابر حجازى

دنړۍ په مخ دوګړو په دې خور بامبيړ کښې هغه ډله چې دشعور او پوهې خاوندان بللے شى دشاعرانو اوليکوالو ډله ده بلکې بعضې نړيوال سترګه ورئې دقام سترګې بولى اورښتياهم ده ځکه چې يوشاعر اوليکوال هغه څه وينى اوڅيړنه ئې کوى چې ديوعام وګړى دشعور نظر ترهغې د رسيدو جوګه نه وى شاعر دخپلې دغې څيړنې په رڼاکښې دسبا لارې وينى او قوم ته منزل په ګوته کوى او دژوندانۀ دمرام نه ئې خبروى . ديوقام دترقۍ اومخکښې تګ اندازه ددغه قوم دشاعرانو دذهنى سطحې نه په اسانه لګيدلے شى نن هم مونږ څوسوه کلونه وړاندې تاريخ دهغه دور دشاعرانو او اديبانو دليکونونه معلوموو نو په د ې اړه شاعران اوليکوال دتاريخ ساتندويه وګړى دى . دشاعر سوچ . . . نور

Swara: The Price of Honour , Zafar Ali Usafzai

The customary act of Swara is largely prevalent in various parts of the country, by the virtue of which, instead of giving blood money as "badl-e-sulha" an accused family gives their girl or girls in marriage to an aggrieved family as "compensation" to settle blood feud between them. . . . Read More


ممکنه ده چې دانتهائى متاثرکن شخصياتو په فهرست کښې دحضرت محمد (ص) شمير دټولونه په اول ذکر کولوباندې بعضې دوستانو ته حيرانتيا اوڅه نه څه اعتراض هم وى ، ليکن دا واحده تاريخى هستې ده کومه چې په مذهبى او دنيوى دواړو محاذونو باندې برابر کاميابه پاتې شوې ده . . . نور

خداى بخښلے کالا باغ ډيم ، عبدالهادي حيران

د نن نه شپږ پنځوس کاله مخکې چې نړۍ لا د يؤ کلي صورت نۀ ؤ اختيار کړے خو د ژوند په همدې لاره رفتار شروع شوے ؤ، د پاکستان په نوم يؤ کور د دې "کلي" په نقشه راښکاره شو. د دې لوئي کور د کاميابۍ، ترقۍ اؤ ثبات ضمانت دا ؤ چې په دې کور کې مېشت پنځۀ واړه ورونه دې په هر کار کښې د يؤ بل ملګرتيا اؤ ملاتړ وکړي اؤ په هره معامله اؤ مسئله دې د اتفاق نه کار . . . نور

Pashto under Gentoo Linux

Omar Usman

Publishing Date: Monday, June 21 2010

Note: The instructions in this write-up are specific to Gentoo distributions only and may/may not work for others. This guide is also work-in progress and will be updated or modified if something new comes along. Last updated: 4 July 2012


General Settings

Gentoo is a "compile by yourself" distribution. All applications are installed through the portage package manager, for which default settings are made in /etc/make.conf. This file should have the following settings:

USE="unicode bidi"
LINGUAS="ar fa ur ps"

The unicode use-flag is for compiling your applications with UTF support, and bidi for bi-directional text support. The Linguas flags can enable arabic, farsi, urdu, or pashto support if the software has support for it. For example, if you compiled libre-office (office suite) without these flags, you may be able to type in Pashto but it will appear as پ ښ ت و but if you compile with the flags, the characters will be joined together as پښتو.

In general, you should also make sure your installation is fully UTF compatible. Follow the instructions in this guide.

Keyboard Layouts

Pashto is now supported by default by almost every operating system. Pre-2005, this was not the case. There were two popular keyboard layouts that could be installed separately. One was Liwal, and the other Khpala Pashto. Liwal produced fonts, keyboard layouts and other software targetting primarily DOS and windows based applications. Their first font for DOS was released as far back as 1992. Liwal produced a total of 25 fonts, and according to an email correspondence (2000) claimed to be working on 250 fonts. However, their layouts and fonts came with a price tag. Khpala Pashtu also produced fonts and keyboard layouts. They produced 7 fonts and a keyboard layout in the late 1990s and are still downloadable even today. Khpala Pashtu was free for individual use. The keyboard layouts by both Liwal and Khpala Pashto are now obsolete as they do not work with OS's after windows XP.

In 2003, a UNDP project "Computer locale requirements for Afghanistan" was the first effort to standardize pashto for usage in computers. The project was also endorsed by the then Afghan ministry of communications. The project team comprised Michael Everson of Evertype, and Roozbeh Pournader of Farsi Web project. For 3-4 years, both Windows and Linux failed to encorporate the standard in their OS's. On Linux, a keymap based on the standard by Emal Alekozai was launched in 2006. In June of 2010, this keymap became part of the xkbd tool. Nowadays, Pashto support on your operating system should be enabled by default.

To select the default layouts, go to System > Preferences > Keyboard, and click on the Layouts tab.

Click the Add button, and select the layout you require.

For those of us like me who are used to the older generation layout of Khpala Pashtu, and are using Linux (Gentoo), please read on.

Download the file af.tar.gz. Open the file af from within the archive. Launch your terminal and edit the file for Afghan layouts (You may require super-user rights for doing this)

nano /usr/share/X11/xkb/symbols/af

Copy and paste the contents of the downloaded af file into the local file.

Next, modify the file evdev.lst

nano /usr/share/X11/xkb/rules/evdev.lst

Search for "Afghanistan". You will find it in the ! variant section where the following entries will already be present:

   ps              af: Pashto
uz af: Uzbek (Afghanistan)
olpc-ps af: Pashto (Afghanistan, OLPC)
fa-olpc af: Persian (Afghanistan, Dari OLPC)
uz-olpc af: Uzbek (Afghanistan, OLPC)

Add the following line below the list:

pash    af: Khyber.ORG (Khpala Pashto)

Next, modify the file evdev.xml

nano /usr/share/X11/xkb/rules/evdev.xml

Search for "olpc-ps". You should see the following entry:

      <variant>
<configItem>
<name>olpc-ps</name>

<shortDescription>ps</shortDescription>
<description>Pashto (Afghanistan, OLPC)</description>
<languageList>
<iso639Id>pus</iso639Id>
</languageList>
</configItem>
</variant>

Note that the text is enclosed in the <variant> and </variant> tags. Immediately after this, add the following lines:

      <variant>
<configItem>
<name>pash</name>

<shortDescription>pash</shortDescription>
<description>Khyber.ORG (Khpala Pashto)</description>
<languageList>
<iso639Id>pus</iso639Id>
</languageList>
</configItem>
</variant>

You can now enable the Khpala Pashtu keyboard layout using the screen-shots appearing earlier in this section

Comments powered by Disqus

Pashto under Gentoo Linux, Omar Usman
Published in Khyber.ORG on Monday, June 21 2010 (http://www.khyber.org)